From gwichman at zantaz.com Wed Jan 1 04:17:33 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Tue, 31 Dec 2002 19:17:33 -0800 Subject: central server spawning tons of processes... ? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB410B@zanexch.zantaz.com> I have 2 distributed nagios servers sending passive checks to a 3rd central nagios server. On the central server i'm continuing to see odd problems. One thing i notice that i find odd and perhaps wrong, is there are a TON of nagios processes running. e.g. if i do a "ps -ef | grep nag | wc -l" i see tons of them. Just today after it's been running for a bit over 24 hours the above command returned slightly more then 4000. This seems excessive and wrong.. Is nagios supposed to spawn additional processes? If i do a nagios stop, they all go away. When i first do a "start", it starts with 1 but within a minute, it'll grow to a few.. then get into the 10's.. and slowly keep growing obviously to a lot. I can clearly see the nagios process is spawning them. Doesn't matter if i use init.d to start/stop it or start it manually. It still spawns more. Is this correct behavior? I downloaded 1.0 and compiled it, but it still does it. My two distrivuted servers, as far as i can tell, only show 1 process. Each of the 3 nagios servers are at different levels. e.g. the central is running an up to date RH8, the distributed are running an up to date RH7.3 and non up to date 7.1.. I'd love to know if anyone else has a central server and if they see this? 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 sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Wed Jan 1 10:48:23 2003 From: rvelez at sunguruz.com (rvelez) Date: Wed, 1 Jan 2003 04:48:23 -0500 Subject: Nagios on Solaris In-Reply-To: References: Message-ID: <000001c2b17a$ecbcae30$0300a8c0@sunguruz.com> Yes I checked, looks like their was something wrong with the jpeg lib install so I decided to install the jpeg pkg and ran make clean then reran ./configure and make all and I was good to go. I would like to that all of you for your help. Now I must start the configuration, sure to run into some issues - trial and error -, hehe . Thanks again, Happy New Year :) Regards -Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ambrose Sent: Tuesday, December 31, 2002 4:17 AM To: rvelez Cc: 'hrishy'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nagios on Solaris Did you check to make sure the libraries were installed correctly? - Ambrose On Tue, 31 Dec 2002, rvelez wrote: > I have libpng-1.2.4 and jpeg-6b installed already. Could it be anything > else? Is it that it can not find jpeg? > > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Tuesday, December 31, 2002 3:15 AM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios on Solaris > > Hi > > You need to have the libpng and libjpeg libraries..you > can download them from... > > http://www.ibiblio.org/pub/packages/solaris/sparc/ > > regards > Hrishy > > --- rvelez wrote: > So still no > luck, I am running Solaris 8 on an Ultra > > 5 running gcc > > 2.95.3 and gnu make 3.79. Still getting: > > > > make all > > cd ./base && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/base' > > make[1]: `nagios' is up to date. > > make[1]: Leaving directory > > `/opt/local/src/nagios-1.0/base' > > cd ./cgi && make > > make[1]: Entering directory > > `/opt/local/src/nagios-1.0/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 edata.o > > ../xdata/xedtemplate.c -o statusmap.cgi > > Undefined first referenced > > symbol in file > > jpeg_simple_progression > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_quality > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_write_marker > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_scanlines > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_start_decompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_destroy_compress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_resync_to_restart > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_std_error > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateDecompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_set_defaults > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_CreateCompress > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_read_header > > /usr/local/lib/libgd.a(gd_jpeg.o) > > jpeg_finish_compress > > /usr/local/lib/libgd.a(gd_jpeg.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 > > `/opt/local/src/nagios-1.0/cgi' > > make: *** [all] Error 2 > > > > > > Your help is greatly appreciated. Thanks guys > > > > > > __________________________________________________ > 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: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 > ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Wed Jan 1 16:52:20 2003 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 1 Jan 2003 15:52:20 -0000 Subject: sample files required In-Reply-To: <20021230102030.30860.qmail@web12606.mail.yahoo.com> References: <20021230102030.30860.qmail@web12606.mail.yahoo.com> Message-ID: <00a401c2b1ad$c4def5c0$0400a8c0@squarebox.com> I have stuck a site up with all my nagios configs I have used to create http://nagios.square-box.com the demo configs are at http://demo.square-box.com All the nagios configs are there now. I hope to have finished the apache config section in the next few days Cheers 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 hrishy Sent: 30 December 2002 10:21 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] sample files required Hi All I installed nagios yesterday...my congrajulatiosn to all these wunderful people here for providing such an excellent masterpiece..after the initial configuration i ran into a few gottchas...my nagios monitoring process is not running when i edit the sample configuration files...so i am wundering if anybody is kind enough to ship me his/hers working configuration files ..probably it would be a good point for me to start out.. 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: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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Wed Jan 1 16:49:17 2003 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 1 Jan 2003 15:49:17 -0000 Subject: NRPE enhancement In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24BC@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24BC@PKDWB03C.ad.sprint.com> Message-ID: <00a301c2b1ad$5803d560$0400a8c0@squarebox.com> Fantastic, its definitely worth more that $0.015, probably about $0.10 worth and you even pointed out what I have been blatantly missing all the time. check_by_ssh Cheers 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 Carroll, Jim P [Contractor] Sent: 30 December 2002 17:33 To: 'nagios-users' Subject: RE: [Nagios-users] NRPE enhancement As much as I'm concerned with the increased risks of the proposed NRPE enhancement, I'd like to add some perspective. Tom Welsh wrote: > In my humble opinion an option that allows an arbitary command to be > executed and which by "default" is switched off is an accident waiting > to happen. Giving a newbie a Linux distro on CD-ROM and letting him install it and connect it to an untrusted network is an accident waiting to happen. Arguably a much bigger accident. I would argue that having the 'enhanced' version squawk with something like: WARNING!!!! You have started a non-default version of NRPE which is considered less secure than the default version! Unless this is being run on a trusted network, it is STRONGLY recommended you recompile NRPE with the default options! (Refer to the README included in the original tarball.) each and every time it's started will tend to be noticed by most somewhat-security-aware sysadmins, I would think. > It only takes 1 security breach via a plugin to completely destroy the > good name Nagios and its associated plugins have. Hmm. 'Via a plugin'? Yeah alright, I can see that, if it's running with suid. I don't see that as an inherent risk with check_by_ssh, since that would depend on the SSH installation. (If you really wanted to, you could get pretty lame with SSH.) Security of the Nagios host itself would depend on locking it down, of course, and making sure you're not running a 'Swiss cheese' http server. The Nagios processes (if the docs are followed to the letter) run under user nagios, not root, or any other UID 0 account. What about NSClient? No crypto, no SSH option, no restrict-by-IP option in the client's config. Sure, you can use stunnel, but you still have to have a port open on the Windows client, and there's no way to restrict it to 127.0.0.1, short of adding a software firewall solution. (My apologies to the Windows gurus on the list if such a feature currently exists.) > There is a good truism that states "good news travels fast, > but bad news > travels even faster" "Everything in moderation, even moderation." -- Buddha > I for one would not be too happy having a command available on my > network, trusted or not that would allow commands to be executed > remotely pon a box. For one. It's the kind of thing im always looking > for when im "playing on my " networks. We have at least one command available for executing commands remotely. It's called ssh. Alright, I'm being the devil's advocate here. :^) All I'm saying is, perhaps it should be the sysadmin's choice whether he/she wants to install something considered more secure or less secure than what his/her bretheren/sisters are using. I still cringe when I find out someone wishes to enable telnetd. If the application boldly states that it's running in a less secure configuration than can be had and the sysadmin boldly accepts that risk, so be it. Nothing's stopping anyone from running rshd/rlogind/rexecd with "+" in hosts.equiv, for example, and unless you pick up a book on UNIX security, it may not occur to you what the risks are. Certainly the r-daemons don't give you any such warning. I personally wouldn't implement the 'enhanced' version of NRPE, but so long as the appropriate caveats were in place, I don't see why someone else shouldn't be given the chance. If it appears that I'm sitting on the fence, that's because I am. Creativity means growth; stifling creativity would eventually sound the death knell of any software development. There will always be some risk if a system is powered up and connected to a network. Security holes come about as the results of poor coding or design oversights, a.k.a. 'bugs'. Any non-trivial piece of code will have bugs. I seem to recall reading somewhere that it's not possible to prove that a given piece of code is bug-free; failure to find a bug does not constitute proof that the code is clean, whereas finding a bug proves the trivial case that at least one bug exists. It might be an interesting exercise to continue to enhance NRPE, even adding trivial security such as password authentication, rot13, identd support.... *shrug* Perhaps Mr. Viner would rise to the challenge...? > Well that's my two cents worth Add my $0.015 to the pile. :^) jc > Cheers > > 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 Dave > Viner > Sent: 28 December 2002 21:46 > To: Ethan Galstad; nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > These are excellent arguments for not incorporating the > enhancement I am > suggesting. However, I suspect that there are lots of > installations of > Nagios and NRPE that run on completely trusted network. (Or > the risk of > network intrusion through NRPE is worth the benefit of reduced > configuration > management.) > > What do you think about incorporating this enhancement but have it > turned > off by default, and enabled only at configure time? > > dave > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > Galstad > Sent: Friday, December 27, 2002 7:38 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > There are several reasons why I have not added support for arguments > to checks in NRPE. Most have been touched on in the past on the > list, but I'll reiterate them here. The main issue is not overruning > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > and forth - that can be easily avoided... > > 1. > Users connecting to the NRPE are not authenticated. Sure, you can > restrict connection based on IP address using TCP wrappers, but they > are still not authenticated. Also, I am not too familiar with IP > spoofing, but I'm sure its possible for someone to fake the > originating address of the connection and get the NRPE daemon to > accept the packet and execute the necessary plugin without too much > trouble. > > 2. > Some plugins (like check_dhcp) may (have to) be installed suid root. > Regardless of what user the NRPE daemon is running as, these plugins > will be executed with higher privs. > > 3. > Plugins can be made to segfault under the right conditions. Sure, we > can try and eliminate this possibility, but it will probably always > exist to some extent since many plugins call system commands to get > their data. > > --- > > Most remote exploits rely on buffer overflows/segfaults to get their > work done, so allowing unauthenticated users to pass arbitrary > arguments/data to plugins that might be running suid commands is a > very bad idea indeed. > > Stunnel would provide some security, but there is no guarantee that > everyone would use it. There would undoubtably be many people that > would put off implementing it until they finished "testing" NRPE. In > the worst case, they might never get around to implementing stunnel > at all. In the likely best case scenario, there is at least a window > of opportunity. I just don't want to be responsible for the possible > carnage that happens at that point. :-) > > Also, incorporating native encryption into NRPE involves reinventing > the wheel called "check_by_ssh", so I'm really interested in doing > that. > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > I'm not a C programmer by profession, so I defer your query to those > who > > have a strong background, both in C code and system/network > security. > It > > does presume that every other link in the chain is bulletproof. > [Insert > > ObRef to Bugtraq here.] > > > > At any rate, I'm curious to hear why Ethan didn't choose > that approach > to > > begin with. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Friday, December 27, 2002 12:49 PM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > This sounds interesting, but I have a question about the > > > security implications of this code. I'm not a security > > > expert, so please excuse the somewhat basic question. The > > > struct packet as defined in common/common.h has an argv > > > member which is a character array of length 2048. I believe > > > this means that if the incoming packet has an argv member > > > whose length is greater than 2048 chars, then the > > > rc=recvall(sock,(char > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > should fail, should it not? > > > > > > However, I think your suggestions regarding stunnel, and > > > encryption are good ones, regardless of the inclusion of > this code. > > > > > > thanks > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Friday, December 27, 2002 10:20 AM > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > - This should not be enabled by default. > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > should explicitly > > > state the security risks in forcing the non-default > (added feature) > > > behaviour. > > > > > > - If the daemon is compiled with this option, anytime the > > > daemon starts, it > > > should briefly mention that it has been compiled for this > > > behaviour, and a > > > quick remark about the increased risks. (Sent to stderr if > > > standalone, else > > > sent to syslog if running under (x)inetd). It should scream > > > loud and clear > > > if it's started under root; preferably it would simply not > > > run as root, full > > > stop. > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > only permitting > > > connections from localhost, as defined in nrpe.cfg) would be > > > desireable. > > > > > > I'm not a security guru, but it seems to me that facilitating > > > this feature > > > would open oneself up to a buffer overflow attack. If you're > > > on a trusted > > > network, it's a non-issue. > > > > > > On a related note, I'd be much more comfy with this feature > > > if there were a > > > facility to enforce some level of native encryption, such as > > > what NSCA uses. > > > If you don't have the keys to the house, you get dropped on > > > the floor. (I > > > have a similar wish for NSClient.) > > > > > > Food for thought. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > patch to the nrpe source that implements what I'm describing. > > > > This patch is made against the nrpe-1.5.tar.gz from > sourceforge. > > > > > > > > Essentially, these changes allow us to specify in the > > > > nrpe.cfg file lines like this: > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > argument string. For example: > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > I think this is really useful and would greatly reduce the > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > number of times you'd need to modify that configuration file. > > > > Instead the modifications would occur on the centralized > > > > Nagios server's configuration file. > > > > > > > > What does everyone think? Should we add this to the main > > > > source for NRPE-1.6? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > To: Naios Users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Hi Rue, > > > > Security is a great reason for limiting the commands > > > > that NRPE is able to execute. But my suggested enhancement > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > in the cfg file. That is, the NRPE would still need to find > > > > the path to the executable in the nrpe.cfg file, then use any > > > > remaining information as arguments passed to the executable. > > > > It is true that this is less secure that forcing the entire > > > > command line (executable and arguments) in the config file. > > > > But, so long as the executables are well authored and handle > > > > unexpected arguments well, I think this enhancement would not > > > > significantly decrease security. Do you think that > > > > specifying arguments would make NRPE significantly less secure? > > > > > > > > > > > > Dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Rue Turner > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > To: Naios Users > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > dave, > > > > > > > > I think the reson for this choice of configuration is > > > security. If the > > > > nrpe was allowed to run whatever it was asked it would > be easy to > > > > compromise your machines. This way although your configs are > > > > hefty (mine > > > > have almost a hundred lines in) you can only ask it to run > > > > commands from > > > > this library. > > > > > > > > rue > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > Hi, > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > people think this is a > > > > > good idea, I'll try to make a patch to support my > > > > suggestion. Currently the > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > 95 /dev/hda1 > > > > > As result of this design is that if you want to check > > > something like > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > nrpe.cfg file. > > > > > So, I'd like to propose that we extend NRPE to allow > > > > for the arguments to a > > > > > command to be specified by the central Nagios server > > > > instead of in the > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > command line which > > > > > maps a key, 'check_disk', to a local executable, > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > specified from > > > > > the central Nagios server in some manner. > > > > > I think this would great simplify the nrpe.cfg files, > > > > and reduce a lot of > > > > > redundant command definitions that differ only in the > > > arguments they > > > > > require. Also, it would mean that you'd need to update > > > > your nrpe.cfg very > > > > > rarely. In fact, you'd only need to update it when you add > > > > a new plugin. > > > > > I don't have a concrete suggestion for implementing > > > > this yet, because I > > > > > want to see if the community is interested in this idea > > > > first. Has this > > > > > idea been suggested previously? Is anyone currently > > > > interested in the idea > > > > > or would I be the only consumer of such a service? > > > > > > > > > > thanks > > > > > dave > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.NET email is sponsored by: The Best Geek > Holiday Gifts! > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > your favorite geek. Let your fingers do the typing. Visit > Now. > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > r u e t u r n e r > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > interest where > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: The Best Geek Holiday Gifts! > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > your favorite geek. Let your fingers do the typing. > Visit Now. > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > _______________________________________________ > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > 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 > > > > > ------------------------------------------------------- > 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 > > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Wed Jan 1 05:13:09 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 1 Jan 2003 09:43:09 +0530 Subject: SNMP Settings in Windows Message-ID: <009901c2b14c$181c1680$5f7b0297@atul> Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. 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 hrishys at yahoo.co.uk Thu Jan 2 05:15:40 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Thu, 2 Jan 2003 04:15:40 +0000 (GMT) Subject: sample files required In-Reply-To: <00a401c2b1ad$c4def5c0$0400a8c0@squarebox.com> References: <00a401c2b1ad$c4def5c0$0400a8c0@squarebox.com> Message-ID: <20030102041540.16543.qmail@web12601.mail.yahoo.com> Hi Tom I have solved thsi problem..but i have been to your site..congrajulations..thats a wonderful work from you..its amazing how you folks have done so much for the open source community.I am really proud of you guys..I have a small problem apache does not display my gif files from nagios at all..do you know the reason why..I am including my sample web page which is being displayed in my browser.. regards Hrishy --- Tom Welsh wrote: > I have stuck a site up with all my nagios configs I > have used to create > http://nagios.square-box.com the demo configs are at > > > http://demo.square-box.com > > All the nagios configs are there now. I hope to have > finished the apache > config section in the next few days > > Cheers > > 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 hrishy > Sent: 30 December 2002 10:21 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] sample files required > > Hi All > > I installed nagios yesterday...my congrajulatiosn to > all these wunderful people here for providing such > an > excellent masterpiece..after the initial > configuration > i ran into a few gottchas...my nagios monitoring > process is not running when i edit the sample > configuration files...so i am wundering if anybody > is > kind enough to ship me his/hers working > configuration > files ..probably it would be a good point for me to > start out.. > > 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: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 > > > > > > ------------------------------------------------------- > 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 __________________________________________________ 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios.zip Type: application/x-zip-compressed Size: 47365 bytes Desc: Nagios.zip URL: From hrishys at yahoo.co.uk Thu Jan 2 05:21:20 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Thu, 2 Jan 2003 04:21:20 +0000 (GMT) Subject: sample files required In-Reply-To: References: Message-ID: <20030102042120.61456.qmail@web12602.mail.yahoo.com> Hi Tom I have solved thsi problem..but i have been to your site..congrajulations..thats a wonderful work from you..its amazing how you folks have done so much for the open source community.I am really proud of you guys..I have a small problem apache does not display my gif files from nagios at all..do you know the reason why..I am including my sample web page which is being displayed in my browser.. 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: Nagios.zip Type: application/x-zip-compressed Size: 47365 bytes Desc: Nagios.zip URL: From nr at fluent.co.in Thu Jan 2 08:09:29 2003 From: nr at fluent.co.in (Nitin Raina) Date: Thu, 02 Jan 2003 12:39:29 +0530 Subject: check_dns plugin timeout Message-ID: <3E13E5A9.50403@fluent.co.in> Dear Nagios users, I have Nagios 1.0 installed for monitoring purposes. It has been more then a week of "good continuous monitoring". However today I got a "false alarm" with DNS service failure where the nagios plugin check_dns had timed out. Exact error goes like this "CRITICAL-Plugin timed out after 10 seconds" Plugins installed are > nagios-plugins-1.3.0-beta2.tar.gz Any reasons why this should/shouldn't be happening. Regards, Nitin ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From r.allen at awayweb.com Thu Jan 2 08:18:20 2003 From: r.allen at awayweb.com (Rodger Allen) Date: Thu, 02 Jan 2003 18:18:20 +1100 Subject: Nagios, MySQL and trending References: <74D428BDBFD5D04CB54E84499ECA29DB2F24BD@PKDWB03C.ad.sprint.com> Message-ID: <3E13E7BC.8070105@awayweb.com> Carroll, Jim P [Contractor] wrote: > Can anyone make any other suggestions? At our site, I am currently experimenting with having the serviceperfdata written to a FIFO, and having a (perl) daemon read from this pipe and pop the data into a mysql database. This is not perfect, given that it adds another point of failure, but the current results look good. We have also added a few patches to some of the core plugins to add some perfdata to be returned in a consistent manner. We chose to use a format using the ucd MIB, but we are a little selective in what gets returned. The whole OID is not used, but as the last part should be reasonably distinct, it should be okay. For example, the return for check_swap is like: Swap ok - Swap used: 32% (81596416 out of 254943232) | memAvailSwap=173346816, memTotalSwap=254943232 For "check_disk", we add an instance variable: dskPath.1=/, dskTotal.1=5148636, dskUsed.1=4674744, dskPercent.1=91%, dskPath.2=/boot, dskTotal.2=15522, dskUsed.2=1862, dskPercent.2=13% Doing it this way made it much easier to parse out the performance data, instead of having to create a new regex (or whatever) for each $OUTPUT$ returned to extract the data. I can supply some more details, if you are interested. >>It might interest you to know that database support is being dropped. Well, there goes the idea of trying to work out how to integrate the performance data collection into the nagios core. :-( Rodger -- Rodger Allen | "te occidere possunt sed r.allen at awayweb.com | te edere non possunt nefas Mob: +61 402 209 256 | est" DFW GPG fingerprint = 958F 256F 5327 D14E 49EA 0681 05E6 2EC3 62E8 793F Thawte fingerprint = 96:09:A2:3B:67:9F:B4:AE:C8:50:BC:2F:31:00:AB:14 -------------- next part -------------- A non-text attachment was scrubbed... Name: smime.p7s Type: application/x-pkcs7-signature Size: 3501 bytes Desc: S/MIME Cryptographic Signature URL: From ambrose at illuminatedtechnologies.com Thu Jan 2 09:32:58 2003 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Thu, 2 Jan 2003 00:32:58 -0800 (PST) Subject: check_dns plugin timeout In-Reply-To: <3E13E5A9.50403@fluent.co.in> References: <3E13E5A9.50403@fluent.co.in> Message-ID: Try setting the timeout higher in the checkcommands config file. - Ambrose On Thu, 2 Jan 2003, Nitin Raina wrote: > Dear Nagios users, > > I have Nagios 1.0 installed for monitoring purposes. It has been more > then a week of "good continuous monitoring". > However today I got a "false alarm" with DNS service failure where the > nagios plugin check_dns had timed out. > > Exact error goes like this "CRITICAL-Plugin timed out after 10 seconds" > > Plugins installed are > > > nagios-plugins-1.3.0-beta2.tar.gz > > > Any reasons why this should/shouldn't be happening. > > Regards, > Nitin > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Schimpke at Lenze.de Thu Jan 2 10:47:03 2003 From: Schimpke at Lenze.de (Schimpke, Dr. Thomas / bhn) Date: Thu, 2 Jan 2003 10:47:03 +0100 Subject: Nagios, MySQL and trending Message-ID: <03AA3D7DD4488840996C036E23BE71C41B57E8@zde008.lenze.com> Hello, during the configuration of nagios at out site I found out (rather soon) that I need to store trend data for later analysis in a database. The management likes to see pretty pictures of the machine's CPU load, network traffic and the like. So I had the choice to integrate (somehow) database access into the check scripts or drop nagios completely and switch to Openview or (even worse) netIQ. So I was in a hurry and needed a quick solution: I open the connection to the mysql database every time the check scripts (i.e. a perl script) runs. This is bad (I know) but at the moment it works. I would be intrested reading about the (ongoing ?) discussion on database support in nagios. Where can I find it ? > At our site, I am currently experimenting with having the > serviceperfdata written to a FIFO, and having a (perl) daemon > read from > this pipe and pop the data into a mysql database. That's a better way to do...but I think there was a hint in the docs, that you should not write any data into files or something like that. That's the reason why I decided to open a new connection to my database every time I need it. > This is not perfect, given that it adds another point of failure, but > the current results look good. Thinking, during I type... what we need is a database handle, that is valid as long nagios is alive. I read about the embedded perl interpreter in nagios, perhaps we could do some dirty tricks with it: Write a small perl script, that opens the connection to the database, keeps it open and accepts some telegrams from the check scripts (perhaps there is a way to fork() this script and let it become the check script (something like exec or so) so the check script can use the handle...). Anyway: I think that sooner or later everyone will need something like database support, so if database support is going away in nagios we'll have to find another way to implement it. Independent on the implementation we should do it "coordinated", avoiding twenty different releases of nagios... Thomas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mangabbs at hotmail.com Thu Jan 2 12:01:32 2003 From: mangabbs at hotmail.com (Master Brian) Date: Thu, 2 Jan 2003 12:01:32 +0100 Subject: nagios.cmd Message-ID: Greetings, Happy new year to everyone :) I'm trying to configure properly permission over nagios.cmd, but I'm having some problem, because if I try to run External command interface I get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' for update! I've followed step by step the faq but I get always the same error, maybe the problem could be in my cgi.cfg file? Thank you! -------------- next part -------------- An HTML attachment was scrubbed... URL: From freddy.frouin at fluxus.net Thu Jan 2 11:49:25 2003 From: freddy.frouin at fluxus.net (Freddy Frouin) Date: Thu, 2 Jan 2003 11:49:25 +0100 Subject: nagios.cmd In-Reply-To: References: Message-ID: <20030102114925.62c1f7af.freddy.frouin@fluxus.net> what kind of system access are set on /usr/local/nagio/var/rw ? On Thu, 2 Jan 2003 12:01:32 +0100 "Master Brian" wrote: > Greetings, > > Happy new year to everyone :) > > I'm trying to configure properly permission over nagios.cmd, but I'm having some problem, because if I try to run External command interface I get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' for update! > > I've followed step by step the faq but I get always the same error, maybe the problem could be in my cgi.cfg file? > > Thank you! > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mangabbs at hotmail.com Thu Jan 2 12:20:29 2003 From: mangabbs at hotmail.com (Master Brian) Date: Thu, 2 Jan 2003 12:20:29 +0100 Subject: nagios.cmd References: <20030102114925.62c1f7af.freddy.frouin@fluxus.net> Message-ID: I've tryed with owner nagios and group nagios and with owner nobody group nagioscmd with same results :( ----- Original Message ----- From: "Freddy Frouin" To: "Master Brian" Cc: Sent: Thursday, January 02, 2003 11:49 AM Subject: Re: [Nagios-users] nagios.cmd > what kind of system access are set on /usr/local/nagio/var/rw ? > > On Thu, 2 Jan 2003 12:01:32 +0100 > "Master Brian" wrote: > > > Greetings, > > > > Happy new year to everyone :) > > > > I'm trying to configure properly permission over nagios.cmd, but I'm having some problem, because if I try to run External command interface I get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' for update! > > > > I've followed step by step the faq but I get always the same error, maybe the problem could be in my cgi.cfg file? > > > > Thank you! > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Thu Jan 2 13:07:09 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 2 Jan 2003 17:37:09 +0530 Subject: SNMP Settings in Windows ....... Message-ID: <001601c2b257$79fae5a0$5f7b0297@atul> Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. 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 jhp at addix.net Thu Jan 2 13:16:56 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Thu, 2 Jan 2003 13:16:56 +0100 Subject: Line-Monitoring with check_snmp on Ciscos .... Message-ID: <20030102121656.GC14730@billgotchy.de> Hoi ... a happy new year to everyone ... Just a question, I want to check the lines on our ciscos and I thought, this will do it: # 'check_snmp' command definition define command{ command_name check_snmp_Line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ } This checks our line and gives "snmp ok - up (1)" back, if it is up, and "snmp ok - down (0)", if it is down. The problem is, that nagios shows the checks in both time as ok/green. What is the way, to get down-notifications, if the line is down? Thnx and regards Jan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chris.stankaitis at datawire.net Thu Jan 2 14:18:56 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Thu, 02 Jan 2003 08:18:56 -0500 Subject: NSCA and Passive Checks In-Reply-To: References: Message-ID: <3E143C40.7030807@datawire.net> I am using NSCA to do passive checks for external hosts and I have it working with one exception which I think is a simple Nagios config issue which is escaping me at this time Basically I need to tell Nagios that disabled Active Checks for Some services is ok. As it stands now I have 141 Active Checks, and 1 Passive Check, under the TAC it gives me a big warning in the Active Checks box that Active Checks are disabled under 1 Service and under the Services I get 142 OK (1 Disabled) I kept the generic-service as is under the services.cfg and made a new one called passive-service with the identical options to the generic with the exception that active checks are set to 0, I put the one service which I am working on testing the nsca stuff in using the new passive-service and it's working fine, getting the external cmd updates etc... however the main Nagios doesn't like it any thoughts? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From freddy.frouin at fluxus.net Thu Jan 2 14:28:05 2003 From: freddy.frouin at fluxus.net (Freddy Frouin) Date: Thu, 2 Jan 2003 14:28:05 +0100 Subject: nagios.cmd In-Reply-To: References: <20030102114925.62c1f7af.freddy.frouin@fluxus.net> Message-ID: <20030102142805.2b6c4986.freddy.frouin@fluxus.net> hm... well, just look on this, it could maybe help you: [netsaint at helix var]$ cd /opt/netsaint/var [netsaint at helix var]$ ls -l total 872 drwxrwxr-x 2 netsaint netsaint 24576 Jan 2 00:00 archives drwxr-xr-x 2 root root 4096 Jun 14 2002 lost+found -rw-r--r-- 1 netsaint netsaint 4 Dec 9 22:39 netsaint.lock -rw-r--r-- 1 netsaint netsaint 170022 Jan 2 14:25 netsaint.log drwxrwxr-x 2 netsaint netsaint 4096 Jun 12 2002 reporting drwxrwxr-x 2 nobody netsaint 4096 Dec 9 22:39 rw -rw-rw-r-- 1 netsaint netsaint 366492 Jan 2 14:26 status.log -rw-rw-r-- 1 netsaint netsaint 268946 Dec 30 14:09 status.sav [netsaint at helix var]$ cd rw/ [netsaint at helix rw]$ ls -al total 8 drwxrwxr-x 2 nobody netsaint 4096 Dec 9 22:39 . drwxrwxr-x 6 netsaint netsaint 4096 Jan 2 14:26 .. prw-rw---- 1 netsaint netsaint 0 Dec 9 22:39 netsaint.cmd Regards, Freddy. On Thu, 2 Jan 2003 12:20:29 +0100 "Master Brian" wrote: > I've tryed with owner nagios and group nagios > and with owner nobody group nagioscmd > with same results :( > > ----- Original Message ----- > From: "Freddy Frouin" > To: "Master Brian" > Cc: > Sent: Thursday, January 02, 2003 11:49 AM > Subject: Re: [Nagios-users] nagios.cmd > > > > what kind of system access are set on /usr/local/nagio/var/rw ? > > > > On Thu, 2 Jan 2003 12:01:32 +0100 > > "Master Brian" wrote: > > > > > Greetings, > > > > > > Happy new year to everyone :) > > > > > > I'm trying to configure properly permission over nagios.cmd, but I'm > having some problem, because if I try to run External command interface I > get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' > for update! > > > > > > I've followed step by step the faq but I get always the same error, > maybe the problem could be in my cgi.cfg file? > > > > > > Thank you! > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > > ------------------------------------------------------- > 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 > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Luis.Duarte at itlog.edinfor.pt Thu Jan 2 14:46:23 2003 From: Luis.Duarte at itlog.edinfor.pt (Luis Duarte) Date: Thu, 2 Jan 2003 13:46:23 +0000 Subject: Line-Monitoring with check_snmp on Ciscos .... In-Reply-To: <20030102121656.GC14730@billgotchy.de> References: <20030102121656.GC14730@billgotchy.de> Message-ID: Nagios reports OK because the plugin returns OK! What you need to do is something like this: command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -r up the '-r up' is the key, it will return OK if it will find the string "up" in the response and CRITICAL otherwise. check all options with 'check_snmp -h'. Cordialmente, Luis Filipe Duarte ____________________________________________________________ IT-Log, Logistica e Gestao de Tecnologias de Informacao - Grupo EDP Outsourcing - Gestao de Redes e-mail: luis.duarte at itlog.edinfor.pt tel: +351 21 001 8700 fax: +351 21 001 8740 Jan-Hendrik Palic To: nagios-users at lists.sourceforge.net Sent by: cc: nagios-users-admin at lists.sourc Subject: [Nagios-users] Line-Monitoring with check_snmp on Ciscos eforge.net .... 02-01-2003 12:16 Hoi ... a happy new year to everyone ... Just a question, I want to check the lines on our ciscos and I thought, this will do it: # 'check_snmp' command definition define command{ command_name check_snmp_Line command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ } This checks our line and gives "snmp ok - up (1)" back, if it is up, and "snmp ok - down (0)", if it is down. The problem is, that nagios shows the checks in both time as ok/green. What is the way, to get down-notifications, if the line is down? Thnx and regards Jan ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.G.Martin at mail.sprint.com Thu Jan 2 15:13:08 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Thu, 2 Jan 2003 08:13:08 -0600 Subject: nagios.cmd Message-ID: You might try adding the id nobody (or whoever apache is running under) to the group netsaint (or whatever group owns the command file) in /etc/group nagioscmd:x:2501:nagios,nobody Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: freddy.frouin [mailto:freddy.frouin at fluxus.net] Sent: Thursday, January 02, 2003 7:28 AM To: mangabbs Cc: nagios-users Subject: Re: [Nagios-users] nagios.cmd hm... well, just look on this, it could maybe help you: [netsaint at helix var]$ cd /opt/netsaint/var [netsaint at helix var]$ ls -l total 872 drwxrwxr-x 2 netsaint netsaint 24576 Jan 2 00:00 archives drwxr-xr-x 2 root root 4096 Jun 14 2002 lost+found -rw-r--r-- 1 netsaint netsaint 4 Dec 9 22:39 netsaint.lock -rw-r--r-- 1 netsaint netsaint 170022 Jan 2 14:25 netsaint.log drwxrwxr-x 2 netsaint netsaint 4096 Jun 12 2002 reporting drwxrwxr-x 2 nobody netsaint 4096 Dec 9 22:39 rw -rw-rw-r-- 1 netsaint netsaint 366492 Jan 2 14:26 status.log -rw-rw-r-- 1 netsaint netsaint 268946 Dec 30 14:09 status.sav [netsaint at helix var]$ cd rw/ [netsaint at helix rw]$ ls -al total 8 drwxrwxr-x 2 nobody netsaint 4096 Dec 9 22:39 . drwxrwxr-x 6 netsaint netsaint 4096 Jan 2 14:26 .. prw-rw---- 1 netsaint netsaint 0 Dec 9 22:39 netsaint.cmd Regards, Freddy. On Thu, 2 Jan 2003 12:20:29 +0100 "Master Brian" wrote: > I've tryed with owner nagios and group nagios > and with owner nobody group nagioscmd > with same results :( > > ----- Original Message ----- > From: "Freddy Frouin" > To: "Master Brian" > Cc: > Sent: Thursday, January 02, 2003 11:49 AM > Subject: Re: [Nagios-users] nagios.cmd > > > > what kind of system access are set on /usr/local/nagio/var/rw ? > > > > On Thu, 2 Jan 2003 12:01:32 +0100 > > "Master Brian" wrote: > > > > > Greetings, > > > > > > Happy new year to everyone :) > > > > > > I'm trying to configure properly permission over nagios.cmd, but I'm > having some problem, because if I try to run External command interface I > get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' > for update! > > > > > > I've followed step by step the faq but I get always the same error, > maybe the problem could be in my cgi.cfg file? > > > > > > Thank you! > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > > ------------------------------------------------------- > 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 > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Thu Jan 2 14:58:30 2003 From: emann at questinc.org (Evan Mann) Date: Thu, 2 Jan 2003 08:58:30 -0500 Subject: confusion with escalated notifications Message-ID: Am I correct in saying that if I put host/service/hostgroups escalations in place, they 100% override the initial notifications and their set parameters ? My basic notification setup is the initial alerts sent every 2 hours via e-mail to an e-mail box. After 3 notification intervasl I have an escalation that kicks in and send a TAP alert once. I noticed this past weekend that after I got my TAP alert, I no longer received any e-mails. And on top of that, I didn't receive my usual host recovery e-mail's that are defined in my initial notifications prior to escalation. So, what I really need is to have my initial notifications also stay active when I get my escalations kicking in. I want to get my e-mails to my e-mail box every 2 hours and my recovery e-mails, but still only one TAP alert to my cell phone. Here's the only entry into my escalations.cfg # Hostgroup 'all' escalation definition define hostgroupescalation{ hostgroup_name all first_notification 3 last_notification 5 contact_groups nextel-group notification_interval 0 } hostgroup "all" has members of * My nextel-group has contacts are joe-nextel, schmo-nexte My initiall contacts are under group it-group with names joe and schmol To rectify my problems, do I need to add another group escalationf or "all" and specify the it-group and set the first/last/interval so I continue to get my emails? -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Thu Jan 2 15:26:33 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 2 Jan 2003 08:26:33 -0600 Subject: confusion with escalated notifications Message-ID: Here is how I do my escalations. Everyone I want notified goes into the escalation list. Here only admins and admin pagers get hit on interval 4-5, but the manager gets notified, as well as the admins on 6-7. Greg define hostgroupescalation{ hostgroup_name critical-servers first_notification 4 last_notification 5 notification_interval 60 contact_groups unix-admins,admin-pagers } define hostgroupescalation{ hostgroup_name critical-servers first_notification 6 last_notification 7 notification_interval 60 contact_groups unix-admins,admin-pagers,manager } -----Original Message----- From: Evan Mann [mailto:emann at questinc.org] Sent: Thursday, January 02, 2003 7:59 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] confusion with escalated notifications Am I correct in saying that if I put host/service/hostgroups escalations in place, they 100% override the initial notifications and their set parameters ? My basic notification setup is the initial alerts sent every 2 hours via e-mail to an e-mail box. After 3 notification intervasl I have an escalation that kicks in and send a TAP alert once. I noticed this past weekend that after I got my TAP alert, I no longer received any e-mails. And on top of that, I didn't receive my usual host recovery e-mail's that are defined in my initial notifications prior to escalation. So, what I really need is to have my initial notifications also stay active when I get my escalations kicking in. I want to get my e-mails to my e-mail box every 2 hours and my recovery e-mails, but still only one TAP alert to my cell phone. Here's the only entry into my escalations.cfg # Hostgroup 'all' escalation definition define hostgroupescalation{ hostgroup_name all first_notification 3 last_notification 5 contact_groups nextel-group notification_interval 0 } hostgroup "all" has members of * My nextel-group has contacts are joe-nextel, schmo-nexte My initiall contacts are under group it-group with names joe and schmol To rectify my problems, do I need to add another group escalationf or "all" and specify the it-group and set the first/last/interval so I continue to get my emails? -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Thu Jan 2 16:16:22 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 2 Jan 2003 10:16:22 -0500 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: <5593DA408212D511B0910002A513501F01D28862@phsexch20.mgh.harvard.edu> I'm not sure if that would work. In previous versions of Nagios if the Alias directive was placed before the ScriptAlias, a 404 error message would occur. Wouldn't that happen here? -----Original Message----- From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] Sent: Thursday, January 02, 2003 10:12 AM To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 just put the Alias rules before the ScriptAlias one... it should work, does'nt it ? On Thu, 2 Jan 2003 09:57:24 -0500 "Kaplan, Andrew H." wrote: > I'm having a problem accessing the monitoring pages. The main page can be seen > without a problem. > However, any one of the monitoring screens comes back with the following error > message: > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on this > server. > > As far as I can tell, I have the appropriate settings configured in the > httpd.conf and cgi.cfg files. They > are included in this e-mail. What am I missing or did not configure correctly? > Thanks. > > <> <> > > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From freddy.frouin at fluxus.net Thu Jan 2 16:11:46 2003 From: freddy.frouin at fluxus.net (Freddy Frouin) Date: Thu, 2 Jan 2003 16:11:46 +0100 Subject: Problems with Nagios 1.0 on Red Hat 8.0 In-Reply-To: <5593DA408212D511B0910002A513501F01D28861@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D28861@phsexch20.mgh.harvard.edu> Message-ID: <20030102161146.58275558.freddy.frouin@fluxus.net> just put the Alias rules before the ScriptAlias one... it should work, does'nt it ? On Thu, 2 Jan 2003 09:57:24 -0500 "Kaplan, Andrew H." wrote: > I'm having a problem accessing the monitoring pages. The main page can be seen > without a problem. > However, any one of the monitoring screens comes back with the following error > message: > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on this > server. > > As far as I can tell, I have the appropriate settings configured in the > httpd.conf and cgi.cfg files. They > are included in this e-mail. What am I missing or did not configure correctly? > Thanks. > > <> <> > > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From AHKAPLAN at PARTNERS.ORG Thu Jan 2 15:57:24 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 2 Jan 2003 09:57:24 -0500 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: <5593DA408212D511B0910002A513501F01D28861@phsexch20.mgh.harvard.edu> I'm having a problem accessing the monitoring pages. The main page can be seen without a problem. However, any one of the monitoring screens comes back with the following error message: NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on this server. As far as I can tell, I have the appropriate settings configured in the httpd.conf and cgi.cfg files. They are included in this e-mail. What am I missing or did not configure correctly? Thanks. <> <> -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: cgi.cfg.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: httpd.conf.txt URL: From GPotter at MarathonOil.com Thu Jan 2 16:42:09 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 2 Jan 2003 09:42:09 -0600 Subject: SNMP monitoring of HP printers Message-ID: Is anyone on the list monitoring HP printers through SNMP? I looked through the V3 MIB reference manual from the HP web site, but I could not find any reference to error conditions that I am interested in knowing about. I would like to be able to query the printer about Toner, or paper tray status. Perhaps any existing error conditions like paper jams, etc... If someone on the list is looking at anything like that would you please post your approach to getting that information. Thanks! Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Thu Jan 2 16:46:12 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 2 Jan 2003 09:46:12 -0600 Subject: CISCO MIB Message-ID: Vol, Thank you for the MIBs and the information. I am now monitoring my Cisco switches. I am checking for the condition of all three power supplies and any connected modules (Supervisor, RJ45 blades, etc...) Thanks! Greg > -----Original Message----- > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > Sent: Monday, December 30, 2002 5:13 AM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] CISCO MIB > > > The OID's you are found are only for the third power supply. > Here is a list > from CISCO-STACK-MIB.my (or CISCO-STACK-MIB-V1SMI.my) (I have > enclosed two > tar.gz with a few SNMPv1 and SNMPv2 Cisco-MIB's ;-)): > > enterprises.9.5.1.2.3 chassisPs1Type > enterprises.9.5.1.2.4 chassisPs1Status > enterprises.9.5.1.2.5 chassisPs1TestResult > enterprises.9.5.1.2.6 chassisPs2Type > enterprises.9.5.1.2.7 chassisPs2Status > enterprises.9.5.1.2.8 chassisPs2TestResult > enterprises.9.5.1.2.20 chassisPs3Type > enterprises.9.5.1.2.21 chassisPs3Status > enterprises.9.5.1.2.22 chassisPs3TestResult > > To query the state of three power supply's you can use a line > like this: > > ./check_snmp -H -C -o > enterprises.9.5.1.2.4.0,enterprises.9.5.1.2.7.0,enterprises.9. > 5.1.2.21.0 -c > 2,2,2 > > When the result is other than "2" ("ok", look at the > parameter -c 2,2,2) you > get a "CRITICAL", else the plugin return "OK". > > -vol > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From vseerror at Lehigh.EDU Thu Jan 2 17:04:31 2003 From: vseerror at Lehigh.EDU (Wayne Mery) Date: Thu, 02 Jan 2003 11:04:31 -0500 Subject: Appendicies mentioned in http://nagios.sourceforge.net/download/contrib/documentation/misc/InstallingNagios.pdf Message-ID: <3E14630F.20100@lehigh.edu> Where are the various so called appendicies refered to in "PROCEDURE FOR THE INSTALLATION OF THE NAGIOS NETWORK MONITORING PROGRAM"? -- Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA 610-758-3983 ** Save a Life - Sign an Organ Donor card http://www.transweb.org for more information ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Jan 2 17:18:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 2 Jan 2003 10:18:57 -0600 Subject: SNMP monitoring of HP printers Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11F7@PKDWB03C.ad.sprint.com> Alas, it appears that www.mibcentral.com has lapsed. :( I did discover this site, which might be a good starting point: http://www.generalconcepts.com/resources/snmp/ Other than that, you might want to check out the HP-specific SNMP plugin called check_hpjd. jc > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Thursday, January 02, 2003 9:42 AM > To: Nagios-users (E-mail) > Subject: [Nagios-users] SNMP monitoring of HP printers > > > Is anyone on the list monitoring HP printers through SNMP? > I looked through the V3 MIB reference manual from the HP > web site, but I could not find any reference to error conditions > that I am interested in knowing about. I would like to be > able to query the printer about Toner, or paper tray status. > Perhaps any existing error conditions like paper jams, etc... > > If someone on the list is looking at anything like that would > you please post your approach to getting that information. > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ > ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ > ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ > ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ > ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Jan 2 17:37:48 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 2 Jan 2003 10:37:48 -0600 Subject: PHP Front End For Nagios? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E11FD@PKDWB03C.ad.sprint.com> Did you ever get a response to your query? If not, you might want to check out the nagios-devel mailing list. Sounds like you're onto something. jc > -----Original Message----- > From: Jonathan Chum [mailto:jchum at aismedia.com] > Sent: Tuesday, December 31, 2002 7:38 AM > To: Nagios-Users at Lists. Sourceforge. Net (E-mail) > Subject: [Nagios-users] PHP Front End For Nagios? > > > I've just started using Nagios after one of the admins just > before he left > installed in our network to monitor all of our servers. My > boss approached > me yesterday evening wondering whether it's possible to > extract some of the > data for our clients to see if there are any outages or > issues. I don't see > it being a problem though the layout of and presentation of Nagios is > constricted in the CGI coding and the stylesheets can only > make so much of a > difference. > > So I'm considering of recoding Nagios's front end with a > template back end > for flexibility, but I really don't want to be digging too > much into a hole > then realizing that certain things cannot be done in PHP > which was why it > was written in C from the start. Has anyone done anything > using PHP and > Nagios? > > There are a few things that would probably PHP was not really > suited best > for such as the status map feature, but if the data is stored > somewhere > parseable or better yet, in a database, there could be some > really neat > things we could do. . . What's the main role of the CGI code > in Nagios? > > > Regards, > Jonathan Chum > Systems Developer > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > A I S M e d i a , I n c . > "We Build eBusinesses" > 115 Perimeter Center Terrace > Suite 540 > Atlanta, GA 30346 > Tel: 800.784.0919, Ext 502 / Fax: 678.382.2471 > http://www.aismedia.com / jchum at aismedia.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/02 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Jan 2 17:45:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 2 Jan 2003 10:45:03 -0600 Subject: parameters for service checks from outside nag ios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C2@PKDWB03C.ad.sprint.com> I'm not entirely sure how you're retrieving the datfiles, but it might make sense to run a plugin locally on the remote systems in question. This plugin would scrub the datfile (eg, with grep); the result of this plugin would be returned to Nagios. Of course, I'm making some wild assumptions about your environment, such as the system that hosts your datfiles is a *nix host. If it's Windows, I'm not entirely certain how you'd do it. Still, you could install OpenSSH and Perl on your Windows servers to facilitate this sleight of hand. In case I haven't been clear, you would be best off to write your own plugin to do this. jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Tuesday, December 31, 2002 4:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] parameters for service checks from outside > nagios > > > > Is it possible to import variable date to use with a service check? > > My problem: > I want to let nagios to check anti virus datfiles on remote > systems. Now > i do this dat each remote system fetch the latest version info (800k) > and verifies the version info, to the installed version (no update is > done). The plugin reports OK if datfile is uptodate, warning when 1 > version behind and ERROR if more than 1 version behind (or installed > version is newer then the official downloadable). > > The problem is that every client fetches the 800k just for verify the > version number (4 bytes number). > > I have the lastest version info on the nagios host system (in a file, > just 4 bytes in size). Is it possible to add this info from a file to > the service check, so that the version number is given to te > remote host > (by nrpe or chack_by_ssh). The remote host doesn't have to access a > remote host (internet) for the current information. > > Lennard > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Chris.Losch at newham.gov.uk Thu Jan 2 17:55:59 2003 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Thu, 2 Jan 2003 16:55:59 -0000 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: Just for Your Information, There are several reported problems with Nagios1.0 on Redhat 8.0... well at least 1 unresolved(?) problem. I haven't looked at the below issue specifically, however I have had my own problems - see previous discussions entitiled "[Nagios-users] Permissions Error (Could not stat() command file )" I would suggest that you read these threads, and determine if you REALLY want to proceed with RH8 knowing that you may encounter these, so far unresolved, issues that lie ahead for you. Unresolved, that is, unless someone knows better. (Crosses fingers) Chris -----Original Message----- From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] Sent: 02 January 2003 15:12 To: Kaplan, Andrew H. Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 just put the Alias rules before the ScriptAlias one... it should work, does'nt it ? On Thu, 2 Jan 2003 09:57:24 -0500 "Kaplan, Andrew H." wrote: > I'm having a problem accessing the monitoring pages. The main page can be seen > without a problem. > However, any one of the monitoring screens comes back with the following error > message: > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on this > server. > > As far as I can tell, I have the appropriate settings configured in the > httpd.conf and cgi.cfg files. They > are included in this e-mail. What am I missing or did not configure correctly? > Thanks. > > <> <> > > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- 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 ********************************************************************** 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 Schimpke at Lenze.de Thu Jan 2 18:02:48 2003 From: Schimpke at Lenze.de (Schimpke, Dr. Thomas / bhn) Date: Thu, 2 Jan 2003 18:02:48 +0100 Subject: SNMP monitoring of HP printers Message-ID: <03AA3D7DD4488840996C036E23BE71C41B57EA@zde008.lenze.com> > Alas, it appears that www.mibcentral.com has lapsed. :( Mibcentral has been moved to mibDepot. There has been some trouble concerning the name iirc...See http://12.47.45.123/index.shtml I've scanned through the JetDirect mib...It looks like that the JetDirect Box throws a trap to your trap-destination, if the toner is low or empty, if the paper tray is open... That's my work for the next weeks... Thomas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Jan 2 18:02:14 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 2 Jan 2003 11:02:14 -0600 Subject: nagios.cmd Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1200@PKDWB03C.ad.sprint.com> Did you follow this part of the installation instructions? http://your_nagios_server/nagios/docs/commandfile.html jc > -----Original Message----- > From: Master Brian [mailto:mangabbs at hotmail.com] > Sent: Thursday, January 02, 2003 5:20 AM > To: nagios > Subject: Re: [Nagios-users] nagios.cmd > > > I've tryed with owner nagios and group nagios > and with owner nobody group nagioscmd > with same results :( > > ----- Original Message ----- > From: "Freddy Frouin" > To: "Master Brian" > Cc: > Sent: Thursday, January 02, 2003 11:49 AM > Subject: Re: [Nagios-users] nagios.cmd > > > > what kind of system access are set on /usr/local/nagio/var/rw ? > > > > On Thu, 2 Jan 2003 12:01:32 +0100 > > "Master Brian" wrote: > > > > > Greetings, > > > > > > Happy new year to everyone :) > > > > > > I'm trying to configure properly permission over > nagios.cmd, but I'm > having some problem, because if I try to run External command > interface I > get Error: Could not open command file > 'usr/local/nagio/var/rw/nagios.cmd' > for update! > > > > > > I've followed step by step the faq but I get always the > same error, > maybe the problem could be in my cgi.cfg file? > > > > > > Thank you! > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.G.Martin at mail.sprint.com Thu Jan 2 18:24:22 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Thu, 2 Jan 2003 11:24:22 -0600 Subject: PHP Front End For Nagios? Message-ID: There was a really good web interface for Netsaint that used MySQL called NSA, but the only thing I found for Nagios is Nagat and it's written in PHP but you have to write your own interface to MySQL. I've been using Perl for a long time and don't have time to learn PHP right now. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: Carroll, Jim P. Sent: Thursday, January 02, 2003 10:38 AM To: jchum; nagios-users Subject: RE: [Nagios-users] PHP Front End For Nagios? Did you ever get a response to your query? If not, you might want to check out the nagios-devel mailing list. Sounds like you're onto something. jc > -----Original Message----- > From: Jonathan Chum [mailto:jchum at aismedia.com] > Sent: Tuesday, December 31, 2002 7:38 AM > To: Nagios-Users at Lists. Sourceforge. Net (E-mail) > Subject: [Nagios-users] PHP Front End For Nagios? > > > I've just started using Nagios after one of the admins just > before he left > installed in our network to monitor all of our servers. My > boss approached > me yesterday evening wondering whether it's possible to > extract some of the > data for our clients to see if there are any outages or > issues. I don't see > it being a problem though the layout of and presentation of Nagios is > constricted in the CGI coding and the stylesheets can only > make so much of a > difference. > > So I'm considering of recoding Nagios's front end with a > template back end > for flexibility, but I really don't want to be digging too > much into a hole > then realizing that certain things cannot be done in PHP > which was why it > was written in C from the start. Has anyone done anything > using PHP and > Nagios? > > There are a few things that would probably PHP was not really > suited best > for such as the status map feature, but if the data is stored > somewhere > parseable or better yet, in a database, there could be some > really neat > things we could do. . . What's the main role of the CGI code > in Nagios? > > > Regards, > Jonathan Chum > Systems Developer > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > A I S M e d i a , I n c . > "We Build eBusinesses" > 115 Perimeter Center Terrace > Suite 540 > Atlanta, GA 30346 > Tel: 800.784.0919, Ext 502 / Fax: 678.382.2471 > http://www.aismedia.com / jchum at aismedia.com > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.434 / Virus Database: 243 - Release Date: 12/25/02 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Thu Jan 2 18:58:00 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 2 Jan 2003 09:58:00 -0800 (PST) Subject: CISCO MIB In-Reply-To: References: Message-ID: <20030102175800.9147.qmail@web21511.mail.yahoo.com> Hey, can I get those MIBs as well?? Thanks "Potter, G M (Greg)" wrote:Vol, Thank you for the MIBs and the information. I am now monitoring my Cisco switches. I am checking for the condition of all three power supplies and any connected modules (Supervisor, RJ45 blades, etc...) Thanks! Greg > -----Original Message----- > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] > Sent: Monday, December 30, 2002 5:13 AM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] CISCO MIB > > > The OID's you are found are only for the third power supply. > Here is a list > from CISCO-STACK-MIB.my (or CISCO-STACK-MIB-V1SMI.my) (I have > enclosed two > tar.gz with a few SNMPv1 and SNMPv2 Cisco-MIB's ;-)): > > enterprises.9.5.1.2.3 chassisPs1Type > enterprises.9.5.1.2.4 chassisPs1Status > enterprises.9.5.1.2.5 chassisPs1TestResult > enterprises.9.5.1.2.6 chassisPs2Type > enterprises.9.5.1.2.7 chassisPs2Status > enterprises.9.5.1.2.8 chassisPs2TestResult > enterprises.9.5.1.2.20 chassisPs3Type > enterprises.9.5.1.2.21 chassisPs3Status > enterprises.9.5.1.2.22 chassisPs3TestResult > > To query the state of three power supply's you can use a line > like this: > > ./check_snmp -H -C -o > enterprises.9.5.1.2.4.0,enterprises.9.5.1.2.7.0,enterprises.9. > 5.1.2.21.0 -c > 2,2,2 > > When the result is other than "2" ("ok", look at the > parameter -c 2,2,2) you > get a "CRITICAL", else the plugin return "OK". > > -vol > ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From tim at mintoskatingclub.com Thu Jan 2 19:20:06 2003 From: tim at mintoskatingclub.com (The Minto Skating Club) Date: Thu, 2 Jan 2003 13:20:06 -0500 (EST) Subject: Status of NSClient Plugin Message-ID: <200301021820.h02IK6Fc021154@webmail1.magma.ca> I'm a consultant and one of my clients is considering a widespread implementation of Nagios. My only concern is the state of the nsclient portion for NT. My client has all version of *nix plus nt and win2k. The development site for nsclient doesn't seem to have been updated since last March and in order to even get the check_nt plugin compiled on Solaris I had to apply the patch to the version from the nsclient site. All this makes me wonder if the nt piece has become an orphan and users of mixed environments should be looking to other tools? Am I wrong, missing something? Any comments would be appreciated. Tim Shouldice ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From ambrose at illuminatedtechnologies.com Thu Jan 2 19:39:47 2003 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Thu, 2 Jan 2003 10:39:47 -0800 (PST) Subject: nagios.cmd In-Reply-To: References: Message-ID: In /etc/group I had to add `nobody` to the nagios group. My apache runs as user nobody. Be sure to restart both the apache and nagios daemons after setting the correct permissions. Also be sure to chmod nagios.nagios /usr/local/nagios/var/rw - Ambrose On Thu, 2 Jan 2003, Master Brian wrote: > I've tryed with owner nagios and group nagios > and with owner nobody group nagioscmd > with same results :( > > ----- Original Message ----- > From: "Freddy Frouin" > To: "Master Brian" > Cc: > Sent: Thursday, January 02, 2003 11:49 AM > Subject: Re: [Nagios-users] nagios.cmd > > > > what kind of system access are set on /usr/local/nagio/var/rw ? > > > > On Thu, 2 Jan 2003 12:01:32 +0100 > > "Master Brian" wrote: > > > > > Greetings, > > > > > > Happy new year to everyone :) > > > > > > I'm trying to configure properly permission over nagios.cmd, but I'm > having some problem, because if I try to run External command interface I > get Error: Could not open command file 'usr/local/nagio/var/rw/nagios.cmd' > for update! > > > > > > I've followed step by step the faq but I get always the same error, > maybe the problem could be in my cgi.cfg file? > > > > > > Thank you! > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sandromergvaz at uol.com.br Thu Jan 2 21:06:33 2003 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Thu, 2 Jan 2003 17:06:33 -0300 Subject: RES: Status of NSClient Plugin In-Reply-To: <200301021820.h02IK6Fc021154@webmail1.magma.ca> References: <200301021820.h02IK6Fc021154@webmail1.magma.ca> Message-ID: Tim: I have exactly the same feeling. NSClient works fine, but there?s no support to it (except from the friend of this mail list). And from Nagios plugins (beta 3), the check_nt was removed too. I?ve tried to contact Mr. rubiyz at yahoo.com to make some suggestions and clear some doubts, but so far, no answer. Let?s wait some other comments. Sandro Merg Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de The Minto Skating Club Enviada em: quinta-feira, 2 de janeiro de 2003 15:20 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] Status of NSClient Plugin I'm a consultant and one of my clients is considering a widespread implementation of Nagios. My only concern is the state of the nsclient portion for NT. My client has all version of *nix plus nt and win2k. The development site for nsclient doesn't seem to have been updated since last March and in order to even get the check_nt plugin compiled on Solaris I had to apply the patch to the version from the nsclient site. All this makes me wonder if the nt piece has become an orphan and users of mixed environments should be looking to other tools? Am I wrong, missing something? Any comments would be appreciated. Tim Shouldice ------------------------------------------------------- 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sduckworth at aug.edu Thu Jan 2 20:19:52 2003 From: sduckworth at aug.edu (Steven Duckworth) Date: Thu, 02 Jan 2003 14:19:52 -0500 Subject: Host Checks Message-ID: <5.2.0.9.0.20030102135548.0206c8f8@ronjon.aug.edu> List, I am a little unclear about the host checking interval. I have read in the documentation that host checks are not scheduled to execute on a regular basis. I have also read that hosts checks are "run on demand, as nagios sees a need" and this is the part that confuses me. Can someone explain how nagios determines when a host needs to be checked? Thanks ____________________________________________________________________ Steven D. Duckworth Assistant Director for Network Services Augusta State University 2500 Walton Way Augusta, GA. 30904 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at guardiandigital.com Thu Jan 2 20:48:25 2003 From: eric at guardiandigital.com (Eric B. Lubow) Date: Thu, 2 Jan 2003 14:48:25 -0500 (EST) Subject: Generating Reports Message-ID: <20030102194825.E241B11D318@juggernaut.guardiandigital.com> Hello all, Hope the new year finds everyone safe and in good health. I have checked the documentation as well as browsed through the archives and still come up with little in regards to generating reports not via the nagios interface. The goal would be for me to be able to find a list of examples as well as all the variables names that I would need to pass to whichever CGI to get a graph. I monitor a lot of machines and I would like to have reports generated in the format of the report page for each host within a hostgroup. I would like to do this via a perl script that generates the request and associated parameters and queries nagios and pipes the output it receives to a file. This way I can maintain weekly, monthly, yearly status information without having to generate a report for each host and then each host group. I tried skimming the source, but I figured that would take a little too long and a 'strings' on the CGI was too much. If someone has already done something like this, I would appreciate anything towards the right direction. Thanks in advance. -- Eric Lubow Guardian Digital Inc. http://www.guardiandigital.com/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mpowell at ena.com Thu Jan 2 20:41:01 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 2 Jan 2003 13:41:01 -0600 Subject: Host Checks Message-ID: <5DB017510818EC468B05BD7BD9EACF8302C56E1F@mismail.ena.com> A host check is only performed when a service check for that host fails. I.e. if you're monitoring the HTTP port on a host and that check fails, Nagios will perform a host check to determine if the host itself has failed or if it's just the HTTP service. -- Marc > -----Original Message----- > From: Steven Duckworth [mailto:sduckworth at aug.edu] > Sent: Thursday, January 02, 2003 1:20 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host Checks > > List, > > I am a little unclear about the host checking interval. I have read in > the > documentation that host checks are not scheduled to execute on a regular > basis. I have also read that hosts checks are "run on demand, as nagios > sees a need" and this is the part that confuses me. Can someone explain > how nagios determines when a host needs to be checked? > > Thanks > > ____________________________________________________________________ > Steven D. Duckworth > Assistant Director for Network Services > Augusta State University > 2500 Walton Way > Augusta, GA. 30904 > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From donavan at 4wx.net Thu Jan 2 21:11:26 2003 From: donavan at 4wx.net (donavan nelson) Date: Thu, 2 Jan 2003 14:11:26 -0600 Subject: host stuck in downtime Message-ID: <20030102201126.M86182@4wx.net> I recently marked a host as being in downtime (due to a hardware failure). I've since repaired the system, but now I can't get the (In Scheduled Downtime?) entry set to no. I have the little zzzzZZZZZ icon present next to the host and it always catches my attention when I'm looking at the status page. Any suggestions as to how to clear this up? -- Donavan Nelson 4wx Networks www.4wx.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From donavan at 4wx.net Thu Jan 2 21:19:44 2003 From: donavan at 4wx.net (donavan nelson) Date: Thu, 2 Jan 2003 14:19:44 -0600 Subject: Problems with Nagios 1.0 on Red Hat 8.0 In-Reply-To: References: Message-ID: <20030102201944.M51860@4wx.net> I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and plugins (latest beta) from source. Using the default redhat apache install, etc. Nothing special on the server. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: "'nagios-users at lists.sourceforge.net'" Sent: Thu, 2 Jan 2003 16:55:59 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Just for Your Information, > There are several reported problems with Nagios1.0 on Redhat 8.0... > well at least 1 unresolved(?) problem. > > I haven't looked at the below issue specifically, however I have had > my own problems - see previous discussions entitiled "[Nagios-users] > Permissions Error (Could not stat() command file )" > > I would suggest that you read these threads, and determine if you REALLY > want to proceed with RH8 knowing that you may encounter these, so far > unresolved, issues that lie ahead for you. > > Unresolved, that is, unless someone knows better. (Crosses fingers) > Chris > > -----Original Message----- > From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] > Sent: 02 January 2003 15:12 > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > just put the Alias rules before the ScriptAlias one... > it should work, does'nt it ? > > On Thu, 2 Jan 2003 09:57:24 -0500 > "Kaplan, Andrew H." wrote: > > > I'm having a problem accessing the monitoring pages. The main page can be > seen > > without a problem. > > However, any one of the monitoring screens comes back with the following > error > > message: > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > this > > server. > > > > As far as I can tell, I have the appropriate settings configured in the > > httpd.conf and cgi.cfg files. They > > are included in this e-mail. What am I missing or did not configure > correctly? > > Thanks. > > > > <> <> > > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > ------------------------------------------------------- > 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 > > ********************************************************************** 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. ********************************************************************** ------- End of Original Message ------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Thu Jan 2 22:03:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 2 Jan 2003 15:03:24 -0600 Subject: host stuck in downtime Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1203@PKDWB03C.ad.sprint.com> Sounds like it's still stuck in downtime. Go to the Downtime page, find the entry for that host, then click on the trash can icon. jc > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net] > Sent: Thursday, January 02, 2003 2:11 PM > To: nagios-users > Subject: [Nagios-users] host stuck in downtime > > > I recently marked a host as being in downtime (due to a > hardware failure). > I've since repaired the system, but now I can't get the (In Scheduled > Downtime?) entry set to no. I have the little zzzzZZZZZ icon > present next to > the host and it always catches my attention when I'm looking > at the status page. > > Any suggestions as to how to clear this up? > > -- > Donavan Nelson > 4wx Networks > www.4wx.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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From don_schultz at panvera.com Thu Jan 2 22:55:37 2003 From: don_schultz at panvera.com (Don Schultz) Date: Thu, 2 Jan 2003 15:55:37 -0600 Subject: check_ping necessary? Message-ID: <72CF2973A7532D478D85271D40F608FCC3F473@mercury.panvera.com> This may be a really stupid question but I'm going for it anyways ;) Is it necessary to define a "ping" service for hosts? If you do not, aren't they still pinged with the check-host-alive command or are they just assumed to be up by the nagios process? If I'm thinking correctly, then the only way to get notification of a host being "down" is to include it in a ping service definition correct? Thanks! .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Yokichi.Tsukame at sonda.com Fri Jan 3 00:15:55 2003 From: Yokichi.Tsukame at sonda.com (Tsukame Gajardo, Yokichi) Date: Thu, 2 Jan 2003 19:15:55 -0400 Subject: problem with nagios plugins Message-ID: <5016872515A2D411898500805F77B44B06EB29B5@EXCHANGE_SONDA> Hi: I have problems with instalation nagios-plugins in HP-UX V11.0, the message is the next: common.h:71:20: getopt.h: No such file or directory check_disk.c: In function `process_arguments': check_disk.c:148: elements of array `long_options' have incomplete type check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: `required_argument' undeclared (first use in this function) check_disk.c:149: (Each undeclared identifier is reported only once check_disk.c:149: for each function it appears in.) check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') yours can help me.. greetings YTG -------------- next part -------------- An HTML attachment was scrubbed... URL: From ambrose at illuminatedtechnologies.com Thu Jan 2 23:38:50 2003 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Thu, 2 Jan 2003 14:38:50 -0800 (PST) Subject: check_ping necessary? In-Reply-To: <72CF2973A7532D478D85271D40F608FCC3F473@mercury.panvera.com> References: <72CF2973A7532D478D85271D40F608FCC3F473@mercury.panvera.com> Message-ID: I am using check_ping for my dsl router and hub. This way it shows up in the "Service Detail" of the http frontend. I might be doing this "incorrectly" - but it shows me if it pings the devices or if they're down. - Ambrose On Thu, 2 Jan 2003, Don Schultz wrote: > This may be a really stupid question but I'm going for it anyways ;) > > Is it necessary to define a "ping" service for hosts? If you do not, > aren't they still pinged with the check-host-alive command or are they > just assumed to be up by the nagios process? > > If I'm thinking correctly, then the only way to get notification of a > host being "down" is to include it in a ping service definition correct? > > Thanks! > > .: Don Schultz > :: Unix Systems Administrator > :: Panvera, LLC > :: 501 Charmany Dr. > :: Madison, WI 53719 > \\ > :: Phone: 608.204.5060 > :: Fax: 608.204.5061 > :: Cell: 608.213.7523 > :: Email: don_schultz at panvera.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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Jan 3 00:35:36 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 3 Jan 2003 10:35:36 +1100 Subject: check_ping necessary? In-Reply-To: <72CF2973A7532D478D85271D40F608FCC3F473@mercury.panvera.com>; from don_schultz@panvera.com on Thu, Jan 02, 2003 at 03:55:37PM -0600 References: <72CF2973A7532D478D85271D40F608FCC3F473@mercury.panvera.com> Message-ID: <20030103103533.A51756@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Jan 02, 2003 at 03:55:37PM -0600, Don Schultz wrote: > This may be a really stupid question but I'm going for it anyways ;) > > Is it necessary to define a "ping" service for hosts? No. However you must define at least _one_ service. Most choose to define ping as well as other services because in most cases you probably want to to be informed that a host is unreachable __before__ (owing to the way Nagios works) that it activates the host checking logic. > If you do not, > aren't they still pinged with the check-host-alive command or are they > just assumed to be up by the nagios process? You should read the theory of operation. In a nutshell, check-host-alive is only scheduled after a service check returns a HARD CRITICAL state. You have two opions 1 Define services >= 1 + ping ==> notified if host becomes unreachable at service check time 2 Define services(excluding ping) >= 1 ==> notified when host becomes unreachable only after a service check cycle reports a service failure. > > If I'm thinking correctly, then the only way to get notification of a > host being "down" is to include it in a ping service definition correct? > No. Hosts are always checked if a service fails. The service does not have to be a 'ping' service. > Thanks! > 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 From jusenta at hotmail.com Fri Jan 3 00:40:33 2003 From: jusenta at hotmail.com (joe usenta) Date: Thu, 02 Jan 2003 23:40:33 +0000 Subject: remote disk/load? Message-ID: hello, maybe i'm missing something, but is there a way to monitor the remote load/disk usage? the check_disk and check_load scripts do not give a remote host option, and only show local numbers. i cannot get it to show me what i'm looking for. the remote hosts would be a combination of solaris/linux boxes. is there maybe some other check that would do this? thanks in advance, jusenta _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From darren at bcgroup.net Fri Jan 3 00:46:43 2003 From: darren at bcgroup.net (Darren Bentley) Date: 02 Jan 2003 15:46:43 -0800 Subject: Status: Unknown Message-ID: <1041551203.24866.28.camel@chief.pgweb.com> I installed Nagios 1.0 on Red Hat 7.3 box and I'm running into some problems. The install went fine, Nagios loads fine. There is a strange PING problem. I used the default sample files, removed all the junks hosts and added one host. On the Service Detail page the hosts allways shows UNKNOWN in pumpkin orange color. Status Information shows: /bin/ping -n -U -c 5 192.168.123.10 I can run that manually and it works fine. I can also run CHECK_PING manually and it also works fine. Here's what the log files show: [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;8;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;9;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST ALERT: slocan-lamonte;DOWN;HARD;10;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST NOTIFICATION: nagios;slocan-lamonte;DOWN;host-notify-by-epager;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST NOTIFICATION: nagios;slocan-lamonte;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] SERVICE ALERT: slocan-lamonte;PING;UNKNOWN;HARD;1;/bin/ping -n -U -c 5 192.168.123.10 Any ideas? I've removed it and recompiled and tried again. -- Darren Bentley ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From ambrose at illuminatedtechnologies.com Fri Jan 3 01:17:05 2003 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Thu, 2 Jan 2003 16:17:05 -0800 (PST) Subject: remote disk/load? In-Reply-To: References: Message-ID: Get the NRPE (Remote Plugin Execution) from the downloads page of nagios.org and install that. Be sure to read the readme's. - Ambrose On Thu, 2 Jan 2003, joe usenta wrote: > hello, > > maybe i'm missing something, but is there a way to monitor > the remote load/disk usage? the check_disk and check_load > scripts do not give a remote host option, and only show > local numbers. i cannot get it to show me what i'm looking > for. the remote hosts would be a combination of solaris/linux > boxes. is there maybe some other check that would do this? > > thanks in advance, > jusenta > > > > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bakkerl at lamp.xs4all.nl Fri Jan 3 01:18:02 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 03 Jan 2003 01:18:02 +0100 Subject: parameters for service checks from outside nagios In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24C2@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24C2@PKDWB03C.ad.sprint.com> Message-ID: <1041553080.8553.23.camel@peitha.home.mercurius96.nl> nagios-users at lists.sourceforge.netOn Thu, 2003-01-02 at 17:45, Carroll, Jim P [Contractor] wrote: > I'm not entirely sure how you're retrieving the datfiles, but it might make > sense to run a plugin locally on the remote systems in question. This > plugin would scrub the datfile (eg, with grep); the result of this plugin > would be returned to Nagios. The version is retreived by grepping, cutting, some awk and some other tools on the output of the virusscanner version info. This is not the problem. The problem is how to let the plugin know what the current (uptodate) version is. I want to result the plugin OK if uptodate, WARNING on 1 versions behind, ERROR on all other results. The plugin is capable of getting the current used version, now i have to let it compare to the latest version. This information can be fetched of the internet, but if all hosts gets the information on every check, this would consumps a lot of bandwidth. The information of the latest version is also known on the nagios host. So if the information (versionnumber) can be given to the remote host, the plugin can also get his result (without fetching extra information of the internet). > Of course, I'm making some wild assumptions about your environment, such as > the system that hosts your datfiles is a *nix host. If it's Windows, I'm > not entirely certain how you'd do it. Still, you could install OpenSSH and > Perl on your Windows servers to facilitate this sleight of hand. It is all Linux based. All windows checks are fase 2 for me.. ;-) > In case I haven't been clear, you would be best off to write your own plugin > to do this. The current check is a own written shell-script plugin. But this plugin fetches the info from the internet. I did try some thing.. method 1: check_nrpe!check_datfile This gets the latest information from the internet. method 2: check_by_ssh!"/bin/nagios/libexec/check_datfile2 4240" With this method, the latest version is given to the remote host, and not from the internet (here 4240). But this is now static in the configuration file. I can't get this information variable (readed from a file or something, before it is passed to a remote host). The only solution i can see now, is to call a local plugin on the nagios-host. This shell scripts than uses nagios plugins (check_by_ssh, or check_nrpe) to get some result from a remote host, and calculate the result. This solution is not wanted due to resoures on the nagios-server. With greets, Lennard Bakker > > jc > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Tuesday, December 31, 2002 4:26 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] parameters for service checks from outside > > nagios > > > > > > > > Is it possible to import variable date to use with a service check? > > > > My problem: > > I want to let nagios to check anti virus datfiles on remote > > systems. Now > > i do this dat each remote system fetch the latest version info (800k) > > and verifies the version info, to the installed version (no update is > > done). The plugin reports OK if datfile is uptodate, warning when 1 > > version behind and ERROR if more than 1 version behind (or installed > > version is newer then the official downloadable). > > > > The problem is that every client fetches the 800k just for verify the > > version number (4 bytes number). > > > > I have the lastest version info on the nagios host system (in a file, > > just 4 bytes in size). Is it possible to add this info from a file to > > the service check, so that the version number is given to te > > remote host > > (by nrpe or chack_by_ssh). The remote host doesn't have to access a > > remote host (internet) for the current information. > > > > Lennard > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jhill at liquidweb.com Fri Jan 3 03:26:33 2003 From: jhill at liquidweb.com (Jeremy Hill) Date: Thu, 02 Jan 2003 21:26:33 -0500 Subject: Batching notifications Message-ID: <3E14F4D9.1040600@liquidweb.com> I haven't seen any way to do this, but I am asking just in case it is posible... Is there any way to batch notifications? That is, if 20 servers all go down at once (a bad ups typically causes this), is there a way to avoid getting 20 seperate notifications? I'm using parenting whenever possible, but sometimes it is not enough. I am trying to avoid another $600 pager bill (6000 pages in one month). Thanks for any help. jeremy ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jordan at advapro.com Fri Jan 3 03:22:35 2003 From: jordan at advapro.com (Jordan) Date: Fri, 03 Jan 2003 02:22:35 +0000 Subject: Notification Bug? Message-ID: <3E14F3EB.2817D4B9@advapro.com> I think I might have encountered a bug in the Nagios notification system. If this was intended, please slap me. =) Using: Nagios-text 1.0-3 on Debian Linux 3.0 (Woody). Here's my setup: I only monitor hosts being pingable. Therefore, I create a single service for each host I add named 'ping'. I have *enabled* all service notifications for every host I monitor. I have *disabled* all host notifications for every host I monitor. So AFAIK, the process goes like this: 1) Service goes down hard (ping in my case). 2) Nagios pings host to see if it's alive. 3) Nagios determines host is down, so it SILENCES all service notifications and sends out a host down notification. 4) Nagios realises all host notifications are disabled, so no notifications get sent out at all. I was tearing my hair out on this for a couple hours as to why I wasn't getting notified of anything being down. I realise that this *could* be considered a configuration error, but given that lots of people probably have a simmilar setup as me (with pinging being the only service of a host), it would be nice if Nagios could send out a service alert if it sees it is a ping (same as host down), or possibly creating a 'serviceless host' option in which all it does is ping to see if it's alive. Anyway, any input would be greately appriciated. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From karl at debisschop.net Fri Jan 3 03:35:21 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 02 Jan 2003 21:35:21 -0500 Subject: remote disk/load? In-Reply-To: References: Message-ID: <1041561320.3759.3.camel@toaster> On Thu, 2003-01-02 at 18:40, joe usenta wrote: > hello, > > maybe i'm missing something, but is there a way to monitor > the remote load/disk usage? the check_disk and check_load > scripts do not give a remote host option, and only show > local numbers. i cannot get it to show me what i'm looking > for. the remote hosts would be a combination of solaris/linux > boxes. is there maybe some other check that would do this? check_snmp or check_by_ssh can be used to get this info. SNMP is good for secure clusters, of servers with fairly low overhead. If you are running check over the open internet check_by_ssh is more secure, but there's more overhead involved in the connection. Plus, you must also istall the plugins you are interested in on the remote host. -- Karl DeBisschop ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Fri Jan 3 05:17:17 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Fri, 3 Jan 2003 09:47:17 +0530 Subject: SNMP Settings in Windows Message-ID: <003b01c2b2df$00de6060$5f7b0297@atul> Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. 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 hrishys at yahoo.co.uk Fri Jan 3 05:57:51 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Fri, 3 Jan 2003 04:57:51 +0000 (GMT) Subject: checking sun solaris disk space In-Reply-To: <003b01c2b2df$00de6060$5f7b0297@atul> References: <003b01c2b2df$00de6060$5f7b0297@atul> Message-ID: <20030103045751.9573.qmail@web12604.mail.yahoo.com> Hi I am tryoing to see the disk space on sun solaris machine..and my partition on the sun solaris machine is called "/dev/dsk/c0t0d0s0" the command used is check_local disk..however nagios tells me that the disk Disk "/dev/dsk/c0t0d0s0" not mounted or nonexistant.the machine where nagios is installed and the sun machine are on the same network segment..can anybody tell me what ma i doing wrong.. 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From t-dipede at jm-bruneau.fr Fri Jan 3 09:29:09 2003 From: t-dipede at jm-bruneau.fr (DI PEDE Thibault) Date: Fri, 3 Jan 2003 09:29:09 +0100 Subject: nagios.cmd Message-ID: <41A169F0E161D311AC1600C04F4373BF043665D8@ETUDES_NT> Hy, How can I find nagios.cmd ? Thanks TIBO DI PEDE Thibault Tel: 01 6092 45 26 Fax: 01 6092 45 28 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ambrose at illuminatedtechnologies.com Fri Jan 3 10:08:42 2003 From: ambrose at illuminatedtechnologies.com (Ambrose) Date: Fri, 3 Jan 2003 01:08:42 -0800 (PST) Subject: nagios.cmd In-Reply-To: <41A169F0E161D311AC1600C04F4373BF043665D8@ETUDES_NT> References: <41A169F0E161D311AC1600C04F4373BF043665D8@ETUDES_NT> Message-ID: It should be in /usr/local/nagios/var/rw/nagios.cmd find / -name "*nagios.cmf*" - Jeremy On Fri, 3 Jan 2003, DI PEDE Thibault wrote: > Hy, > > How can I find nagios.cmd ? > > Thanks > TIBO > DI PEDE Thibault > Tel: 01 6092 45 26 > Fax: 01 6092 45 28 > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From steve.freegard at lbsltd.co.uk Fri Jan 3 10:09:31 2003 From: steve.freegard at lbsltd.co.uk (Steve Freegard) Date: Fri, 3 Jan 2003 09:09:31 -0000 Subject: Status: Unknown Message-ID: <67D9E7698329D411936E00508B6590B9A5B525@neelix.lbsltd.co.uk> Darren, It sounds like a configuration error somewhere, have a look at your configs - I've attached a couple of examples that you can use to check. For example: define service{ use default_service hostgroup_name nt_servers service_description PING check_command check_ping <-- should be a valid command definition contact_groups nt_admins } Also check your command definition for check_ping: # 'check_ping' command definition define command{ command_name check_ping command_line /usr/local/nagios/libexec/check_ping -H $HOSTADDRESS$ -w 50:20% -c 100:100% } Nagios relies on the return code from the check_ping plugin to determine the status so you can test this by running: [root at trip etc]# /usr/local/nagios/libexec/check_ping -H 10.0.0.1 -w 50:20% -c 100:100% ; echo $? PING OK - Packet loss = 0%, RTA = 0.95 ms <-- Output from the plugin 0 <-- Return code (0=OK, 1=WARNING, 2=CRITICAL, any other value=UNKNOWN) [root at trip etc]# Hope this helps, if it doesn't I would suggest posting your problematic service & command definitions to the mailing-list. Kind regards, Steve Freegard Systems Manager Littlehampton Book Services Ltd. DDI: +44 (0)1903 82 8594 FAX: +44 (0)1903 82 8620 -----Original Message----- From: Darren Bentley [mailto:darren at bcgroup.net] Sent: 02 January 2003 23:47 To: nagios-users at lists.sourceforge.net Cc: nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] Status: Unknown I installed Nagios 1.0 on Red Hat 7.3 box and I'm running into some problems. The install went fine, Nagios loads fine. There is a strange PING problem. I used the default sample files, removed all the junks hosts and added one host. On the Service Detail page the hosts allways shows UNKNOWN in pumpkin orange color. Status Information shows: /bin/ping -n -U -c 5 192.168.123.10 I can run that manually and it works fine. I can also run CHECK_PING manually and it also works fine. Here's what the log files show: [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;8;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;9;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST ALERT: slocan-lamonte;DOWN;HARD;10;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST NOTIFICATION: nagios;slocan-lamonte;DOWN;host-notify-by-epager;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] HOST NOTIFICATION: nagios;slocan-lamonte;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 192.168.123.10 [1041550596] SERVICE ALERT: slocan-lamonte;PING;UNKNOWN;HARD;1;/bin/ping -n -U -c 5 192.168.123.10 Any ideas? I've removed it and recompiled and tried again. -- Darren Bentley ------------------------------------------------------- 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 ********************************************************************** 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 ********************************************************************** ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Fri Jan 3 10:22:15 2003 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 3 Jan 2003 09:22:15 -0000 Subject: nagios.cmd In-Reply-To: <41A169F0E161D311AC1600C04F4373BF043665D8@ETUDES_NT> References: <41A169F0E161D311AC1600C04F4373BF043665D8@ETUDES_NT> Message-ID: <000501c2b309$9ac255e0$0400a8c0@squarebox.com> Nagios.cmd is a command pipe that is created when nagios is invoked. It lives in your NAGIOSBASE$/var/rw Here is mine alpha:/usr/local/nagios/var/rw# ls -l total 0 prw-rw---- 1 nagios nagioscmd 0 Jan 3 09:04 nagios.cmd Sometimes there is problems with the permissions on this file. And you get errors saying unable to run command or not authorized typoe errors. Take a look at this link and follow it and you will have no problems http://nagios.sourceforge.net/docs/1_0/commandfile.html Hope this helps Cheers 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 DI PEDE Thibault Sent: 03 January 2003 08:29 To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] nagios.cmd Hy, How can I find nagios.cmd ? Thanks TIBO DI PEDE Thibault Tel: 01 6092 45 26 Fax: 01 6092 45 28 -------------- next part -------------- An HTML attachment was scrubbed... URL: From arjan at pwc-mas.nl Fri Jan 3 10:25:14 2003 From: arjan at pwc-mas.nl (Arjan de Graaff) Date: Fri, 3 Jan 2003 10:25:14 +0100 Subject: Status of NSClient Plugin In-Reply-To: <200301021820.h02IK6Fc021154@webmail1.magma.ca> References: <200301021820.h02IK6Fc021154@webmail1.magma.ca> Message-ID: Not entirely tru although it seems this way. I recently discovered and solved a bug within the nsclient. (the latest nsclient gives wrong values when getting counters which contain "/sec" ) After i wrote a mail to the guy with the problem and solution i got an answer that he will put in in his next release. If you want the extra code to fix this tell me, i will post it. Arjan -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of The Minto Skating Club Sent: donderdag 2 januari 2003 19:20 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Status of NSClient Plugin I'm a consultant and one of my clients is considering a widespread implementation of Nagios. My only concern is the state of the nsclient portion for NT. My client has all version of *nix plus nt and win2k. The development site for nsclient doesn't seem to have been updated since last March and in order to even get the check_nt plugin compiled on Solaris I had to apply the patch to the version from the nsclient site. All this makes me wonder if the nt piece has become an orphan and users of mixed environments should be looking to other tools? Am I wrong, missing something? Any comments would be appreciated. Tim Shouldice ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atul at mindsw.com Fri Jan 3 10:34:52 2003 From: atul at mindsw.com (Atul Gosain) Date: Fri, 03 Jan 2003 15:04:52 +0530 Subject: Statusmap issue Message-ID: <3E15593C.6020907@mindsw.com> Hi I have a status map made for my network. When i login with an account with which i can view all services and host, then only i can view the statusmap, whereas the users who can just see the selected services as they are contactes for them , cannot see the status map. Is this because of the reason that they are not authorized to see the other hosts information, thats why they r not able to see the status map? If this is the case then how can i show them the status map without showing them other services for which they are not contacts for. 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 From Schimpke at Lenze.de Fri Jan 3 10:57:07 2003 From: Schimpke at Lenze.de (Schimpke, Dr. Thomas / bhn) Date: Fri, 3 Jan 2003 10:57:07 +0100 Subject: trends.cgi lists hosts incorrectly as down/services as critical Message-ID: <03AA3D7DD4488840996C036E23BE71C41B57EB@zde008.lenze.com> Hi all... I think, that's nearly a faq (although I did not find anything appropiate there...): My monitored hosts are incorrectly listed as down in the trends display (and only there), services are not displayed at all (i.e. are in an intermediate state) or are incorrectly displayed as critical. This happend after an upgrade from nag-1.0b4 to nagios...of course, I've restored my "old" configuration files. I've tried to nail the fault down now for a while...but without any success...What's wrong here ? Thanks for your help, Thomas ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Chris.Losch at newham.gov.uk Fri Jan 3 11:08:26 2003 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Fri, 3 Jan 2003 10:08:26 -0000 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: Did you encounter any of the problems mentioned in the thread mentioned below (i.e.) recieving the "Could not stat() command file" error, when trying to use the web interface to commit changes, schedule checks, enter downtime etc. etc. I have the rest of the Nagios functions working perfectly well, using the default (full) install of RH8 and nagios 1.0. (no CVS components) Chris -----Original Message----- From: donavan nelson [mailto:donavan at 4wx.net] Sent: 02 January 2003 20:20 To: Chris Losch; 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and plugins (latest beta) from source. Using the default redhat apache install, etc. Nothing special on the server. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: "'nagios-users at lists.sourceforge.net'" Sent: Thu, 2 Jan 2003 16:55:59 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Just for Your Information, > There are several reported problems with Nagios1.0 on Redhat 8.0... > well at least 1 unresolved(?) problem. > > I haven't looked at the below issue specifically, however I have had > my own problems - see previous discussions entitiled "[Nagios-users] > Permissions Error (Could not stat() command file )" > > I would suggest that you read these threads, and determine if you REALLY > want to proceed with RH8 knowing that you may encounter these, so far > unresolved, issues that lie ahead for you. > > Unresolved, that is, unless someone knows better. (Crosses fingers) > Chris > > -----Original Message----- > From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] > Sent: 02 January 2003 15:12 > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > just put the Alias rules before the ScriptAlias one... > it should work, does'nt it ? > > On Thu, 2 Jan 2003 09:57:24 -0500 > "Kaplan, Andrew H." wrote: > > > I'm having a problem accessing the monitoring pages. The main page can be > seen > > without a problem. > > However, any one of the monitoring screens comes back with the following > error > > message: > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > this > > server. > > > > As far as I can tell, I have the appropriate settings configured in the > > httpd.conf and cgi.cfg files. They > > are included in this e-mail. What am I missing or did not configure > correctly? > > Thanks. > > > > <> <> > > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > ------------------------------------------------------- > 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 > > ********************************************************************** 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. ********************************************************************** ------- End of Original Message ------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From Volker.Aust at premiere.de Fri Jan 3 12:04:04 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Fri, 3 Jan 2003 12:04:04 +0100 Subject: NSCA and Passive Checks Message-ID: For my passive checks i set "check_period none" and "active_checks_enabled 1" in the template. -vol > -----Original Message----- > From: Chris Stankaitis [mailto:chris.stankaitis at datawire.net] > Sent: Thursday, January 02, 2003 2:19 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] NSCA and Passive Checks > > > I am using NSCA to do passive checks for external hosts and I have it > working with one exception which I think is a simple Nagios > config issue > which is escaping me at this time > > Basically I need to tell Nagios that disabled Active Checks for Some > services is ok. > > As it stands now I have 141 Active Checks, and 1 Passive Check, under > the TAC it gives me a big warning in the Active Checks box that Active > Checks are disabled under 1 Service and under the Services I > get 142 OK > (1 Disabled) > > I kept the generic-service as is under the services.cfg and made a new > one called passive-service with the identical options to the generic > with the exception that active checks are set to 0, I put the one > service which I am working on testing the nsca stuff in using the new > passive-service and it's working fine, getting the external > cmd updates > etc... however the main Nagios doesn't like it > > any thoughts? > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rue at thinlayer.co.uk Fri Jan 3 12:29:16 2003 From: rue at thinlayer.co.uk (Rue Turner) Date: 03 Jan 2003 11:29:16 +0000 Subject: Batching notifications In-Reply-To: <3E14F4D9.1040600@liquidweb.com> References: <3E14F4D9.1040600@liquidweb.com> Message-ID: <1041593356.3066.21.camel@servalon> > Is there any way to batch notifications? That is, if 20 servers all go > down at once (a bad ups typically causes this), is there a way to avoid > getting 20 seperate notifications? I'm using parenting whenever > possible, but sometimes it is not enough. > > I am trying to avoid another $600 pager bill (6000 pages in one month). > Thanks for any help. I think what you're looking for is the check_cluster plugin. I allows you to to 'join' several hosts or services together and only get alerts etc. when the threshold is reached. rue ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From cravey at gotbrains.org Fri Jan 3 12:48:32 2003 From: cravey at gotbrains.org (Stephen Cravey) Date: Fri, 3 Jan 2003 05:48:32 -0600 (CST) Subject: hostextinfo network abstraction? Message-ID: <20030103051753.L67923-100000@www.gotbrains.org> I've been having a rough time getting my 2-D status maps looking sane. My network has multiple redundancies built into it so I have a stack of one-to-many and many-to-one relationships in various places. For instance, nagios connects to router1, which connects to router2 and router3. Then, router1, router2, and router3 all connect to the Internet (routers are then parents for many hosts) all on different interfaces through different providers. The basic problem I'm having is that drawing status maps like this is a minor nightmare so I've created a bogus router4 that is effectively an abstraction of the Internet. The problem is that logically, it's a consolidation of routers 1,2, and 3, but since it has to have an ip address as a host, (it thinks it's router 3) if router3 goes down, as parent of all the internet hosts, if one of them goes down, I don't get a page even if they'd otherwise still be accessible. Due to periodic and automatic routing table shifts, not to mention suprise routing problems caused by our upstream providers, I can't set a given router as a parent to a given remote host. And if I set ALL of the routers as parents to a remote host, my status map looks like spaghetti and becomes unuseable in most of its incarnations. This is all ignoring the fact that nagios has problems mapping "many to one to many", "one to many and some of those to one" as well as from "many to random combinations of manys", but the first is MUCH less cluttered than the later two. (Does this make sense?) So the only way I can think to make the statusmaps look sane is to have hostextinfo for a hostgroup that doesn't page me when it/they go down (I've already got the individual routers configured) and lets everything else work as normal. Can anyone offer any suggestions on how to create an Internet abstraction hostextinfo entry? Or any other way to deal with this? Please email me if you need clarification on this and otherwise think you might be able to help. Or if i've missed something the docs. ;) -Stephen ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Fri Jan 3 14:31:25 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 3 Jan 2003 07:31:25 -0600 Subject: checking sun solaris disk space Message-ID: I think the command is looking for the mount point, not the character special device path. Something like /usr/local or just /. Greg > -----Original Message----- > From: hrishy [mailto:hrishys at yahoo.co.uk] > Sent: Thursday, January 02, 2003 10:58 PM > To: Atul Shrivastava; nagios-users at lists.sourceforge.net > Subject: [Nagios-users] checking sun solaris disk space > > > Hi > > I am tryoing to see the disk space on sun solaris > machine..and my partition on the sun solaris machine > is called "/dev/dsk/c0t0d0s0" the command used is > check_local disk..however nagios tells me that the > disk > Disk "/dev/dsk/c0t0d0s0" not mounted or > nonexistant.the machine where nagios is installed and > the sun machine are on the same network segment..can > anybody tell me what ma i doing wrong.. > > 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: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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From atulsh at hclinsys.com Fri Jan 3 14:57:11 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Fri, 3 Jan 2003 19:27:11 +0530 Subject: SNMP Working .......... Message-ID: <001001c2b330$03b2b240$5f7b0297@atul> Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. 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 ess.nec.de Fri Jan 3 15:31:05 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Fri, 3 Jan 2003 15:31:05 +0100 Subject: checking sun solaris disk space In-Reply-To: ; from GPotter@MarathonOil.com on Fri, Jan 03, 2003 at 07:31:25AM -0600 References: Message-ID: <20030103153105.F1785@ess.nec.de> Hello, I think it's more likely that he uses the check_disk command on the Nagios machine, instead of executing it on the remote Solaris machine. Regards, Rasmus On Fri, Jan 03, 2003 at 07:31:25AM -0600, Potter, G M (Greg) wrote: > I think the command is looking for the mount point, > not the character special device path. Something > like /usr/local or just /. > > Greg > > > -----Original Message----- > > From: hrishy [mailto:hrishys at yahoo.co.uk] > > Sent: Thursday, January 02, 2003 10:58 PM > > To: Atul Shrivastava; nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] checking sun solaris disk space > > > > > > Hi > > > > I am tryoing to see the disk space on sun solaris > > machine..and my partition on the sun solaris machine > > is called "/dev/dsk/c0t0d0s0" the command used is > > check_local disk..however nagios tells me that the > > disk > > Disk "/dev/dsk/c0t0d0s0" not mounted or > > nonexistant.the machine where nagios is installed and > > the sun machine are on the same network segment..can > > anybody tell me what ma i doing wrong.. > > > > regards > > Hrishy ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Grae.Noble at newcastle.edu.au Fri Jan 3 15:45:33 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Sat, 04 Jan 2003 01:45:33 +1100 Subject: Batching notifications Message-ID: Hi, nans would probably be a better solution. Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> Rue Turner 01/03/03 10:29pm >>> > Is there any way to batch notifications? That is, if 20 servers all go > down at once (a bad ups typically causes this), is there a way to avoid > getting 20 seperate notifications? I'm using parenting whenever > possible, but sometimes it is not enough. > > I am trying to avoid another $600 pager bill (6000 pages in one month). > Thanks for any help. I think what you're looking for is the check_cluster plugin. I allows you to to 'join' several hosts or services together and only get alerts etc. when the threshold is reached. rue ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Fri Jan 3 15:52:15 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 3 Jan 2003 15:52:15 +0100 Subject: Host Checks In-Reply-To: <5.2.0.9.0.20030102135548.0206c8f8@ronjon.aug.edu> References: <5.2.0.9.0.20030102135548.0206c8f8@ronjon.aug.edu> Message-ID: <20030103145215.GB15953@skynet.be> On Thu, Jan 02, 2003 at 02:19:52PM -0500, Steven Duckworth wrote: > List, > > I am a little unclear about the host checking interval. I have read in the > documentation that host checks are not scheduled to execute on a regular > basis. I have also read that hosts checks are "run on demand, as nagios > sees a need" and this is the part that confuses me. Can someone explain > how nagios determines when a host needs to be checked? > When there is no change in the status of a check, nagios will check according to the interval mentionned on your configuration. But, when the state changes (unreachable, down, ...), nagios will check several times (also depending on your configuration) before notifying contact people about the trouble found. 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Grae.Noble at newcastle.edu.au Fri Jan 3 15:50:20 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Sat, 04 Jan 2003 01:50:20 +1100 Subject: checking sun solaris disk space Message-ID: Hi, I think what you are after is the path to wherever the slice is mounted. And its a slice, not a partition :) i.e. check_disk -w 20% -c 10% -p / or check_disk -w 20% -c 10% -p /usr etc... now, if you are using check_local_disk to check the space on a remote system (from the nagios host) then you will need nrpe or check_by_ssh (or some passive way of submitting the results). good luck. Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> hrishy 01/03/03 03:57pm >>> Hi I am tryoing to see the disk space on sun solaris machine..and my partition on the sun solaris machine is called "/dev/dsk/c0t0d0s0" the command used is check_local disk..however nagios tells me that the disk Disk "/dev/dsk/c0t0d0s0" not mounted or nonexistant.the machine where nagios is installed and the sun machine are on the same network segment..can anybody tell me what ma i doing wrong.. 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: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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Fri Jan 3 16:01:03 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 3 Jan 2003 16:01:03 +0100 Subject: host stuck in downtime In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1203@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1203@PKDWB03C.ad.sprint.com> Message-ID: <20030103150103.GD15953@skynet.be> On Thu, Jan 02, 2003 at 03:03:24PM -0600, Carroll, Jim P [Contractor] wrote: > Sounds like it's still stuck in downtime. Go to the Downtime page, find the > entry for that host, then click on the trash can icon. > Another way should be to perform a passive check manually, telling nagios that this host is up. 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at guardiandigital.com Fri Jan 3 16:09:04 2003 From: eric at guardiandigital.com (Eric B. Lubow) Date: Fri, 3 Jan 2003 10:09:04 -0500 (EST) Subject: Generating Reports In-Reply-To: <20030103145814.GC15953@skynet.be> References: <20030102194825.E241B11D318@juggernaut.guardiandigital.com> <20030103145814.GC15953@skynet.be> Message-ID: <20030103150905.1353711D303@juggernaut.guardiandigital.com> On Fri, 3 Jan 2003, Christian Vanguers wrote: > On Thu, Jan 02, 2003 at 02:48:25PM -0500, Eric B. Lubow wrote: > > Hello all, > > > > Hope the new year finds everyone safe and in good health. > > > > I have checked the documentation as well as browsed through the > > archives and still come up with little in regards to generating reports > > not via the nagios interface. The goal would be for me to be able to find > > a list of examples as well as all the variables names that I would need to > > pass to whichever CGI to get a graph. > > > > Did you hear about apan ? > http://apan.sourceforge.net/ > > Chris Chris, I am looking for a list of the CGI parameters to generate the nagios graphs. I am not looking for anything additional, just information on how to produce whats already there by another means. -- Eric Lubow Guardian Digital Inc. http://www.guardiandigital.com/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Fri Jan 3 15:58:14 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 3 Jan 2003 15:58:14 +0100 Subject: Generating Reports In-Reply-To: <20030102194825.E241B11D318@juggernaut.guardiandigital.com> References: <20030102194825.E241B11D318@juggernaut.guardiandigital.com> Message-ID: <20030103145814.GC15953@skynet.be> On Thu, Jan 02, 2003 at 02:48:25PM -0500, Eric B. Lubow wrote: > Hello all, > > Hope the new year finds everyone safe and in good health. > > I have checked the documentation as well as browsed through the > archives and still come up with little in regards to generating reports > not via the nagios interface. The goal would be for me to be able to find > a list of examples as well as all the variables names that I would need to > pass to whichever CGI to get a graph. > Did you hear about apan ? http://apan.sourceforge.net/ 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From russell at quadrix.com Fri Jan 3 16:16:14 2003 From: russell at quadrix.com (Russell Scibetti) Date: Fri, 03 Jan 2003 10:16:14 -0500 Subject: Problems with Nagios 1.0 on Red Hat 8.0 References: Message-ID: <3E15A93E.5000307@quadrix.com> Did you make sure that: 1. In the installation phase, you ran "make install-mode" 2. The user that the apache runs as has permissions to write to nagios.cmd (usually done by added the "webserver" user to whatever group nagios.cmd is set to) Just some suggestions of things to double check. Russell Scibetti Chris Losch wrote: > Did you encounter any of the problems mentioned in the thread > mentioned below (i.e.) recieving the "Could not stat() command file" > error, when trying to use the web interface to commit changes, > schedule checks, enter downtime etc. etc. > > I have the rest of the Nagios functions working perfectly well, using > the default (full) install of RH8 and nagios 1.0. (no CVS components) > > Chris > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net ] > Sent: 02 January 2003 20:20 > To: Chris Losch; 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > > I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and > plugins (latest beta) from source. Using the default redhat apache > install, > etc. Nothing special on the server. > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Chris Losch > To: "'nagios-users at lists.sourceforge.net'" > > Sent: Thu, 2 Jan 2003 16:55:59 -0000 > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > > Just for Your Information, > > There are several reported problems with Nagios1.0 on Redhat 8.0... > > well at least 1 unresolved(?) problem. > > > > I haven't looked at the below issue specifically, however I have had > > my own problems - see previous discussions entitiled "[Nagios-users] > > Permissions Error (Could not stat() command file )" > > > > I would suggest that you read these threads, and determine if you REALLY > > want to proceed with RH8 knowing that you may encounter these, so far > > unresolved, issues that lie ahead for you. > > > > Unresolved, that is, unless someone knows better. (Crosses fingers) > > Chris > > > > -----Original Message----- > > From: Freddy Frouin [ mailto:freddy.frouin at fluxus.net ] > > Sent: 02 January 2003 15:12 > > To: Kaplan, Andrew H. > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > > > just put the Alias rules before the ScriptAlias one... > > it should work, does'nt it ? > > > > On Thu, 2 Jan 2003 09:57:24 -0500 > > "Kaplan, Andrew H." wrote: > > > > > I'm having a problem accessing the monitoring pages. The main page > can be > > seen > > > without a problem. > > > However, any one of the monitoring screens comes back with the > following > > error > > > message: > > > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > > this > > > server. > > > > > > As far as I can tell, I have the appropriate settings configured > in the > > > httpd.conf and cgi.cfg files. They > > > are included in this e-mail. What am I missing or did not configure > > correctly? > > > Thanks. > > > > > > <> <> > > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > ------------------------------------------------------- > > 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 > > > > ********************************************************************** > 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. > ********************************************************************** > ------- End of Original Message ------- > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From donavan at 4wx.net Fri Jan 3 16:26:15 2003 From: donavan at 4wx.net (donavan nelson) Date: Fri, 3 Jan 2003 09:26:15 -0600 Subject: Problems with Nagios 1.0 on Red Hat 8.0 In-Reply-To: References: Message-ID: <20030103152615.M84306@4wx.net> No, I have had none of these problems. I am also running the default 1.0 release with no changes or cvs code. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: Sent: Fri, 3 Jan 2003 10:08:26 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Did you encounter any of the problems mentioned in the thread mentioned > below (i.e.) recieving the "Could not stat() command file" error, > when trying to use the web interface to commit changes, schedule > checks, enter downtime etc. etc. > > I have the rest of the Nagios functions working perfectly well, > using the default (full) install of RH8 and nagios 1.0. (no CVS > components) > > Chris > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net] > Sent: 02 January 2003 20:20 > To: Chris Losch; 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and > plugins (latest beta) from source. Using the default redhat apache > install, etc. Nothing special on the server. > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Chris Losch > To: "'nagios-users at lists.sourceforge.net'" > > Sent: Thu, 2 Jan 2003 16:55:59 -0000 > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > > Just for Your Information, > > There are several reported problems with Nagios1.0 on Redhat 8.0... > > well at least 1 unresolved(?) problem. > > > > I haven't looked at the below issue specifically, however I have had > > my own problems - see previous discussions entitiled "[Nagios-users] > > Permissions Error (Could not stat() command file )" > > > > I would suggest that you read these threads, and determine if you REALLY > > want to proceed with RH8 knowing that you may encounter these, so far > > unresolved, issues that lie ahead for you. > > > > Unresolved, that is, unless someone knows better. (Crosses fingers) > > Chris > > > > -----Original Message----- > > From: Freddy Frouin [mailto:freddy.frouin at fluxus.net] > > Sent: 02 January 2003 15:12 > > To: Kaplan, Andrew H. > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > > > just put the Alias rules before the ScriptAlias one... > > it should work, does'nt it ? > > > > On Thu, 2 Jan 2003 09:57:24 -0500 > > "Kaplan, Andrew H." wrote: > > > > > I'm having a problem accessing the monitoring pages. The main page can > be > > seen > > > without a problem. > > > However, any one of the monitoring screens comes back with the following > > error > > > message: > > > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > > this > > > server. > > > > > > As far as I can tell, I have the appropriate settings configured in the > > > httpd.conf and cgi.cfg files. They > > > are included in this e-mail. What am I missing or did not configure > > correctly? > > > Thanks. > > > > > > <> <> > > > > > > > > > > -- > > Freddy Frouin > > Responsable Supervision > > British Telecom / Fluxus > > 30, rue du Ch?teau des Rentiers > > 75013 Paris > > > > T?l: +33 (0)1 44 97 70 00 > > Fax: +33 (0)1 44 97 70 07 > > > > ------------------------------------------------------- > > 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 > > > > ********************************************************************** > 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. ********************************************************************** > ------- End of Original Message ------- ------- End of Original Message ------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Fri Jan 3 16:29:30 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 3 Jan 2003 16:29:30 +0100 Subject: problem with nagios plugins In-Reply-To: <5016872515A2D411898500805F77B44B06EB29B5@EXCHANGE_SONDA> References: <5016872515A2D411898500805F77B44B06EB29B5@EXCHANGE_SONDA> Message-ID: <20030103152930.GE15953@skynet.be> On Thu, Jan 02, 2003 at 07:15:55PM -0400, Tsukame Gajardo, Yokichi wrote: > Hi: > > I have problems with instalation nagios-plugins in HP-UX V11.0, the message > is the next: > > common.h:71:20: getopt.h: No such file or directory You are missing some header files... Make sure configure script reports no error.. Also, if you can find getopt.h, use "--includedir=" when running configure... 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jacob at webexc.com Fri Jan 3 16:41:23 2003 From: jacob at webexc.com (Jacob Cazzell) Date: Fri, 03 Jan 2003 10:41:23 -0500 Subject: Displayed time incorrect. In-Reply-To: <20030103153105.F1785@ess.nec.de> References: Message-ID: <5.2.0.9.0.20030103103655.03b9be28@wopr.webexc.com> Hi all, I'm having a problem that is really driving me nuts: Nagios is displaying the time approximately 5 hours ahead of the actual time. I look at the log files, and the datestamp is correct. [1041607776] SERVICE NOTIFICATION: date -r 1041607776 Fri Jan 3 10:29:36 EST 2003 This is correct. It's 10:30am EST here in Indianapolis. So I know the data is correct, it's just not displaying correctly. If anyone has any tips on what I need to change/configure to get the correct time displaying on the user screens. Thanks in advance! Jacob ---------------------------------- Jacob Cazzell Webexcellence PH: 317.423.3548 x27 TF: 800.808.6332 x27 FX: 317.423.8735 jacob at webexc.com www.webexc.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Fri Jan 3 16:45:59 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 3 Jan 2003 16:45:59 +0100 Subject: [Nagiosplug-help] ldd statusmap.cgi show can't find libgd.so.2 In-Reply-To: References: Message-ID: <20030103154559.GG15953@skynet.be> On Thu, Jan 02, 2003 at 07:23:18PM -0700, Support wrote: > Ok, this can't be that difficult. I finally found the development > libraries and have installed them, recompiled the plugins and nagios. > Nagios compile states that "GD libraries found!" but when I click on > Status Map, I get the following error. > > Server error! > The server encountered an internal error and was unable to complete > your request. > Error message: > Premature end of script headers: statusmap.cgi > If you think this is a server error, please contact the webmaster > Error 500 Make sure you webserver's user (normally apache, nobody or www-data on my debian box) can run the cgi's... 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Fri Jan 3 17:07:00 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 03 Jan 2003 11:07:00 -0500 Subject: NAgios Setup errors In-Reply-To: <20030103152930.GE15953@skynet.be> References: <5016872515A2D411898500805F77B44B06EB29B5@EXCHANGE_SONDA> <20030103152930.GE15953@skynet.be> Message-ID: <20030103160700.4731.qmail@nsmx1.sunguruz.com> Hi Guys, So I got nagios installed fine and started doing some configs. When i run /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg I get this error: Reading configuration data... Error: Could not find host 'nsmx1.sunguruz.com' Error: Could not expand member hosts specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', line 21) In my hostgroups.cfg i have: # 'sun-servers' host group definition define hostgroup{ hostgroup_name sun alias Sun-Servers contact_groups SystemAdmins members nsmx1.sunguruz.com } It says I have an error on line 21, but line 21 is the define hostgroup{ piece of it. Here is my hosts.cfg: # 'sun-servers' host definition define host{ host_name nsmx1.sugnuruz.com alias nsmx1 Sun Servers address 192.168.0.2 check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options d,u,r } IS thier somthing I am missing? Thanks for your help -Radames ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Fri Jan 3 17:25:55 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 3 Jan 2003 10:25:55 -0600 Subject: [Nagiosplug-help] ldd statusmap.cgi show can't find libgd.so.2 Message-ID: Make sure the LD_LIBRARY_PATH is set for apache. There should be a line in the httpd.conf file that looks like the following: SetENV LD_LIBRARY_PATH /usr/local/lib Greg > -----Original Message----- > From: Christian Vanguers [mailto:wangee at linuxbe.org] > Sent: Friday, January 03, 2003 9:46 AM > To: Support > Cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: [Nagiosplug-help] ldd statusmap.cgi show > can't find libgd.so.2 > > > On Thu, Jan 02, 2003 at 07:23:18PM -0700, Support wrote: > > Ok, this can't be that difficult. I finally found the development > > libraries and have installed them, recompiled the plugins > and nagios. > > Nagios compile states that "GD libraries found!" but when I click on > > Status Map, I get the following error. > > > > Server error! > > The server encountered an internal error and was unable to complete > > your request. > > Error message: > > Premature end of script headers: statusmap.cgi > > If you think this is a server error, please contact the webmaster > > Error 500 > > > Make sure you webserver's user (normally apache, nobody or www-data on > my debian box) can run the cgi's... > > 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: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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Fri Jan 3 18:02:15 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 3 Jan 2003 09:02:15 -0800 (PST) Subject: NAgios Setup errors In-Reply-To: <20030103160700.4731.qmail@nsmx1.sunguruz.com> References: <20030103160700.4731.qmail@nsmx1.sunguruz.com> Message-ID: <20030103170215.26119.qmail@web21508.mail.yahoo.com> Typo ? nsmx1.sugnuruz.com or nsmx1.sunguruz.com rvelez wrote:Hi Guys, So I got nagios installed fine and started doing some configs. When i run /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg I get this error: Reading configuration data... Error: Could not find host 'nsmx1.sunguruz.com' Error: Could not expand member hosts specified in hostgroup (config file '/usr/local/nagios/etc/hostgroups.cfg', line 21) In my hostgroups.cfg i have: # 'sun-servers' host group definition define hostgroup{ hostgroup_name sun alias Sun-Servers contact_groups SystemAdmins members nsmx1.sunguruz.com } It says I have an error on line 21, but line 21 is the define hostgroup{ piece of it. Here is my hosts.cfg: # 'sun-servers' host definition define host{ host_name nsmx1.sugnuruz.com alias nsmx1 Sun Servers address 192.168.0.2 check_command check-host-alive max_check_attempts 5 notification_interval 60 notification_period 24x7 notification_options d,u,r } IS thier somthing I am missing? Thanks for your help -Radames ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From don_schultz at panvera.com Fri Jan 3 18:21:21 2003 From: don_schultz at panvera.com (Don Schultz) Date: Fri, 3 Jan 2003 11:21:21 -0600 Subject: Check_nt stuff Message-ID: <72CF2973A7532D478D85271D40F608FCC3F488@mercury.panvera.com> So I'm working with nsclient, and check_nt with MEMUSE and USEDDISKSPACE. I can't figure out what units to use for the warning and critical threshholds. Anyone know? Nsclient is lacking sufficient documentation and I cant find what units to use for critical and warning threshhold in the check_nt --help either .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Fri Jan 3 18:21:18 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 03 Jan 2003 12:21:18 -0500 Subject: NAgios Setup errors In-Reply-To: <20030103170215.26119.qmail@web21508.mail.yahoo.com> References: <20030103170215.26119.qmail@web21508.mail.yahoo.com> Message-ID: <20030103172118.4895.qmail@nsmx1.sunguruz.com> Rvelez writes: LOL thanks, fixed it but I am still recieveing the same error message. Thanks for your help Jon Lyons writes: > > Typo ? nsmx1.sugnuruz.com or nsmx1.sunguruz.com > > > rvelez wrote:Hi Guys, > > So I got nagios installed fine and started doing some configs. When i > run /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg I get > this error: > > Reading configuration data... > > Error: Could not find host 'nsmx1.sunguruz.com' > > Error: Could not expand member hosts specified in hostgroup (config file > '/usr/local/nagios/etc/hostgroups.cfg', line 21) > > In my hostgroups.cfg i have: > > # 'sun-servers' host group definition > define hostgroup{ > hostgroup_name sun > alias Sun-Servers > contact_groups SystemAdmins > members nsmx1.sunguruz.com > } > > It says I have an error on line 21, but line 21 is the define hostgroup{ > piece of it. Here is my hosts.cfg: > > # 'sun-servers' host definition > define host{ > host_name nsmx1.sugnuruz.com > alias nsmx1 Sun Servers > address 192.168.0.2 > check_command check-host-alive > max_check_attempts 5 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > IS thier somthing I am missing? Thanks for your help > > -Radames > > > ------------------------------------------------------- > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Tong at keen.com Fri Jan 3 18:37:06 2003 From: Tong at keen.com (Tong Young) Date: Fri, 3 Jan 2003 09:37:06 -0800 Subject: Check_nt stuff Message-ID: <96F2907F6F5F494DA70289DE3B15B11F259A733D@keenx02.keencorp.keen.com> There is an html file included with Nsclient which gives examples of how to use those two functions with check_nt. It is called README and is in the root folder. MEMORY USAGE Syntax: check_nt -H -p -v MEMUSE [-w ] [-c ] and : thresholds between 1 and 100. Example: ./check_nt -H 192.168.1.1 -p 1248 -v MEMUSE -w 80 -c 90 DISK USAGE Syntax: check_nt -H -p -v USEDDISKSPACE -l [-w ] [-c ] drive letter should be only one character. and : thresholds between 1 and 100. Example: ./check_nt -H 192.168.1.1 -p 1248 -v USEDDISKSPACE -l C -w 80 -c 90 -----Original Message----- From: Don Schultz [mailto:don_schultz at panvera.com] Sent: Friday, January 03, 2003 9:21 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Check_nt stuff So I'm working with nsclient, and check_nt with MEMUSE and USEDDISKSPACE. I can't figure out what units to use for the warning and critical threshholds. Anyone know? Nsclient is lacking sufficient documentation and I cant find what units to use for critical and warning threshhold in the check_nt --help either .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gastrauskas at burrelles.com Fri Jan 3 18:51:14 2003 From: gastrauskas at burrelles.com (Giedrius Astrauskas) Date: Fri, 3 Jan 2003 12:51:14 -0500 Subject: Check_nt stuff References: <72CF2973A7532D478D85271D40F608FCC3F488@mercury.panvera.com> Message-ID: <00c701c2b350$b5a85a20$9c0312ac@developer01> Hi, I used just percentages as integers, like: # 'check_nt_memuse_m' command definition define command{ command_name check_nt_memuse_m command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v MEMUSE -w 50 -c 70 } and # 'check_nt_disk_m' command definition define command{ command_name check_nt_disk_m command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l C -w 30 -c 40 } and they mean the percentage of disk used, and percentage of memory used, if I am correct. I am using low values for testing purposes. Giedrius ----- Original Message ----- From: "Don Schultz" To: Sent: Friday, January 03, 2003 12:21 PM Subject: [Nagios-users] Check_nt stuff So I'm working with nsclient, and check_nt with MEMUSE and USEDDISKSPACE. I can't figure out what units to use for the warning and critical threshholds. Anyone know? Nsclient is lacking sufficient documentation and I cant find what units to use for critical and warning threshhold in the check_nt --help either .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From groups at thinlayer.co.uk Fri Jan 3 19:55:06 2003 From: groups at thinlayer.co.uk (Thinlayer) Date: 03 Jan 2003 18:55:06 +0000 Subject: Check_nt stuff In-Reply-To: <00c701c2b350$b5a85a20$9c0312ac@developer01> References: <72CF2973A7532D478D85271D40F608FCC3F488@mercury.panvera.com> <00c701c2b350$b5a85a20$9c0312ac@developer01> Message-ID: <1041620105.3066.28.camel@servalon> word of warning: I've noticed on some machines that "...-w 50 -c 70" would result in it being interpreted as 50 and 70 BYTES respectively rather than percent. This causes some headache until you are more explicit; "...-w 50% -70%" hope this helps On Fri, 2003-01-03 at 17:51, Giedrius Astrauskas wrote: > Hi, > > I used just percentages as integers, like: > > # 'check_nt_memuse_m' command definition > define command{ > command_name check_nt_memuse_m > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v > MEMUSE -w 50 -c 70 > } > > and > > # 'check_nt_disk_m' command definition > define command{ > command_name check_nt_disk_m > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v > USEDDISKSPACE -l C -w 30 -c 40 > } > > and they mean the percentage of disk used, and percentage of memory used, if > I am correct. > I am using low values for testing purposes. > > > Giedrius > > > > ----- Original Message ----- > From: "Don Schultz" > To: > Sent: Friday, January 03, 2003 12:21 PM > Subject: [Nagios-users] Check_nt stuff > > > So I'm working with nsclient, and check_nt with MEMUSE and > USEDDISKSPACE. I can't figure out what units to use for the warning and > critical threshholds. Anyone know? > > Nsclient is lacking sufficient documentation and I cant find what units > to use for critical and warning threshhold in the check_nt --help either > > .: Don Schultz > :: Unix Systems Administrator > :: Panvera, LLC > :: 501 Charmany Dr. > :: Madison, WI 53719 > \\ > :: Phone: 608.204.5060 > :: Fax: 608.204.5061 > :: Cell: 608.213.7523 > :: Email: don_schultz at panvera.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 > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From darren at bcgroup.net Fri Jan 3 20:00:20 2003 From: darren at bcgroup.net (Darren Bentley) Date: 03 Jan 2003 11:00:20 -0800 Subject: Status: Unknown In-Reply-To: <67D9E7698329D411936E00508B6590B9A5B525@neelix.lbsltd.co.uk> References: <67D9E7698329D411936E00508B6590B9A5B525@neelix.lbsltd.co.uk> Message-ID: <1041620420.3040.5.camel@chief.pgweb.com> Thanks for the help, Turns out I'm a dumbass...ping wasn't SUID root. It's all good now. - Darren On Fri, 2003-01-03 at 01:09, Steve Freegard wrote: > Darren, > > It sounds like a configuration error somewhere, have a look at your configs > - I've attached a couple of examples that you can use to check. > > For example: > > define service{ > use default_service > hostgroup_name nt_servers > service_description PING > check_command check_ping <-- should be a valid command > definition > contact_groups nt_admins > } > > Also check your command definition for check_ping: > > # 'check_ping' command definition > define command{ > command_name check_ping > command_line /usr/local/nagios/libexec/check_ping -H > $HOSTADDRESS$ -w > 50:20% -c 100:100% > } > > Nagios relies on the return code from the check_ping plugin to determine the > status so you can test this by running: > > [root at trip etc]# /usr/local/nagios/libexec/check_ping -H 10.0.0.1 -w 50:20% > -c 100:100% ; echo $? > PING OK - Packet loss = 0%, RTA = 0.95 ms <-- Output from the plugin > 0 <-- Return code (0=OK, 1=WARNING, 2=CRITICAL, any other > value=UNKNOWN) > [root at trip etc]# > > Hope this helps, if it doesn't I would suggest posting your problematic > service & command definitions to the mailing-list. > > Kind regards, > > > > Steve Freegard > Systems Manager > Littlehampton Book Services Ltd. > DDI: +44 (0)1903 82 8594 > FAX: +44 (0)1903 82 8620 > > -----Original Message----- > From: Darren Bentley [mailto:darren at bcgroup.net] > Sent: 02 January 2003 23:47 > To: nagios-users at lists.sourceforge.net > Cc: nagiosplug-help at lists.sourceforge.net > Subject: [Nagios-users] Status: Unknown > > > I installed Nagios 1.0 on Red Hat 7.3 box and I'm running into some > problems. The install went fine, Nagios loads fine. There is a strange > PING problem. > > I used the default sample files, removed all the junks hosts and added > one host. > > On the Service Detail page the hosts allways shows UNKNOWN in pumpkin > orange color. Status Information shows: /bin/ping -n -U -c 5 > 192.168.123.10 > > I can run that manually and it works fine. I can also run CHECK_PING > manually and it also works fine. > > Here's what the log files show: > > [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;8;/bin/ping -n -U -c 1 > 192.168.123.10 > [1041550596] HOST ALERT: slocan-lamonte;DOWN;SOFT;9;/bin/ping -n -U -c 1 > 192.168.123.10 > [1041550596] HOST ALERT: slocan-lamonte;DOWN;HARD;10;/bin/ping -n -U -c > 1 192.168.123.10 > [1041550596] HOST NOTIFICATION: > nagios;slocan-lamonte;DOWN;host-notify-by-epager;/bin/ping -n -U -c 1 > 192.168.123.10 > [1041550596] HOST NOTIFICATION: > nagios;slocan-lamonte;DOWN;host-notify-by-email;/bin/ping -n -U -c 1 > 192.168.123.10 > [1041550596] SERVICE ALERT: slocan-lamonte;PING;UNKNOWN;HARD;1;/bin/ping > -n -U -c 5 192.168.123.10 > > > Any ideas? I've removed it and recompiled and tried again. -- Darren Bentley ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at spins.com Fri Jan 3 20:46:25 2003 From: eric at spins.com (Eric Hill) Date: Fri, 3 Jan 2003 11:46:25 -0800 Subject: nagios isn't running well Message-ID: Hi All, I'm just getting started with Nagios on FreeBSD, and it's (or I'm) limping out of the gate. I've set up two hosts, one with ping and http and one with just ping. Nagios isn't seeing either of them and I've been wracking my brain trying to figure out what is going on. Per the earlier message, /sbin/ping is indeed suid root. I haven't been able to install nagios-plugins from ports because it is broken somehow (both make and gmake break), but I have the basic checks installed in nagios/libexec so I should at least be able to set up basic hosts, right? Unfortunately, I get notifications like "check_ping: %s: Warning threshold must be integer or percentage!" or "CRITICAL - Plugin timed out after 10 seconds" (both for ping). check_http gives "Socket timeout after 10 seconds" though (presumably it's a port 80 check) this is our main corporate webserver. Could it possibly be because I'm running Apache2 rather than 1.x? FreeBSD vs. Linux? I'm going to have to choose something else if I can't figure this out. My sense is that Nagios shouldn't be this finicky, but for me it is. -eric hosts.cfg --------- # Generic host definition template define host{ ; The name of this host template - referenced in other host definitions, used for template recursion/resolution name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # 'nt1' host definition define host{ use generic-host ; Name of host template to use host_name comet alias Corp. File/Print Server address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } # 'linux1' host definition define host{ use generic-host ; Name of host template to use host_name elguapo alias Linux Server #1 address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } nagios.cfg ---------- log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg 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=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 #command_check_interval=15s command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp # 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_archive_path=/usr/local/nagios/var/archives use_syslog=1 # 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_service_retries=1 log_host_retries=1 log_event_handlers=1 log_passive_service_checks=1 #global_host_event_handler=somecommand #global_service_event_handler=somecommand # 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 # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. # being executed. sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata obsess_over_services=0 #ocsp_command=somecommand # 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=1 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # 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_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=helpdesk at spins.com admin_pager=pagenagios # EOF (End of file) services.cfg ------------ # Generic service definition template define service{ ; The 'name' of this service template, referenced in other service definitions name generic-service active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major per formance problems) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name comet,elguapo service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name comet service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } (etc...most cfg is stock) ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chris.stankaitis at datawire.net Fri Jan 3 21:19:05 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 03 Jan 2003 15:19:05 -0500 Subject: Quick "escalation" question In-Reply-To: References: Message-ID: <3E15F039.3000307@datawire.net> is it necessary to define an escalation for EVERY Service of every host in the escalation.cfg?? if I want all pages for all problems for a specific box sent to the same contact group then can I get away with just a host escalation? If I don't define an escalation for say http on box #1 and it goes down will no one get notified?? or will it just use the host escalation in liew of the missing service escalation? as far as Nagios is concern how does it deal with hosts vs. services?? I am under the impression the only "host" check being done is the check-hosts-alive as defined in the hosts.cfg so the bulk of what your monitoring in nagios will be in the services.cfg I am monitoring much more then ping... so again, is only a host escalation sufficient to trigger a notification in the event of a service failure? I am monitoring over 300+ services on 80+ hosts so if I can get away with only needing to have 80 host escalations rather then 300+ service escalations + 80 host escalations I would welcome the cut down in time... --Chris ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 18:14:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 11:14:18 -0600 Subject: NAgios Setup errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E120B@PKDWB03C.ad.sprint.com> This is a bit speculative, so if you find a better answer, go with that. Here are a couple things to try: 1) Check the hostgroup definition paragraph for hidden/special characters. (In vi, ":set list".) 2) Try simplifying the hostname to one without dots (just as an experiment) in both the hosts.cfg and hostgroups.cfg files. Restart nagios and see if that's any different. jc > -----Original Message----- > From: rvelez [mailto:rvelez at sunguruz.com] > Sent: Friday, January 03, 2003 10:07 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NAgios Setup errors > > > Hi Guys, > > So I got nagios installed fine and started doing some > configs. When i > run /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg I get > this error: > > Reading configuration data... > > Error: Could not find host 'nsmx1.sunguruz.com' > > Error: Could not expand member hosts specified in hostgroup > (config file > '/usr/local/nagios/etc/hostgroups.cfg', line 21) > > In my hostgroups.cfg i have: > > # 'sun-servers' host group definition > define hostgroup{ > hostgroup_name sun > alias Sun-Servers > contact_groups SystemAdmins > members nsmx1.sunguruz.com > } > > It says I have an error on line 21, but line 21 is the define > hostgroup{ > piece of it. Here is my hosts.cfg: > > # 'sun-servers' host definition > define host{ > host_name nsmx1.sugnuruz.com > alias nsmx1 Sun Servers > address 192.168.0.2 > check_command check-host-alive > max_check_attempts 5 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > IS thier somthing I am missing? Thanks for your help > > -Radames > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 18:22:06 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 11:22:06 -0600 Subject: checking sun solaris disk space Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C6@PKDWB03C.ad.sprint.com> Actually, you can specify either the device special file or the mount point. (I personally find mount points more informative. ;) But someone else brought up a valid point: It could well be that Hrishy is executing it on the Nagios server, instead of the target host. Hrishy, go back to www.nagios.org and take a look at NRPE; it's good for what ails you. jc > -----Original Message----- > From: Grae Noble [mailto:Grae.Noble at newcastle.edu.au] > Sent: Friday, January 03, 2003 8:50 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] checking sun solaris disk space > > > Hi, > > I think what you are after is the path to wherever the slice > is mounted. And its a slice, not a partition :) > > i.e. check_disk -w 20% -c 10% -p / or > check_disk -w 20% -c 10% -p /usr etc... > > now, if you are using check_local_disk to check the space on > a remote system (from the nagios host) then you will need > nrpe or check_by_ssh (or some passive way of submitting the results). > good luck. > > > > Grae Noble > Infrastructure, Communication and Information Services, > University Services Division > University of Newcastle, NSW > Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 > Grae.Noble at newcastle.edu.au > Room: CT216 > > > >>> hrishy 01/03/03 03:57pm >>> > Hi > > I am tryoing to see the disk space on sun solaris > machine..and my partition on the sun solaris machine > is called "/dev/dsk/c0t0d0s0" the command used is > check_local disk..however nagios tells me that the > disk > Disk "/dev/dsk/c0t0d0s0" not mounted or > nonexistant.the machine where nagios is installed and > the sun machine are on the same network segment..can > anybody tell me what ma i doing wrong.. > > 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: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 > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 18:39:23 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 11:39:23 -0600 Subject: SNMP Working .......... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C7@PKDWB03C.ad.sprint.com> Atul, it appears that this is at least the 4th time you've sent this message. If you're not getting an answer, it's likely because: - nobody has the answer - somebody has the answer, and is unwilling to share it (and that's their prerogative) - you're not asking the right question - you're asking the right question, but in the wrong forum Have you thought about checking either a mailing list or a website which relates to either SNMP, Windows, or SNMP on Windows? Once you have that info (ie, SNMP setup in Windows, as well as the MIB you wish to check), I'm sure someone on this list will be able to help you set up the necessary check_snmp definition in Nagios. Sending the same question to a mailing list is, IMHO, poor netiquette. Please be a little more respectful of the other users of this list. [Future such repetitions will be redirected to /dev/null.] Hope this helps. jc -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Friday, January 03, 2003 7:57 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] SNMP Working .......... Hello All, I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg Can anyone give me a way out. 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 jcarro10 at sprintspectrum.com Fri Jan 3 18:32:08 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 11:32:08 -0600 Subject: Notification Bug? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E120F@PKDWB03C.ad.sprint.com> As far as I can tell, Nagios is doing exactly what you've told it to do. I wouldn't have expected anything different. Forgive me for asking the obvious, but... why not just enable host notifications? jc > -----Original Message----- > From: Jordan [mailto:jordan at advapro.com] > Sent: Thursday, January 02, 2003 8:23 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Notification Bug? > > > I think I might have encountered a bug in the Nagios notification > system. If this was intended, please slap me. =) > > Using: Nagios-text 1.0-3 on Debian Linux 3.0 (Woody). > > Here's my setup: > > I only monitor hosts being pingable. Therefore, I create a single > service for each host I add named 'ping'. > > I have *enabled* all service notifications for every host I monitor. > > I have *disabled* all host notifications for every host I monitor. > > So AFAIK, the process goes like this: > > 1) Service goes down hard (ping in my case). > 2) Nagios pings host to see if it's alive. > 3) Nagios determines host is down, so it SILENCES all service > notifications and sends out a host down notification. > 4) Nagios realises all host notifications are disabled, so no > notifications get sent out at all. > > I was tearing my hair out on this for a couple hours as to > why I wasn't > getting notified of anything being down. I realise that this > *could* be > considered a configuration error, but given that lots of > people probably > have a simmilar setup as me (with pinging being the only service of a > host), it would be nice if Nagios could send out a service alert if it > sees it is a ping (same as host down), or possibly creating a > 'serviceless host' option in which all it does is ping to see if it's > alive. Anyway, any input would be greately appriciated. > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Fri Jan 3 21:39:21 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 3 Jan 2003 12:39:21 -0800 (PST) Subject: nagios isn't running well In-Reply-To: References: Message-ID: <20030103203921.18302.qmail@web21510.mail.yahoo.com> What version of freebsd? and how old is your ports collection? Eric Hill wrote:Hi All, I'm just getting started with Nagios on FreeBSD, and it's (or I'm) limping out of the gate. I've set up two hosts, one with ping and http and one with just ping. Nagios isn't seeing either of them and I've been wracking my brain trying to figure out what is going on. Per the earlier message, /sbin/ping is indeed suid root. I haven't been able to install nagios-plugins from ports because it is broken somehow (both make and gmake break), but I have the basic checks installed in nagios/libexec so I should at least be able to set up basic hosts, right? Unfortunately, I get notifications like "check_ping: %s: Warning threshold must be integer or percentage!" or "CRITICAL - Plugin timed out after 10 seconds" (both for ping). check_http gives "Socket timeout after 10 seconds" though (presumably it's a port 80 check) this is our main corporate webserver. Could it possibly be because I'm running Apache2 rather than 1.x? FreeBSD vs. Linux? I'm going to have to choose something else if I can't figure this out. My sense is that Nagios shouldn't be this finicky, but for me it is. -eric hosts.cfg --------- # Generic host definition template define host{ ; The name of this host template - referenced in other host definitions, used for template recursion/resolution name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # 'nt1' host definition define host{ use generic-host ; Name of host template to use host_name comet alias Corp. File/Print Server address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } # 'linux1' host definition define host{ use generic-host ; Name of host template to use host_name elguapo alias Linux Server #1 address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } nagios.cfg ---------- log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg 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=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 #command_check_interval=15s command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp # 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_archive_path=/usr/local/nagios/var/archives use_syslog=1 # 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_service_retries=1 log_host_retries=1 log_event_handlers=1 log_passive_service_checks=1 #global_host_event_handler=somecommand #global_service_event_handler=somecommand # 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 # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. # being executed. sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata obsess_over_services=0 #ocsp_command=somecommand # 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=1 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # 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_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=helpdesk at spins.com admin_pager=pagenagios # EOF (End of file) services.cfg ------------ # Generic service definition template define service{ ; The 'name' of this service template, referenced in other service definitions name generic-service active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major per formance problems) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name comet,elguapo service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name comet service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } (etc...most cfg is stock) ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From vseerror at Lehigh.EDU Fri Jan 3 21:46:13 2003 From: vseerror at Lehigh.EDU (Wayne Mery) Date: Fri, 03 Jan 2003 15:46:13 -0500 Subject: Appendicies mentioned in "Procedure for ..." In-Reply-To: <3E14630F.20100@lehigh.edu> References: <3E14630F.20100@lehigh.edu> Message-ID: <3E15F695.2090600@lehigh.edu> Where are the various so called appendicies refered to in "PROCEDURE FOR THE INSTALLATION OF THE NAGIOS NETWORK MONITORING PROGRAM"? at http://nagios.sourceforge.net/download/contrib/documentation/misc/InstallingNagios.pdf -- Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at spins.com Fri Jan 3 21:39:14 2003 From: eric at spins.com (Eric Hill) Date: Fri, 3 Jan 2003 12:39:14 -0800 Subject: nagios isn't running well Message-ID: It's 3.5-STABLE, but I just completely deleted /usr/ports/* (after cvsup'ing multiple times recently) and re-cvsup'ed and plugins compiled just fine. So that's that. -e -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Friday, January 03, 2003 12:39 PM To: Eric Hill; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios isn't running well What version of freebsd? and how old is your ports collection? Eric Hill wrote: Hi All, I'm just getting started with Nagios on FreeBSD, and it's (or I'm) limping out of the gate. I've set up two hosts, one with ping and http and one with just ping. Nagios isn't seeing either of them and I've been wracking my brain trying to figure out what is going on. Per the earlier message, /sbin/ping is indeed suid root. I haven't been able to install nagios-plugins from ports because it is broken somehow (both make and gmake break), but I have the basic checks installed in nagios/libexec so I should at least be able to set up basic hosts, right? Unfortunately, I get notifications like "check_ping: %s: Warning threshold must be integer or percentage!" or "CRITICAL - Plugin timed out after 10 seconds" (both for ping). check_http gives "Socket timeout after 10 seconds" though (presumably it's a port 80 check) this is our main corporate webserver. Could it possibly be because I'm running Apache2 rather than 1.x? FreeBSD vs. Linux? I'm going to have to choose something else if I can't figure this out. My sense is that Nagios shouldn't be this finicky, but for me it is. -eric hosts.cfg --------- # Generic host definition template define host{ ; The name of this host template - referenced in other host definitions, used for template recursion/resolution name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # 'nt1' host definition define host{ use generic-host ; Name of host template to use host_name comet alias Corp. File/Print Server address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } # 'linux1' host definition define host{ use generic-host ; Name of host template to use host_name elguapo alias Linux Server #1 address xx.xx.xx.xx check_command check-host-alive max_check_attempts 10 notification_interval 60 notification_period 24x7 notification_options d,u,r } nagios.cfg ---------- log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.cfg 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=/usr/local/nagios/etc/resource.cfg status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 #command_check_interval=15s command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp # 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_archive_path=/usr/local/nagios/var/archives use_syslog=1 # 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_service_retries=1 log_host_retries=1 log_event_handlers=1 log_passive_service_checks=1 #global_host_event_handler=somecommand #global_service_event_handler=somecommand # 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 # s = Use "smart" interleave factor calculation # x = Use an interleave factor of x, where x is a # number greater than or equal to 1. # being executed. sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 #host_perfdata_command=process-host-perfdata #service_perfdata_command=process-service-perfdata obsess_over_services=0 #ocsp_command=somecommand # 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=1 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=1 low_service_flap_threshold=5.0 high_service_flap_threshold=20.0 low_host_flap_threshold=5.0 high_host_flap_threshold=20.0 # 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_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=helpdesk at spins.com admin_pager=pagenagios # EOF (End of file) services.cfg ------------ # Generic service definition template define service{ ; The 'name' of this service template, referenced in other service definitions name generic-service active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major per formance problems) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name comet,elguapo service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name comet service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } (etc...most cfg is stock) ------------------------------------------------------- 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 _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at spins.com Fri Jan 3 21:44:47 2003 From: eric at spins.com (Eric Hill) Date: Fri, 3 Jan 2003 12:44:47 -0800 Subject: nagios isn't running well Message-ID: check_ping works fine both from a root prompt and from `su nagios` check_http behaves the same. -eric > -----Original Message----- > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > Sent: Friday, January 03, 2003 12:25 PM > To: 'Eric Hill' > Subject: RE: [Nagios-users] nagios isn't running well > > > what happens when you run the plugins from the command line? > > -----Original Message----- > From: Eric Hill [mailto:eric at spins.com] > Sent: Friday, January 03, 2003 1:46 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios isn't running well > > > Hi All, > > I'm just getting started with Nagios on FreeBSD, and it's (or > I'm) limping > out of the gate. I've set up two hosts, one with ping and > http and one with > just ping. Nagios isn't seeing either of them and I've been > wracking my > brain trying to figure out what is going on. Per the earlier message, > /sbin/ping is indeed suid root. I haven't been able to install > nagios-plugins from ports because it is broken somehow (both > make and gmake > break), but I have the basic checks installed in > nagios/libexec so I should > at least be able to set up basic hosts, right? Unfortunately, I get > notifications like "check_ping: %s: Warning threshold must be > integer or > percentage!" or "CRITICAL - Plugin timed out after 10 > seconds" (both for > ping). check_http gives "Socket timeout after 10 seconds" > though (presumably > it's a port 80 check) this is our main corporate webserver. Could it > possibly be because I'm running Apache2 rather than 1.x? > FreeBSD vs. Linux? > I'm going to have to choose something else if I can't figure > this out. My > sense is that Nagios shouldn't be this finicky, but for me it is. > > -eric > > hosts.cfg > --------- > # Generic host definition template > define host{ > ; The name of this host template - referenced in other host > definitions, used for template recursion/resolution > name generic-host > notifications_enabled 1 ; Host > notifications are > enabled > event_handler_enabled 1 ; Host 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 > across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > } > > # 'nt1' host definition > define host{ > use generic-host ; Name of host > template to use > host_name comet > alias Corp. File/Print Server > address xx.xx.xx.xx > check_command check-host-alive > max_check_attempts 10 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > # 'linux1' host definition > define host{ > use generic-host ; Name of host > template to use > > host_name elguapo > alias Linux Server #1 > address xx.xx.xx.xx > check_command check-host-alive > max_check_attempts 10 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > nagios.cfg > ---------- > log_file=/usr/local/nagios/var/nagios.log > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > 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=/usr/local/nagios/etc/resource.cfg > status_file=/usr/local/nagios/var/status.log > > nagios_user=nagios > nagios_group=nagios > > check_external_commands=1 > #command_check_interval=15s > command_check_interval=-1 > command_file=/usr/local/nagios/var/rw/nagios.cmd > > comment_file=/usr/local/nagios/var/comment.log > downtime_file=/usr/local/nagios/var/downtime.log > lock_file=/usr/local/nagios/var/nagios.lock > temp_file=/usr/local/nagios/var/nagios.tmp > > # 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_archive_path=/usr/local/nagios/var/archives > use_syslog=1 > > # 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_service_retries=1 > log_host_retries=1 > log_event_handlers=1 > log_passive_service_checks=1 > > #global_host_event_handler=somecommand > #global_service_event_handler=somecommand > > # 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 > > # s = Use "smart" interleave factor calculation > # x = Use an interleave factor of x, where x is a > # number greater than or equal to 1. > > # being executed. > > sleep_time=1 > > service_check_timeout=60 > host_check_timeout=30 > event_handler_timeout=30 > notification_timeout=30 > ocsp_timeout=5 > perfdata_timeout=5 > > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/status.sav > retention_update_interval=60 > use_retained_program_state=0 > interval_length=60 > > use_agressive_host_checking=0 > execute_service_checks=1 > accept_passive_service_checks=1 > > enable_notifications=1 > > #host_perfdata_command=process-host-perfdata > #service_perfdata_command=process-service-perfdata > > obsess_over_services=0 > #ocsp_command=somecommand > > # 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=1 > > check_service_freshness=1 > freshness_check_interval=60 > aggregate_status_updates=1 > status_update_interval=15 > > enable_flap_detection=1 > low_service_flap_threshold=5.0 > high_service_flap_threshold=20.0 > low_host_flap_threshold=5.0 > high_host_flap_threshold=20.0 > > # 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_chars=`~!$%^&*|'"<>?,()= > illegal_macro_output_chars=`~$&|'"<> > > admin_email=helpdesk at spins.com > admin_pager=pagenagios > > # EOF (End of file) > > services.cfg > ------------ > # Generic service definition template > define service{ > ; The 'name' of this service template, referenced in > other service > definitions > name generic-service > active_checks_enabled 1 ; Active > service checks are > enabled > passive_checks_enabled 1 ; Passive > service checks are > enabled/accepted > parallelize_check 1 ; Active > service checks > should be parallelized (disabling this can lead to major per > formance problems) > obsess_over_service 1 ; We should > obsess over this > service (if 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 > across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > } > > # Service definition > define service{ > use generic-service > ; Name of > service template to use > > host_name comet,elguapo > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_ping!100.0,20%!500.0,60% > } > > # Service definition > define service{ > use generic-service > ; Name of > service template to use > > host_name comet > service_description HTTP > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_http > } > > (etc...most cfg is stock) > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From mmcclure at pneservices.com Fri Jan 3 22:11:55 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 3 Jan 2003 15:11:55 -0600 (CST) Subject: nagios isn't running well In-Reply-To: References: Message-ID: <4879.192.168.1.9.1041628315.squirrel@xyzzy.homeip.net> Please post your command definitions for check_ping and check_http. > check_ping works fine both from a root prompt and from `su nagios` > > check_http behaves the same. > > -eric > >> -----Original Message----- >> From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] >> Sent: Friday, January 03, 2003 12:25 PM >> To: 'Eric Hill' >> Subject: RE: [Nagios-users] nagios isn't running well >> >> >> what happens when you run the plugins from the command line? >> >> -----Original Message----- >> From: Eric Hill [mailto:eric at spins.com] >> Sent: Friday, January 03, 2003 1:46 PM >> To: nagios-users at lists.sourceforge.net >> Subject: [Nagios-users] nagios isn't running well >> >> >> Hi All, >> >> I'm just getting started with Nagios on FreeBSD, and it's (or >> I'm) limping >> out of the gate. I've set up two hosts, one with ping and >> http and one with >> just ping. Nagios isn't seeing either of them and I've been >> wracking my >> brain trying to figure out what is going on. Per the earlier message, >> /sbin/ping is indeed suid root. I haven't been able to install >> nagios-plugins from ports because it is broken somehow (both >> make and gmake >> break), but I have the basic checks installed in >> nagios/libexec so I should >> at least be able to set up basic hosts, right? Unfortunately, I get >> notifications like "check_ping: %s: Warning threshold must be >> integer or >> percentage!" or "CRITICAL - Plugin timed out after 10 >> seconds" (both for >> ping). check_http gives "Socket timeout after 10 seconds" >> though (presumably >> it's a port 80 check) this is our main corporate webserver. Could it >> possibly be because I'm running Apache2 rather than 1.x? >> FreeBSD vs. Linux? >> I'm going to have to choose something else if I can't figure >> this out. My >> sense is that Nagios shouldn't be this finicky, but for me it is. >> >> -eric >> >> hosts.cfg >> --------- >> # Generic host definition template >> define host{ >> ; The name of this host template - referenced in other host >> definitions, used for template recursion/resolution >> name generic-host >> notifications_enabled 1 ; Host >> notifications are >> enabled >> event_handler_enabled 1 ; Host 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 >> across program restarts >> retain_nonstatus_information 1 ; Retain non-status >> information across program restarts >> >> register 0 ; DONT REGISTER THIS >> DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! >> } >> >> # 'nt1' host definition >> define host{ >> use generic-host ; Name of host >> template to use >> host_name comet >> alias Corp. File/Print Server >> address xx.xx.xx.xx >> check_command check-host-alive >> max_check_attempts 10 >> notification_interval 60 >> notification_period 24x7 >> notification_options d,u,r >> } >> >> # 'linux1' host definition >> define host{ >> use generic-host ; Name of host >> template to use >> >> host_name elguapo >> alias Linux Server #1 >> address xx.xx.xx.xx >> check_command check-host-alive >> max_check_attempts 10 >> notification_interval 60 >> notification_period 24x7 >> notification_options d,u,r >> } >> >> nagios.cfg >> ---------- >> log_file=/usr/local/nagios/var/nagios.log >> cfg_file=/usr/local/nagios/etc/checkcommands.cfg >> 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=/usr/local/nagios/etc/resource.cfg >> status_file=/usr/local/nagios/var/status.log >> >> nagios_user=nagios >> nagios_group=nagios >> >> check_external_commands=1 >> #command_check_interval=15s >> command_check_interval=-1 >> command_file=/usr/local/nagios/var/rw/nagios.cmd >> >> comment_file=/usr/local/nagios/var/comment.log >> downtime_file=/usr/local/nagios/var/downtime.log >> lock_file=/usr/local/nagios/var/nagios.lock >> temp_file=/usr/local/nagios/var/nagios.tmp >> >> # 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_archive_path=/usr/local/nagios/var/archives >> use_syslog=1 >> >> # 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_service_retries=1 >> log_host_retries=1 >> log_event_handlers=1 >> log_passive_service_checks=1 >> >> #global_host_event_handler=somecommand >> #global_service_event_handler=somecommand >> >> # 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 >> >> # s = Use "smart" interleave factor calculation >> # x = Use an interleave factor of x, where x is a >> # number greater than or equal to 1. >> >> # being executed. >> >> sleep_time=1 >> >> service_check_timeout=60 >> host_check_timeout=30 >> event_handler_timeout=30 >> notification_timeout=30 >> ocsp_timeout=5 >> perfdata_timeout=5 >> >> retain_state_information=1 >> state_retention_file=/usr/local/nagios/var/status.sav >> retention_update_interval=60 >> use_retained_program_state=0 >> interval_length=60 >> >> use_agressive_host_checking=0 >> execute_service_checks=1 >> accept_passive_service_checks=1 >> >> enable_notifications=1 >> >> #host_perfdata_command=process-host-perfdata >> #service_perfdata_command=process-service-perfdata >> >> obsess_over_services=0 >> #ocsp_command=somecommand >> >> # 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=1 >> >> check_service_freshness=1 >> freshness_check_interval=60 >> aggregate_status_updates=1 >> status_update_interval=15 >> >> enable_flap_detection=1 >> low_service_flap_threshold=5.0 >> high_service_flap_threshold=20.0 >> low_host_flap_threshold=5.0 >> high_host_flap_threshold=20.0 >> >> # 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_chars=`~!$%^&*|'"<>?,()= >> illegal_macro_output_chars=`~$&|'"<> >> >> admin_email=helpdesk at spins.com >> admin_pager=pagenagios >> >> # EOF (End of file) >> >> services.cfg >> ------------ >> # Generic service definition template >> define service{ >> ; The 'name' of this service template, referenced in >> other service >> definitions >> name generic-service >> active_checks_enabled 1 ; Active >> service checks are >> enabled >> passive_checks_enabled 1 ; Passive >> service checks are >> enabled/accepted >> parallelize_check 1 ; Active >> service checks >> should be parallelized (disabling this can lead to major per >> formance problems) >> obsess_over_service 1 ; We should >> obsess over this >> service (if 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 >> across program restarts >> retain_nonstatus_information 1 ; Retain non-status >> information across program restarts >> >> register 0 ; DONT REGISTER THIS >> DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! >> } >> >> # Service definition >> define service{ >> use generic-service >> ; Name of >> service template to use >> >> host_name comet,elguapo >> service_description PING >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> contact_groups nt-admins >> notification_interval 120 >> notification_period 24x7 >> notification_options c,r >> check_command check_ping!100.0,20%!500.0,60% >> } >> >> # Service definition >> define service{ >> use generic-service >> ; Name of >> service template to use >> >> host_name comet >> service_description HTTP >> is_volatile 0 >> check_period 24x7 >> max_check_attempts 3 >> normal_check_interval 5 >> retry_check_interval 1 >> contact_groups nt-admins >> notification_interval 120 >> notification_period 24x7 >> notification_options w,u,c,r >> check_command check_http >> } >> >> (etc...most cfg is stock) >> >> -- 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From eric at spins.com Fri Jan 3 22:17:46 2003 From: eric at spins.com (Eric Hill) Date: Fri, 3 Jan 2003 13:17:46 -0800 Subject: nagios isn't running well Message-ID: check-host-alive is what is configured for each of these boxes in hosts.cfg. I don't have a commands.cfg, so I'll assume you mean checkcommands.cfg, in which case the check_ping and check_http syntaxes are exactly as I've tested from the various command lines (root and nagios). -eric Here are the relevant bits from checkcommands.cfg: # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } # 'check_http' command definition define command{ command_name check_http command_line $USER1$/check_http -H $HOSTADDRESS$ } # 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 1 } > -----Original Message----- > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > Sent: Friday, January 03, 2003 01:18 PM > To: 'Eric Hill' > Subject: RE: [Nagios-users] nagios isn't running well > > > okay, then what does your commands.cfg say about > check_ping...what's the > syntax? > > -----Original Message----- > From: Eric Hill [mailto:eric at spins.com] > Sent: Friday, January 03, 2003 2:45 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] nagios isn't running well > > > check_ping works fine both from a root prompt and from `su nagios` > > check_http behaves the same. > > -eric > > > -----Original Message----- > > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > > Sent: Friday, January 03, 2003 12:25 PM > > To: 'Eric Hill' > > Subject: RE: [Nagios-users] nagios isn't running well > > > > > > what happens when you run the plugins from the command line? > > > > -----Original Message----- > > From: Eric Hill [mailto:eric at spins.com] > > Sent: Friday, January 03, 2003 1:46 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] nagios isn't running well > > > > > > Hi All, > > > > I'm just getting started with Nagios on FreeBSD, and it's (or > > I'm) limping > > out of the gate. I've set up two hosts, one with ping and > > http and one with > > just ping. Nagios isn't seeing either of them and I've been > > wracking my > > brain trying to figure out what is going on. Per the > earlier message, > > /sbin/ping is indeed suid root. I haven't been able to install > > nagios-plugins from ports because it is broken somehow (both > > make and gmake > > break), but I have the basic checks installed in > > nagios/libexec so I should > > at least be able to set up basic hosts, right? Unfortunately, I get > > notifications like "check_ping: %s: Warning threshold must be > > integer or > > percentage!" or "CRITICAL - Plugin timed out after 10 > > seconds" (both for > > ping). check_http gives "Socket timeout after 10 seconds" > > though (presumably > > it's a port 80 check) this is our main corporate webserver. Could it > > possibly be because I'm running Apache2 rather than 1.x? > > FreeBSD vs. Linux? > > I'm going to have to choose something else if I can't figure > > this out. My > > sense is that Nagios shouldn't be this finicky, but for me it is. > > > > -eric > > > > hosts.cfg > > --------- > > # Generic host definition template > > define host{ > > ; The name of this host template - referenced in other host > > definitions, used for template recursion/resolution > > name generic-host > > notifications_enabled 1 ; Host > > notifications are > > enabled > > event_handler_enabled 1 ; Host 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 > > across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > > > register 0 ; DONT REGISTER THIS > > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > > } > > > > # 'nt1' host definition > > define host{ > > use generic-host ; > Name of host > > template to use > > host_name comet > > alias Corp. File/Print Server > > address xx.xx.xx.xx > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 60 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > # 'linux1' host definition > > define host{ > > use generic-host ; > Name of host > > template to use > > > > host_name elguapo > > alias Linux Server #1 > > address xx.xx.xx.xx > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 60 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > nagios.cfg > > ---------- > > log_file=/usr/local/nagios/var/nagios.log > > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > > 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=/usr/local/nagios/etc/resource.cfg > > status_file=/usr/local/nagios/var/status.log > > > > nagios_user=nagios > > nagios_group=nagios > > > > check_external_commands=1 > > #command_check_interval=15s > > command_check_interval=-1 > > command_file=/usr/local/nagios/var/rw/nagios.cmd > > > > comment_file=/usr/local/nagios/var/comment.log > > downtime_file=/usr/local/nagios/var/downtime.log > > lock_file=/usr/local/nagios/var/nagios.lock > > temp_file=/usr/local/nagios/var/nagios.tmp > > > > # 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_archive_path=/usr/local/nagios/var/archives > > use_syslog=1 > > > > # 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_service_retries=1 > > log_host_retries=1 > > log_event_handlers=1 > > log_passive_service_checks=1 > > > > #global_host_event_handler=somecommand > > #global_service_event_handler=somecommand > > > > # 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 > > > > # s = Use "smart" interleave factor calculation > > # x = Use an interleave factor of x, where x is a > > # number greater than or equal to 1. > > > > # being executed. > > > > sleep_time=1 > > > > service_check_timeout=60 > > host_check_timeout=30 > > event_handler_timeout=30 > > notification_timeout=30 > > ocsp_timeout=5 > > perfdata_timeout=5 > > > > retain_state_information=1 > > state_retention_file=/usr/local/nagios/var/status.sav > > retention_update_interval=60 > > use_retained_program_state=0 > > interval_length=60 > > > > use_agressive_host_checking=0 > > execute_service_checks=1 > > accept_passive_service_checks=1 > > > > enable_notifications=1 > > > > #host_perfdata_command=process-host-perfdata > > #service_perfdata_command=process-service-perfdata > > > > obsess_over_services=0 > > #ocsp_command=somecommand > > > > # 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=1 > > > > check_service_freshness=1 > > freshness_check_interval=60 > > aggregate_status_updates=1 > > status_update_interval=15 > > > > enable_flap_detection=1 > > low_service_flap_threshold=5.0 > > high_service_flap_threshold=20.0 > > low_host_flap_threshold=5.0 > > high_host_flap_threshold=20.0 > > > > # 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_chars=`~!$%^&*|'"<>?,()= > > illegal_macro_output_chars=`~$&|'"<> > > > > admin_email=helpdesk at spins.com > > admin_pager=pagenagios > > > > # EOF (End of file) > > > > services.cfg > > ------------ > > # Generic service definition template > > define service{ > > ; The 'name' of this service template, referenced in > > other service > > definitions > > name generic-service > > active_checks_enabled 1 ; Active > > service checks are > > enabled > > passive_checks_enabled 1 ; Passive > > service checks are > > enabled/accepted > > parallelize_check 1 ; Active > > service checks > > should be parallelized (disabling this can lead to major per > > formance problems) > > obsess_over_service 1 ; We should > > obsess over this > > service (if 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 > > across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > > > register 0 ; DONT REGISTER THIS > > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > > } > > > > # Service definition > > define service{ > > use generic-service > > ; Name of > > service template to use > > > > host_name comet,elguapo > > service_description PING > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups nt-admins > > notification_interval 120 > > notification_period 24x7 > > notification_options c,r > > check_command > check_ping!100.0,20%!500.0,60% > > } > > > > # Service definition > > define service{ > > use generic-service > > ; Name of > > service template to use > > > > host_name comet > > service_description HTTP > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups nt-admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_http > > } > > > > (etc...most cfg is stock) > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rburnson at cps.k12.il.us Fri Jan 3 22:53:21 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Fri, 3 Jan 2003 15:53:21 -0600 Subject: Distributed Monitoring Message-ID: I am trying to setup distributed monitoring with Nagios 1.0 (Stable) on RedHat 7.2. I have the nsca daemon running on the central server, and I have been able to successfully send a service check result via nsca-send from the distributed server. The issue appears to be that the distributed server is not executing the ocsp_command. Here are the settings on the distributed server: 1. Obsess over services is enabled both globally and per service. 2. The ocsp_command is defined in nagios.cfg as ocsp_command=submit_check_result 3. "submit_check_result" is defined in the command definitions section exactly from the documentation. 4. The submit_check_result script was created in the libexec directory and the command definition points directly to this file. I can log in as nagios and run the submit_check_result shell script successfully, and the service check is received by the central server. It simply seems to be that Nagios is not executing the ocsp command with every service check. I've tried to watch the service check as they happen via the nagios.log file and even compiled nagios with debug 3. Is there a better way to debug this? Anyone have any ideas on what I may be missing? Thanks, Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 3 22:47:53 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 15:47:53 -0600 Subject: parameters for service checks from outside nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1215@PKDWB03C.ad.sprint.com> I'm going to go on a bit of a tangent here. Maybe what you're interested in doing is to have the datfiles consistent and up-to-date, and not test whether they are or not. Sure, the test would be valuable, but it might be redundant. Allow me to illustrate.... Set up an rsync server internally. (It doesn't have to be anywhere; in fact, if you can keep it on a separate server, all the better.) Always put the latest/greatest datfile on your rsync server. Run a cronjob as frequently as you'd like (once a day, once an hour, whatever) on your rsync server to grab the latest datfile from the Internet. Also set up cronjobs on each of your hosts (where the datfile needs to be kept up-to-date) to use the rsync protocol to grab this very same datfile from your rsync server and install locally. Rsync is very good at optimizing traffic. I don't think I could give a good enough description of it here. Another approach would be to set up cfengine. There may be others. To save possible repetition, I recommend you check out www.infrastructures.org. HTH. jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Thursday, January 02, 2003 6:18 PM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] parameters for service checks from outside > nagios > > > nagios-users at lists.sourceforge.netOn Thu, 2003-01-02 at > 17:45, Carroll, > Jim P [Contractor] wrote: > > I'm not entirely sure how you're retrieving the datfiles, > but it might make > > sense to run a plugin locally on the remote systems in > question. This > > plugin would scrub the datfile (eg, with grep); the result > of this plugin > > would be returned to Nagios. > The version is retreived by grepping, cutting, some awk and some other > tools on the output of the virusscanner version info. This is not the > problem. > > The problem is how to let the plugin know what the current (uptodate) > version is. I want to result the plugin OK if uptodate, WARNING on 1 > versions behind, ERROR on all other results. > > The plugin is capable of getting the current used version, > now i have to > let it compare to the latest version. This information can be > fetched of > the internet, but if all hosts gets the information on every > check, this > would consumps a lot of bandwidth. > The information of the latest version is also known on the > nagios host. > So if the information (versionnumber) can be given to the remote host, > the plugin can also get his result (without fetching extra information > of the internet). > > > Of course, I'm making some wild assumptions about your > environment, such as > > the system that hosts your datfiles is a *nix host. If > it's Windows, I'm > > not entirely certain how you'd do it. Still, you could > install OpenSSH and > > Perl on your Windows servers to facilitate this sleight of hand. > It is all Linux based. All windows checks are fase 2 for me.. ;-) > > > In case I haven't been clear, you would be best off to > write your own plugin > > to do this. > The current check is a own written shell-script plugin. But > this plugin > fetches the info from the internet. > > I did try some thing.. > method 1: check_nrpe!check_datfile > This gets the latest information from the internet. > > method 2: check_by_ssh!"/bin/nagios/libexec/check_datfile2 4240" > With this method, the latest version is given to the remote host, and > not from the internet (here 4240). But this is now static in the > configuration file. I can't get this information variable > (readed from a > file or something, before it is passed to a remote host). > > > The only solution i can see now, is to call a local plugin on the > nagios-host. This shell scripts than uses nagios plugins > (check_by_ssh, > or check_nrpe) to get some result from a remote host, and > calculate the > result. > This solution is not wanted due to resoures on the nagios-server. > > With greets, > > Lennard Bakker > > > > > jc > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Tuesday, December 31, 2002 4:26 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] parameters for service checks from outside > > > nagios > > > > > > > > > > > > Is it possible to import variable date to use with a > service check? > > > > > > My problem: > > > I want to let nagios to check anti virus datfiles on remote > > > systems. Now > > > i do this dat each remote system fetch the latest version > info (800k) > > > and verifies the version info, to the installed version > (no update is > > > done). The plugin reports OK if datfile is uptodate, > warning when 1 > > > version behind and ERROR if more than 1 version behind > (or installed > > > version is newer then the official downloadable). > > > > > > The problem is that every client fetches the 800k just > for verify the > > > version number (4 bytes number). > > > > > > I have the lastest version info on the nagios host system > (in a file, > > > just 4 bytes in size). Is it possible to add this info > from a file to > > > the service check, so that the version number is given to te > > > remote host > > > (by nrpe or chack_by_ssh). The remote host doesn't have > to access a > > > remote host (internet) for the current information. > > > > > > Lennard > > > > -------------- next part -------------- An HTML attachment was scrubbed... URL: From eric at spins.com Fri Jan 3 22:53:19 2003 From: eric at spins.com (Eric Hill) Date: Fri, 3 Jan 2003 13:53:19 -0800 Subject: nagios isn't running well Message-ID: Ah, I hadn't checked this, but I really wouldn't know what to check for anyway. -eric # Generic service definition template define service{ ; The 'name' of this service template, referenced in other service definitions name generic-service active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized ; (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } # Service definition define service{ use generic-service ; Name of service template to use host_name comet,elguapo service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } # Service definition define service{ use generic-service ; Name of service template to use host_name comet service_description HTTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_http } -eric > -----Original Message----- > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > Sent: Friday, January 03, 2003 01:54 PM > To: 'Eric Hill' > Subject: RE: [Nagios-users] nagios isn't running well > > > okay, so now what does the service entry look like for the check_ping? > > -----Original Message----- > From: Eric Hill [mailto:eric at spins.com] > Sent: Friday, January 03, 2003 3:18 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] nagios isn't running well > > > check-host-alive is what is configured for each of these > boxes in hosts.cfg. > I don't have a commands.cfg, so I'll assume you mean > checkcommands.cfg, in > which case the check_ping and check_http syntaxes are exactly > as I've tested > from the various command lines (root and nagios). > > -eric > > Here are the relevant bits from checkcommands.cfg: > > # 'check_ping' command definition > define command{ > command_name check_ping > command_line $USER1$/check_ping -H $HOSTADDRESS$ > -w $ARG1$ -c > $ARG2$ -p 5 > } > > # 'check_http' command definition > define command{ > command_name check_http > command_line $USER1$/check_http -H $HOSTADDRESS$ > } > > # 'check-host-alive' command definition > define command{ > command_name check-host-alive > command_line $USER1$/check_ping -H $HOSTADDRESS$ > -w 3000.0,80% -c > 5000.0,100% -p 1 > } > > > > > > > -----Original Message----- > > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > > Sent: Friday, January 03, 2003 01:18 PM > > To: 'Eric Hill' > > Subject: RE: [Nagios-users] nagios isn't running well > > > > > > okay, then what does your commands.cfg say about > > check_ping...what's the > > syntax? > > > > -----Original Message----- > > From: Eric Hill [mailto:eric at spins.com] > > Sent: Friday, January 03, 2003 2:45 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] nagios isn't running well > > > > > > check_ping works fine both from a root prompt and from `su nagios` > > > > check_http behaves the same. > > > > -eric > > > > > -----Original Message----- > > > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > > > Sent: Friday, January 03, 2003 12:25 PM > > > To: 'Eric Hill' > > > Subject: RE: [Nagios-users] nagios isn't running well > > > > > > > > > what happens when you run the plugins from the command line? > > > > > > -----Original Message----- > > > From: Eric Hill [mailto:eric at spins.com] > > > Sent: Friday, January 03, 2003 1:46 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] nagios isn't running well > > > > > > > > > Hi All, > > > > > > I'm just getting started with Nagios on FreeBSD, and it's (or > > > I'm) limping > > > out of the gate. I've set up two hosts, one with ping and > > > http and one with > > > just ping. Nagios isn't seeing either of them and I've been > > > wracking my > > > brain trying to figure out what is going on. Per the > > earlier message, > > > /sbin/ping is indeed suid root. I haven't been able to install > > > nagios-plugins from ports because it is broken somehow (both > > > make and gmake > > > break), but I have the basic checks installed in > > > nagios/libexec so I should > > > at least be able to set up basic hosts, right? > Unfortunately, I get > > > notifications like "check_ping: %s: Warning threshold must be > > > integer or > > > percentage!" or "CRITICAL - Plugin timed out after 10 > > > seconds" (both for > > > ping). check_http gives "Socket timeout after 10 seconds" > > > though (presumably > > > it's a port 80 check) this is our main corporate > webserver. Could it > > > possibly be because I'm running Apache2 rather than 1.x? > > > FreeBSD vs. Linux? > > > I'm going to have to choose something else if I can't figure > > > this out. My > > > sense is that Nagios shouldn't be this finicky, but for me it is. > > > > > > -eric > > > > > > hosts.cfg > > > --------- > > > # Generic host definition template > > > define host{ > > > ; The name of this host template - referenced in > other host > > > definitions, used for template recursion/resolution > > > name generic-host > > > notifications_enabled 1 ; Host > > > notifications are > > > enabled > > > event_handler_enabled 1 ; Host 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 > > > across program restarts > > > retain_nonstatus_information 1 ; Retain > non-status > > > information across program restarts > > > > > > register 0 ; DONT > REGISTER THIS > > > DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! > > > } > > > > > > # 'nt1' host definition > > > define host{ > > > use generic-host ; > > Name of host > > > template to use > > > host_name comet > > > alias Corp. File/Print Server > > > address xx.xx.xx.xx > > > check_command check-host-alive > > > max_check_attempts 10 > > > notification_interval 60 > > > notification_period 24x7 > > > notification_options d,u,r > > > } > > > > > > # 'linux1' host definition > > > define host{ > > > use generic-host ; > > Name of host > > > template to use > > > > > > host_name elguapo > > > alias Linux Server #1 > > > address xx.xx.xx.xx > > > check_command check-host-alive > > > max_check_attempts 10 > > > notification_interval 60 > > > notification_period 24x7 > > > notification_options d,u,r > > > } > > > > > > nagios.cfg > > > ---------- > > > log_file=/usr/local/nagios/var/nagios.log > > > cfg_file=/usr/local/nagios/etc/checkcommands.cfg > > > 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=/usr/local/nagios/etc/resource.cfg > > > status_file=/usr/local/nagios/var/status.log > > > > > > nagios_user=nagios > > > nagios_group=nagios > > > > > > check_external_commands=1 > > > #command_check_interval=15s > > > command_check_interval=-1 > > > command_file=/usr/local/nagios/var/rw/nagios.cmd > > > > > > comment_file=/usr/local/nagios/var/comment.log > > > downtime_file=/usr/local/nagios/var/downtime.log > > > lock_file=/usr/local/nagios/var/nagios.lock > > > temp_file=/usr/local/nagios/var/nagios.tmp > > > > > > # 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_archive_path=/usr/local/nagios/var/archives > > > use_syslog=1 > > > > > > # 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_service_retries=1 > > > log_host_retries=1 > > > log_event_handlers=1 > > > log_passive_service_checks=1 > > > > > > #global_host_event_handler=somecommand > > > #global_service_event_handler=somecommand > > > > > > # 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 > > > > > > # s = Use "smart" interleave factor calculation > > > # x = Use an interleave factor of x, where x is a > > > # number greater than or equal to 1. > > > > > > # being executed. > > > > > > sleep_time=1 > > > > > > service_check_timeout=60 > > > host_check_timeout=30 > > > event_handler_timeout=30 > > > notification_timeout=30 > > > ocsp_timeout=5 > > > perfdata_timeout=5 > > > > > > retain_state_information=1 > > > state_retention_file=/usr/local/nagios/var/status.sav > > > retention_update_interval=60 > > > use_retained_program_state=0 > > > interval_length=60 > > > > > > use_agressive_host_checking=0 > > > execute_service_checks=1 > > > accept_passive_service_checks=1 > > > > > > enable_notifications=1 > > > > > > #host_perfdata_command=process-host-perfdata > > > #service_perfdata_command=process-service-perfdata > > > > > > obsess_over_services=0 > > > #ocsp_command=somecommand > > > > > > # 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=1 > > > > > > check_service_freshness=1 > > > freshness_check_interval=60 > > > aggregate_status_updates=1 > > > status_update_interval=15 > > > > > > enable_flap_detection=1 > > > low_service_flap_threshold=5.0 > > > high_service_flap_threshold=20.0 > > > low_host_flap_threshold=5.0 > > > high_host_flap_threshold=20.0 > > > > > > # 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_chars=`~!$%^&*|'"<>?,()= > > > illegal_macro_output_chars=`~$&|'"<> > > > > > > admin_email=helpdesk at spins.com > > > admin_pager=pagenagios > > > > > > # EOF (End of file) > > > > > > services.cfg > > > ------------ > > > # Generic service definition template > > > define service{ > > > ; The 'name' of this service template, referenced in > > > other service > > > definitions > > > name generic-service > > > active_checks_enabled 1 ; Active > > > service checks are > > > enabled > > > passive_checks_enabled 1 ; Passive > > > service checks are > > > enabled/accepted > > > parallelize_check 1 ; Active > > > service checks > > > should be parallelized (disabling this can lead to major per > > > formance problems) > > > obsess_over_service 1 ; We should > > > obsess over this > > > service (if 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 > > > across program restarts > > > retain_nonstatus_information 1 ; Retain > non-status > > > information across program restarts > > > > > > register 0 ; DONT > REGISTER THIS > > > DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! > > > } > > > > > > # Service definition > > > define service{ > > > use generic-service > > > ; Name of > > > service template to use > > > > > > host_name comet,elguapo > > > service_description PING > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 3 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > contact_groups nt-admins > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options c,r > > > check_command > > check_ping!100.0,20%!500.0,60% > > > } > > > > > > # Service definition > > > define service{ > > > use generic-service > > > ; Name of > > > service template to use > > > > > > host_name comet > > > service_description HTTP > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 3 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > contact_groups nt-admins > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options w,u,c,r > > > check_command check_http > > > } > > > > > > (etc...most cfg is stock) > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From smcavoy at megawheels.com Fri Jan 3 23:19:04 2003 From: smcavoy at megawheels.com (Sean McAvoy) Date: 03 Jan 2003 17:19:04 -0500 Subject: question about host groups and distributed monitoring. Message-ID: <1041632344.12672.8.camel@tech03.toronto.drive-megawheels.net> Hello, I've got 2 remote nagios servers that do all the service checks, and one central server that accepts the data from the remote servers,displays the info, sends the alerts. I've got a group of systems I want to monitor as a hostgroup, but some of the systems are accessible from one remote system, and the rest from the other remote system. My question is, is it possible to have each remote system have a hostgroup containing the hosts it can check, and then on the central server have one hostgroup that includes hosts from each, all using the same name. Would this then group them properly in the html display? Any ideas/comments/etc. would be appreciated. -Sean ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rburnson at cps.k12.il.us Fri Jan 3 23:34:39 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Fri, 3 Jan 2003 16:34:39 -0600 Subject: question about host groups and distributed mon itoring. Message-ID: That should work out fine for you. Just keep in mind what will happen if one of those remote servers goes down or can't communicate with the central server. If the central server cannot then actively check those services you will be better off following the documentation for distributed servers and use the "staleservice.sh" script for the service check on the central server. More info can be found about this in the Nagios docs (distributed.html). Regards, Richard -----Original Message----- From: Sean McAvoy [mailto:smcavoy at megawheels.com] Sent: Friday, January 03, 2003 4:19 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] question about host groups and distributed monitoring. Hello, I've got 2 remote nagios servers that do all the service checks, and one central server that accepts the data from the remote servers,displays the info, sends the alerts. I've got a group of systems I want to monitor as a hostgroup, but some of the systems are accessible from one remote system, and the rest from the other remote system. My question is, is it possible to have each remote system have a hostgroup containing the hosts it can check, and then on the central server have one hostgroup that includes hosts from each, all using the same name. Would this then group them properly in the html display? Any ideas/comments/etc. would be appreciated. -Sean ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gwichman at zantaz.com Fri Jan 3 23:45:44 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Fri, 3 Jan 2003 14:45:44 -0800 Subject: Nagios centralized server BUG??? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4117@zanexch.zantaz.com> Well I'm about to give up and install this central server on another box. Running it on RH8 and it's driving me nuts. I have 1 central server accepting only passive service checks. Also 2 distributed servers which submit passive checks to the centralized server's nsca daemon. Watching /var/log/messages I can clearly see all the EXTERNAL COMMANDS being submitted exactly as I'd expect them to. All services are reporting and showing up OK including Ping. Yet when I look at "host detail" or "service detail" something doesn't mesh.. Either there's a bug in nagios or I seriously have something wacky going on here.. Despite the fact that all services report ok, under "host details" I have a variety of servers showing up as RED/DOWN.. Last Check is recent. Status Information is always "CRITICAL - Plugin timed out after 10 seconds". Status is either UNREACHABLE (most of them), or DOWN (1 of them). Ok so I click on "service details".. over there all services report "OK" and green. For some odd reason the Ping services are old in the last checked column. Like 7 hours.. Even though I can watch /var/log/messages and see that I'm receiving PING updates as OK regularly.. The other services mostly have recent updates but there are a lot of them that are 1,2, and even 3 hours out of date. Why is my services detail page so out of date? Someone points out that I may have multiple nagios servers running on the machine and well yes that's partially true. Initially when I start nagios it spawns one nagios -d process but soon they start to multiply. Long term I have seen them climb up to 4000 which seems excessive to me. Far as I can tell they don't reduce in numbers nor do they seem to go much higher then 4000. We're running netsaint in a much larger distributed environment here checking hundreds and hundreds of services and it also spawns multiple netsaint processes.. but not as many.. seems to top out usually around 500.. so as far as I can tell this behavior of multiple processes is normal. So what the hell is going on here? Does anyone out there run a distributed environment with a centralized server? 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 rvelez at sunguruz.com Fri Jan 3 23:49:46 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 3 Jan 2003 17:49:46 -0500 Subject: NAgios Setup errors In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E120B@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E120B@PKDWB03C.ad.sprint.com> Message-ID: <001b01c2b37a$6a30a4b0$0300a8c0@sunguruz.com> Nothing still get the same errors, I am going to try to recompile and try doing the configs over, one thing that is strange the Reporting aspect is working but I get these errors in apache log: [Fri Jan 3 17:20:53 2003] [error] [client 192.168.0.3] Premature end of script headers: /usr/local/nagios/sbin/histogram.cgi ld.so.1: trends.cgi: fatal: libpng12.so.0: open failed: No such file or directory any idea? Thanks for your help Regards -Radames -----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: Friday, January 03, 2003 12:14 PM To: rvelez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NAgios Setup errors This is a bit speculative, so if you find a better answer, go with that. Here are a couple things to try: 1) Check the hostgroup definition paragraph for hidden/special characters. (In vi, ":set list".) 2) Try simplifying the hostname to one without dots (just as an experiment) in both the hosts.cfg and hostgroups.cfg files. Restart nagios and see if that's any different. jc > -----Original Message----- > From: rvelez [mailto:rvelez at sunguruz.com] > Sent: Friday, January 03, 2003 10:07 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] NAgios Setup errors > > > Hi Guys, > > So I got nagios installed fine and started doing some > configs. When i > run /usr/local/nagios/bin/nagios -d > /usr/local/nagios/etc/nagios.cfg I get > this error: > > Reading configuration data... > > Error: Could not find host 'nsmx1.sunguruz.com' > > Error: Could not expand member hosts specified in hostgroup > (config file > '/usr/local/nagios/etc/hostgroups.cfg', line 21) > > In my hostgroups.cfg i have: > > # 'sun-servers' host group definition > define hostgroup{ > hostgroup_name sun > alias Sun-Servers > contact_groups SystemAdmins > members nsmx1.sunguruz.com > } > > It says I have an error on line 21, but line 21 is the define > hostgroup{ > piece of it. Here is my hosts.cfg: > > # 'sun-servers' host definition > define host{ > host_name nsmx1.sugnuruz.com > alias nsmx1 Sun Servers > address 192.168.0.2 > check_command check-host-alive > max_check_attempts 5 > notification_interval 60 > notification_period 24x7 > notification_options d,u,r > } > > IS thier somthing I am missing? Thanks for your help > > -Radames > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bakkerl at lamp.xs4all.nl Fri Jan 3 23:43:16 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 03 Jan 2003 23:43:16 +0100 Subject: parameters for service checks from outside nagios In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1215@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1215@PKDWB03C.ad.sprint.com> Message-ID: <1041633788.17635.57.camel@peitha.home.mercurius96.nl> On Fri, 2003-01-03 at 22:47, Carroll, Jim P [Contractor] wrote: > I'm going to go on a bit of a tangent here. Maybe what you're > interested in doing is to have the datfiles consistent and up-to-date, > and not test whether they are or not. Sure, the test would be > valuable, but it might be redundant. Allow me to illustrate.... > > Set up an rsync server internally. (It doesn't have to be anywhere; > in fact, if you can keep it on a separate server, all the better.) > Always put the latest/greatest datfile on your rsync server. Run a > cronjob as frequently as you'd like (once a day, once an hour, > whatever) on your rsync server to grab the latest datfile from the > Internet. Also set up cronjobs on each of your hosts (where the > datfile needs to be kept up-to-date) to use the rsync protocol to grab > this very same datfile from your rsync server and install locally. Above will do if you have enough bandwidth. But (there is always a but), some hosts i want to check have a bandwidth limit of 33k6. For these hosts i don't want a daily update (or more). For these hosts there is a weekly cronjob now. But virus-dat files can be get updates more than once a week (normal once a week). A nagios check (lets say 4 times a day), would only cost 100kb (?) of data communication. But with this check i could see of the datfile on one of these host is uptodate. If the check would go on ERROR (2 or more version behind), a manual update of these hosts is wanted (the organization policy is uptodate, but 1 version behind wouldn't kill me :) The bandwidth problem is why i want the check. > jc > > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Thursday, January 02, 2003 6:18 PM > > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] parameters for service checks from > outside > > nagios > > > > > > nagios-users at lists.sourceforge.netOn Thu, 2003-01-02 at > > 17:45, Carroll, > > Jim P [Contractor] wrote: > > > I'm not entirely sure how you're retrieving the datfiles, > > but it might make > > > sense to run a plugin locally on the remote systems in > > question. This > > > plugin would scrub the datfile (eg, with grep); the result > > of this plugin > > > would be returned to Nagios. > > The version is retreived by grepping, cutting, some awk and some > other > > tools on the output of the virusscanner version info. This is not > the > > problem. > > > > The problem is how to let the plugin know what the current > (uptodate) > > version is. I want to result the plugin OK if uptodate, WARNING on 1 > > versions behind, ERROR on all other results. > > > > The plugin is capable of getting the current used version, > > now i have to > > let it compare to the latest version. This information can be > > fetched of > > the internet, but if all hosts gets the information on every > > check, this > > would consumps a lot of bandwidth. > > The information of the latest version is also known on the > > nagios host. > > So if the information (versionnumber) can be given to the remote > host, > > the plugin can also get his result (without fetching extra > information > > of the internet). > > > > > Of course, I'm making some wild assumptions about your > > environment, such as > > > the system that hosts your datfiles is a *nix host. If > > it's Windows, I'm > > > not entirely certain how you'd do it. Still, you could > > install OpenSSH and > > > Perl on your Windows servers to facilitate this sleight of hand. > > It is all Linux based. All windows checks are fase 2 for me.. ;-) > > > > > In case I haven't been clear, you would be best off to > > write your own plugin > > > to do this. > > The current check is a own written shell-script plugin. But > > this plugin > > fetches the info from the internet. > > > > I did try some thing.. > > method 1: check_nrpe!check_datfile > > This gets the latest information from the internet. > > > > method 2: check_by_ssh!"/bin/nagios/libexec/check_datfile2 4240" > > With this method, the latest version is given to the remote host, > and > > not from the internet (here 4240). But this is now static in the > > configuration file. I can't get this information variable > > (readed from a > > file or something, before it is passed to a remote host). > > > > > > The only solution i can see now, is to call a local plugin on the > > nagios-host. This shell scripts than uses nagios plugins > > (check_by_ssh, > > or check_nrpe) to get some result from a remote host, and > > calculate the > > result. > > This solution is not wanted due to resoures on the nagios-server. > > > > With greets, > > > > Lennard Bakker > > > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > Sent: Tuesday, December 31, 2002 4:26 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] parameters for service checks from > outside > > > > nagios > > > > > > > > > > > > > > > > Is it possible to import variable date to use with a > > service check? > > > > > > > > My problem: > > > > I want to let nagios to check anti virus datfiles on remote > > > > systems. Now > > > > i do this dat each remote system fetch the latest version > > info (800k) > > > > and verifies the version info, to the installed version > > (no update is > > > > done). The plugin reports OK if datfile is uptodate, > > warning when 1 > > > > version behind and ERROR if more than 1 version behind > > (or installed > > > > version is newer then the official downloadable). > > > > > > > > The problem is that every client fetches the 800k just > > for verify the > > > > version number (4 bytes number). > > > > > > > > I have the lastest version info on the nagios host system > > (in a file, > > > > just 4 bytes in size). Is it possible to add this info > > from a file to > > > > the service check, so that the version number is given to te > > > > remote host > > > > (by nrpe or chack_by_ssh). The remote host doesn't have > > to access a > > > > remote host (internet) for the current information. > > > > > > > > Lennard > > > > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 23:54:50 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 16:54:50 -0600 Subject: parameters for service checks from outside nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C9@PKDWB03C.ad.sprint.com> It doesn't sound like you're familiar with rsync. It's quite thrifty with bandwidth. >From the man page: [quote] rsync is a program that behaves in much the same way that rcp does, but has many more options and uses the rsync remote-update protocol to greatly speed up file transfers when the destination file already exists. The rsync remote-update protocol allows rsync to transfer just the differences between two sets of files across the network link, using an efficient checksum-search algorithm described in the technical report that accompanies this package. [end quote] So, let's say you have an 800KB datfile, and every day the vendor adds another 5KB to the end of the file. Only that difference will get transferred, not the entire file. Even if the vendor added 50KB per day, you're still under the proposed 100KB that you speculate Nagios will cost you (even taking the rsync remote-update protocol overhead into consideration). Food for thought. jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Friday, January 03, 2003 4:43 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] parameters for service checks from outside > nagios > > > On Fri, 2003-01-03 at 22:47, Carroll, Jim P [Contractor] wrote: > > I'm going to go on a bit of a tangent here. Maybe what you're > > interested in doing is to have the datfiles consistent and > up-to-date, > > and not test whether they are or not. Sure, the test would be > > valuable, but it might be redundant. Allow me to illustrate.... > > > > Set up an rsync server internally. (It doesn't have to be anywhere; > > in fact, if you can keep it on a separate server, all the better.) > > Always put the latest/greatest datfile on your rsync server. Run a > > cronjob as frequently as you'd like (once a day, once an hour, > > whatever) on your rsync server to grab the latest datfile from the > > Internet. Also set up cronjobs on each of your hosts (where the > > datfile needs to be kept up-to-date) to use the rsync > protocol to grab > > this very same datfile from your rsync server and install locally. > > Above will do if you have enough bandwidth. But (there is > always a but), > some hosts i want to check have a bandwidth limit of 33k6. > For these hosts i don't want a daily update (or more). For these hosts > there is a weekly cronjob now. > But virus-dat files can be get updates more than once a week (normal > once a week). > > A nagios check (lets say 4 times a day), would only cost 100kb (?) of > data communication. But with this check i could see of the datfile on > one of these host is uptodate. If the check would go on ERROR > (2 or more > version behind), a manual update of these hosts is wanted (the > organization policy is uptodate, but 1 version behind wouldn't kill me > :) > > The bandwidth problem is why i want the check. > > > > jc > > > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Thursday, January 02, 2003 6:18 PM > > > To: Carroll, Jim P [Contractor]; > nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] parameters for service checks from > > outside > > > nagios > > > > > > > > > nagios-users at lists.sourceforge.netOn Thu, 2003-01-02 at > > > 17:45, Carroll, > > > Jim P [Contractor] wrote: > > > > I'm not entirely sure how you're retrieving the datfiles, > > > but it might make > > > > sense to run a plugin locally on the remote systems in > > > question. This > > > > plugin would scrub the datfile (eg, with grep); the result > > > of this plugin > > > > would be returned to Nagios. > > > The version is retreived by grepping, cutting, some awk and some > > other > > > tools on the output of the virusscanner version info. This is not > > the > > > problem. > > > > > > The problem is how to let the plugin know what the current > > (uptodate) > > > version is. I want to result the plugin OK if uptodate, > WARNING on 1 > > > versions behind, ERROR on all other results. > > > > > > The plugin is capable of getting the current used version, > > > now i have to > > > let it compare to the latest version. This information can be > > > fetched of > > > the internet, but if all hosts gets the information on every > > > check, this > > > would consumps a lot of bandwidth. > > > The information of the latest version is also known on the > > > nagios host. > > > So if the information (versionnumber) can be given to the remote > > host, > > > the plugin can also get his result (without fetching extra > > information > > > of the internet). > > > > > > > Of course, I'm making some wild assumptions about your > > > environment, such as > > > > the system that hosts your datfiles is a *nix host. If > > > it's Windows, I'm > > > > not entirely certain how you'd do it. Still, you could > > > install OpenSSH and > > > > Perl on your Windows servers to facilitate this sleight of hand. > > > It is all Linux based. All windows checks are fase 2 for me.. ;-) > > > > > > > In case I haven't been clear, you would be best off to > > > write your own plugin > > > > to do this. > > > The current check is a own written shell-script plugin. But > > > this plugin > > > fetches the info from the internet. > > > > > > I did try some thing.. > > > method 1: check_nrpe!check_datfile > > > This gets the latest information from the internet. > > > > > > method 2: check_by_ssh!"/bin/nagios/libexec/check_datfile2 4240" > > > With this method, the latest version is given to the remote host, > > and > > > not from the internet (here 4240). But this is now static in the > > > configuration file. I can't get this information variable > > > (readed from a > > > file or something, before it is passed to a remote host). > > > > > > > > > The only solution i can see now, is to call a local plugin on the > > > nagios-host. This shell scripts than uses nagios plugins > > > (check_by_ssh, > > > or check_nrpe) to get some result from a remote host, and > > > calculate the > > > result. > > > This solution is not wanted due to resoures on the nagios-server. > > > > > > With greets, > > > > > > Lennard Bakker > > > > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > Sent: Tuesday, December 31, 2002 4:26 PM > > > > > To: nagios-users at lists.sourceforge.net > > > > > Subject: [Nagios-users] parameters for service checks from > > outside > > > > > nagios > > > > > > > > > > > > > > > > > > > > Is it possible to import variable date to use with a > > > service check? > > > > > > > > > > My problem: > > > > > I want to let nagios to check anti virus datfiles on remote > > > > > systems. Now > > > > > i do this dat each remote system fetch the latest version > > > info (800k) > > > > > and verifies the version info, to the installed version > > > (no update is > > > > > done). The plugin reports OK if datfile is uptodate, > > > warning when 1 > > > > > version behind and ERROR if more than 1 version behind > > > (or installed > > > > > version is newer then the official downloadable). > > > > > > > > > > The problem is that every client fetches the 800k just > > > for verify the > > > > > version number (4 bytes number). > > > > > > > > > > I have the lastest version info on the nagios host system > > > (in a file, > > > > > just 4 bytes in size). Is it possible to add this info > > > from a file to > > > > > the service check, so that the version number is given to te > > > > > remote host > > > > > (by nrpe or chack_by_ssh). The remote host doesn't have > > > to access a > > > > > remote host (internet) for the current information. > > > > > > > > > > Lennard > > > > > > > > > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rvelez at sunguruz.com Sat Jan 4 00:01:37 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 3 Jan 2003 18:01:37 -0500 Subject: NAgios Setup errors In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1218@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1218@PKDWB03C.ad.sprint.com> Message-ID: <001c01c2b37c$11c25420$0300a8c0@sunguruz.com> Yes I do have it installed, I will give it a shot, Thanks so much Jim. Regards, -Radames -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Friday, January 03, 2003 5:58 PM To: rvelez; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NAgios Setup errors Do you have libpng12.so.0 installed? If so, you need to add the following to httpd.conf: SetENV LD_LIBRARY_PATH /usr/local/lib (assuming you have libpng12.so.0 installed there, of course). Don't forget to restart Apache. jc > -----Original Message----- > From: rvelez [mailto:rvelez at sunguruz.com] > Sent: Friday, January 03, 2003 4:50 PM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NAgios Setup errors > > > Nothing still get the same errors, I am going to try to recompile and > try doing the configs over, one thing that is strange the Reporting > aspect is working but I get these errors in apache log: > > [Fri Jan 3 17:20:53 2003] [error] [client 192.168.0.3] > Premature end of > script headers: /usr/local/nagios/sbin/histogram.cgi > ld.so.1: trends.cgi: fatal: libpng12.so.0: open failed: No > such file or > directory > > any idea? > > Thanks for your help > > Regards > > -Radames > > -----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: Friday, January 03, 2003 12:14 PM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NAgios Setup errors > > This is a bit speculative, so if you find a better answer, go > with that. > Here are a couple things to try: > > 1) Check the hostgroup definition paragraph for hidden/special > characters. (In vi, ":set list".) > > 2) Try simplifying the hostname to one without dots (just as an > experiment) in both the hosts.cfg and hostgroups.cfg files. > > Restart nagios and see if that's any different. > > jc > > > -----Original Message----- > > From: rvelez [mailto:rvelez at sunguruz.com] > > Sent: Friday, January 03, 2003 10:07 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] NAgios Setup errors > > > > > > Hi Guys, > > > > So I got nagios installed fine and started doing some > > configs. When i > > run /usr/local/nagios/bin/nagios -d > > /usr/local/nagios/etc/nagios.cfg I get > > this error: > > > > Reading configuration data... > > > > Error: Could not find host 'nsmx1.sunguruz.com' > > > > Error: Could not expand member hosts specified in hostgroup > > (config file > > '/usr/local/nagios/etc/hostgroups.cfg', line 21) > > > > In my hostgroups.cfg i have: > > > > # 'sun-servers' host group definition > > define hostgroup{ > > hostgroup_name sun > > alias Sun-Servers > > contact_groups SystemAdmins > > members nsmx1.sunguruz.com > > } > > > > It says I have an error on line 21, but line 21 is the define > > hostgroup{ > > piece of it. Here is my hosts.cfg: > > > > # 'sun-servers' host definition > > define host{ > > host_name nsmx1.sugnuruz.com > > alias nsmx1 Sun Servers > > address 192.168.0.2 > > check_command check-host-alive > > max_check_attempts 5 > > notification_interval 60 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > IS thier somthing I am missing? Thanks for your help > > > > -Radames > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 23:58:26 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 16:58:26 -0600 Subject: NAgios Setup errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1218@PKDWB03C.ad.sprint.com> Do you have libpng12.so.0 installed? If so, you need to add the following to httpd.conf: SetENV LD_LIBRARY_PATH /usr/local/lib (assuming you have libpng12.so.0 installed there, of course). Don't forget to restart Apache. jc > -----Original Message----- > From: rvelez [mailto:rvelez at sunguruz.com] > Sent: Friday, January 03, 2003 4:50 PM > To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NAgios Setup errors > > > Nothing still get the same errors, I am going to try to recompile and > try doing the configs over, one thing that is strange the Reporting > aspect is working but I get these errors in apache log: > > [Fri Jan 3 17:20:53 2003] [error] [client 192.168.0.3] > Premature end of > script headers: /usr/local/nagios/sbin/histogram.cgi > ld.so.1: trends.cgi: fatal: libpng12.so.0: open failed: No > such file or > directory > > any idea? > > Thanks for your help > > Regards > > -Radames > > -----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: Friday, January 03, 2003 12:14 PM > To: rvelez; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NAgios Setup errors > > This is a bit speculative, so if you find a better answer, go > with that. > Here are a couple things to try: > > 1) Check the hostgroup definition paragraph for hidden/special > characters. (In vi, ":set list".) > > 2) Try simplifying the hostname to one without dots (just as an > experiment) in both the hosts.cfg and hostgroups.cfg files. > > Restart nagios and see if that's any different. > > jc > > > -----Original Message----- > > From: rvelez [mailto:rvelez at sunguruz.com] > > Sent: Friday, January 03, 2003 10:07 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] NAgios Setup errors > > > > > > Hi Guys, > > > > So I got nagios installed fine and started doing some > > configs. When i > > run /usr/local/nagios/bin/nagios -d > > /usr/local/nagios/etc/nagios.cfg I get > > this error: > > > > Reading configuration data... > > > > Error: Could not find host 'nsmx1.sunguruz.com' > > > > Error: Could not expand member hosts specified in hostgroup > > (config file > > '/usr/local/nagios/etc/hostgroups.cfg', line 21) > > > > In my hostgroups.cfg i have: > > > > # 'sun-servers' host group definition > > define hostgroup{ > > hostgroup_name sun > > alias Sun-Servers > > contact_groups SystemAdmins > > members nsmx1.sunguruz.com > > } > > > > It says I have an error on line 21, but line 21 is the define > > hostgroup{ > > piece of it. Here is my hosts.cfg: > > > > # 'sun-servers' host definition > > define host{ > > host_name nsmx1.sugnuruz.com > > alias nsmx1 Sun Servers > > address 192.168.0.2 > > check_command check-host-alive > > max_check_attempts 5 > > notification_interval 60 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > IS thier somthing I am missing? Thanks for your help > > > > -Radames > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rburnson at cps.k12.il.us Sat Jan 4 00:10:22 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Fri, 3 Jan 2003 17:10:22 -0600 Subject: Nagios centralized server BUG??? Message-ID: I tried running Nagios on RH 8.0 as well. (Part of my plan to setup a distributed system, see previous e-mail) I left the existing server running RH 7.2, and on a duplicate machine with the exact same hardware I installed RH 8.0. (Dual 1 Ghz processes and 1 GB RAM, in the same model server) I installed nagios and moved the configs over from the 7.2 box. While the 7.2 box has run w/o a hitch for 1.5 years, the RH 8.0 box would run out of memory and the kernel would kill the nagios process(es). So I blew away Rh 8.0 and installed 7.2 on the box, and was able to run the Nagios setup the same as the original. Not sure what gives, but it seems like 8.0 has some bugs in it that red Hat needs to still work out. So my recommendation is to run it on 7.2 or 7.3 until 8.x is stable. Richard -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Friday, January 03, 2003 4:46 PM To: Nagios (E-mail) Subject: [Nagios-users] Nagios centralized server BUG??? Well I'm about to give up and install this central server on another box. Running it on RH8 and it's driving me nuts. I have 1 central server accepting only passive service checks. Also 2 distributed servers which submit passive checks to the centralized server's nsca daemon. Watching /var/log/messages I can clearly see all the EXTERNAL COMMANDS being submitted exactly as I'd expect them to. All services are reporting and showing up OK including Ping. Yet when I look at "host detail" or "service detail" something doesn't mesh.. Either there's a bug in nagios or I seriously have something wacky going on here.. Despite the fact that all services report ok, under "host details" I have a variety of servers showing up as RED/DOWN.. Last Check is recent. Status Information is always "CRITICAL - Plugin timed out after 10 seconds". Status is either UNREACHABLE (most of them), or DOWN (1 of them). Ok so I click on "service details".. over there all services report "OK" and green. For some odd reason the Ping services are old in the last checked column. Like 7 hours.. Even though I can watch /var/log/messages and see that I'm receiving PING updates as OK regularly.. The other services mostly have recent updates but there are a lot of them that are 1,2, and even 3 hours out of date. Why is my services detail page so out of date? Someone points out that I may have multiple nagios servers running on the machine and well yes that's partially true. Initially when I start nagios it spawns one nagios -d process but soon they start to multiply. Long term I have seen them climb up to 4000 which seems excessive to me. Far as I can tell they don't reduce in numbers nor do they seem to go much higher then 4000. We're running netsaint in a much larger distributed environment here checking hundreds and hundreds of services and it also spawns multiple netsaint processes.. but not as many.. seems to top out usually around 500.. so as far as I can tell this behavior of multiple processes is normal. So what the hell is going on here? Does anyone out there run a distributed environment with a centralized server? 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 gwichman at zantaz.com Sat Jan 4 00:20:07 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Fri, 3 Jan 2003 15:20:07 -0800 Subject: centralized server messages.. HOST ALERT is what exactly? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4118@zanexch.zantaz.com> Looking at the output below for one particular server, which I took from /var/log/messages on my central server, I've cut out the output for the other service checks and focused soley on the ping related ones.. Whats exactly is "HOST ALERT:" generated by? As you can see it *is* receiving external commands properly and PING is OK, yet the HOST ALERT gripes that it's DOWN? And before you ask, yes my ping service is set to passive only.. See service output below as well for ping.. Jan 3 14:43:21 dhcp-51-205 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;PSLAB1-ps-sm-poly-05;PING;0;PING OK - Packet loss = 0%, RTA = 0.37 ms Jan 3 14:46:00 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:46:10 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:46:20 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:46:30 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:46:40 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:46:50 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:47:00 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;7;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:47:10 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;8;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:47:20 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;9;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:48:30 dhcp-51-205 nagios: EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;PSLAB1-ps-sm-poly-05;PING;0;PING OK - Packet loss = 0%, RTA = 0.51 ms Jan 3 14:49:10 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;UNREACHABLE;HARD;10;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:50:55 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;1;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:51:05 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;2;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:51:15 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;3;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:51:25 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;4;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:51:35 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;5;CRITICAL - Plugin timed out after 10 seconds Jan 3 14:51:45 dhcp-51-205 nagios: HOST ALERT: PSLAB1-ps-sm-poly-05;DOWN;SOFT;6;CRITICAL - Plugin timed out after 10 seconds # Service definition define service{ use generic-service ; Name of service template to use host_name * service_description PING is_volatile 0 check_period 24x7 active_checks_enabled 0 passive_checks_enabled 1 check_freshness 1 freshness_threshold 600 max_check_attempts 3 normal_check_interval 10 retry_check_interval 5 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } 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 jcarro10 at sprintspectrum.com Fri Jan 3 22:47:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 15:47:44 -0600 Subject: remote disk/load? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1214@PKDWB03C.ad.sprint.com> Yes, those plugins (among others) only work on the 'local' host. You need a way to install those plugins on the remote host, execute them remotely, then return the relevant data to the Nagios server. You *could* use check_by_ssh to do the remote execution/retrieval. Great for a secure way of doing things, but won't scale well in the long run (assuming you have hundreds and hundreds of remote checks to do). Take a look at NRPE, which is quite popular. NSCA is another alternative, but not the only one. Check out the Downloads page on www.nagios.org. jc > -----Original Message----- > From: joe usenta [mailto:jusenta at hotmail.com] > Sent: Thursday, January 02, 2003 5:41 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] remote disk/load? > > > hello, > > maybe i'm missing something, but is there a way to monitor > the remote load/disk usage? the check_disk and check_load > scripts do not give a remote host option, and only show > local numbers. i cannot get it to show me what i'm looking > for. the remote hosts would be a combination of solaris/linux > boxes. is there maybe some other check that would do this? > > thanks in advance, > jusenta > > > > > _________________________________________________________________ > MSN 8 with e-mail virus protection service: 2 months FREE* > http://join.msn.com/?page=features/virus > > > > ------------------------------------------------------- > 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 > -------------- next part -------------- An HTML attachment was scrubbed... URL: From pivert_home at yahoo.fr Sat Jan 4 01:44:30 2003 From: pivert_home at yahoo.fr (Pivert) Date: 04 Jan 2003 01:44:30 +0100 Subject: disk_check_smb ==> No Output !? Message-ID: <1041641072.2921.28.camel@pivert.pivertdomain.be> Hi !! I have a verry strange problem with Nagios and this plugin. In nagios, I have the plugin telling (No output!) : [1041349454] SERVICE NOTIFICATION: sysmsg;MyWindowsHost;DISK;CRITICAL;notify-by-email;(No output!) And it I check the service manually : eye:/usr/local/nagios/plugins # ./check_disk_smb -H MyWindowsHost -s AShare -u smb_check_user -p smb_check_password Disk ok - 21.45G (87%) free on \\MyWindowsHost\AShare eye:/usr/local/nagios/plugins # I tryed with the same user as nagios run without success.. Does anybody have an idea ?! Thanks!!! Pivert. ___________________________________________________________ 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 From peterpan at pvamu.edu Sat Jan 4 01:58:27 2003 From: peterpan at pvamu.edu (Peter Pan) Date: Fri, 3 Jan 2003 18:58:27 -0600 Subject: (no subject) Message-ID: <004c01c2b38c$63d4a9b0$0e38cf81@fucko> I am getting this ./check_nrpep -h arb.server.net -c check_imap Use of uninitialized value in split at ./check_nrpep line 145, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 146, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 147, line 1. Use of uninitialized value in right bitshift (>>) at ./check_nrpep line 148, line 1. Use of uninitialized value in concatenation (.) at ./check_nrpep line 149, line 1. Any ideas of what is happening? thanks Peter Pan -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 3 22:47:35 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 15:47:35 -0600 Subject: problem with nagios plugins Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1213@PKDWB03C.ad.sprint.com> Do you have GNU C and GNU make installed? jc -----Original Message----- From: Tsukame Gajardo, Yokichi [mailto:Yokichi.Tsukame at sonda.com] Sent: Thursday, January 02, 2003 5:16 PM To: nagios-users at lists.sourceforge.net Cc: nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] problem with nagios plugins Hi: I have problems with instalation nagios-plugins in HP-UX V11.0, the message is the next: common.h:71:20: getopt.h: No such file or directory check_disk.c: In function `process_arguments': check_disk.c:148: elements of array `long_options' have incomplete type check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: `required_argument' undeclared (first use in this function) check_disk.c:149: (Each undeclared identifier is reported only once check_disk.c:149: for each function it appears in.) check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:149: warning: excess elements in struct initializer check_disk.c:149: warning: (near initialization for `long_options[0]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:150: warning: excess elements in struct initializer check_disk.c:150: warning: (near initialization for `long_options[1]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') check_disk.c:151: warning: excess elements in struct initializer check_disk.c:151: warning: (near initialization for `long_options[2]') yours can help me.. greetings YTG -------------- next part -------------- An HTML attachment was scrubbed... URL: From jordan at advapro.com Sat Jan 4 03:33:21 2003 From: jordan at advapro.com (Jordan) Date: Sat, 04 Jan 2003 02:33:21 +0000 Subject: retry_check_interval Message-ID: <3E1647F1.C08C2DEC@advapro.com> Ok, hopefully this won't be a dumb question. Again, I'm monitoring a bunch of routers. All I'm doing is pinging them, so I've got 1 service per host, which does host-check-alive. I've set the retry_check_interval to 1. interval_length is set to 60. max_check_attempts is set to 3. Theoretically (without host checking enabled), it should wait 3 mintues to generate an alert. However, since host checking is enabled, whenever the ping service fails, it automatically starts the host check. I also have the max_check_attempts for host checking set to 3, but there is no option as to what the retry_check_interval could be for host checking, so it just checks 3 in a row. This pretty much hoses my logic for checking services. I've got many different customers with routers going down and coming up, and I'm getting floods of e-mail notifications because of it. I'd like to, in the end, have a notification sent only if the router has been down for 3 minutes straight (which is implimented in the service checking, but hosed anyway since host checking overrides service checking and lacks the retry_check_interval feature of the service checking). Any ideas on how I can resolve this? I'm sure it's probably something I'm doing wrong. If it's not, the only thing I could think of is doing an event handler that just sits for a minute or two before checking again, but of course that could be hosed by host_check_timeout, and also the regular interval of service checks... It gets very confusing thinking about it all. =) Thanks for any help, Jordan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 22:44:00 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 15:44:00 -0600 Subject: Quick "escalation" question Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24C8@PKDWB03C.ad.sprint.com> > is it necessary to define an escalation for EVERY Service of > every host > in the escalation.cfg?? if I want all pages for all problems for a > specific box sent to the same contact group then can I get away with > just a host escalation? Yes. > If I don't define an escalation for say http on box #1 and it > goes down > will no one get notified?? or will it just use the host escalation in > liew of the missing service escalation? The latter. > as far as Nagios is concern how does it deal with hosts vs. > services?? I > am under the impression the only "host" check being done is the > check-hosts-alive as defined in the hosts.cfg so the bulk of > what your > monitoring in nagios will be in the services.cfg I am monitoring much > more then ping... so again, is only a host escalation sufficient to > trigger a notification in the event of a service failure? Nagios only does the host check if all service checks for that host are hard down. > I am monitoring over 300+ services on 80+ hosts so if I can get away > with only needing to have 80 host escalations rather then > 300+ service > escalations + 80 host escalations I would welcome the cut > down in time... Try 128 hosts, 1080 active checks, and *many* service dependencies to cut down on the NRPE churn. ;) And yes, we're using hostgroupescalation definitions. :) jc > --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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Fri Jan 3 18:27:55 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 3 Jan 2003 11:27:55 -0600 Subject: Batching notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E120E@PKDWB03C.ad.sprint.com> Perhaps this would fall under 'kludge' or 'sleight of hand', but if you can put a peer host on your network which is also connected to the same UPS and define host dependencies (ie, 20 hosts are dependant on this one host), then that would be a 20:1 reduction in the number of pages you get. (If the UPS has a network interface and SNMP support, this might be a better approach.) If you take the peer host approach, it could be something as simple as a temperature/humidity sensor with built-in IP support. Simple, and presumably fewer parts to fail. jc > -----Original Message----- > From: Jeremy Hill [mailto:jhill at liquidweb.com] > Sent: Thursday, January 02, 2003 8:27 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Batching notifications > > > I haven't seen any way to do this, but I am asking just in case it is > posible... > > Is there any way to batch notifications? That is, if 20 > servers all go > down at once (a bad ups typically causes this), is there a > way to avoid > getting 20 seperate notifications? I'm using parenting whenever > possible, but sometimes it is not enough. > > I am trying to avoid another $600 pager bill (6000 pages in > one month). > Thanks for any help. > > jeremy > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From brampling at methanex.com Fri Jan 3 22:40:06 2003 From: brampling at methanex.com (Blair Rampling) Date: Fri, 03 Jan 2003 13:40:06 -0800 Subject: Still having check_by_ssh problems Message-ID: I am still having the problem described below. The plugin is returining an exit code of 2 when it is run locally, but check_by_ssh is returning an exit code of 0. Does nobody else have this problem? Perhaps I am overlooking something obvious. I have a number of things monitored by check_by_ssh. Even when the remote plugin exits with an error code other than 0, nagios shows OK leading me to believe that check_by_ssh is returning error code 0 regardless. I am using 1.3 beta 2 of the plugins and nagios 1.0. Why is this happening and how do I fix it? Thanks. Here are two examples of checks that are returning OK when they shouldn't: # 'check_remote_mem' command definition define command{ command_name check_remote_mem command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" } # 'check_remote_ps_proc' command definition define command{ command_name check_remote_ps_proc command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" } - -- Blair Rampling ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Sat Jan 4 05:21:48 2003 From: chocklehot at clan-union.com (Charles) Date: Fri, 03 Jan 2003 23:21:48 -0500 Subject: Need help Message-ID: Could anyone help me that speaks french or english, It is simple configuration... Ty Chock ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From rplewe at ess.nec.de Sat Jan 4 06:55:32 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Sat, 4 Jan 2003 06:55:32 +0100 Subject: Need help In-Reply-To: ; from chocklehot@clan-union.com on Fri, Jan 03, 2003 at 11:21:48PM -0500 References: Message-ID: <20030104065532.B1558@ess.nec.de> Hello, On Fri, Jan 03, 2003 at 11:21:48PM -0500, Charles wrote: > Could anyone help me that speaks french or english, > It is simple configuration... as you don't seem to want to explain your problem on this list, you might want to check out http://www.nagios.org/contractsupport/. Rasmus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Sat Jan 4 12:37:46 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Sat, 4 Jan 2003 12:37:46 +0100 Subject: Need help In-Reply-To: References: Message-ID: <20030104113746.GA25848@skynet.be> On Fri, Jan 03, 2003 at 11:21:48PM -0500, Charles wrote: > Could anyone help me that speaks french or english, > It is simple configuration... Tu as mon adresse email, n'h?sites pas :-) [ You have my email address, feel free :-) ] -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gilles.poiret at noos.fr Sat Jan 4 13:19:06 2003 From: gilles.poiret at noos.fr (Gilles Poiret) Date: Sat, 4 Jan 2003 13:19:06 +0100 Subject: Question on host/newtork load Message-ID: <20030104121906.GA1752@localhost> Hi, I plan to monitor a large network (spread : worldwide, 30 equipments, 60 services to begin) I have to have very accurate information, so checks will occur every 1 or 2 min, I think.( for instance, to catch a reboot) First point ----------- I'm wondering about the type of Nagios host required (CPU, memory,...) in that configuration, and if the volume of equipments/services raise (x2, for instance) ( Is a PIII 750 Mhz, 256 Mo RAM enough ?) This host will also run MRTG, to view bandwidth on 20 equipments. Second point ------------ which is the bandwidth overhead generated by those checks ? Is there a way to evaluate it by advance ? I'd like feedback from people who are using Nagios on that context. Thanks for advance, -- Gilles Poiret ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From magnus.pettersson at eds.com Sat Jan 4 13:49:44 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Sat, 4 Jan 2003 12:49:44 -0000 Subject: 2.0, who's using what, etc. Message-ID: <5917FD47436E784D8B08F132F0AC506151E4E7@sessm201> I've been taking a look through the plan Ethan's put together for Nagios 2.0 and thinking about scaling my Netsaint (soon to be Nagios) installation from the current 600 hosts and 1700 services to, say, twice that. I've started wondering: 1) What web servers are people using with the Nagios web interface? More simply put, is anybody really using anything other than Apache? Apache and Netscape fasttrack. 2) Are a lot of people using the database support? If so, are you using MySQL or PostGres? Mysql /magnus ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From kairo at oriak.org Sat Jan 4 16:18:55 2003 From: kairo at oriak.org (Kairo F. de =?ISO-8859-1?B?QXJhUA==?=) Date: Sat, 4 Jan 2003 13:18:55 -0200 Subject: Monitoring NAT Message-ID: <20030104131855.67656fca.kairo@oriak.org> hi all, First, sorry for my english is very bad. =) I'm administer various networks, and sometimes have one real IP address in the network, and I masquerade and routing the network conected on the machine (real IP address). Is it possible monitoring this NAT, even if that machine is running Nagios with a real IP address can be in another network? ASCII-scheme [NAGIOS-Machine] Real IP (xxx.xxx.xxx.xxx/xx)------. | %%%%%%%%%%%% % Internet % %%%%%%%%%%%% _______________________________| | | Real IP (yyy.yyy.yyy.yyy/yy) [Linux-Router] | | [switch]-----------[Server Linux] . . | 10.0.0.1/24 |___[workstation] 10.0.0.10 I'm monitoring the Linux-Router. Is possible monitoring the Server Linux, Workstation? (My minimum necessity is Up or Down stats) Thank's and sorry for my english. -- Kairo F. de Ara?jo ........................................................... Networks/Servers GNU/Linux Administrator UIN: 45349054 - Cels.: (32) 8802-0055 Personal WebSite: http://www.oriak.org echo kairo at oriak dot org | sed 's/ at /@/;s/ dot /./g' GPG/PGP in my personal Web Site. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Sat Jan 4 20:09:28 2003 From: chocklehot at clan-union.com (Charles) Date: Sat, 04 Jan 2003 14:09:28 -0500 Subject: Qmail with Nagios????? Message-ID: Hi guys, I have a little question, when there is a prob, nagios isn't sending the email with qmail. I think nagios is trying to send via senmail Anyone Has the solution to this prob??? Ty Chock ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Sat Jan 4 20:52:30 2003 From: twelsh at square-box.com (Tom Welsh) Date: Sat, 4 Jan 2003 19:52:30 -0000 Subject: Qmail with Nagios????? In-Reply-To: References: Message-ID: <003b01c2b42a$d1423b40$0400a8c0@squarebox.com> I use qmail and debian server and have the following in my notifications.... Note /usr/bin/mailsubj is what I use to send mails ---------------------------------------------------- # 'notify-by-email' command definition (ORIGINAL) define command{ name notify-by-email command_name notify-by-email command_line /usr/bin/echo -e 'Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTA LIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/b in/mailsubj ' $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ' $CONTACTEMAIL$ } ---------------------------------------------------- Cheers 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 Charles Sent: 04 January 2003 19:09 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Qmail with Nagios????? Hi guys, I have a little question, when there is a prob, nagios isn't sending the email with qmail. I think nagios is trying to send via senmail Anyone Has the solution to this prob??? Ty Chock ------------------------------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From benny at bennyvision.com Sat Jan 4 20:57:16 2003 From: benny at bennyvision.com (C. Bensend) Date: Sat, 4 Jan 2003 13:57:16 -0600 Subject: Qmail with Nagios????? In-Reply-To: ; from chocklehot@clan-union.com on Sat, Jan 04, 2003 at 02:09:28PM -0500 References: Message-ID: <20030104135716.C6465@bennyvision.com> On Sat, Jan 04, 2003 at 02:09:28PM -0500, Charles wrote: > Hi guys, > I have a little question, when there is a prob, nagios isn't sending the > email with qmail. I think nagios is trying to send via senmail > Anyone Has the solution to this prob??? Hello Charles, Nagios by default uses /bin/mail, or a derivative. Therefore, it relies on your underlying operating system to determine what MTA it uses. You didn't mention what OS you're running, so troubleshooting from here is difficult at best. Most *NIX OS's have a method of specifying how mail is sent and delivered, and you'll need to check that for your particular OS. It should probably be using /var/qmail/bin/sendmail (if you installed via LWQ). If you give us more details, we can probably help further. 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Sat Jan 4 21:22:38 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Sat, 4 Jan 2003 21:22:38 +0100 Subject: Qmail with Nagios????? In-Reply-To: <003b01c2b42a$d1423b40$0400a8c0@squarebox.com> References: <003b01c2b42a$d1423b40$0400a8c0@squarebox.com> Message-ID: <20030104202238.GA31495@skynet.be> On Sat, Jan 04, 2003 at 07:52:30PM -0000, Tom Welsh wrote: > I use qmail and debian server and have the following in my > notifications.... > > Note /usr/bin/mailsubj is what I use to send mails > > ---------------------------------------------------- > > # 'notify-by-email' command definition (ORIGINAL) > define command{ > name notify-by-email > command_name notify-by-email > command_line /usr/bin/echo -e 'Notification Type: > $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTA > LIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: > $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/b > in/mailsubj ' $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is > $SERVICESTATE$ ' $CONTACTEMAIL$ > } > ---------------------------------------------------- > Hi tom, I suppose this is a FAQ... Can you post all the command definitions ? notify-by-email,notify-by-epager,host-notify-by-email and host-notify-by-epager ? Thanks, 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Sat Jan 4 21:40:25 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Sat, 4 Jan 2003 21:40:25 +0100 Subject: Monitoring NAT In-Reply-To: <20030104131855.67656fca.kairo@oriak.org> References: <20030104131855.67656fca.kairo@oriak.org> Message-ID: <20030104204025.GA31678@skynet.be> On Sat, Jan 04, 2003 at 01:18:55PM -0200, Kairo F. de AraP wrote: > > hi all, > > First, sorry for my english is very bad. =) > > I'm administer various networks, and sometimes have one real IP address in the network, and I masquerade and routing the network conected on the machine (real IP address). > > Is it possible monitoring this NAT, even if that machine is running Nagios with a real IP address can be in another network? > In your case, i think you'd better to use remote monitoring (with nsca or nrpe) from your Linux Router, who will give results to your NAGIOS-Machine. Check this url : http://nagios.sourceforge.net/docs/1_0/addons.html -- +----------------------------------+-----------------------------------------+ | ____ _____ _ __ | | | / __ \____ / ___/__ _| |/ / | 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Sat Jan 4 23:43:05 2003 From: chocklehot at clan-union.com (Charles) Date: Sat, 04 Jan 2003 17:43:05 -0500 Subject: Qmail with Nagios Message-ID: Ok, Here is the situation: I am Under linux (Rh 8.0). I have a cell phone that can receive email( Subject has a max char (20) and body has a max char = (130) Now I wanna config nagios with qmail, I use /var/qmail/bin/qmail-inject Could someone tell me what my misccommands.cfg should be???? Keep in mind of epager: In the subject area: I want something Like warning And in body a brieve description... Ty Chock Msn: chocklehot at hotmail.com icq: 64296956 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pjah at hicom.net Sat Jan 4 19:11:00 2003 From: pjah at hicom.net (pjah at hicom.net) Date: Sat, 4 Jan 2003 18:11 +0000 Subject: notification and log problems Message-ID: <200301042311.h04NBYLr028873@ns1.hicom.net> Hi, I just recently installed nagios on a FreeBSD 4.7 machine and am having problems with logging notifications and alerts. It looks like when I send a text-page via email, the page works OK, but I dont see it being logged anywhere, nor do I see the original alert being logged. I DO see the nagios daemon starting/stopping/restarting being logged in the event log. My nagios.cfg "notification" options for both host and services are set to "1". Could someone please suggest what other items to check.. TIA Juergen ------------------- Email sent using AnyEmail from http://www.hicom.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From paveraware at hotmail.com Sun Jan 5 00:52:35 2003 From: paveraware at hotmail.com (Christensen Tom) Date: Sat, 04 Jan 2003 23:52:35 +0000 Subject: mysql, ftp, pop3, imap Message-ID: I am having trouble getting nagios to report problems with these services, mysql, ftp, pop3, imap, 3 of the 4 have something related being that they are run from tcp wrappers on the hosts I'm trying to monitor, but mysql doesn't fit that bill so I am kinda at a loss, in the service detail all of these services list "(no output!)" in the status information, and if I turn the services off it never reports a problem. Any ideas? I've read through the documentation, and saw the special things you have to do to get reports on tcp wrapped services, (although with xinetd off, any attempt to connect to the ports is refused, and I would think nagios could pick that up without jumping through all those hoops). I also am monitoring a win2k server running IMAP, and imap on this server never reports errors either, even though I don't think win2k has any sort of service like tcp wrappers... so its probably some simple configuration issue I overlooked.. let me know. Tom _________________________________________________________________ MSN 8: advanced junk mail protection and 2 months FREE*. http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From cristian at alestraidc.net.mx Sun Jan 5 01:49:39 2003 From: cristian at alestraidc.net.mx (Cristian Trujillo G.) Date: Sat, 4 Jan 2003 18:49:39 -0600 Subject: apan return code 127 In-Reply-To: References: Message-ID: Hi read the faq and i cant resolve this problem, i use FreeBSD and nagios work fine, but apan not. always return this: Warning: Return code of 127 for check of service 'Disk-usage' on host 'server1' was out of bounds. Make sure the plugin you're trying to run actually exists. When i run manually /usr/local/apan/apan.sh the result is /usr/local/apan/apan.defs: 32: Syntax error: word unexpected (expecting ")") i suspect the problem is in the path this a apan.defs #Base-directory for nagios: NAGIOSDIR=/usr/local/bin/ #The directory where apan is installed APANDIR=/usr/local/apan #The directory where Nagios plugins resides PLUGINSDIR=/usr/local/libexec/nagios #The directory where Nagios .cfg-files resides ETCDIR=/usr/local/etc/nagios # The directory where apans plugins resides PLUGSDIR=$APANDIR/plugs # The main config-file for apan CFGFILE=$APANDIR/apan.cfg # Path to rrdtool RRDTOOL=/usr/local/bin/rrdtool # Set DEBUG to 1 and define a DEBUGFILE to get debug-info from apan DEBUG=1 DEBUGFILE=/tmp/apan.debug the debug no print nothing... thanks ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From wangee at linuxbe.org Sun Jan 5 13:18:09 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Sun, 5 Jan 2003 13:18:09 +0100 Subject: notification and log problems In-Reply-To: <200301042311.h04NBYLr028873@ns1.hicom.net> References: <200301042311.h04NBYLr028873@ns1.hicom.net> Message-ID: <20030105121809.GB18757@skynet.be> On Sat, Jan 04, 2003 at 06:11:00PM +0000, pjah at hicom.net wrote: > Hi, > > I just recently installed nagios on a FreeBSD 4.7 machine and am > having problems with logging notifications and alerts. > > It looks like when I send a text-page via email, the page works OK, but I dont see it being logged anywhere, nor do I see the original alert being logged. I DO see the nagios daemon starting/stopping/restarting being logged in the event log. My nagios.cfg "notification" options for both host and services are set to "1". > > Could someone please suggest what other items to check.. > Yes. Did you simply click on the 'Notifications' tab on the web interface ? 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From deepen at technoinfosys.com Sun Jan 5 15:01:25 2003 From: deepen at technoinfosys.com (Deepen Dhulla) Date: Sun, 5 Jan 2003 19:31:25 +0530 (IST) Subject: (no subject) Message-ID: <32923.10.0.0.2.1041775285.squirrel@www.technoinfosys.net> Regards, Deepen Dhulla C.T.O TechnoInfosys A Div. of Technofinvestrade (I) Pvt. Ltd. 101/108, Arenja Arcade, Sector-17, Vashi, Navi Mumbai. India - 400 705. Tel : 91-22-55910977 / 0978 E-mail : deepen at technoinfosys.com ----------------------------------------- This email was sent using TechnoInfosys LA Mail Solution. http://www.technoinfosys.com/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sysadmin at showkilr.com Sun Jan 5 21:59:20 2003 From: sysadmin at showkilr.com (Showkilr) Date: 05 Jan 2003 14:59:20 -0600 Subject: SNMP Working .......... In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24C7@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24C7@PKDWB03C.ad.sprint.com> Message-ID: <1041800361.2374.8.camel@dev.showkilr.com> Try http://www.google.com/search?hl=en&ie=UTF-8&oe=UTF-8&q=configuring+snmp+windows+2000&btnG=Google+Search On Fri, 2003-01-03 at 11:39, Carroll, Jim P [Contractor] wrote: > Atul, it appears that this is at least the 4th time you've sent this message. > > If you're not getting an answer, it's likely because: > > - nobody has the answer > - somebody has the answer, and is unwilling to share it (and that's their prerogative) > - you're not asking the right question > - you're asking the right question, but in the wrong forum > > Have you thought about checking either a mailing list or a website which relates to either SNMP, Windows, or SNMP on Windows? Once you have that info (ie, SNMP setup in Windows, as well as the MIB you wish to check), I'm sure someone on this list will be able to help you set up the necessary check_snmp definition in Nagios. > > > > Sending the same question to a mailing list is, IMHO, poor netiquette. Please be a little more respectful of the other users of this list. > > [Future such repetitions will be redirected to /dev/null.] > > > > Hope this helps. > > jc > > > > -----Original Message----- > From: Atul Shrivastava [mailto:atulsh at hclinsys.com] > Sent: Friday, January 03, 2003 7:57 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] SNMP Working .......... > > > Hello All, > > I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. > I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg > > Can anyone give me a way out. > > > 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bgibbs at edurotech.com Sun Jan 5 22:10:42 2003 From: bgibbs at edurotech.com (Bill Gibbs) Date: Sun, 5 Jan 2003 16:10:42 -0500 Subject: notifications_enabled Message-ID: <002f01c2b4fe$eb601270$6500a8c0@millenniumgroup.com> I have a hosts.cfg file copied from the sample config. notifications_enabled is set to 1. I have a few hosts, where Iset notifications_enabled to 0 - and when I click "host detail" I see a little icon of a bullhorn with an X over it. However, I want to reenable notifications for that host. I removed that line, restarted nagios (/etc/init.d/nagios restart) but the icon still appears. When I click the name of the host, it says "Host notifications: DISABLED". I even tried to say notifications_enabled 1 specific in that config block yet there is no change. Nagios version: 1.0 from 11/24/2002 Template: define host{ name generic-host ; The name of this host template - referenced in other host definitions, used for template r ecursion/resolution notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! notification_interval 0 ; send only one notification notification_period 24x7 ; do it 24 hours a day 7 days a week notification_options d,u,r ; send notification on down, unreachable and recovery check_command check-host-alive max_check_attempts 10 } Example host: define host{ use generic-host host_name somehost alias Some Alias address x.x.x.x parents someparent notifications_enabled 0 } I remove notifications_enabled and there is no change in the GUI output - it still apparently thinks notifications are disabled. Bill "Elvis" Gibbs Eduro Technologies, Inc. main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Jan 6 00:30:30 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 6 Jan 2003 10:30:30 +1100 Subject: RFC. Checking MS Domains (simulating a 9x client logon to check health of DCs/File servers etc) Message-ID: <20030106103027.A93063@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to ask how, if it is done at all, do people check the health of MS/Samba Domains ? Why bother ? Good point. The MS Domain and file servers are highly available. There is a good case for not monitoring since they seldom fail. However, if there is any interest in doing so I have some code that should reveals faults in a Domain/File server by simulating a 9x workstations actions in logging onto a domain ie - broadcast /MAILSLOT/NET/NETLOGON to get list of DCs - do a session setup with IPC$s share on one of them, calling NetWkStaLogon to get the name of the Lanman logon script - download the Lanman logon script from the NETLOGON share - randomly select a share from one of the 'NET USE' statements in the logon script - try a session setup with that share If all this works, I am fairly confident the Domain is Ok (though some of the member servers could be cactus). The code is/or will be in the form of a Perl XS that wraps calls to the SMB function in libsmbclient (supplied with Samba 2.2.x, or the equivalent libraries in Samba-TNG. You must have these libraries installed - they are not part of the default Samba head install). The code is actually good because so little of it comes from me ! 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From webid at cfl.rr.com Mon Jan 6 01:12:43 2003 From: webid at cfl.rr.com (Scot L. Harris) Date: 05 Jan 2003 16:12:43 -0800 Subject: x-vrml plugin for mozilla on Redhat 8.0 Message-ID: <1041811963.21974.7.camel@lathe> The 3D status map requires an x-vrml plugin for the browser. Currently running this on Redhat 8.0. After spending several hours searching I was not able to find a plugin for Mozilla on a linux system. I tried a couple for Windows systems but the result was not very good. Not enough contrast to see the objects and labels clearly. I did upgrade the version of Mozilla to 1.3a and installed openvrml-0.13.0-1. However the openvrml package appears to be libraries for vrml and does not appear to include a plugin for Mozilla. Of course I may have missed it, the documentation was pretty sparse for this one. Which vrml plugin is recommended, if there is one? ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From twelsh at square-box.com Mon Jan 6 04:00:48 2003 From: twelsh at square-box.com (Tom Welsh) Date: Mon, 6 Jan 2003 03:00:48 -0000 Subject: x-vrml plugin for mozilla on Redhat 8.0 In-Reply-To: <1041811963.21974.7.camel@lathe> References: <1041811963.21974.7.camel@lathe> Message-ID: <000001c2b52f$d0689380$0400a8c0@squarebox.com> Try this link from the nagios Faq database http://www.nagios.org/faqs/viewfaq.php?faq_id=51&expand=false&showdesc=t rue Cheers 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 Scot L. Harris Sent: 06 January 2003 00:13 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] x-vrml plugin for mozilla on Redhat 8.0 The 3D status map requires an x-vrml plugin for the browser. Currently running this on Redhat 8.0. After spending several hours searching I was not able to find a plugin for Mozilla on a linux system. I tried a couple for Windows systems but the result was not very good. Not enough contrast to see the objects and labels clearly. I did upgrade the version of Mozilla to 1.3a and installed openvrml-0.13.0-1. However the openvrml package appears to be libraries for vrml and does not appear to include a plugin for Mozilla. Of course I may have missed it, the documentation was pretty sparse for this one. Which vrml plugin is recommended, if there is one? ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From desmondc at bii.a-star.edu.sg Mon Jan 6 04:25:33 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Mon, 6 Jan 2003 11:25:33 +0800 Subject: Help needed for Apan Message-ID: <003201c2b533$46805410$0b79a8c0@desmond> Hi, I can't seemed to get any data to be inserted into my rrd file. It seems like the following line has some problem: $RRDTOOL update $RRDFILE -t $TEMPL $DATA I did an echo on the line and there was nothing to be inserted. The value of $DATA of the following syntax. 1041821881: Am I getting it wrong anywhere? Permission settings seemed to be correct. Attached is the the apan.debug and apan.sh file. -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: apan.debug Type: application/octet-stream Size: 4992 bytes Desc: not available URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: apan.sh Type: application/octet-stream Size: 1638 bytes Desc: not available URL: From donavan at 4wx.net Mon Jan 6 07:08:53 2003 From: donavan at 4wx.net (donavan nelson) Date: Mon, 6 Jan 2003 00:08:53 -0600 Subject: check_mrtgtraf with nagios v1.0 Message-ID: <20030106060853.M1611@4wx.net> Is anyone using the check_mrtgtraf plug-in with nagios v1.0? It doesn't seem to be reporting a status level with the output. I'm currently trying from the command line as follows: sparky:/usr/local/nagios/etc # ../libexec/execs/check_mrtgtraf -F /var/chroot-snmp.mrtg/var/mrtg/eth1.log -a AVG -w 100,100 -c 200,200 Ave. In = 335.0 B/s, Ave. Out = 523.0 B/s sparky:/usr/local/nagios/etc # echo $? 2 sparky:/usr/local/nagios/etc # nagios is not picking this up as a critical. Is the text CRITICAL necessary even though it's exiting with the correct value? -- Donavan Nelson 4wx Networks www.4wx.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From desmondc at bii.a-star.edu.sg Mon Jan 6 09:22:03 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Mon, 6 Jan 2003 16:22:03 +0800 Subject: Help needed for Apan References: <003201c2b533$46805410$0b79a8c0@desmond> Message-ID: <001a01c2b55c$b1a4c720$0b79a8c0@desmond> Hi, I noticed something here.. Is it that the rrd file cannot accept floating point values? The check_ping always returns a floating point value. I tried manually to insert a floating value and it is always reflected as 0.0000000e. Tried with a whole number and it works... Any clues? ----- Original Message ----- From: Desmond Chia To: nagios-users at lists.sourceforge.net Sent: Monday, January 06, 2003 11:25 AM Subject: [Nagios-users] Help needed for Apan Hi, I can't seemed to get any data to be inserted into my rrd file. It seems like the following line has some problem: $RRDTOOL update $RRDFILE -t $TEMPL $DATA I did an echo on the line and there was nothing to be inserted. The value of $DATA of the following syntax. 1041821881: Am I getting it wrong anywhere? Permission settings seemed to be correct. Attached is the the apan.debug and apan.sh file. -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Mon Jan 6 09:21:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 06 Jan 2003 09:21:41 +0100 Subject: RFC. Checking MS Domains (simulating a 9x client logon to check health of DCs/File servers etc) References: <20030106103027.A93063@IPAustralia.Gov.AU> Message-ID: <3E193C95.2251B233@gcc.dhl.com> Dear Stanley, I for one am interested. It is nice to see that even FreeBSD fans seem to be confident in the reliability of Microsoft Windows' domain implementation and its stability ;-) However, I think it is useful to monitor its operation nonetheless. What I use now is the check_wins plugin to see whether the domain is available. The code your are describing does a lot more than that, as it actually tries to use the domain functionality. I see this as a great improvement, and it goes without saying that I am interested in working on this plugin together. One thing I would like to see added is support for VBS functions in the logon script. In the old days we used 'net use' statements as well, but in the new version of the logon script, we use mainly VBS functions like 'objWshNetwork.MapNetworkDrive'. If you want to have these covered as well, I can provide you with all the info you require. It should not be a big change. Kind regards, Tom Stanley Hopcroft wrote: > > Dear Ladies and Gentlemen, > > I am writing to ask how, if it is done at all, do people check the > health of MS/Samba Domains ? > > Why bother ? > > Good point. The MS Domain and file servers are highly available. There > is a good case for not monitoring since they seldom fail. > > However, if there is any interest in doing so I have some code that > should reveals faults in a Domain/File server by simulating a 9x > workstations actions in logging onto a domain ie > > - broadcast /MAILSLOT/NET/NETLOGON to get list of DCs > > - do a session setup with IPC$s share on one of them, calling > NetWkStaLogon to get the name of the Lanman logon script > > - download the Lanman logon script from the NETLOGON share > > - randomly select a share from one of the 'NET USE' statements in the > logon script > > - try a session setup with that share > > If all this works, I am fairly confident the Domain is Ok (though some > of the member servers could be cactus). > > The code is/or will be in the form of a Perl XS that wraps calls to the > SMB function in libsmbclient (supplied with Samba 2.2.x, or the > equivalent libraries in Samba-TNG. You must have these libraries > installed - they are not part of the default Samba head install). > > The code is actually good because so little of it comes from me ! > > 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: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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tdeblend at gcc.dhl.com Mon Jan 6 09:36:32 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 06 Jan 2003 09:36:32 +0100 Subject: notifications_enabled References: <002f01c2b4fe$eb601270$6500a8c0@millenniumgroup.com> Message-ID: <3E194010.CB047BF1@gcc.dhl.com> Dear Bill, Funny you should mention this. I have seen some weird stuff happening as well when I was porting our Netsaint installation to Nagios a few weeks ago. If I recall correctly, I had a passive service check defined as follows: check_period 24x7 check_command check_ping As you can see, this is wrong, as this service check should never be executed actively. So I changed the configuration of those services to: check_period none check_command check_ping I restarted the service, but the strange thing was that these changes did not take effect. The service was still checked with check_ping. I stopped the service, waited and started it again: same thing: the changes were not applied. After double checking everything, I had to cut this service from the services file, restart Nagios, verify that the service was gone, paste the exact same code in place again, and restart Nagios yet another time. This time the changes were applied. As I pasted the same configuration (cut and paste), I'm pretty confident that it is a bug. As I was quite busy at that time, I couldn't find the time to post it here, and I forgot. But now that you post this similar behavior, I think that this should get some more attention. Anyone else experienced similar oddities? Kind regards, Tom Bill Gibbs wrote: > > I have a hosts.cfg file copied from the sample config. > > notifications_enabled is set to 1. > > I have a few hosts, where Iset notifications_enabled to 0 - and when I click > "host detail" I see a little icon of a bullhorn with an X over it. > > However, I want to reenable notifications for that host. I removed that > line, restarted nagios (/etc/init.d/nagios restart) but the icon still > appears. When I click the name of the host, it says "Host notifications: > DISABLED". I even tried to say notifications_enabled 1 specific in that > config block yet there is no change. > > Nagios version: 1.0 from 11/24/2002 > > Template: > > define host{ > name generic-host ; The name of this host template - > referenced in other host definitions, used for template r > ecursion/resolution > notifications_enabled 1 ; Host notifications are enabled > event_handler_enabled 1 ; Host 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 across > program restarts > retain_nonstatus_information 1 ; Retain non-status information > across program restarts > > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL > HOST, JUST A TEMPLATE! > notification_interval 0 ; send only one notification > notification_period 24x7 ; do it 24 hours a day 7 days a week > notification_options d,u,r ; send notification on down, unreachable > and recovery > check_command check-host-alive > max_check_attempts 10 > } > > Example host: > > define host{ > use generic-host > host_name somehost > alias Some Alias > address x.x.x.x > parents someparent > notifications_enabled 0 > } > > I remove notifications_enabled and there is no change in the GUI output - it > still apparently thinks notifications are disabled. > > Bill "Elvis" Gibbs > Eduro Technologies, Inc. > main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418 > > ------------------------------------------------------- > 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jhp at addix.net Mon Jan 6 09:55:06 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Mon, 6 Jan 2003 09:55:06 +0100 Subject: Line-Monitoring with check_snmp on Ciscos .... In-Reply-To: References: <20030102121656.GC14730@billgotchy.de> Message-ID: <20030106085506.GC29565@billgotchy.de> On Thu, Jan 02, 2003 at 01:46:23PM +0000, Luis Duarte wrote: > >Nagios reports OK because the plugin returns OK! >What you need to do is something like this: > >command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -r >up > >the '-r up' is the key, it will return OK if it will find the string "up" >in the response and CRITICAL otherwise. >check all options with 'check_snmp -h'. ah .. yes .. I overseen this .. thnx .... :))) Regards Jan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jhp at addix.net Mon Jan 6 10:01:05 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Mon, 6 Jan 2003 10:01:05 +0100 Subject: CISCO MIB In-Reply-To: <20030102175800.9147.qmail@web21511.mail.yahoo.com> References: <20030102175800.9147.qmail@web21511.mail.yahoo.com> Message-ID: <20030106090105.GD29565@billgotchy.de> Hoi .. On Thu, Jan 02, 2003 at 09:58:00AM -0800, Jon Lyons wrote: >Hey, can I get those MIBs as well?? You can use snmp-walk to get your OIDs you need. Regards Jan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Mon Jan 6 11:16:53 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Mon, 6 Jan 2003 10:16:53 +0000 (GMT) Subject: nrpe not able to run on solaris machine In-Reply-To: <20030106090105.GD29565@billgotchy.de> References: <20030106090105.GD29565@billgotchy.de> Message-ID: <20030106101653.9421.qmail@web12601.mail.yahoo.com> Hi I am unable to run the nrpe deamon on sun solaris machine.I have sucessfuly compiled the nrpe deamon on sun solaris ..however when i run the nrpe deamon in standalone mode or as a inetd mode..and do a ps-ef|grep nrpe nothing is being displayed..can you tell us why. 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jakscht at vit.de Mon Jan 6 12:12:40 2003 From: jakscht at vit.de (Michael Jakscht) Date: Mon, 6 Jan 2003 12:12:40 +0100 Subject: Need information on accessing Nagios webpages with and without security Message-ID: Hi! I need help setting up the following situation: All users have to enter their username/passwort to access the Nagios webpages. No problem - I got that to work. BUT: I need one host to view the Nagios webpages WITHOUT any authentication - and just logged in as a guest so that any command issued from this host won't be executed. I would appreciate any hints, tips and help ! Thanx, Michael ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jhp at addix.net Mon Jan 6 12:57:54 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Mon, 6 Jan 2003 12:57:54 +0100 Subject: nrpe not able to run on solaris machine In-Reply-To: <20030106101653.9421.qmail@web12601.mail.yahoo.com> References: <20030106090105.GD29565@billgotchy.de> <20030106101653.9421.qmail@web12601.mail.yahoo.com> Message-ID: <20030106115754.GA30724@addix.net> Hi ... On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy wrote: >I am unable to run the nrpe deamon on sun solaris >machine.I have sucessfuly compiled the nrpe deamon on >sun solaris ..however when i run the nrpe deamon in >standalone mode or as a inetd mode..and do a >ps-ef|grep nrpe nothing is being displayed..can you >tell us why. did you specify the config-file with "-f". Regards Jan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jhp at addix.net Mon Jan 6 13:10:55 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Mon, 6 Jan 2003 13:10:55 +0100 Subject: Whole Configuration in a Database? Message-ID: <20030106121055.GB30724@addix.net> Hi .. has anyone experiences with putting the whole configuration of nagios into a database (MySQL/PgSQL)? Just in time you can save comments and Servicestates init. Any plans to put a db-support like this into nagios in the future? Regards Jan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From hrishys at yahoo.co.uk Mon Jan 6 13:59:12 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Mon, 6 Jan 2003 12:59:12 +0000 (GMT) Subject: nrpe not able to run on solaris machine In-Reply-To: <20030106115754.GA30724@addix.net> References: <20030106115754.GA30724@addix.net> Message-ID: <20030106125912.96024.qmail@web12604.mail.yahoo.com> Hi Jan I have specified the following command $ nrpe -c /etc/nrpe.cfg --daemon $ $ ps -ef|grep nrpe $ its -c ..if i try -f its not working.. regards Hrishy --- Jan-Hendrik Palic wrote: > Hi ... > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy > wrote: > >I am unable to run the nrpe deamon on sun solaris > >machine.I have sucessfuly compiled the nrpe deamon > on > >sun solaris ..however when i run the nrpe deamon in > >standalone mode or as a inetd mode..and do a > >ps-ef|grep nrpe nothing is being displayed..can you > >tell us why. > > did you specify the config-file with "-f". > > Regards > Jan > > > ------------------------------------------------------- > 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 __________________________________________________ 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:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From GPotter at MarathonOil.com Mon Jan 6 15:36:16 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 6 Jan 2003 08:36:16 -0600 Subject: CISCO MIB Message-ID: I tried snmpwalk, it does indeed return a list of OID's, unfortunately unless you know what they are there is not a description. I didn't know which one to check. Greg > -----Original Message----- > From: Jan-Hendrik Palic [mailto:jhp at addix.net] > Sent: Monday, January 06, 2003 3:01 AM > To: Nagios-users (E-mail) > Subject: Re: [Nagios-users] CISCO MIB > > > Hoi .. > > On Thu, Jan 02, 2003 at 09:58:00AM -0800, Jon Lyons wrote: > >Hey, can I get those MIBs as well?? > > You can use snmp-walk to get your OIDs you need. > > Regards > Jan > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bgibbs at edurotech.com Mon Jan 6 15:36:02 2003 From: bgibbs at edurotech.com (Bill Gibbs) Date: Mon, 6 Jan 2003 09:36:02 -0500 Subject: notifications_enabled References: <002f01c2b4fe$eb601270$6500a8c0@millenniumgroup.com> <3E194010.CB047BF1@gcc.dhl.com> Message-ID: <004f01c2b590$eff2a590$dc01a8c0@millenniumgroup.com> Hi, I removed the references in the config files, restarted nagios and verified they no longer showed up. I then put back the config and restarted nagios - and viola the looked correct. So it does appear to be a bug. Bill ----- Original Message ----- From: "Tom DE BLENDE" To: "Bill Gibbs" Cc: Sent: Monday, January 06, 2003 3:36 AM Subject: Re: [Nagios-users] notifications_enabled > Dear Bill, > > Funny you should mention this. I have seen some weird stuff happening > as well when I was porting our Netsaint installation to Nagios a few > weeks ago. If I recall correctly, I had a passive service check > defined as follows: > > > check_period 24x7 > check_command check_ping > > > As you can see, this is wrong, as this service check should never be > executed actively. So I changed the configuration of those services > to: > > > check_period none > check_command check_ping > > > I restarted the service, but the strange thing was that these changes > did not take effect. The service was still checked with check_ping. I > stopped the service, waited and started it again: same thing: the > changes were not applied. After double checking everything, I had to > cut this service from the services file, restart Nagios, verify that > the service was gone, paste the exact same code in place again, and > restart Nagios yet another time. This time the changes were applied. > > As I pasted the same configuration (cut and paste), I'm pretty > confident that it is a bug. As I was quite busy at that time, I > couldn't find the time to post it here, and I forgot. But now that you > post this similar behavior, I think that this should get some more > attention. > > Anyone else experienced similar oddities? > > Kind regards, > Tom > > > Bill Gibbs wrote: > > > > I have a hosts.cfg file copied from the sample config. > > > > notifications_enabled is set to 1. > > > > I have a few hosts, where Iset notifications_enabled to 0 - and when I click > > "host detail" I see a little icon of a bullhorn with an X over it. > > > > However, I want to reenable notifications for that host. I removed that > > line, restarted nagios (/etc/init.d/nagios restart) but the icon still > > appears. When I click the name of the host, it says "Host notifications: > > DISABLED". I even tried to say notifications_enabled 1 specific in that > > config block yet there is no change. > > > > Nagios version: 1.0 from 11/24/2002 > > > > Template: > > > > define host{ > > name generic-host ; The name of this host template - > > referenced in other host definitions, used for template r > > ecursion/resolution > > notifications_enabled 1 ; Host notifications are enabled > > event_handler_enabled 1 ; Host 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 across > > program restarts > > retain_nonstatus_information 1 ; Retain non-status information > > across program restarts > > > > register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL > > HOST, JUST A TEMPLATE! > > notification_interval 0 ; send only one notification > > notification_period 24x7 ; do it 24 hours a day 7 days a week > > notification_options d,u,r ; send notification on down, unreachable > > and recovery > > check_command check-host-alive > > max_check_attempts 10 > > } > > > > Example host: > > > > define host{ > > use generic-host > > host_name somehost > > alias Some Alias > > address x.x.x.x > > parents someparent > > notifications_enabled 0 > > } > > > > I remove notifications_enabled and there is no change in the GUI output - it > > still apparently thinks notifications are disabled. > > > > Bill "Elvis" Gibbs > > Eduro Technologies, Inc. > > main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418 > > > > ------------------------------------------------------- > > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tagreen at mhsnetworks.net Mon Jan 6 15:36:27 2003 From: tagreen at mhsnetworks.net (Todd A. Green) Date: 06 Jan 2003 08:36:27 -0600 Subject: Host Retry Interval? Message-ID: <1041863786.13803.25.camel@desktop> After a series of pages this morning something dawned on me. There is no Host Retry Interval. I thought this was strange and checked the old Netsaint documentation as I thought it was available then, but not. It would seem that having a Host Retry Interval similar to the Service retry_interval would be a good thing to have. I would rather have Nagios recheck after a set interval instead of immediately. This way it gives the network a chance to recover, in the case of remote monitoring which we do a lot of. Just a thought... -- Todd A. Green Managed Hosting Soutions, Inc. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From emann at questinc.org Mon Jan 6 15:43:27 2003 From: emann at questinc.org (Evan Mann) Date: Mon, 6 Jan 2003 09:43:27 -0500 Subject: temporarily stop an alert Message-ID: Is there a way to temporarily stop one set of host alerts? -------------- next part -------------- An HTML attachment was scrubbed... URL: From nadine.vandois at bull.net Mon Jan 6 16:29:23 2003 From: nadine.vandois at bull.net (nadine.vandois at bull.net) Date: Mon, 6 Jan 2003 16:29:23 +0100 Subject: Happy New Year ! Message-ID: Happy new year for you and your family ! And, as I am french: 'Bonne ann?e et bonne sant? ? vous et ? votre famille'. And, in german with the help of a colleague: 'Ich w?nsche ihnen und ihrer Familie ein gutes neues Jahr'. And thank you for the people who answered to me last year. As we say in France: 'best is late than never'. As I was lucky, it is Dave who came in France in our site and helped me to solve my nrpe problem. Best regards, Nadine ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Jan 6 16:19:07 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 09:19:07 -0600 Subject: remote disk/load? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E121C@PKDWB03C.ad.sprint.com> Did you remember to define the check_nrpe command in checkcommands.cfg? jc > -----Original Message----- > From: joe usenta [mailto:jusenta at hotmail.com] > Sent: Friday, January 03, 2003 7:37 PM > To: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] remote disk/load? > > > great! i appreciate everyone's input, as nrpe seems the way to go. > i small problem, tho. i've got it installed, and i can do: > ./check_nrpe -H 10.0.0.46 -p 5666 -c check_disk3 > and i get the value returned correctly. however, when i start > nagios i get status 'Unknown' and the info is 'Incorrect command line > arguments supplied'. according to the nrpe docs, the service entry > should read (simplified for email): > define service{ > ... > check_command check_nrpe!check_disk3 > ... > } > correct? i've tried variations, using the ip address and port #, but > i get the same results. the answer to this one last piece > would be most > appreciative. > > thks, > jusenta > > _________________________________________________________________ > Help STOP SPAM: Try the new MSN 8 and get 2 months FREE* > http://join.msn.com/?page=features/junkmail > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dragon at darkness.at Mon Jan 6 15:37:17 2003 From: dragon at darkness.at (Dragon) Date: Mon, 06 Jan 2003 15:37:17 +0100 Subject: Newbie question Message-ID: <3E19949D.5040106@darkness.at> Hello I have 2 question :) sorry about my english ;) first.: i have a problem with 3-D status map. when i click on it, mozilla beginn a download. But all other links a working. second.: i have on rootserver ond three childserver, how have i to change the cfgs that i can see it on my statusmap. root / | \ / | \ / | \ child1 child2 child3 i have use hostdependency but i can see anything in statusmap ;( Thanks for helping york -- "Und es heisst auch, frage nicht die Elben um Rat, denn sie werden sowohl Ja als auch Nein sagen." [Frodo] ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Jan 6 16:24:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 09:24:46 -0600 Subject: disk_check_smb ==> No Output !? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E121E@PKDWB03C.ad.sprint.com> Is check_disk_smb properly defined in checkcommands.cfg? jc > -----Original Message----- > From: Pivert [mailto:pivert_home at yahoo.fr] > Sent: Friday, January 03, 2003 6:45 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] disk_check_smb ==> No Output !? > > > Hi !! > > I have a verry strange problem with Nagios and this plugin. > In nagios, I > have the plugin telling (No output!) : > > [1041349454] SERVICE NOTIFICATION: > sysmsg;MyWindowsHost;DISK;CRITICAL;notify-by-email;(No output!) > > And it I check the service manually : > > eye:/usr/local/nagios/plugins # ./check_disk_smb -H MyWindowsHost -s > AShare -u smb_check_user -p smb_check_password > Disk ok - 21.45G (87%) free on \\MyWindowsHost\AShare > eye:/usr/local/nagios/plugins # > > I tryed with the same user as nagios run without success.. > > Does anybody have an idea ?! > > Thanks!!! > > > Pivert. > > ___________________________________________________________ > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From AHKAPLAN at PARTNERS.ORG Mon Jan 6 16:33:13 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 6 Jan 2003 10:33:13 -0500 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: <5593DA408212D511B0910002A513501F01D2886A@phsexch20.mgh.harvard.edu> Chris, What is the complete syntax of the make install-mode command? Simply typing make install-mode results in a No rule to make target 'install-mode'. Stop error message. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Friday, January 03, 2003 10:16 AM To: Chris Losch Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 Did you make sure that: 1. In the installation phase, you ran "make install-mode" 2. The user that the apache runs as has permissions to write to nagios.cmd (usually done by added the "webserver" user to whatever group nagios.cmd is set to) Just some suggestions of things to double check. Russell Scibetti Chris Losch wrote: Did you encounter any of the problems mentioned in the thread mentioned below (i.e.) recieving the "Could not stat() command file" error, when trying to use the web interface to commit changes, schedule checks, enter downtime etc. etc. I have the rest of the Nagios functions working perfectly well, using the default (full) install of RH8 and nagios 1.0. (no CVS components) Chris -----Original Message----- From: donavan nelson [ mailto:donavan at 4wx.net ] Sent: 02 January 2003 20:20 To: Chris Losch; ' nagios-users at lists.sourceforge.net ' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and plugins (latest beta) from source. Using the default redhat apache install, etc. Nothing special on the server. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: "'nagios-users at lists.sourceforge.net'" Sent: Thu, 2 Jan 2003 16:55:59 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Just for Your Information, > There are several reported problems with Nagios1.0 on Redhat 8.0... > well at least 1 unresolved(?) problem. > > I haven't looked at the below issue specifically, however I have had > my own problems - see previous discussions entitiled "[Nagios-users] > Permissions Error (Could not stat() command file )" > > I would suggest that you read these threads, and determine if you REALLY > want to proceed with RH8 knowing that you may encounter these, so far > unresolved, issues that lie ahead for you. > > Unresolved, that is, unless someone knows better. (Crosses fingers) > Chris > > -----Original Message----- > From: Freddy Frouin [ mailto:freddy.frouin at fluxus.net ] > Sent: 02 January 2003 15:12 > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > just put the Alias rules before the ScriptAlias one... > it should work, does'nt it ? > > On Thu, 2 Jan 2003 09:57:24 -0500 > "Kaplan, Andrew H." wrote: > > > I'm having a problem accessing the monitoring pages. The main page can be > seen > > without a problem. > > However, any one of the monitoring screens comes back with the following > error > > message: > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > this > > server. > > > > As far as I can tell, I have the appropriate settings configured in the > > httpd.conf and cgi.cfg files. They > > are included in this e-mail. What am I missing or did not configure > correctly? > > Thanks. > > > > <> <> > > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > ------------------------------------------------------- > 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 > > ********************************************************************** 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. ********************************************************************** ------- End of Original Message ------- -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Volker.Aust at premiere.de Mon Jan 6 16:47:31 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 6 Jan 2003 16:47:31 +0100 Subject: notifications_enabled Message-ID: Bill, IIRC your problem have to do with retention. You have enabled retention of nonstatus information (eg. notification enabled, active checks enabled, ...) in your template (retain_nonstatus_information 1). If you want that Nagios is reading your config from the config file and not from the retention file, set retain_nonstatus_information 0 in your service definition (only for this service) or in your template (for all services that uses this template). Tom: I don't know whether check_period is remebered in the retention file. -vol > -----Original Message----- > From: Bill Gibbs [mailto:bgibbs at edurotech.com] > Sent: Monday, January 06, 2003 3:36 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] notifications_enabled > > > Hi, > I removed the references in the config files, restarted nagios and > verified they no longer showed up. I then put back the > config and restarted > nagios - and viola the looked correct. > > So it does appear to be a bug. > > Bill > > ----- Original Message ----- > From: "Tom DE BLENDE" > To: "Bill Gibbs" > Cc: > Sent: Monday, January 06, 2003 3:36 AM > Subject: Re: [Nagios-users] notifications_enabled > > > > Dear Bill, > > > > Funny you should mention this. I have seen some weird stuff > happening > > as well when I was porting our Netsaint installation to Nagios a few > > weeks ago. If I recall correctly, I had a passive service check > > defined as follows: > > > > > > check_period 24x7 > > check_command check_ping > > > > > > As you can see, this is wrong, as this service check should never be > > executed actively. So I changed the configuration of those services > > to: > > > > > > check_period none > > check_command check_ping > > > > > > I restarted the service, but the strange thing was that > these changes > > did not take effect. The service was still checked with > check_ping. I > > stopped the service, waited and started it again: same thing: the > > changes were not applied. After double checking everything, I had to > > cut this service from the services file, restart Nagios, verify that > > the service was gone, paste the exact same code in place again, and > > restart Nagios yet another time. This time the changes were applied. > > > > As I pasted the same configuration (cut and paste), I'm pretty > > confident that it is a bug. As I was quite busy at that time, I > > couldn't find the time to post it here, and I forgot. But > now that you > > post this similar behavior, I think that this should get some more > > attention. > > > > Anyone else experienced similar oddities? > > > > Kind regards, > > Tom > > > > > > Bill Gibbs wrote: > > > > > > I have a hosts.cfg file copied from the sample config. > > > > > > notifications_enabled is set to 1. > > > > > > I have a few hosts, where Iset notifications_enabled to 0 > - and when I > click > > > "host detail" I see a little icon of a bullhorn with an X over it. > > > > > > However, I want to reenable notifications for that host. > I removed that > > > line, restarted nagios (/etc/init.d/nagios restart) but > the icon still > > > appears. When I click the name of the host, it says "Host > notifications: > > > DISABLED". I even tried to say notifications_enabled 1 > specific in that > > > config block yet there is no change. > > > > > > Nagios version: 1.0 from 11/24/2002 > > > > > > Template: > > > > > > define host{ > > > name generic-host ; The name of this host > template - > > > referenced in other host definitions, used for template r > > > ecursion/resolution > > > notifications_enabled 1 ; Host notifications > are enabled > > > event_handler_enabled 1 ; Host 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 across > > > program restarts > > > retain_nonstatus_information 1 ; Retain > non-status information > > > across program restarts > > > > > > register 0 ; DONT REGISTER THIS > DEFINITION - ITS NOT A > REAL > > > HOST, JUST A TEMPLATE! > > > notification_interval 0 ; send only one notification > > > notification_period 24x7 ; do it 24 hours a day 7 days a week > > > notification_options d,u,r ; send notification on down, > unreachable > > > and recovery > > > check_command check-host-alive > > > max_check_attempts 10 > > > } > > > > > > Example host: > > > > > > define host{ > > > use generic-host > > > host_name somehost > > > alias Some Alias > > > address x.x.x.x > > > parents someparent > > > notifications_enabled 0 > > > } > > > > > > I remove notifications_enabled and there is no change in the GUI > output - it > > > still apparently thinks notifications are disabled. > > > > > > Bill "Elvis" Gibbs > > > Eduro Technologies, Inc. > > > main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418 > > > > > > ------------------------------------------------------- > > > 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 > > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From bgibbs at edurotech.com Mon Jan 6 16:58:35 2003 From: bgibbs at edurotech.com (Bill Gibbs) Date: Mon, 6 Jan 2003 10:58:35 -0500 Subject: notifications_enabled References: Message-ID: <00a001c2b59c$7845ef50$dc01a8c0@millenniumgroup.com> Yes, that definetly fixed the problem. Thanks, Bill ----- Original Message ----- From: To: Cc: ; Sent: Monday, January 06, 2003 10:47 AM Subject: RE: [Nagios-users] notifications_enabled > Bill, > > IIRC your problem have to do with retention. You have enabled retention of > nonstatus information (eg. notification enabled, active checks enabled, ...) > in your template (retain_nonstatus_information 1). If you want that Nagios > is reading your config from the config file and not from the retention file, > set retain_nonstatus_information 0 in your service definition (only for this > service) or in your template (for all services that uses this template). > > Tom: I don't know whether check_period is remebered in the retention file. > > -vol > > > -----Original Message----- > > From: Bill Gibbs [mailto:bgibbs at edurotech.com] > > Sent: Monday, January 06, 2003 3:36 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] notifications_enabled > > > > > > Hi, > > I removed the references in the config files, restarted nagios and > > verified they no longer showed up. I then put back the > > config and restarted > > nagios - and viola the looked correct. > > > > So it does appear to be a bug. > > > > Bill > > > > ----- Original Message ----- > > From: "Tom DE BLENDE" > > To: "Bill Gibbs" > > Cc: > > Sent: Monday, January 06, 2003 3:36 AM > > Subject: Re: [Nagios-users] notifications_enabled > > > > > > > Dear Bill, > > > > > > Funny you should mention this. I have seen some weird stuff > > happening > > > as well when I was porting our Netsaint installation to Nagios a few > > > weeks ago. If I recall correctly, I had a passive service check > > > defined as follows: > > > > > > > > > check_period 24x7 > > > check_command check_ping > > > > > > > > > As you can see, this is wrong, as this service check should never be > > > executed actively. So I changed the configuration of those services > > > to: > > > > > > > > > check_period none > > > check_command check_ping > > > > > > > > > I restarted the service, but the strange thing was that > > these changes > > > did not take effect. The service was still checked with > > check_ping. I > > > stopped the service, waited and started it again: same thing: the > > > changes were not applied. After double checking everything, I had to > > > cut this service from the services file, restart Nagios, verify that > > > the service was gone, paste the exact same code in place again, and > > > restart Nagios yet another time. This time the changes were applied. > > > > > > As I pasted the same configuration (cut and paste), I'm pretty > > > confident that it is a bug. As I was quite busy at that time, I > > > couldn't find the time to post it here, and I forgot. But > > now that you > > > post this similar behavior, I think that this should get some more > > > attention. > > > > > > Anyone else experienced similar oddities? > > > > > > Kind regards, > > > Tom > > > > > > > > > Bill Gibbs wrote: > > > > > > > > I have a hosts.cfg file copied from the sample config. > > > > > > > > notifications_enabled is set to 1. > > > > > > > > I have a few hosts, where Iset notifications_enabled to 0 > > - and when I > > click > > > > "host detail" I see a little icon of a bullhorn with an X over it. > > > > > > > > However, I want to reenable notifications for that host. > > I removed that > > > > line, restarted nagios (/etc/init.d/nagios restart) but > > the icon still > > > > appears. When I click the name of the host, it says "Host > > notifications: > > > > DISABLED". I even tried to say notifications_enabled 1 > > specific in that > > > > config block yet there is no change. > > > > > > > > Nagios version: 1.0 from 11/24/2002 > > > > > > > > Template: > > > > > > > > define host{ > > > > name generic-host ; The name of this host > > template - > > > > referenced in other host definitions, used for template r > > > > ecursion/resolution > > > > notifications_enabled 1 ; Host notifications > > are enabled > > > > event_handler_enabled 1 ; Host 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 across > > > > program restarts > > > > retain_nonstatus_information 1 ; Retain > > non-status information > > > > across program restarts > > > > > > > > register 0 ; DONT REGISTER THIS > > DEFINITION - ITS NOT A > > REAL > > > > HOST, JUST A TEMPLATE! > > > > notification_interval 0 ; send only one notification > > > > notification_period 24x7 ; do it 24 hours a day 7 days a week > > > > notification_options d,u,r ; send notification on down, > > unreachable > > > > and recovery > > > > check_command check-host-alive > > > > max_check_attempts 10 > > > > } > > > > > > > > Example host: > > > > > > > > define host{ > > > > use generic-host > > > > host_name somehost > > > > alias Some Alias > > > > address x.x.x.x > > > > parents someparent > > > > notifications_enabled 0 > > > > } > > > > > > > > I remove notifications_enabled and there is no change in the GUI > > output - it > > > > still apparently thinks notifications are disabled. > > > > > > > > Bill "Elvis" Gibbs > > > > Eduro Technologies, Inc. > > > > main 240-529-2000 | fax 301-662-9552 | cell 301-748-5418 > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Volker.Aust at premiere.de Mon Jan 6 17:07:10 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 6 Jan 2003 17:07:10 +0100 Subject: Still having check_by_ssh problems Message-ID: This is what I get when I execute from the Nagios host as nagios user a remote check_disk: $ ./libexec13b2/check_by_ssh -H w.x.y.z -l nagios -i /usr/local/nagios/.ssh/id_rsa -C /usr/local/nagios/libexec/check_disk -w 80% -c 70% -m -p /export/home DISK CRITICAL - [10421765 kB (64%) free on /export/home] $ echo $? 2 What is the result when you call your checks as nagios user from your nagios host from the command line? Can you send an example? -vol > -----Original Message----- > From: Blair Rampling [mailto:brampling at methanex.com] > Sent: Friday, January 03, 2003 10:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Still having check_by_ssh problems > > > I am still having the problem described below. The plugin is > returining an exit code of 2 when it is run locally, but > check_by_ssh is returning an exit code of 0. Does nobody else > have this problem? Perhaps I am overlooking something obvious. > > > I have a number of things monitored by check_by_ssh. Even > when the remote plugin exits with an error code other than 0, > nagios shows OK leading me to believe that check_by_ssh is > returning error code 0 regardless. I am using 1.3 beta 2 of > the plugins and nagios 1.0. Why is this happening and how do > I fix it? Thanks. > > Here are two examples of checks that are returning OK when > they shouldn't: > > # 'check_remote_mem' command definition > define command{ > command_name check_remote_mem > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" > } > > # 'check_remote_ps_proc' command definition > define command{ > command_name check_remote_ps_proc > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" > } > > > - -- > Blair Rampling > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From JBilder at netrixllc.com Mon Jan 6 17:11:16 2003 From: JBilder at netrixllc.com (Jeff Bilder) Date: Mon, 06 Jan 2003 10:11:16 -0600 Subject: Status Map Problem Message-ID: Hello List, I'm running nagios 1.0 from Nov. 24th. I have it installed and working properly on FreeBSD 4.7. The only problem I seem to be experiencing is with the statusmap.cgi page. I have pictures to display the different hosts I am monitoring. It seems that the pictures do not seem to be showing up on the 1st status map page. They only appear as transparent pics outlined in a black lined box. When you mouse over the transparent pic the status shows the picture, but the one on the map itself never seems to appear. Has anyone experienced this? I have GD installed and the other graphics libraries but it doesn't seem to be working. Also... When I try to run a report on the trends.. It shows the Up, Down, Unreachable with dotted black lines, but never reports if the host/service was up or down. Are these problems related to each other? Any help would be much appreciated. Thanks! Jeffry Bilder Network Engineer Netrix LLC jbilder at netrixllc.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Mon Jan 6 05:38:03 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 5 Jan 2003 23:38:03 -0500 (EST) Subject: SNMP monitoring of HP printers In-Reply-To: <03AA3D7DD4488840996C036E23BE71C41B57EA@zde008.lenze.com> References: <03AA3D7DD4488840996C036E23BE71C41B57EA@zde008.lenze.com> Message-ID: Try http://www.wtcs.org/snmp4tpc/ - Management | MIBS for a list of HP MIBS by model... Also check_hpjd in the standard plugins is designed to support HP's JetDirect card and qurey it via SNMP. -sg On Thu, 2 Jan 2003, Schimpke, Dr. Thomas / bhn wrote: > > > Alas, it appears that www.mibcentral.com has lapsed. :( > > Mibcentral has been moved to mibDepot. There has been some trouble > concerning the name iirc...See > http://12.47.45.123/index.shtml > > I've scanned through the JetDirect mib...It looks like that the JetDirect > Box throws a trap to your trap-destination, if the toner is low or empty, if > the paper tray is open... > > That's my work for the next weeks... > > Thomas > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From dviner at yahoo-inc.com Mon Jan 6 17:54:47 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Mon, 6 Jan 2003 08:54:47 -0800 Subject: Still having check_by_ssh problems In-Reply-To: References: Message-ID: one thought might be to change your command definitions from what you have: define command{ command_name check_remote_mem command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" } to something that isn't user specific. That is, the ~ will be ~nagios/ when nagios runs the command (or whatever user you have configured Nagios to run as), and ~blair/ when you run it. Probably better to say something like: define command{ command_name check_remote_mem command_line $USER1$/check_by_ssh -f -l sysadmin -H $HOSTADDRESS$ -C "/home/blair/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" } that way, you can be guarenteed of which executable is running. this might not be the problem, but i thought i'd make the suggestion anyway. dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Volker.Aust at premiere.de Sent: Monday, January 06, 2003 8:07 AM To: nagios-users at lists.sourceforge.net Cc: brampling at methanex.com Subject: RE: [Nagios-users] Still having check_by_ssh problems This is what I get when I execute from the Nagios host as nagios user a remote check_disk: $ ./libexec13b2/check_by_ssh -H w.x.y.z -l nagios -i /usr/local/nagios/.ssh/id_rsa -C /usr/local/nagios/libexec/check_disk -w 80% -c 70% -m -p /export/home DISK CRITICAL - [10421765 kB (64%) free on /export/home] $ echo $? 2 What is the result when you call your checks as nagios user from your nagios host from the command line? Can you send an example? -vol > -----Original Message----- > From: Blair Rampling [mailto:brampling at methanex.com] > Sent: Friday, January 03, 2003 10:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Still having check_by_ssh problems > > > I am still having the problem described below. The plugin is > returining an exit code of 2 when it is run locally, but > check_by_ssh is returning an exit code of 0. Does nobody else > have this problem? Perhaps I am overlooking something obvious. > > > I have a number of things monitored by check_by_ssh. Even > when the remote plugin exits with an error code other than 0, > nagios shows OK leading me to believe that check_by_ssh is > returning error code 0 regardless. I am using 1.3 beta 2 of > the plugins and nagios 1.0. Why is this happening and how do > I fix it? Thanks. > > Here are two examples of checks that are returning OK when > they shouldn't: > > # 'check_remote_mem' command definition > define command{ > command_name check_remote_mem > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" > } > > # 'check_remote_ps_proc' command definition > define command{ > command_name check_remote_ps_proc > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" > } > > > - -- > Blair Rampling > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From sghosh at sghosh.org Mon Jan 6 05:40:19 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sun, 5 Jan 2003 23:40:19 -0500 (EST) Subject: Line-Monitoring with check_snmp on Ciscos .... In-Reply-To: References: Message-ID: Also try "check_ifstatus" and "check_ifoperstatus" for line status via snmp. -sg On Thu, 2 Jan 2003, Luis Duarte wrote: > > Nagios reports OK because the plugin returns OK! > What you need to do is something like this: > > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C $ARG2$ -r > up > > the '-r up' is the key, it will return OK if it will find the string "up" > in the response and CRITICAL otherwise. > check all options with 'check_snmp -h'. > > Cordialmente, > > Luis Filipe Duarte > ____________________________________________________________ > IT-Log, Logistica e Gestao de Tecnologias de Informacao - Grupo EDP > Outsourcing - Gestao de Redes > e-mail: luis.duarte at itlog.edinfor.pt > tel: +351 21 001 8700 > fax: +351 21 001 8740 > > > > Jan-Hendrik Palic > To: nagios-users at lists.sourceforge.net > Sent by: cc: > nagios-users-admin at lists.sourc Subject: [Nagios-users] Line-Monitoring with check_snmp on Ciscos > eforge.net .... > > > 02-01-2003 12:16 > > > > > > Hoi ... > > a happy new year to everyone ... > > Just a question, I want to check the lines on our ciscos and I thought, > this will do it: > > # 'check_snmp' command definition > define command{ > command_name check_snmp_Line > command_line $USER1$/check_snmp -H $HOSTADDRESS$ -o $ARG1$ -C > $ARG2$ > } > > This checks our line and gives "snmp ok - up (1)" back, if it is up, and > "snmp ok - down (0)", if it is down. > The problem is, that nagios shows the checks in both time as ok/green. > > What is the way, to get down-notifications, if the line is down? > > > Thnx and regards > Jan > > -- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Volker.Aust at premiere.de Mon Jan 6 18:15:32 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Mon, 6 Jan 2003 18:15:32 +0100 Subject: Problems with Nagios 1.0 on Red Hat 8.0 Message-ID: IIRC the command is "make install-commandmode". -vol -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Monday, January 06, 2003 4:33 PM To: 'Russell Scibetti' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 Chris, What is the complete syntax of the make install-mode command? Simply typing make install-mode results in a No rule to make target 'install-mode'. Stop error message. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Friday, January 03, 2003 10:16 AM To: Chris Losch Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 Did you make sure that: 1. In the installation phase, you ran "make install-mode" 2. The user that the apache runs as has permissions to write to nagios.cmd (usually done by added the "webserver" user to whatever group nagios.cmd is set to) Just some suggestions of things to double check. Russell Scibetti Chris Losch wrote: Did you encounter any of the problems mentioned in the thread mentioned below (i.e.) recieving the "Could not stat() command file" error, when trying to use the web interface to commit changes, schedule checks, enter downtime etc. etc. I have the rest of the Nagios functions working perfectly well, using the default (full) install of RH8 and nagios 1.0. (no CVS components) Chris -----Original Message----- From: donavan nelson [ mailto:donavan at 4wx.net ] Sent: 02 January 2003 20:20 To: Chris Losch; ' nagios-users at lists.sourceforge.net ' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and plugins (latest beta) from source. Using the default redhat apache install, etc. Nothing special on the server. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: "'nagios-users at lists.sourceforge.net'" Sent: Thu, 2 Jan 2003 16:55:59 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Just for Your Information, > There are several reported problems with Nagios1.0 on Redhat 8.0... > well at least 1 unresolved(?) problem. > > I haven't looked at the below issue specifically, however I have had > my own problems - see previous discussions entitiled "[Nagios-users] > Permissions Error (Could not stat() command file )" > > I would suggest that you read these threads, and determine if you REALLY > want to proceed with RH8 knowing that you may encounter these, so far > unresolved, issues that lie ahead for you. > > Unresolved, that is, unless someone knows better. (Crosses fingers) > Chris > > -----Original Message----- > From: Freddy Frouin [ mailto:freddy.frouin at fluxus.net ] > Sent: 02 January 2003 15:12 > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > just put the Alias rules before the ScriptAlias one... > it should work, does'nt it ? > > On Thu, 2 Jan 2003 09:57:24 -0500 > "Kaplan, Andrew H." wrote: > > > I'm having a problem accessing the monitoring pages. The main page can be > seen > > without a problem. > > However, any one of the monitoring screens comes back with the following > error > > message: > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > this > > server. > > > > As far as I can tell, I have the appropriate settings configured in the > > httpd.conf and cgi.cfg files. They > > are included in this e-mail. What am I missing or did not configure > correctly? > > Thanks. > > > > <> <> > > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > ------------------------------------------------------- > 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 > > ********************************************************************** 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. ********************************************************************** ------- End of Original Message ------- -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gwichman at zantaz.com Mon Jan 6 18:42:51 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Mon, 6 Jan 2003 09:42:51 -0800 Subject: why is nagios pinging servers? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB411E@zanexch.zantaz.com> nagios 1781 0.0 0.1 1508 448 ? S 17:35 0:00 /bin/ping -n -U -c 1 10.1.82.35 I'm getting hosts showing as down still even after redeploying on RH73.. I think there's something wrong in my config as my server should only be accepting passive results, not trying to ping IP's that it can't even talk to in the first place (all hosts are behind firewalls and monitored via distributed servers). What variable controls these active ping checks? My services.cfg ping doesn't seem to be the culpret because even if I comment out the entire PING service, nagios still does it.. # Service definition define service{ use generic-service ; Name of service template to use host_name * service_description PING is_volatile 0 check_period 24x7 active_checks_enabled 0 passive_checks_enabled 1 check_freshness 1 freshness_threshold 600 max_check_attempts 3 normal_check_interval 10 retry_check_interval 5 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } 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 gdg at b-com.net Mon Jan 6 18:55:36 2003 From: gdg at b-com.net (Grueninger Gaudenz) Date: Mon, 6 Jan 2003 18:55:36 +0100 Subject: How to configure syslog facility Message-ID: Hi, Is it possible to configure which syslog facility nagios should use? At the moment nagios using the messages facility. Many thanks for advising. Cheers, Gaudenz ______________________________ Gaudenz Dumeng Grueninger B.Com International AG Senior Consultant Baslerstrasse 30 CH-8048 Zurich Phone +41 1 578 7013 Mobile +41 79 345 7038 Email mailto:gdg at b-com.net Internet http://www.b-com.net ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jnichols at pbp.net Mon Jan 6 18:47:30 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Mon, 6 Jan 2003 09:47:30 -0800 (PST) Subject: Nagios oddity - vanishing services Message-ID: Greetings! Hard drive in my netsaint machine died a horrible death, so I finally took the plunge and installed Nagios 1.0. It's working very well so far, except for one thing that is driving me nuts. Services are just.. vanishing. I can't really describe it in words, so here's a URL for a screenshot: http://www.pbp.net/~jnichols/images/nagios_before.jpg Notice that there are 60 services. When I click "Service Detail" (or any of the options, really..) it changes. The number of services drops down to only 52. Services drop off of multiple machines. http://www.pbp.net/~jnichols/images/nagios_after.jpg is what it looks like afterwards. If I right click the frame and choose "Reload," the correct information will show up - sometimes. When the page auto refreshes, sometimes the information shows up, but usually not. I'm not sure what to make of this. Has anyone else seen this before? Thanks! -Jonathan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jlyons30 at yahoo.com Mon Jan 6 18:59:50 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 6 Jan 2003 09:59:50 -0800 (PST) Subject: CISCO MIB In-Reply-To: References: Message-ID: <20030106175950.52080.qmail@web21509.mail.yahoo.com> That was my point too.. :) Sure be nice if somone allready had the common ones listed somewhere, going thru the MIBs can be a pain... "Potter, G M (Greg)" wrote:I tried snmpwalk, it does indeed return a list of OID's, unfortunately unless you know what they are there is not a description. I didn't know which one to check. Greg > -----Original Message----- > From: Jan-Hendrik Palic [mailto:jhp at addix.net] > Sent: Monday, January 06, 2003 3:01 AM > To: Nagios-users (E-mail) > Subject: Re: [Nagios-users] CISCO MIB > > > Hoi .. > > On Thu, Jan 02, 2003 at 09:58:00AM -0800, Jon Lyons wrote: > >Hey, can I get those MIBs as well?? > > You can use snmp-walk to get your OIDs you need. > > Regards > Jan > > > ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From chris.stankaitis at datawire.net Mon Jan 6 18:46:29 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Mon, 06 Jan 2003 12:46:29 -0500 Subject: why is nagios pinging servers? In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB411E@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB411E@zanexch.zantaz.com> Message-ID: <3E19C0F5.40606@datawire.net> The issue I believe is your check_command... what happens is when your freshness expires it will FORCE an active check and use the check_command you have defined... thus as you have defined check_ping it will ping, so you want to define a dummy command that will pass an "UNKNOWN" or "CRITIAL" sate when you service becomes stale. it's pretty well outlined in the docs for the freshness checking, take a look at them again, they even give you the "dummy" script code. --Chris Gerald Wichmann wrote: > nagios 1781 0.0 0.1 1508 448 ? S 17:35 0:00 /bin/ping > -n -U -c 1 10.1.82.35 > > > > > > I?m getting hosts showing as down still even after redeploying on RH73.. > I think there?s something wrong in my config as my server should only be > accepting passive results, not trying to ping IP?s that it can?t even > talk to in the first place (all hosts are behind firewalls and monitored > via distributed servers). What variable controls these active ping > checks? My services.cfg ping doesn?t seem to be the culpret because even > if I comment out the entire PING service, nagios still does it.. > > > > # Service definition > > define service{ > > use generic-service ; Name > of service template to use > > > > host_name * > > service_description PING > > is_volatile 0 > > check_period 24x7 > > active_checks_enabled 0 > > passive_checks_enabled 1 > > check_freshness 1 > > freshness_threshold 600 > > max_check_attempts 3 > > normal_check_interval 10 > > retry_check_interval 5 > > contact_groups linux-admins > > notification_interval 120 > > notification_period 24x7 > > notification_options c,r > > check_command check_ping!100.0,20%!500.0,60% > > } > > > > > > > > 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. > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gwichman at zantaz.com Mon Jan 6 19:01:00 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Mon, 6 Jan 2003 10:01:00 -0800 Subject: Notifications about hosts being DOWN or UNREACHABLE when they are UP Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB411F@zanexch.zantaz.com> The below Nagios FAQ seems to address what I'm experiencing. All but 2 of my hosts are not reachable by the central nagios server, thus when it attempts to do a host check it of course comes back as UNREACHABLE in most cases. Problem is the FAQ below doesn't tell you what to do about it. Modify my check-host-alive command definition? To what in the case of a centralized server only accepting passive service checks? Or is it simply more appropriate to disable and ignore UNREACHABLE statuses? My centralized server gets all checks from 2 distributed servers and cannot directly check any hosts due to firewalls. Methinks the Nagios documentation could use a bit more clarification on this type of configuration.. Appreciate any help Title: Notifications about hosts being DOWN or UNREACHABLE when they are UP FAQ ID: F0016 Submitted By: Ethan Galstad Last Updated: 07/24/2002 Description: User is receiving notifications about hosts being in certain states (i.e. DOWN or UNREACHABLE), when they are really in a different state (i.e. UP). This seems to be one of the most common problems for new user of Nagios. Most all of the time this problem is due to an incorrect command definition for the host check command you specified in the host definition. Solution: Make sure that the host check command in your host definition is configured correctly. The host check command is not a service - it is part of the host definition. Also, the host check command is not executed at regular intervals like a service is. Rather, it is executed only when Nagios finds it necessary to check the status of the host. Important! Just because you have a service that is monitoring ping statistics for a host does not mean that the actual host status is being checked. The status of a host is only checked when a service check results in a non-OK state or if the host was previously down and a service check results in an OK state. Some symptoms of incorrect host check commands include: 1. Hosts incorrectly being listed as DOWN 2. Hosts incorrectly being listed as UNREACHABLE 3. Alternating alerts/notifications about host problems and recoveries Related FAQs: F0015 Hosts are incorrectly listed as being DOWN or UNREACHABLE Keywords: host down unreachable up incorrect wrong notification 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 jlyons30 at yahoo.com Mon Jan 6 19:10:42 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 6 Jan 2003 10:10:42 -0800 (PST) Subject: Nagios oddity - vanishing services In-Reply-To: References: Message-ID: <20030106181042.32352.qmail@web21504.mail.yahoo.com> YES, and it drove me crazy for hours & hours, don't edit the config files while nagios is running, (except *ext.cfgs), and make sure that ALL nagios processes have stopped and restart nagios should clear things up... Jonathan Nichols wrote:Greetings! Hard drive in my netsaint machine died a horrible death, so I finally took the plunge and installed Nagios 1.0. It's working very well so far, except for one thing that is driving me nuts. Services are just.. vanishing. I can't really describe it in words, so here's a URL for a screenshot: http://www.pbp.net/~jnichols/images/nagios_before.jpg Notice that there are 60 services. When I click "Service Detail" (or any of the options, really..) it changes. The number of services drops down to only 52. Services drop off of multiple machines. http://www.pbp.net/~jnichols/images/nagios_after.jpg is what it looks like afterwards. If I right click the frame and choose "Reload," the correct information will show up - sometimes. When the page auto refreshes, sometimes the information shows up, but usually not. I'm not sure what to make of this. Has anyone else seen this before? Thanks! -Jonathan ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Mon Jan 6 19:04:14 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 6 Jan 2003 10:04:14 -0800 (PST) Subject: Host Retry Interval? In-Reply-To: <1041863786.13803.25.camel@desktop> References: <1041863786.13803.25.camel@desktop> Message-ID: <20030106180414.3751.qmail@web21507.mail.yahoo.com> Yep, I've noticed the same problem with nagios, maybe this should be included in future releases? I ended up increasing the max attempts by 5x for hosts.. "Todd A. Green" wrote:After a series of pages this morning something dawned on me. There is no Host Retry Interval. I thought this was strange and checked the old Netsaint documentation as I thought it was available then, but not. It would seem that having a Host Retry Interval similar to the Service retry_interval would be a good thing to have. I would rather have Nagios recheck after a set interval instead of immediately. This way it gives the network a chance to recover, in the case of remote monitoring which we do a lot of. Just a thought... -- Todd A. Green Managed Hosting Soutions, Inc. ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Mon Jan 6 19:15:13 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 06 Jan 2003 13:15:13 -0500 Subject: Nagios oddity - vanishing services References: Message-ID: <3E19C7B1.60802@quadrix.com> Sounds like you have multiple daemons running. Try this. Stop nagios, and make sure there are no nagios processes running (kill -9 any lingering ones). Once you know there is nothing nagios-related running, do a nagios start again and see if the problem goes away. Russell Jonathan Nichols wrote: >Greetings! > Hard drive in my netsaint machine died a horrible death, so I >finally took the plunge and installed Nagios 1.0. It's working very well >so far, except for one thing that is driving me nuts. > >Services are just.. vanishing. I can't really describe it in words, so >here's a URL for a screenshot: > >http://www.pbp.net/~jnichols/images/nagios_before.jpg > >Notice that there are 60 services. > >When I click "Service Detail" (or any of the options, really..) it >changes. The number of services drops down to only 52. Services drop off >of multiple machines. > >http://www.pbp.net/~jnichols/images/nagios_after.jpg is what it looks like >afterwards. > >If I right click the frame and choose "Reload," the correct information >will show up - sometimes. >When the page auto refreshes, sometimes the information shows up, but >usually not. > >I'm not sure what to make of this. Has anyone else seen this before? > >Thanks! > >-Jonathan > > > >------------------------------------------------------- >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 > > -- 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 From donavan at 4wx.net Mon Jan 6 19:43:26 2003 From: donavan at 4wx.net (donavan nelson) Date: Mon, 6 Jan 2003 12:43:26 -0600 Subject: check_mrtgtraf with nagios v1.0 In-Reply-To: <20030106060853.M1611@4wx.net> References: <20030106060853.M1611@4wx.net> Message-ID: <20030106184326.M84690@4wx.net> ARRRGGGGGGGGGGGHHHHHHHHHHHHHHHH, I had a typo, I was running the wrong entry in nrpe.cfg with check_nrpe. Normal error I have with nagios, user stupidity. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "donavan nelson" To: "nagios-users" Sent: Mon, 6 Jan 2003 00:08:53 -0600 Subject: [Nagios-users] check_mrtgtraf with nagios v1.0 > Is anyone using the check_mrtgtraf plug-in with nagios v1.0? It > doesn't seem to be reporting a status level with the output. > > I'm currently trying from the command line as follows: > > sparky:/usr/local/nagios/etc # ../libexec/execs/check_mrtgtraf -F > /var/chroot-snmp.mrtg/var/mrtg/eth1.log -a AVG -w 100,100 -c 200,200 > Ave. In = 335.0 B/s, Ave. Out = 523.0 B/s > sparky:/usr/local/nagios/etc # echo $? > 2 > sparky:/usr/local/nagios/etc # > > nagios is not picking this up as a critical. Is the text CRITICAL necessary > even though it's exiting with the correct value? > > -- > Donavan Nelson > 4wx Networks > www.4wx.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 > > SPAM: -------------------- Start SpamAssassin results --------------- > ------- SPAM: This mail is probably spam. The original message has > been altered SPAM: so you can recognise or block similar unwanted > mail in future. SPAM: See http://spamassassin.org/tag/ for more details. > SPAM: > SPAM: Content analysis details: (0.40 hits, 5 required) > SPAM: TO_LOCALPART_EQ_REAL (-0.3 points) To: repeats local-part as > real name SPAM: SPAM_PHRASE_00_01 (0.8 points) BODY: Spam phrases > score is 00 to 01 (low) SPAM: [score: 0] SPAM: > KNOWN_MAILING_LIST (-0.1 points) Email came from some known mailing > list software SPAM: SPAM: -------------------- End of SpamAssassin > results --------------------- ------- End of Original Message ------- ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From gwichman at zantaz.com Mon Jan 6 19:59:14 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Mon, 6 Jan 2003 10:59:14 -0800 Subject: Notifications about hosts being DOWN or UNREACHABL E when they are UP Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB4121@zanexch.zantaz.com> Ok I think after some reading the trick is to remove the check_command statement in hosts.cfg for those servers that cannot be directly checked by the centralized server. I thought all checks were done/defined by the services.cfg file but apparently not. Common newbie misunderstanding I guess. Helps to read deeper into how nagios actually works. Seems to be working well now though I'll have to make sure when a service check goes red, so does that particular respective host. 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 jcarro10 at sprintspectrum.com Mon Jan 6 20:39:19 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 13:39:19 -0600 Subject: why is nagios pinging servers? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1226@PKDWB03C.ad.sprint.com> That's all fine and dandy, but what do you have defined for the host definition? If you're using the default check-host-alive, and if that is still configured to use the default check_ping in checkcommands.cfg, that could be your problem. You might want to set up a check-host-dummy to utilize the check_dummy plugin. (Of course, I could be completely off-base, since I've never set up passives, but... give it a try?) Food for thought. jc -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Monday, January 06, 2003 11:43 AM To: Nagios (E-mail) Subject: [Nagios-users] why is nagios pinging servers? nagios 1781 0.0 0.1 1508 448 ? S 17:35 0:00 /bin/ping -n -U -c 1 10.1.82.35 I'm getting hosts showing as down still even after redeploying on RH73.. I think there's something wrong in my config as my server should only be accepting passive results, not trying to ping IP's that it can't even talk to in the first place (all hosts are behind firewalls and monitored via distributed servers). What variable controls these active ping checks? My services.cfg ping doesn't seem to be the culpret because even if I comment out the entire PING service, nagios still does it.. # Service definition define service{ use generic-service ; Name of service template to use host_name * service_description PING is_volatile 0 check_period 24x7 active_checks_enabled 0 passive_checks_enabled 1 check_freshness 1 freshness_threshold 600 max_check_attempts 3 normal_check_interval 10 retry_check_interval 5 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_ping!100.0,20%!500.0,60% } 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 atonns at mail.ivillage.com Mon Jan 6 20:34:32 2003 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Mon, 6 Jan 2003 14:34:32 -0500 Subject: lack of notificatons when switching from WARNING to CRITICAL stat e? Message-ID: 1) It seems that when a service goes from a WARNING to CRITICAL state, I'm not getting a notification. Basically, I would like warnings to go to opteam only, and criticals/unknowns to go to oncall only - which is how my current config is setup. Basically, for a warning, there's no reason to wake someone up in the middle of the night - it can be dealt with in the morning. But criticals should be sent to the oncall pager. 2) I'd also like the recovery messages to go to the correct group ONLY - warning recoveries to opteam only and critical recoveries to oncall only. Currently warning recoveries go to opteam, but critical recoveries go to opteam & oncall. I have read the notifications document (http://nagios.sourceforge.net/docs/1_0/notifications.html) and it seems that a switch from WARNING to CRITICAL would satisfy both conditions of "(1) a notification was already sent out about a problem with the host or service at some point in the past and (2) the host or service has remained in the same non-OK state that it was when the last notification went out." because WARNING and CRITICAL are NOT the same non-OK state. Any help would be appreciated. For reference, my current config very similar to: (email addresses and cosmetic name changes made to prevent SPAM) define service{ use generic-service ; Name of service template to use host_name monitoring-server service_description CPU is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups oncall notification_interval 0 notification_period 24x7 notification_options w,u,c,r check_command check_cpu!90%!99% } define contactgroup{ contactgroup_name oncall alias On Call Pager members oncall,opteam } define contact{ contact_name oncall alias On Call Pager service_notification_period 24x7 host_notification_period 24x7 service_notification_options u,c,r host_notification_options d,u,r service_notification_commands notify-by-epager host_notification_commands host-notify-by-epager email pager-email at domain.com pager pager-email at domain.com } define contact{ contact_name opteam alias Operations Group service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email local-mailing-list at domain.com pager local-mailing-list at domain.com } Thanks in advance! -- "Computer science is as much about computers as astronomy is about telescopes" -- Edsger Dijkstra --------------------------------------------------------- Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnichols at pbp.net Mon Jan 6 20:54:45 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Mon, 6 Jan 2003 11:54:45 -0800 (PST) Subject: FAQ question Message-ID: Hey guys - Where did the FAQ on nagios.org come from? I mean, what software package was used to create it? Our current FAQ base solution at work is horrid and I desperately want to replace it. -Jonathan ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From tim at mintoskatingclub.com Mon Jan 6 21:28:22 2003 From: tim at mintoskatingclub.com (The Minto Skating Club) Date: Mon, 6 Jan 2003 15:28:22 -0500 (EST) Subject: nrpe not able to run on solaris machine Message-ID: <200301062028.h06KSMbW002191@webmail1.magma.ca> Try: nrpe -d /etc/nrpe.cfg /Tim On Jan 6 , =?iso-8859-1?q?hrishy?= wrote: > > Hi Jan > > I have specified the following command > > $ nrpe -c /etc/nrpe.cfg --daemon > $ > $ ps -ef|grep nrpe > $ > > > its -c ..if i try -f its not working.. > > regards > Hrishy > > > --- Jan-Hendrik Palic wrote: > Hi ... > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy > > wrote: > > >I am unable to run the nrpe deamon on sun solaris > > >machine.I have sucessfuly compiled the nrpe deamon > > on > > >sun solaris ..however when i run the nrpe deamon in > > >standalone mode or as a inetd mode..and do a > > >ps-ef|grep nrpe nothing is being displayed..can you > > >tell us why. > > > > did you specify the config-file with "-f". > > > > Regards > > Jan > > > > > > > ------------------------------------------------------- > > 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 > > __________________________________________________ > 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: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 > Tim Shouldice WebMaster - The Minto Skating Club ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From groups at thinlayer.co.uk Mon Jan 6 21:38:12 2003 From: groups at thinlayer.co.uk (Thinlayer) Date: 06 Jan 2003 20:38:12 +0000 Subject: Problems with Nagios 1.0 on Red Hat 8.0 In-Reply-To: <5593DA408212D511B0910002A513501F01D2886A@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D2886A@phsexch20.mgh.harvard.edu> Message-ID: <1041885491.5425.27.camel@servalon> I have some RH8.0 rpms you are welcome to try :) rue On Mon, 2003-01-06 at 15:33, Kaplan, Andrew H. wrote: > Chris, > > What is the complete syntax of the make install-mode command? Simply > typing make install-mode results in a > > No rule to make target 'install-mode'. Stop error message. > > Thanks. > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Friday, January 03, 2003 10:16 AM > To: Chris Losch > Cc: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red > Hat 8.0 > > > Did you make sure that: > > 1. In the installation phase, you ran "make install-mode" > 2. The user that the apache runs as has permissions to write > to nagios.cmd (usually done by added the "webserver" user to > whatever group nagios.cmd is set to) > > Just some suggestions of things to double check. > > Russell Scibetti > > Chris Losch wrote: > > Did you encounter any of the problems mentioned in the > > thread mentioned below (i.e.) recieving the "Could not > > stat() command file" error, when trying to use the web > > interface to commit changes, schedule checks, enter downtime > > etc. etc. > > > > I have the rest of the Nagios functions working perfectly > > well, using the default (full) install of RH8 and nagios > > 1.0. (no CVS components) > > > > Chris > > -----Original Message----- > > From: donavan nelson [mailto:donavan at 4wx.net ] > > Sent: 02 January 2003 20:20 > > To: Chris Losch; 'nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red > > Hat 8.0 > > > > > > I have nagios running just fine on redhat 8.0. Compiled > > nagios 1.0 and > > plugins (latest beta) from source. Using the default redhat > > apache install, > > etc. Nothing special on the server. > > > > .dn > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: Chris Losch > > To: "'nagios-users at lists.sourceforge.net'" > > > > Sent: Thu, 2 Jan 2003 16:55:59 -0000 > > Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red > > Hat 8.0 > > > > > Just for Your Information, > > > There are several reported problems with Nagios1.0 on > > Redhat 8.0... > > > well at least 1 unresolved(?) problem. > > > > > > I haven't looked at the below issue specifically, however > > I have had > > > my own problems - see previous discussions entitiled > > "[Nagios-users] > > > Permissions Error (Could not stat() command file )" > > > > > > I would suggest that you read these threads, and determine > > if you REALLY > > > want to proceed with RH8 knowing that you may encounter > > these, so far > > > unresolved, issues that lie ahead for you. > > > > > > Unresolved, that is, unless someone knows better. (Crosses > > fingers) > > > Chris > > > > > > -----Original Message----- > > > From: Freddy Frouin [mailto:freddy.frouin at fluxus.net ] > > > Sent: 02 January 2003 15:12 > > > To: Kaplan, Andrew H. > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on > > Red Hat 8.0 > > > > > > just put the Alias rules before the ScriptAlias one... > > > it should work, does'nt it ? > > > > > > On Thu, 2 Jan 2003 09:57:24 -0500 > > > "Kaplan, Andrew H." wrote: > > > > > > > I'm having a problem accessing the monitoring pages. The > > main page can be > > > seen > > > > without a problem. > > > > However, any one of the monitoring screens comes back > > with the following > > > error > > > > message: > > > > > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi > > was not found on > > > this > > > > server. > > > > > > > > As far as I can tell, I have the appropriate settings > > configured in the > > > > httpd.conf and cgi.cfg files. They > > > > are included in this e-mail. What am I missing or did > > not configure > > > correctly? > > > > Thanks. > > > > > > > > <> <> > > > > > > > > > > > > > > -- > > > Freddy Frouin > > > Responsable Supervision > > > British Telecom / Fluxus > > > 30, rue du Ch?teau des Rentiers > > > 75013 Paris > > > > > > T?l: +33 (0)1 44 97 70 00 > > > Fax: +33 (0)1 44 97 70 07 > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > ********************************************************************** > > 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. > > ********************************************************************** > > ------- End of Original Message ------- > > > > > -- > 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 From groups at thinlayer.co.uk Mon Jan 6 21:36:15 2003 From: groups at thinlayer.co.uk (Thinlayer) Date: 06 Jan 2003 20:36:15 +0000 Subject: Newbie question In-Reply-To: <3E19949D.5040106@darkness.at> References: <3E19949D.5040106@darkness.at> Message-ID: <1041885375.2371.25.camel@servalon> I would say RTFM but am feeling generous tonight ;) > first.: > i have a problem with 3-D status map. when i click > on it, mozilla beginn a download. But all other > links a working. You will need a VRML pligin for your browser. It's dificult to recommend one without knowing your OS but it tends to come down to personal preference anyway. Check the docs for some links to resources: http://www.nagios.org/faqs/viewfaq.php?faq_id=51&expand=false&showdesc=t > second.: > i have on rootserver ond three childserver, how have > i to change the cfgs that i can see it on my > statusmap. > > > root > / | \ > / | \ > / | \ > child1 child2 child3 > > i have use hostdependency but i can see anything in > statusmap ;( You need to use 'parents' for this in your host configuration file thus: host_name child1 parents root this describes the network parent(s) of the host. N uses also these to establish availability, again see docs for more info but basically if in this situation if N thinks 'root' is down then it won't complain so heartily about child[1-3] servers. have fun! rue ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Jan 6 21:45:27 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 14:45:27 -0600 Subject: Notifications about hosts being DOWN or UNREACHABL E when they are UP Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24CC@PKDWB03C.ad.sprint.com> You may find one particular problem with this approach. If the service check fails, Nagios will attempt to do the host check. Once the host check recovers, Nagios resumes the service checks. However, you've removed that host checking ability, so you may find that the service check stays critical, despite the fact that a manual check reveals otherwise. You might want to define a special case host check, call it something like check-host-dummy and define the appropriate command in checkcommands.cfg to use the check_dummy plugin. Just to reiterate, for any given host, you can only have one host check, but you can have any number of service checks. A host check can be completely arbitrary, but by default is configured to use check-host-alive, which in checkcommands.cfg relates to the check_ping plugin. This is something that confused me a bit at first, so you're not alone. :) Food for thought. jc -----Original Message----- From: Gerald Wichmann [mailto:gwichman at zantaz.com] Sent: Monday, January 06, 2003 12:59 PM To: Nagios (E-mail) Subject: [Nagios-users] Notifications about hosts being DOWN or UNREACHABL E when they are UP Ok I think after some reading the trick is to remove the check_command statement in hosts.cfg for those servers that cannot be directly checked by the centralized server. I thought all checks were done/defined by the services.cfg file but apparently not. Common newbie misunderstanding I guess. Helps to read deeper into how nagios actually works. Seems to be working well now though I'll have to make sure when a service check goes red, so does that particular respective host. 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 brampling at methanex.com Mon Jan 6 21:46:16 2003 From: brampling at methanex.com (Blair Rampling) Date: Mon, 06 Jan 2003 12:46:16 -0800 Subject: Still having check_by_ssh problems Message-ID: It seems check_by_ssh isn't passing the exit codes. Remote: bash-2.05$ /usr/local/nagios/libexec/check_by_ssh -f -l sysadmin -H vanapps3 -C '~/plugins/check_psproc.pl fin84prd 48' CRITICAL Incorrect number of processes ( 63) bash-2.05$ echo $? 0 bash-2.05$ Local: bash-2.03$ plugins/check_psproc.pl fin84prd 48 CRITICAL Incorrect number of processes ( 63) bash-2.03$ echo $? 2 - -- Blair Rampling >>> 01/06/03 08:07am >>> This is what I get when I execute from the Nagios host as nagios user a remote check_disk: $ ./libexec13b2/check_by_ssh -H w.x.y.z -l nagios -i /usr/local/nagios/.ssh/id_rsa -C /usr/local/nagios/libexec/check_disk -w 80% -c 70% -m -p /export/home DISK CRITICAL - [10421765 kB (64%) free on /export/home] $ echo $? 2 What is the result when you call your checks as nagios user from your nagios host from the command line? Can you send an example? -vol > -----Original Message----- > From: Blair Rampling [mailto:brampling at methanex.com] > Sent: Friday, January 03, 2003 10:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Still having check_by_ssh problems > > > I am still having the problem described below. The plugin is > returining an exit code of 2 when it is run locally, but > check_by_ssh is returning an exit code of 0. Does nobody else > have this problem? Perhaps I am overlooking something obvious. > > > I have a number of things monitored by check_by_ssh. Even > when the remote plugin exits with an error code other than 0, > nagios shows OK leading me to believe that check_by_ssh is > returning error code 0 regardless. I am using 1.3 beta 2 of > the plugins and nagios 1.0. Why is this happening and how do > I fix it? Thanks. > > Here are two examples of checks that are returning OK when > they shouldn't: > > # 'check_remote_mem' command definition > define command{ > command_name check_remote_mem > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" > } > > # 'check_remote_ps_proc' command definition > define command{ > command_name check_remote_ps_proc > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" > } > > > - -- > Blair Rampling > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From peterpan at pvamu.edu Mon Jan 6 22:59:35 2003 From: peterpan at pvamu.edu (Peter Pan) Date: Mon, 6 Jan 2003 15:59:35 -0600 Subject: check_nrpep prob Message-ID: <000e01c2b5ce$e678ebd0$0e38cf81@fucko> I have made modifications to my system and I am still getting this error snatch:/usr/lib/netsaint/plugins# ./check_nrpep -h arb.server.edu -c check_imap Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Character in "C" format wrapped at /usr/local/lib/perl5/site_perl/5.8.0/Crypt/PPDES.pm line 536, line 1. Use of uninitialized value in split at ./check_nrpep line 145, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 146, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 147, line 1. Use of uninitialized value in right bitshift (>>) at ./check_nrpep line 148, line 1. Use of uninitialized value in concatenation (.) or string at ./check_nrpep line 149, line 1. Any remedies would help, thanks Peter Pan -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Mon Jan 6 23:02:30 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 6 Jan 2003 17:02:30 -0500 Subject: Use of the /etc/hosts file Message-ID: <5593DA408212D511B0910002A513501F01D2886D@phsexch20.mgh.harvard.edu> If I want the status maps to use the hostname of the clients that are being monitored rather than their fully qualified domain names, will adding their information to the nagios server's /etc/hosts file work? Thanks. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From renders at cknxradio.com Mon Jan 6 23:02:58 2003 From: renders at cknxradio.com (Rob Enders) Date: Mon, 6 Jan 2003 17:02:58 -0500 Subject: Redhat 8.0 installation problems In-Reply-To: References: Message-ID: Hi all.. I am not having much luck installing nagios on Redhat 8.0. I have installed the gd libraries, including jpeg and png that come with redhat. I have added the --with-gd-lib=/usr/lib --with-gd-inc=/usr/include which do point to the gd libraries and includes. I still get the 'GD, PNG, and/or JPEG libraries could not be located...' error. Any suggestions? Thanks Rob ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jtinley at unirez.com Mon Jan 6 23:16:07 2003 From: jtinley at unirez.com (Jeremy Tinley) Date: Mon, 6 Jan 2003 16:16:07 -0600 Subject: Redhat 8.0 installation problems In-Reply-To: References: Message-ID: <002201c2b5d1$35cfd340$b201a8c0@unirez.com> Did you install the *-devel RPM too? # rpm -q redhat-release redhat-release-8.0-8 # rpm -qa | grep gd- gd-devel-1.8.4-9 gd-1.8.4-9 gd-progs-1.8.4-9 # rpm -qa | grep libpng- libpng-1.2.2-6 libpng-devel-1.2.2-6 # rpm -qa | grep libjpeg- libjpeg-6b-21 libjpeg-devel-6b-21 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Rob Enders Sent: Monday, January 06, 2003 4:03 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Redhat 8.0 installation problems Hi all.. I am not having much luck installing nagios on Redhat 8.0. I have installed the gd libraries, including jpeg and png that come with redhat. I have added the --with-gd-lib=/usr/lib --with-gd-inc=/usr/include which do point to the gd libraries and includes. I still get the 'GD, PNG, and/or JPEG libraries could not be located...' error. Any suggestions? Thanks Rob ------------------------------------------------------- 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 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Jan 6 23:31:34 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 16:31:34 -0600 Subject: Use of the /etc/hosts file Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E122F@PKDWB03C.ad.sprint.com> I believe so. I'm using DNS, and it's working fine. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Monday, January 06, 2003 4:03 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Use of the /etc/hosts file > > > If I want the status maps to use the hostname of the clients > that are being > monitored rather than their fully qualified domain names, > will adding their information to the nagios server's > /etc/hosts file work? > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jcarro10 at sprintspectrum.com Mon Jan 6 23:53:16 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 6 Jan 2003 16:53:16 -0600 Subject: Whole Configuration in a Database? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1233@PKDWB03C.ad.sprint.com> I believe it's been discussed. But now for the Bad News. I recently found out from someone else on the list that the current MySQL/PgSQL support is slated to disappear in a future release. jc > -----Original Message----- > From: Jan-Hendrik Palic [mailto:jhp at addix.net] > Sent: Monday, January 06, 2003 6:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Whole Configuration in a Database? > > > Hi .. > > has anyone experiences with putting the whole configuration of nagios > into a database (MySQL/PgSQL)? Just in time you can save comments and > Servicestates init. > > Any plans to put a db-support like this into nagios in the future? > > Regards > Jan > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From chocklehot at clan-union.com Tue Jan 7 00:05:00 2003 From: chocklehot at clan-union.com (Charles) Date: Mon, 06 Jan 2003 18:05:00 -0500 Subject: Qmail with Nagios Message-ID: Ok, Here is the situation: I am Under linux (Rh 8.0). I have a cell phone that can receive email( Subject has a max char (20) and body has a max char = (130) Now I wanna config nagios with qmail, I use /var/qmail/bin/qmail-inject Could someone tell me what my misccommands.cfg should be???? Keep in mind of epager: In the subject area: I want something Like warning And in body a brieve description... Ty Chock Msn: chocklehot at hotmail.com icq: 64296956 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 7 00:24:25 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 7 Jan 2003 10:24:25 +1100 Subject: Redhat 8.0 installation problems In-Reply-To: ; from renders@cknxradio.com on Mon, Jan 06, 2003 at 05:02:58PM -0500 References: Message-ID: <20030107102423.B7062@IPAustralia.Gov.AU> Dear Sir, I am writing to suggest as a general comment for posters to this list that in order to get answers that aren't guesses (attempts to manually walk through a binary tree of problem causes, one node at a time) or that don't take a lot of time to get resolved, that On Mon, Jan 06, 2003 at 05:02:58PM -0500, Rob Enders wrote: > Hi all.. I am not having much luck installing nagios on Redhat 8.0. I have > installed the gd libraries, including jpeg and png that come with redhat. I > have added the --with-gd-lib=/usr/lib --with-gd-inc=/usr/include which do > point to the gd libraries and includes. I still get the 'GD, PNG, and/or > JPEG libraries could not be located...' error. > any problems with configuring, building Nagios and or the plugins or addons be accompanied by the __appropriate__ lines from the configure or make output. For example, when Nagios/Netsaint can't find an optional library or its headers - absolutely mandatory to link against - I would recommend something like 1 rerun configure like so ./configure 2>&1 > configure.out.$$ 2 grep -3 -i jpeg configure.out.nnnn > junk grep -3 -i gd configure.out.nnn >> junk and post the file named 'junk' with the problem report If that's too hard or too much work, then at least post the summary from configure (the last 15 lines of its output). Be aware of what configure is doing: it attempts to locate files by looking in known paths for them. If it finds them it compiles a two line C program to make sure that the headers and libraries are usable. If either part of the process fails, then the optional library (gd, openssl, net-snmp etc etc) won't be used. Also configure is only another program; it too can have bugs. > Any suggestions? > > Thanks > > Rob 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 From gilles.poiret at noos.fr Tue Jan 7 00:49:04 2003 From: gilles.poiret at noos.fr (Gilles Poiret) Date: Tue, 7 Jan 2003 00:49:04 +0100 Subject: VRML question Message-ID: <20030106234904.GA3132@localhost> Hi, I tried to set up VRML view, with galeon 1.2.5 & openvrml (ie openvrml-lookat) So, the mime type x-world/x-wrml is not associate to a plugin, but to an external program (lookat..) The lookat program is called, but the window contains no elements. When I run the command in command-line (lookat http:///nagios/cgi-bin/statuswrl.cgi?host=all) I have the following error : **** readWRL http://195.68.95.20/nagios/cgi-bin/statuswrl.cgi?host=all Connecting to 195.68.95.20 ... connected. Read 11k from http://195.68.95.20/nagios/cgi-bin/statuswrl.cgi?host=all ...... < several lines, cut off..> Couldn't read ImageTexture from URL /nagios/images/logos/nagiosvrml.png Couldn't read ImageTexture from URL /nagios/images/logos/base/win40.png **** The file exists, but from /usr/local/nagios/share/images/logos... or http:///nagios/images/logos/nagiosvrml.png Can it possible to use openvrml in plugin ? Otherwise, what's the solution to give openvrml good path for images ? ... well... Could the problem be in the images format (png vs gd2) ? This is a part of my hostextinfo.cfg : define hostextinfo{ host_name myHost2 icon_image base/win40.png icon_image_alt Windows NT 4.0 SP5 vrml_image base/win40.png statusmap_image base/win40.gd2 } Note : images appears in status map, and other views. Only vrml doesn't work. Thanks for help. -- Gilles POIRET -- Gilles Poiret ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From jboulter at yahoo-inc.com Tue Jan 7 01:36:35 2003 From: jboulter at yahoo-inc.com (Jeff Boulter) Date: Mon, 6 Jan 2003 16:36:35 -0800 Subject: Setting up service dependencies Message-ID: <00b001c2b5e4$d5a61ec0$24ea7ecf@JBOULTER> Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkrzystofiak at endeavors.com Tue Jan 7 02:34:40 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Mon, 6 Jan 2003 17:34:40 -0800 Subject: convert java code to nagios plugin? Message-ID: <53109A46D4F58F458B18D009EAEEDC830E6390@mail.endeavorstech.com> I have code that when it is executed, it prints one line example: java -cp x.jar RunX ====> System.out.println will print a "GOOD" or "BAD" depending on status of the thing that is being monitored. how to i go about turning this into a nagios plugin? i've dug deep through tons of documentation and have no idea how to convert this code into a plugin. (I know that there exists a mailing list for plugins) Input is welcomed Thank You, Peter pkrzystofiak at endeavors.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From pkrzystofiak at endeavors.com Tue Jan 7 02:42:13 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Mon, 6 Jan 2003 17:42:13 -0800 Subject: convert java code to nagios plugin? Message-ID: <53109A46D4F58F458B18D009EAEEDC830E6392@mail.endeavorstech.com> I have code that when it is executed, it prints one line example: java -cp x.jar RunX ====> System.out.println will print a "GOOD" or "BAD" depending on status of the thing that is being monitored. how to i go about turning this into a nagios plugin? i've dug deep through tons of documentation and have no idea how to convert this code into a plugin. (I know that there exists a mailing list for plugins) Input is welcomed Thank You, Peter pkrzystofiak at endeavors.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From JBilder at netrixllc.com Tue Jan 7 02:48:52 2003 From: JBilder at netrixllc.com (Jeff Bilder) Date: Mon, 06 Jan 2003 19:48:52 -0600 Subject: NRPE Problems on FreeBSD/OpenBSD Message-ID: Hello, I am having a problem running certain commands using nrpe. I have nagios running on FreeBSD 4.7 and its checking commands on an OpenBSD machine. I seem to be experiencing the problems below: [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_total_procs Unable to read output [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_zombie_procs Unable to read output the following are being run on both the OpenBSD and FreeBSD machines: FREEBSD 4.7 ------- Device Mountpoint FStype Options Dump Pass# /dev/ad0s1b none swap sw 0 0 /dev/ad0s1a / ufs rw 1 1 /dev/ad0s1f /tmp ufs rw 2 2 /dev/ad0s1g /usr ufs rw 2 2 /dev/ad0s1e /var ufs rw 2 2 [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1a Disk "/dev/ad0s1a" not mounted or nonexistant [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1f Disk "/dev/ad0s1f" not mounted or nonexistant --------- OPENBSD 3.0 --------- /dev/wd0a / ffs rw 1 1 [root at home libexec]# ./check_disk 80 90 /dev/wd0a Disk "/dev/wd0a" not mounted or nonexistant ----------- They certainly seem mounted, has anyone run into this before? Thanks! Jeffry Bilder Network Engineer Netrix LLC jbilder at netrixllc.com ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf From nagios at nagios.org Tue Jan 7 03:56:06 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 06 Jan 2003 20:56:06 -0600 Subject: FAQ question In-Reply-To: References: Message-ID: <3E19ED66.22384.CCE316@localhost> I threw it together from scratch because I didn't like the other FAQ projects out there. FAQ-o-matic made me want to puke when I used it and others weren't much better. The code isn't available though (at least for now), as it still needs work and I don't have time to start another project. On 6 Jan 2003 at 11:54, Jonathan Nichols wrote: > Hey guys - > Where did the FAQ on nagios.org come from? I mean, what software > package was used to create it? Our current FAQ base solution at work is > horrid and I desperately want to replace it. > > -Jonathan 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 From jnichols at pbp.net Tue Jan 7 04:48:13 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Mon, 6 Jan 2003 19:48:13 -0800 (PST) Subject: FAQ question In-Reply-To: <3E19ED66.22384.CCE316@localhost> References: <3E19ED66.22384.CCE316@localhost> Message-ID: > > I threw it together from scratch because I didn't like the other FAQ > projects out there. FAQ-o-matic made me want to puke when I used it > and others weren't much better. The code isn't available though (at > least for now), as it still needs work and I don't have time to start > another project. > You "threw it together from scratch?" :P~ I hate you ;) Next you're going to tell us that Nagios was put together over Christmas vacation! ;) The FAQ looks nice. I'd enjoy seeing it as a package one day. -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Tue Jan 7 05:19:47 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 7 Jan 2003 04:19:47 +0000 (GMT) Subject: nrpe not able to run on solaris machine In-Reply-To: <200301062028.h06KSMbW002191@webmail1.magma.ca> References: <200301062028.h06KSMbW002191@webmail1.magma.ca> Message-ID: <20030107041947.97215.qmail@web12608.mail.yahoo.com> Hi Tim...i gave a try with -d too..still no luck regards Hrishy --- The Minto Skating Club wrote: > Try: > > nrpe -d /etc/nrpe.cfg > > /Tim > > > On Jan 6 , =?iso-8859-1?q?hrishy?= > wrote: > > > > Hi Jan > > > > I have specified the following command > > > > $ nrpe -c /etc/nrpe.cfg --daemon > > $ > > $ ps -ef|grep nrpe > > $ > > > > > > its -c ..if i try -f its not working.. > > > > regards > > Hrishy > > > > > > --- Jan-Hendrik Palic wrote: > Hi > ... > > > > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy > > > wrote: > > > >I am unable to run the nrpe deamon on sun > solaris > > > >machine.I have sucessfuly compiled the nrpe > deamon > > > on > > > >sun solaris ..however when i run the nrpe > deamon in > > > >standalone mode or as a inetd mode..and do a > > > >ps-ef|grep nrpe nothing is being displayed..can > you > > > >tell us why. > > > > > > did you specify the config-file with "-f". > > > > > > Regards > > > Jan > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > __________________________________________________ > > Do You Yahoo!? > > Everything you'll ever need on one web page > > from News and Sport to Email and Music Charts > > href='http://uk.my.yahoo.com'>http://uk.my.yahoo.com > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by:ThinkGeek > > Welcome to geek heaven. > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > Tim Shouldice > WebMaster - The Minto Skating Club > > > ------------------------------------------------------- > 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 __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at nagios.org Tue Jan 7 06:48:00 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 06 Jan 2003 23:48:00 -0600 Subject: NRPE enhancement In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24C1@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24C1@PKDWB03C.ad.sprint.com> Message-ID: <3E1A15B0.8106.16A4A9E@localhost> I've thought about this for a while now and have decided that I will allow arguments to be passed to plugins in future versions of NRPE. I've gotten a lot of requests for this feature and I understand that it makes configuring things on the central server much easier. However, because of the security implications this will have, I will also be doing the following: 1. Incorporate encryption similar to NSCA that gives the NRPE daemon some assurance of a trust level with the client 2. Strip all potentially dangerous shell metacharacters from the arguments before they're passed to the plugin for exection Incorporating crypto into NRPE will affect performance a bit, but it will still probably scale better than check_by_ssh. If the user decides to disable native crypto support (and tunnel traffic through stunnel, etc. instead), the NRPE daemon will refuse to accept arguments for plugins unless the user specifically supplies a --dont- blame-nrpe option to the configure script before compiling. If the daemon gets compiled with this option, it will loudly complain in the logs and elsewhere that is running in an insecure mode. Does this approach sound reasonable to people? On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > If you have 500 machines, and among those machines there are no two disks > alike, then I can only imagine the grief ahead of you. To take a page out > of www.infrastructures.org, it's desireable to maintain a convergence, not > divergence, among the various systems. Homogeneity is A Good Thing ?. > > Having said that, rather than maintaining 500 config files, why not maintain > a single config file containing all the similar and dissimilar config > particulars? Edit that one file, and either push it out from a trusted host > ("gold server", in Infrastructures.org parlance). Better still, set up an > rsync server (or some other server that you can live with, and set up a cron > job to pull down the latest nrpe.cfg file. (As has been emphasized on their > list, pull, never push. But take your pick. :) > > In our location, I maintain a single nrpe.cfg file, complete with all the > unique disk definitions. I'm not sure if it matters to you, but for the > most part, I've elected to use the percentage option of check_disk. 5% free > on the root partition of an 18GB disk isn't going to be a whole lot > different from 5% free on root of a 36GB disk. Sure, mathematically they're > different, so if exacting differences is critical in your environment, > create unique definitions for the different root partitions. (I'm also > specifying mount points, not device filenames.) On a related note, we have > partitions on our database servers which follow a fairly straightforward > naming scheme for the mount points, and since I don't expect those > partitions to change, I can either exclude them, or I can set a trivial > threshold for each of the warning and critical, but in those cases I specify > kbytes. (I do the latter; this lets anyone with the appropriate permissions > at the web interface view all the defined partitions.) > > [Sidebar: I noticed at one point that there's a limit to the length of the > command token in nrpe.cfg. As a result, I simplified all the names. Lesson > learned: Be economical with the keystrokes.] > > If you like, I can send you the nrpe.cfg file that I install on all our > hosts. > > You might find that instead of one master nrpe.cfg file, that you'd rather > manage a handful of dissimilar files. Might still want to use the > gold/config server, as above. > > Food for thought. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Monday, December 30, 2002 2:43 PM > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > cpu-wise, but > > has problems configuration-wise. (Imagine 500 machines all > > of which have 5 > > disks, and different check_disk arguments for each. That's 2500 > > configuration lines that need to be maintained over 500 > > machines in 500 > > files.) > > > > Perhaps there is room for something more secure than the > > current nrpe, but > > more scalable than check_by_ssh. Does that seem reasonable? > > If so, does > > anyone have suggestions for low cost security implementations > > that could > > enhance the security of nrpe without the cost of ssh? > > > > dave > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > To: 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > The general consensus is that check_by_ssh isn't a solution > > which will scale > > well, due to the nature of the number-crunching crypto beast. > > This is where > > NRPE has the advantage. > > > > check_by_ssh has the advantage when it comes to punching > > through a firewall, > > assuming that an appropriate port is open. Sure, you could > > open port 5666 > > for NRPE, but has has been discussed, that doesn't quite > > leave the same warm > > fuzzies. > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 12:14 PM > > > To: 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Let me ask a second question that might help me understand > > > more clearly the > > > situation. Check_by_ssh allows for the passing of arbitrary > > > arguments to > > > arbitrary command from the centralized Nagios server to any > > > remote machine > > > which has sshd running. NRPE allows for executing a specific > > > command with > > > specific arguments on any remote machine which has nrpe running. > > > > > > As someone setting up monitoring, when should I use > > > check_by_ssh and when > > > should I use nrpe? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 30, 2002 9:07 AM > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > executed. I think the code that I wrote will only allow one > > > of the commands > > > already listed in the nrpe.cfg file to be executed. The > > > arguments passed > > > are arbitrary, but not the command. (The code even checks to > > > ensure that the > > > command requested, without any arguments, exists before > > > executing it to > > > prevent malicious usage of arguments.) > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > Sent: Saturday, December 28, 2002 5:02 PM > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > executed and which by "default" is switched off is an > > accident waiting > > > to happen. > > > > > > It only takes 1 security breach via a plugin to completely > > destroy the > > > good name Nagios and its associated plugins have. > > > > > > There is a good truism that states "good news travels fast, > > > but bad news > > > travels even faster" > > > > > > I for one would not be too happy having a command available on my > > > network, trusted or not that would allow commands to be executed > > > remotely pon a box. For one. It's the kind of thing im > > always looking > > > for when im "playing on my " networks. > > > > > > Well that's my two cents worth > > > > > > Cheers > > > > > > 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 Dave > > > Viner > > > Sent: 28 December 2002 21:46 > > > To: Ethan Galstad; nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > These are excellent arguments for not incorporating the > > > enhancement I am > > > suggesting. However, I suspect that there are lots of > > > installations of > > > Nagios and NRPE that run on completely trusted network. (Or > > > the risk of > > > network intrusion through NRPE is worth the benefit of reduced > > > configuration > > > management.) > > > > > > What do you think about incorporating this enhancement but have it > > > turned > > > off by default, and enabled only at configure time? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > Galstad > > > Sent: Friday, December 27, 2002 7:38 PM > > > To: nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > There are several reasons why I have not added support for arguments > > > to checks in NRPE. Most have been touched on in the past on the > > > list, but I'll reiterate them here. The main issue is not > > overruning > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > and forth - that can be easily avoided... > > > > > > 1. > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > restrict connection based on IP address using TCP wrappers, but they > > > are still not authenticated. Also, I am not too familiar with IP > > > spoofing, but I'm sure its possible for someone to fake the > > > originating address of the connection and get the NRPE daemon to > > > accept the packet and execute the necessary plugin without too much > > > trouble. > > > > > > 2. > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > Regardless of what user the NRPE daemon is running as, these plugins > > > will be executed with higher privs. > > > > > > 3. > > > Plugins can be made to segfault under the right conditions. > > Sure, we > > > can try and eliminate this possibility, but it will probably always > > > exist to some extent since many plugins call system commands to get > > > their data. > > > > > > --- > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > work done, so allowing unauthenticated users to pass arbitrary > > > arguments/data to plugins that might be running suid commands is a > > > very bad idea indeed. > > > > > > Stunnel would provide some security, but there is no guarantee that > > > everyone would use it. There would undoubtably be many people that > > > would put off implementing it until they finished "testing" > > NRPE. In > > > the worst case, they might never get around to implementing stunnel > > > at all. In the likely best case scenario, there is at > > least a window > > > of opportunity. I just don't want to be responsible for > > the possible > > > carnage that happens at that point. :-) > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > that. > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > I'm not a C programmer by profession, so I defer your > > query to those > > > who > > > > have a strong background, both in C code and system/network > > > security. > > > It > > > > does presume that every other link in the chain is bulletproof. > > > [Insert > > > > ObRef to Bugtraq here.] > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > that approach > > > to > > > > begin with. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > security implications of this code. I'm not a security > > > > > expert, so please excuse the somewhat basic question. The > > > > > struct packet as defined in common/common.h has an argv > > > > > member which is a character array of length 2048. I believe > > > > > this means that if the incoming packet has an argv member > > > > > whose length is greater than 2048 chars, then the > > > > > rc=recvall(sock,(char > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > should fail, should it not? > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > encryption are good ones, regardless of the inclusion of > > > this code. > > > > > > > > > > thanks > > > > > > > > > > dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Carroll, Jim P [Contractor] > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > should explicitly > > > > > state the security risks in forcing the non-default > > > (added feature) > > > > > behaviour. > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > daemon starts, it > > > > > should briefly mention that it has been compiled for this > > > > > behaviour, and a > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > standalone, else > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > loud and clear > > > > > if it's started under root; preferably it would simply not > > > > > run as root, full > > > > > stop. > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > only permitting > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > desireable. > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > this feature > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > on a trusted > > > > > network, it's a non-issue. > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > if there were a > > > > > facility to enforce some level of native encryption, such as > > > > > what NSCA uses. > > > > > If you don't have the keys to the house, you get dropped on > > > > > the floor. (I > > > > > have a similar wish for NSClient.) > > > > > > > > > > Food for thought. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > sourceforge. > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > nrpe.cfg file lines like this: > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > argument string. For example: > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > number of times you'd need to modify that configuration file. > > > > > > Instead the modifications would occur on the centralized > > > > > > Nagios server's configuration file. > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > source for NRPE-1.6? > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Dave Viner > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > To: Naios Users > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > Security is a great reason for limiting the commands > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > remaining information as arguments passed to the executable. > > > > > > It is true that this is less secure that forcing the entire > > > > > > command line (executable and arguments) in the config file. > > > > > > But, so long as the executables are well authored and handle > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > significantly decrease security. Do you think that > > > > > > specifying arguments would make NRPE significantly > > less secure? > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Rue Turner > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > To: Naios Users > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > security. If the > > > > > > nrpe was allowed to run whatever it was asked it would > > > be easy to > > > > > > compromise your machines. This way although your configs are > > > > > > hefty (mine > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > commands from > > > > > > this library. > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > Hi, > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > people think this is a > > > > > > > good idea, I'll try to make a patch to support my > > > > > > suggestion. Currently the > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > 95 /dev/hda1 > > > > > > > As result of this design is that if you want to check > > > > > something like > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > nrpe.cfg file. > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > for the arguments to a > > > > > > > command to be specified by the central Nagios server > > > > > > instead of in the > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > command line which > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > specified from > > > > > > > the central Nagios server in some manner. > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > and reduce a lot of > > > > > > > redundant command definitions that differ only in the > > > > > arguments they > > > > > > > require. Also, it would mean that you'd need to update > > > > > > your nrpe.cfg very > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > a new plugin. > > > > > > > I don't have a concrete suggestion for implementing > > > > > > this yet, because I > > > > > > > want to see if the community is interested in this idea > > > > > > first. Has this > > > > > > > idea been suggested previously? Is anyone currently > > > > > > interested in the idea > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > thanks > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest > > gifts for > > > > > > > your favorite geek. Let your fingers do the > > typing. Visit > > > Now. > > > > > > > T H I N K G E E K . C O M > > http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > Nagios-users mailing list > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > interest where > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.NET email is sponsored by: The Best Geek > > Holiday Gifts! > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > your favorite geek. Let your fingers do the typing. > > > Visit Now. > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > _______________________________________________ > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > ------------------------------------------------------- > 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 > 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 mmcclure at pneservices.com Tue Jan 7 07:17:10 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Tue, 7 Jan 2003 00:17:10 -0600 (CST) Subject: NRPE Problems on FreeBSD/OpenBSD In-Reply-To: References: Message-ID: <4211.192.168.1.9.1041920230.squirrel@xyzzy.homeip.net> Hi Jeff, Check the mountpoint, not the physical partition or slice: # ./check_disk -w 80% -c 70% / DISK OK - [1760969 kB (91%) free on /dev/wd0a] # ./check_disk -w 80% -c 70% /dev/wd0a Disk "/dev/wd0a" not mounted or nonexistant - Mike -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 > Hello, > > I am having a problem running certain commands using nrpe. I have nagios running on > FreeBSD 4.7 and its checking commands on an OpenBSD machine. I seem to be > experiencing the problems below: > > [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_total_procs > Unable to read output > > [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_zombie_procs > Unable to read output > > the following are being run on both the OpenBSD and FreeBSD machines: > > FREEBSD 4.7 > ------- > Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1f /tmp ufs rw 2 2 > /dev/ad0s1g /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > > [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1a > Disk "/dev/ad0s1a" not mounted or nonexistant > > [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1f > Disk "/dev/ad0s1f" not mounted or nonexistant > --------- > > OPENBSD 3.0 > --------- > > /dev/wd0a / ffs rw 1 1 > > [root at home libexec]# ./check_disk 80 90 /dev/wd0a > Disk "/dev/wd0a" not mounted or nonexistant > ----------- > > They certainly seem mounted, has anyone run into this before? > > Thanks! > > Jeffry Bilder > Network Engineer > Netrix LLC > jbilder at netrixllc.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 > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From andrew_kemp at pacific.net.au Tue Jan 7 07:35:40 2003 From: andrew_kemp at pacific.net.au (Andrew Kemp) Date: Tue, 7 Jan 2003 17:35:40 +1100 Subject: Local commands on remote hosts and management Message-ID: <01d401c2b616$feed1040$758317d2@ozpacnet.office.pacific.net.au> Greetings, I have a slight quandary that I thought I would seek advice from the other Nagios users out there. We have a significant number of Unix hosts that we are monitoring. Currently, I am using a customised/hacked version of netsaint_statd to provide monitoring of disk, mem, cpu, load etc on these hosts. However, the new plugins that have just been release have some interesting new features that I would like to implement monitoring for on the Unix hosts. Do I continue to hack netsaint_statd to add this functionality ? We have deviated significantly from the original Perl version and the maintenance and upkeep of this script versus moving to the new nagios_statd is a factor. Why python for nagios_statd ? Do I look at implementing an NRPE solution ? My reading of the recent discussions on NRPE is that it is not quite as expandable/customisable as the netsaint_statd solution. Coordination of the plugins installed on all those Unix hosts would be a nightmare. Different flavours, versions, etc Do I make local scripts and use NSCA to parse the results ? Management of security for hosts authorised to send results. Management of the local scripts would not be quite as large an issue as the plugins installed on all hosts. Comments welcome as I would like to start implementing the expansion of our monitoring shortly. Thanks. Andrew ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rue at thinlayer.co.uk Tue Jan 7 07:55:13 2003 From: rue at thinlayer.co.uk (Rue Turner) Date: 07 Jan 2003 06:55:13 +0000 Subject: NRPE enhancement In-Reply-To: <3E1A15B0.8106.16A4A9E@localhost> References: <3E1A15B0.8106.16A4A9E@localhost> Message-ID: <1041922510.5425.77.camel@servalon> here here! :) On Tue, 2003-01-07 at 05:48, Ethan Galstad wrote: > I've thought about this for a while now and have decided that I will > allow arguments to be passed to plugins in future versions of NRPE. > I've gotten a lot of requests for this feature and I understand that > it makes configuring things on the central server much easier. > However, because of the security implications this will have, I will > also be doing the following: > > 1. Incorporate encryption similar to NSCA that gives the NRPE daemon > some assurance of a trust level with the client > > 2. Strip all potentially dangerous shell metacharacters from the > arguments before they're passed to the plugin for exection > > Incorporating crypto into NRPE will affect performance a bit, but it > will still probably scale better than check_by_ssh. If the user > decides to disable native crypto support (and tunnel traffic through > stunnel, etc. instead), the NRPE daemon will refuse to accept > arguments for plugins unless the user specifically supplies a --dont- > blame-nrpe option to the configure script before compiling. If the > daemon gets compiled with this option, it will loudly complain in the > logs and elsewhere that is running in an insecure mode. > > Does this approach sound reasonable to people? > > > > On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > > > If you have 500 machines, and among those machines there are no two disks > > alike, then I can only imagine the grief ahead of you. To take a page out > > of www.infrastructures.org, it's desireable to maintain a convergence, not > > divergence, among the various systems. Homogeneity is A Good Thing ?. > > > > Having said that, rather than maintaining 500 config files, why not maintain > > a single config file containing all the similar and dissimilar config > > particulars? Edit that one file, and either push it out from a trusted host > > ("gold server", in Infrastructures.org parlance). Better still, set up an > > rsync server (or some other server that you can live with, and set up a cron > > job to pull down the latest nrpe.cfg file. (As has been emphasized on their > > list, pull, never push. But take your pick. :) > > > > In our location, I maintain a single nrpe.cfg file, complete with all the > > unique disk definitions. I'm not sure if it matters to you, but for the > > most part, I've elected to use the percentage option of check_disk. 5% free > > on the root partition of an 18GB disk isn't going to be a whole lot > > different from 5% free on root of a 36GB disk. Sure, mathematically they're > > different, so if exacting differences is critical in your environment, > > create unique definitions for the different root partitions. (I'm also > > specifying mount points, not device filenames.) On a related note, we have > > partitions on our database servers which follow a fairly straightforward > > naming scheme for the mount points, and since I don't expect those > > partitions to change, I can either exclude them, or I can set a trivial > > threshold for each of the warning and critical, but in those cases I specify > > kbytes. (I do the latter; this lets anyone with the appropriate permissions > > at the web interface view all the defined partitions.) > > > > [Sidebar: I noticed at one point that there's a limit to the length of the > > command token in nrpe.cfg. As a result, I simplified all the names. Lesson > > learned: Be economical with the keystrokes.] > > > > If you like, I can send you the nrpe.cfg file that I install on all our > > hosts. > > > > You might find that instead of one master nrpe.cfg file, that you'd rather > > manage a handful of dissimilar files. Might still want to use the > > gold/config server, as above. > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 2:43 PM > > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > > cpu-wise, but > > > has problems configuration-wise. (Imagine 500 machines all > > > of which have 5 > > > disks, and different check_disk arguments for each. That's 2500 > > > configuration lines that need to be maintained over 500 > > > machines in 500 > > > files.) > > > > > > Perhaps there is room for something more secure than the > > > current nrpe, but > > > more scalable than check_by_ssh. Does that seem reasonable? > > > If so, does > > > anyone have suggestions for low cost security implementations > > > that could > > > enhance the security of nrpe without the cost of ssh? > > > > > > dave > > > > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > > To: 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > The general consensus is that check_by_ssh isn't a solution > > > which will scale > > > well, due to the nature of the number-crunching crypto beast. > > > This is where > > > NRPE has the advantage. > > > > > > check_by_ssh has the advantage when it comes to punching > > > through a firewall, > > > assuming that an appropriate port is open. Sure, you could > > > open port 5666 > > > for NRPE, but has has been discussed, that doesn't quite > > > leave the same warm > > > fuzzies. > > > > > > HTH. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Monday, December 30, 2002 12:14 PM > > > > To: 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Let me ask a second question that might help me understand > > > > more clearly the > > > > situation. Check_by_ssh allows for the passing of arbitrary > > > > arguments to > > > > arbitrary command from the centralized Nagios server to any > > > > remote machine > > > > which has sshd running. NRPE allows for executing a specific > > > > command with > > > > specific arguments on any remote machine which has nrpe running. > > > > > > > > As someone setting up monitoring, when should I use > > > > check_by_ssh and when > > > > should I use nrpe? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 30, 2002 9:07 AM > > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > > executed. I think the code that I wrote will only allow one > > > > of the commands > > > > already listed in the nrpe.cfg file to be executed. The > > > > arguments passed > > > > are arbitrary, but not the command. (The code even checks to > > > > ensure that the > > > > command requested, without any arguments, exists before > > > > executing it to > > > > prevent malicious usage of arguments.) > > > > > > > > dave > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > > Sent: Saturday, December 28, 2002 5:02 PM > > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > > executed and which by "default" is switched off is an > > > accident waiting > > > > to happen. > > > > > > > > It only takes 1 security breach via a plugin to completely > > > destroy the > > > > good name Nagios and its associated plugins have. > > > > > > > > There is a good truism that states "good news travels fast, > > > > but bad news > > > > travels even faster" > > > > > > > > I for one would not be too happy having a command available on my > > > > network, trusted or not that would allow commands to be executed > > > > remotely pon a box. For one. It's the kind of thing im > > > always looking > > > > for when im "playing on my " networks. > > > > > > > > Well that's my two cents worth > > > > > > > > Cheers > > > > > > > > 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 Dave > > > > Viner > > > > Sent: 28 December 2002 21:46 > > > > To: Ethan Galstad; nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > These are excellent arguments for not incorporating the > > > > enhancement I am > > > > suggesting. However, I suspect that there are lots of > > > > installations of > > > > Nagios and NRPE that run on completely trusted network. (Or > > > > the risk of > > > > network intrusion through NRPE is worth the benefit of reduced > > > > configuration > > > > management.) > > > > > > > > What do you think about incorporating this enhancement but have it > > > > turned > > > > off by default, and enabled only at configure time? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > > Galstad > > > > Sent: Friday, December 27, 2002 7:38 PM > > > > To: nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > There are several reasons why I have not added support for arguments > > > > to checks in NRPE. Most have been touched on in the past on the > > > > list, but I'll reiterate them here. The main issue is not > > > overruning > > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > > and forth - that can be easily avoided... > > > > > > > > 1. > > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > > restrict connection based on IP address using TCP wrappers, but they > > > > are still not authenticated. Also, I am not too familiar with IP > > > > spoofing, but I'm sure its possible for someone to fake the > > > > originating address of the connection and get the NRPE daemon to > > > > accept the packet and execute the necessary plugin without too much > > > > trouble. > > > > > > > > 2. > > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > > Regardless of what user the NRPE daemon is running as, these plugins > > > > will be executed with higher privs. > > > > > > > > 3. > > > > Plugins can be made to segfault under the right conditions. > > > Sure, we > > > > can try and eliminate this possibility, but it will probably always > > > > exist to some extent since many plugins call system commands to get > > > > their data. > > > > > > > > --- > > > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > > work done, so allowing unauthenticated users to pass arbitrary > > > > arguments/data to plugins that might be running suid commands is a > > > > very bad idea indeed. > > > > > > > > Stunnel would provide some security, but there is no guarantee that > > > > everyone would use it. There would undoubtably be many people that > > > > would put off implementing it until they finished "testing" > > > NRPE. In > > > > the worst case, they might never get around to implementing stunnel > > > > at all. In the likely best case scenario, there is at > > > least a window > > > > of opportunity. I just don't want to be responsible for > > > the possible > > > > carnage that happens at that point. :-) > > > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > > that. > > > > > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > > > I'm not a C programmer by profession, so I defer your > > > query to those > > > > who > > > > > have a strong background, both in C code and system/network > > > > security. > > > > It > > > > > does presume that every other link in the chain is bulletproof. > > > > [Insert > > > > > ObRef to Bugtraq here.] > > > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > > that approach > > > > to > > > > > begin with. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > > security implications of this code. I'm not a security > > > > > > expert, so please excuse the somewhat basic question. The > > > > > > struct packet as defined in common/common.h has an argv > > > > > > member which is a character array of length 2048. I believe > > > > > > this means that if the incoming packet has an argv member > > > > > > whose length is greater than 2048 chars, then the > > > > > > rc=recvall(sock,(char > > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > > should fail, should it not? > > > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > > encryption are good ones, regardless of the inclusion of > > > > this code. > > > > > > > > > > > > thanks > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Carroll, Jim P [Contractor] > > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > > should explicitly > > > > > > state the security risks in forcing the non-default > > > > (added feature) > > > > > > behaviour. > > > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > > daemon starts, it > > > > > > should briefly mention that it has been compiled for this > > > > > > behaviour, and a > > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > > standalone, else > > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > > loud and clear > > > > > > if it's started under root; preferably it would simply not > > > > > > run as root, full > > > > > > stop. > > > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > > only permitting > > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > > desireable. > > > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > > this feature > > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > > on a trusted > > > > > > network, it's a non-issue. > > > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > > if there were a > > > > > > facility to enforce some level of native encryption, such as > > > > > > what NSCA uses. > > > > > > If you don't have the keys to the house, you get dropped on > > > > > > the floor. (I > > > > > > have a similar wish for NSClient.) > > > > > > > > > > > > Food for thought. > > > > > > > > > > > > jc > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > > sourceforge. > > > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > > nrpe.cfg file lines like this: > > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > > argument string. For example: > > > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > > number of times you'd need to modify that configuration file. > > > > > > > Instead the modifications would occur on the centralized > > > > > > > Nagios server's configuration file. > > > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > > source for NRPE-1.6? > > > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Dave Viner > > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > > To: Naios Users > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > > Security is a great reason for limiting the commands > > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > > remaining information as arguments passed to the executable. > > > > > > > It is true that this is less secure that forcing the entire > > > > > > > command line (executable and arguments) in the config file. > > > > > > > But, so long as the executables are well authored and handle > > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > > significantly decrease security. Do you think that > > > > > > > specifying arguments would make NRPE significantly > > > less secure? > > > > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Rue Turner > > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > > To: Naios Users > > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > > security. If the > > > > > > > nrpe was allowed to run whatever it was asked it would > > > > be easy to > > > > > > > compromise your machines. This way although your configs are > > > > > > > hefty (mine > > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > > commands from > > > > > > > this library. > > > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > > Hi, > > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > > people think this is a > > > > > > > > good idea, I'll try to make a patch to support my > > > > > > > suggestion. Currently the > > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > > 95 /dev/hda1 > > > > > > > > As result of this design is that if you want to check > > > > > > something like > > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > > nrpe.cfg file. > > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > > for the arguments to a > > > > > > > > command to be specified by the central Nagios server > > > > > > > instead of in the > > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > > command line which > > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > > specified from > > > > > > > > the central Nagios server in some manner. > > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > > and reduce a lot of > > > > > > > > redundant command definitions that differ only in the > > > > > > arguments they > > > > > > > > require. Also, it would mean that you'd need to update > > > > > > > your nrpe.cfg very > > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > > a new plugin. > > > > > > > > I don't have a concrete suggestion for implementing > > > > > > > this yet, because I > > > > > > > > want to see if the community is interested in this idea > > > > > > > first. Has this > > > > > > > > idea been suggested previously? Is anyone currently > > > > > > > interested in the idea > > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > > > thanks > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > > Holiday Gifts! > > > > > > > > Time is running out! Thinkgeek.com has the coolest > > > gifts for > > > > > > > > your favorite geek. Let your fingers do the > > > typing. Visit > > > > Now. > > > > > > > > T H I N K G E E K . C O M > > > http://www.thinkgeek.com/sf/ > > > > > > > > _______________________________________________ > > > > > > > > Nagios-users mailing list > > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > > interest where > > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > > your favorite geek. Let your fingers do the typing. > > > > Visit Now. > > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > 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 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- r u e t u r n e r - t h i n l a y e r - +44 (0) 709 200 24 25 rue at thinlayer.co.uk ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Tue Jan 7 08:34:42 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 01:34:42 -0600 Subject: nrpe not able to run on solaris machine In-Reply-To: <20030107041947.97215.qmail@web12608.mail.yahoo.com> References: <20030107041947.97215.qmail@web12608.mail.yahoo.com> Message-ID: <1041924882.16719.47.camel@dev.showkilr.com> call nrpe like this nrpe -c -d Showkilr On Mon, 2003-01-06 at 22:19, hrishy wrote: > Hi > > Tim...i gave a try with -d too..still no luck > > regards > Hrishy > > > > > --- The Minto Skating Club > wrote: > Try: > > > > nrpe -d /etc/nrpe.cfg > > > > /Tim > > > > > > On Jan 6 , =?iso-8859-1?q?hrishy?= > > wrote: > > > > > > Hi Jan > > > > > > I have specified the following command > > > > > > $ nrpe -c /etc/nrpe.cfg --daemon > > > $ > > > $ ps -ef|grep nrpe > > > $ > > > > > > > > > its -c ..if i try -f its not working.. > > > > > > regards > > > Hrishy > > > > > > > > > --- Jan-Hendrik Palic wrote: > Hi > > ... > > > > > > > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy > > > > wrote: > > > > >I am unable to run the nrpe deamon on sun > > solaris > > > > >machine.I have sucessfuly compiled the nrpe > > deamon > > > > on > > > > >sun solaris ..however when i run the nrpe > > deamon in > > > > >standalone mode or as a inetd mode..and do a > > > > >ps-ef|grep nrpe nothing is being displayed..can > > you > > > > >tell us why. > > > > > > > > did you specify the config-file with "-f". > > > > > > > > Regards > > > > Jan > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > __________________________________________________ > > > Do You Yahoo!? > > > Everything you'll ever need on one web page > > > from News and Sport to Email and Music Charts > > > > > href='http://uk.my.yahoo.com'>http://uk.my.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by:ThinkGeek > > > Welcome to geek heaven. > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > Tim Shouldice > > WebMaster - The Minto Skating Club > > > > > > > ------------------------------------------------------- > > 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 > > __________________________________________________ > 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: > 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 hannu.liljemark at laurea.fi Tue Jan 7 09:09:45 2003 From: hannu.liljemark at laurea.fi (Hannu Liljemark) Date: Tue, 7 Jan 2003 10:09:45 +0200 Subject: NRPE Problems on FreeBSD/OpenBSD Message-ID: <20030107080945.GA16315@charisma.dyndns.org> >[root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_total_procs >Unable to read output > >[root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_zombie_procs >Unable to read output I have noticed exactly the same with OpenBSD 3.2. Actually, those process-checking tests work on and off - usually they start working after you restart identd or the nrpe if you run it as a standalone daemon. The diskspace checking works dandy; check the mountpoints. I'm not sure if restarting inetd solving the process-checking problem actually makes sense... I'm just thinking how inetd again worked; aren't the nrpe configs read and nrpe started everytime nrpe is called by inetd? Or perhaps I'm just confused about basics once again. -- (Mr.) Hannu Liljemark | Appelsiini Finland Oy | http://appelsiini.com ------------------------------------------------------- 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 Jan 7 08:56:33 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 7 Jan 2003 08:56:33 +0100 Subject: REG : Host name instead of IP address Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780453@storevis.datavis.se> Specify the name via 'host_name' and omit 'address' in hosts.cfg. I do this for all my hosts and keeps the IP-numbers in only one place (/etc/hosts). -----Original Message----- From: Thirumalai Srinivasan [mailto:tsi at lbinfotech.com] Sent: Sat 21-Dec-02 12:43 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] REG : Host name instead of IP address Hi all I just want to know whether the host name can be specified instead of IP address in the hosts.cfg file.As the IP address keeps changing for me i cant specify that .So thought of giving the host name ..Anyone there to help me out.. Regards Thiru ------------------------------------------------------- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ _______________________________________________ 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 sysadmin at showkilr.com Tue Jan 7 09:07:50 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 02:07:50 -0600 Subject: nrpe not able to run on solaris machine In-Reply-To: <1041924882.16719.47.camel@dev.showkilr.com> References: <20030107041947.97215.qmail@web12608.mail.yahoo.com> <1041924882.16719.47.camel@dev.showkilr.com> Message-ID: <1041926871.16719.65.camel@dev.showkilr.com> In your config for nrpe comment out command_timeout=60 then start nrpe with nrpe -c -d it should run now and not exit.. Showkilr On Tue, 2003-01-07 at 01:34, Showkilr wrote: > call nrpe like this > > nrpe -c -d > > Showkilr > > On Mon, 2003-01-06 at 22:19, hrishy wrote: > > Hi > > > > Tim...i gave a try with -d too..still no luck > > > > regards > > Hrishy > > > > > > > > > > --- The Minto Skating Club > > wrote: > Try: > > > > > > nrpe -d /etc/nrpe.cfg > > > > > > /Tim > > > > > > > > > On Jan 6 , =?iso-8859-1?q?hrishy?= > > > wrote: > > > > > > > > Hi Jan > > > > > > > > I have specified the following command > > > > > > > > $ nrpe -c /etc/nrpe.cfg --daemon > > > > $ > > > > $ ps -ef|grep nrpe > > > > $ > > > > > > > > > > > > its -c ..if i try -f its not working.. > > > > > > > > regards > > > > Hrishy > > > > > > > > > > > > --- Jan-Hendrik Palic wrote: > Hi > > > ... > > > > > > > > > > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, hrishy > > > > > wrote: > > > > > >I am unable to run the nrpe deamon on sun > > > solaris > > > > > >machine.I have sucessfuly compiled the nrpe > > > deamon > > > > > on > > > > > >sun solaris ..however when i run the nrpe > > > deamon in > > > > > >standalone mode or as a inetd mode..and do a > > > > > >ps-ef|grep nrpe nothing is being displayed..can > > > you > > > > > >tell us why. > > > > > > > > > > did you specify the config-file with "-f". > > > > > > > > > > Regards > > > > > Jan > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This sf.net email is sponsored by:ThinkGeek > > > > > Welcome to geek heaven. > > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Everything you'll ever need on one web page > > > > from News and Sport to Email and Music Charts > > > > > > > > href='http://uk.my.yahoo.com'>http://uk.my.yahoo.com > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > Tim Shouldice > > > WebMaster - The Minto Skating Club > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > __________________________________________________ > > 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: > > 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 Fredrik.Wanglund at datavis.se Tue Jan 7 09:17:14 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 7 Jan 2003 09:17:14 +0100 Subject: remote disk/load? Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780456@storevis.datavis.se> An other alternative is nagios-statd for UNIX or NSClient for Windows. -----Original Message----- From: joe usenta [mailto:jusenta at hotmail.com] Sent: Fri 03-Jan-03 00:40 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] remote disk/load? hello, maybe i'm missing something, but is there a way to monitor the remote load/disk usage? the check_disk and check_load scripts do not give a remote host option, and only show local numbers. i cannot get it to show me what i'm looking for. the remote hosts would be a combination of solaris/linux boxes. is there maybe some other check that would do this? thanks in advance, jusenta _________________________________________________________________ MSN 8 with e-mail virus protection service: 2 months FREE* http://join.msn.com/?page=features/virus ------------------------------------------------------- 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 ------------------------------------------------------- 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 Jan 7 09:18:17 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Tue, 7 Jan 2003 09:18:17 +0100 Subject: apan return code 127 Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780457@storevis.datavis.se> Are you using bash? -----Original Message----- From: Cristian Trujillo G. [mailto:cristian at alestraidc.net.mx] Sent: Sun 05-Jan-03 01:49 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] apan return code 127 Hi read the faq and i cant resolve this problem, i use FreeBSD and nagios work fine, but apan not. always return this: Warning: Return code of 127 for check of service 'Disk-usage' on host 'server1' was out of bounds. Make sure the plugin you're trying to run actually exists. When i run manually /usr/local/apan/apan.sh the result is /usr/local/apan/apan.defs: 32: Syntax error: word unexpected (expecting ")") i suspect the problem is in the path this a apan.defs #Base-directory for nagios: NAGIOSDIR=/usr/local/bin/ #The directory where apan is installed APANDIR=/usr/local/apan #The directory where Nagios plugins resides PLUGINSDIR=/usr/local/libexec/nagios #The directory where Nagios .cfg-files resides ETCDIR=/usr/local/etc/nagios # The directory where apans plugins resides PLUGSDIR=$APANDIR/plugs # The main config-file for apan CFGFILE=$APANDIR/apan.cfg # Path to rrdtool RRDTOOL=/usr/local/bin/rrdtool # Set DEBUG to 1 and define a DEBUGFILE to get debug-info from apan DEBUG=1 DEBUGFILE=/tmp/apan.debug the debug no print nothing... 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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Tue Jan 7 09:50:33 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 7 Jan 2003 08:50:33 +0000 (GMT) Subject: nrpe not able to run on solaris machine In-Reply-To: <1041926871.16719.65.camel@dev.showkilr.com> References: <1041926871.16719.65.camel@dev.showkilr.com> Message-ID: <20030107085033.29294.qmail@web12607.mail.yahoo.com> Hi showKilr Cool..you really killed the problem..yep after commenting out the command_timeout it started working...:-D regards Hrishy --- Showkilr wrote: > In your config for nrpe comment out > command_timeout=60 > then start nrpe with nrpe -c -d > > it should run now and not exit.. > > Showkilr > > On Tue, 2003-01-07 at 01:34, Showkilr wrote: > > call nrpe like this > > > > nrpe -c -d > > > > Showkilr > > > > On Mon, 2003-01-06 at 22:19, hrishy wrote: > > > Hi > > > > > > Tim...i gave a try with -d too..still no luck > > > > > > regards > > > Hrishy > > > > > > > > > > > > > > > --- The Minto Skating Club > > > > wrote: > Try: > > > > > > > > nrpe -d /etc/nrpe.cfg > > > > > > > > /Tim > > > > > > > > > > > > On Jan 6 , =?iso-8859-1?q?hrishy?= > > > > wrote: > > > > > > > > > > Hi Jan > > > > > > > > > > I have specified the following command > > > > > > > > > > $ nrpe -c /etc/nrpe.cfg --daemon > > > > > $ > > > > > $ ps -ef|grep nrpe > > > > > $ > > > > > > > > > > > > > > > its -c ..if i try -f its not working.. > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > > > > > > --- Jan-Hendrik Palic > wrote: > Hi > > > > ... > > > > > > > > > > > > > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, > hrishy > > > > > > wrote: > > > > > > >I am unable to run the nrpe deamon on sun > > > > solaris > > > > > > >machine.I have sucessfuly compiled the > nrpe > > > > deamon > > > > > > on > > > > > > >sun solaris ..however when i run the nrpe > > > > deamon in > > > > > > >standalone mode or as a inetd mode..and > do a > > > > > > >ps-ef|grep nrpe nothing is being > displayed..can > > > > you > > > > > > >tell us why. > > > > > > > > > > > > did you specify the config-file with "-f". > > > > > > > > > > > > Regards > > > > > > Jan > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This sf.net email is sponsored > by:ThinkGeek > > > > > > Welcome to geek heaven. > > > > > > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > > > > _______________________________________________ > > > > > > Nagios-users mailing list > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Everything you'll ever need on one web page > > > > > from News and Sport to Email and Music > Charts > > > > > > > > > > > > href='http://uk.my.yahoo.com'>http://uk.my.yahoo.com > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This sf.net email is sponsored by:ThinkGeek > > > > > Welcome to geek heaven. > > > > > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > Tim Shouldice > > > > WebMaster - The Minto Skating Club > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > __________________________________________________ > > > 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: > > > 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!? 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Tue Jan 7 09:46:09 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 7 Jan 2003 08:46:09 +0000 (GMT) Subject: nrpe not able to run on solaris machine In-Reply-To: <1041924882.16719.47.camel@dev.showkilr.com> References: <1041924882.16719.47.camel@dev.showkilr.com> Message-ID: <20030107084609.91379.qmail@web12605.mail.yahoo.com> Hi All well..it aint working..i am enclosing my binary that i have compiled on sun solaris 8.Can you folks check it if you guys have a solaris machine..or alternatively.how about sending across the binaries you have compiled... regards Hrishy --- Showkilr wrote: > call nrpe like this > > nrpe -c -d > > Showkilr > > On Mon, 2003-01-06 at 22:19, hrishy wrote: > > Hi > > > > Tim...i gave a try with -d too..still no luck > > > > regards > > Hrishy > > > > > > > > > > --- The Minto Skating Club > > > wrote: > Try: > > > > > > nrpe -d /etc/nrpe.cfg > > > > > > /Tim > > > > > > > > > On Jan 6 , =?iso-8859-1?q?hrishy?= > > > wrote: > > > > > > > > Hi Jan > > > > > > > > I have specified the following command > > > > > > > > $ nrpe -c /etc/nrpe.cfg --daemon > > > > $ > > > > $ ps -ef|grep nrpe > > > > $ > > > > > > > > > > > > its -c ..if i try -f its not working.. > > > > > > > > regards > > > > Hrishy > > > > > > > > > > > > --- Jan-Hendrik Palic wrote: > > Hi > > > ... > > > > > > > > > > > > > > On Mon, Jan 06, 2003 at 10:16:53AM +0000, > hrishy > > > > > wrote: > > > > > >I am unable to run the nrpe deamon on sun > > > solaris > > > > > >machine.I have sucessfuly compiled the nrpe > > > deamon > > > > > on > > > > > >sun solaris ..however when i run the nrpe > > > deamon in > > > > > >standalone mode or as a inetd mode..and do > a > > > > > >ps-ef|grep nrpe nothing is being > displayed..can > > > you > > > > > >tell us why. > > > > > > > > > > did you specify the config-file with "-f". > > > > > > > > > > Regards > > > > > Jan > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This sf.net email is sponsored by:ThinkGeek > > > > > Welcome to geek heaven. > > > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > > > _______________________________________________ > > > > > Nagios-users mailing list > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > __________________________________________________ > > > > Do You Yahoo!? > > > > Everything you'll ever need on one web page > > > > from News and Sport to Email and Music Charts > > > > > > > > > href='http://uk.my.yahoo.com'>http://uk.my.yahoo.com > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This sf.net email is sponsored by:ThinkGeek > > > > Welcome to geek heaven. > > > > > > > > > href='http://thinkgeek.com/sf'>http://thinkgeek.com/sf > > > > > _______________________________________________ > > > > Nagios-users mailing list > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > Tim Shouldice > > > WebMaster - The Minto Skating Club > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > __________________________________________________ > > 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: > > 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!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com -------------- next part -------------- A non-text attachment was scrubbed... Name: nrpe Type: application/octet-stream Size: 103792 bytes Desc: nrpe URL: From jens.kruse at mobilcom.de Tue Jan 7 10:16:21 2003 From: jens.kruse at mobilcom.de (Jens Kruse) Date: Tue, 07 Jan 2003 10:16:21 +0100 Subject: Whole Configuration in a Database? References: <74D428BDBFD5D04CB54E84499ECA29DB014E1233@PKDWB03C.ad.sprint.com> Message-ID: <3E1A9AE5.6040603@mobilcom.de> Hi, is that just rumours or any facts which will determine this? Regards, Jens Carroll, Jim P [Contractor] wrote: > I believe it's been discussed. But now for the Bad News. > > I recently found out from someone else on the list that the current MySQL/PgSQL support is slated to disappear in a future release. > > jc > > >>-----Original Message----- >>From: Jan-Hendrik Palic [mailto:jhp at addix.net] >>Sent: Monday, January 06, 2003 6:11 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Whole Configuration in a Database? >> >> >>Hi .. >> >>has anyone experiences with putting the whole configuration of nagios >>into a database (MySQL/PgSQL)? Just in time you can save comments and >>Servicestates init. >> >>Any plans to put a db-support like this into nagios in the future? >> >> Regards >> Jan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ilse.vandeplas at pandora.be Tue Jan 7 11:09:32 2003 From: ilse.vandeplas at pandora.be (ilse.vandeplas at pandora.be) Date: Tue, 7 Jan 2003 10:09:32 +0000 (UTC) Subject: check_http with proxy authentification Message-ID: Hi, I'm trying to check a website trough a proxy server that requires me to log on using nt credantials domain\user password. I know how to use a proxy server but I can't figure out the authentification part. This is what I have at the moment: check_http -H http://www.cnn.com -I proxyserveradress -p 8080 this hives me the following error: http ok: http/1.1 407 proxy authentification required ( the ISA server requires authorization to fulfill the request. Access to the Web Proxy service is denied.) The proxy server is a Microsoft ISA proxy server. Any help would be great. Greetings Wim ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Grae.Noble at newcastle.edu.au Tue Jan 7 10:59:13 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Tue, 07 Jan 2003 20:59:13 +1100 Subject: Whole Configuration in a Database? Message-ID: Hi all, I know db support is "probably" going to be removed from the core (http://www.nagios.org/upcoming.php) , but I believe that the plan is that it will still be possible via the event daemon. I understand that the current implementation of db code needs to be looked at, and the planned method means that development and testing of the core is simplified significantly. Hopefully the required addons will still be developed as I feel it would be a monumental mistake to remove db support entirely (or let it stagnate). DB support is vastly underrated. It enables seamless distributed/ failover monitoring, as well as common downtime information for large sites where multiple monitors are required. Config in a db also simplifies failover and distributed monitoring as well as making delegated administration as easy as it is going to get ( again for larger sites where administration is devolved out to other groups etc). DB support also makes custom interfaces a breeze. The move to php for the cgi will also significantly simplify db usage as well as simplify custom interfaces. The new way of doing things may even make it simple to add oracle db support. Just my 2 cents :) Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> "Carroll, Jim P [Contractor]" 01/07/03 09:53am >>> I believe it's been discussed. But now for the Bad News. I recently found out from someone else on the list that the current MySQL/PgSQL support is slated to disappear in a future release. jc > -----Original Message----- > From: Jan-Hendrik Palic [mailto:jhp at addix.net] > Sent: Monday, January 06, 2003 6:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Whole Configuration in a Database? > > > Hi .. > > has anyone experiences with putting the whole configuration of nagios > into a database (MySQL/PgSQL)? Just in time you can save comments and > Servicestates init. > > Any plans to put a db-support like this into nagios in the future? > > Regards > Jan > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- 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 Jan 7 10:49:19 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 7 Jan 2003 09:49:19 -0000 Subject: Whole Configuration in a Database? In-Reply-To: <3E1A9AE5.6040603@mobilcom.de> References: <3E1A9AE5.6040603@mobilcom.de> Message-ID: <000a01c2b632$0c6104a0$0400a8c0@squarebox.com> Check it out here http://www.nagios.org/upcoming.php Cheers 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 Jens Kruse Sent: 07 January 2003 09:16 To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Whole Configuration in a Database? Hi, is that just rumours or any facts which will determine this? Regards, Jens Carroll, Jim P [Contractor] wrote: > I believe it's been discussed. But now for the Bad News. > > I recently found out from someone else on the list that the current MySQL/PgSQL support is slated to disappear in a future release. > > jc > > >>-----Original Message----- >>From: Jan-Hendrik Palic [mailto:jhp at addix.net] >>Sent: Monday, January 06, 2003 6:11 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Whole Configuration in a Database? >> >> >>Hi .. >> >>has anyone experiences with putting the whole configuration of nagios >>into a database (MySQL/PgSQL)? Just in time you can save comments and >>Servicestates init. >> >>Any plans to put a db-support like this into nagios in the future? >> >> Regards >> Jan ------------------------------------------------------- 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 hrishys at yahoo.co.uk Tue Jan 7 11:08:30 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <000a01c2b632$0c6104a0$0400a8c0@squarebox.com> References: <000a01c2b632$0c6104a0$0400a8c0@squarebox.com> Message-ID: <20030107100830.65094.qmail@web12606.mail.yahoo.com> Hi All My nagios host is running linux from where i want to monitor my sun machine.My services.cfg file on nagios host is like this define service{ use generic-service ; host_name unix1 service_description /dev/dsk/c0t0d0s0 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups unix-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_disk1 } and the /etc/nrpe.cfg file on the sun solaris machine has the following lines in it.. command[check_disk1]=/usr/nagios/libexec/check_disk -w 20 -c 10 -m /usr I am getting incorrect command line arguments supplied..while as when i run the command in stand alone mode on the sun server it works.. Can anybody help..why this is happening 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Chris.Losch at newham.gov.uk Tue Jan 7 12:10:15 2003 From: Chris.Losch at newham.gov.uk (Chris Losch) Date: Tue, 7 Jan 2003 11:10:15 -0000 Subject: Problems with Nagios 1.0 on Red Hat 8.0 [Solut ion] Message-ID: I finally got some time to try, this and it works... (fixes the "Could not stat()" problem) - If only i had tried this earlier, would have saved a lot of time, and pulled hair! Thanks -----Original Message----- From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] Sent: 06 January 2003 17:16 To: nagios-users at lists.sourceforge.net Cc: AHKAPLAN at PARTNERS.ORG Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 IIRC the command is "make install-commandmode". -vol -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Monday, January 06, 2003 4:33 PM To: 'Russell Scibetti' Cc: 'nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 Chris, What is the complete syntax of the make install-mode command? Simply typing make install-mode results in a No rule to make target 'install-mode'. Stop error message. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Friday, January 03, 2003 10:16 AM To: Chris Losch Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 Did you make sure that: 1. In the installation phase, you ran "make install-mode" 2. The user that the apache runs as has permissions to write to nagios.cmd (usually done by added the "webserver" user to whatever group nagios.cmd is set to) Just some suggestions of things to double check. Russell Scibetti Chris Losch wrote: Did you encounter any of the problems mentioned in the thread mentioned below (i.e.) recieving the "Could not stat() command file" error, when trying to use the web interface to commit changes, schedule checks, enter downtime etc. etc. I have the rest of the Nagios functions working perfectly well, using the default (full) install of RH8 and nagios 1.0. (no CVS components) Chris -----Original Message----- From: donavan nelson [ mailto:donavan at 4wx.net ] Sent: 02 January 2003 20:20 To: Chris Losch; ' nagios-users at lists.sourceforge.net ' Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 I have nagios running just fine on redhat 8.0. Compiled nagios 1.0 and plugins (latest beta) from source. Using the default redhat apache install, etc. Nothing special on the server. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Chris Losch To: "'nagios-users at lists.sourceforge.net'" Sent: Thu, 2 Jan 2003 16:55:59 -0000 Subject: RE: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > Just for Your Information, > There are several reported problems with Nagios1.0 on Redhat 8.0... > well at least 1 unresolved(?) problem. > > I haven't looked at the below issue specifically, however I have had > my own problems - see previous discussions entitiled "[Nagios-users] > Permissions Error (Could not stat() command file )" > > I would suggest that you read these threads, and determine if you REALLY > want to proceed with RH8 knowing that you may encounter these, so far > unresolved, issues that lie ahead for you. > > Unresolved, that is, unless someone knows better. (Crosses fingers) > Chris > > -----Original Message----- > From: Freddy Frouin [ mailto:freddy.frouin at fluxus.net ] > Sent: 02 January 2003 15:12 > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Problems with Nagios 1.0 on Red Hat 8.0 > > just put the Alias rules before the ScriptAlias one... > it should work, does'nt it ? > > On Thu, 2 Jan 2003 09:57:24 -0500 > "Kaplan, Andrew H." wrote: > > > I'm having a problem accessing the monitoring pages. The main page can be > seen > > without a problem. > > However, any one of the monitoring screens comes back with the following > error > > message: > > > > NOT FOUND: The requested URL /nagios/cgi-bin/name.cgi was not found on > this > > server. > > > > As far as I can tell, I have the appropriate settings configured in the > > httpd.conf and cgi.cfg files. They > > are included in this e-mail. What am I missing or did not configure > correctly? > > Thanks. > > > > <> <> > > > > > > -- > Freddy Frouin > Responsable Supervision > British Telecom / Fluxus > 30, rue du Ch?teau des Rentiers > 75013 Paris > > T?l: +33 (0)1 44 97 70 00 > Fax: +33 (0)1 44 97 70 07 > > ------------------------------------------------------- > 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 > > ********************************************************************** 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. ********************************************************************** ------- End of Original Message ------- -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From John.Jolet at misyshealthcare.com Tue Jan 7 13:03:59 2003 From: John.Jolet at misyshealthcare.com (Jolet, John) Date: Tue, 7 Jan 2003 07:03:59 -0500 Subject: NRPE enhancement Message-ID: works fine for me! -----Original Message----- From: Ethan Galstad [mailto:nagios at nagios.org] Sent: Monday, January 06, 2003 11:48 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement I've thought about this for a while now and have decided that I will allow arguments to be passed to plugins in future versions of NRPE. I've gotten a lot of requests for this feature and I understand that it makes configuring things on the central server much easier. However, because of the security implications this will have, I will also be doing the following: 1. Incorporate encryption similar to NSCA that gives the NRPE daemon some assurance of a trust level with the client 2. Strip all potentially dangerous shell metacharacters from the arguments before they're passed to the plugin for exection Incorporating crypto into NRPE will affect performance a bit, but it will still probably scale better than check_by_ssh. If the user decides to disable native crypto support (and tunnel traffic through stunnel, etc. instead), the NRPE daemon will refuse to accept arguments for plugins unless the user specifically supplies a --dont- blame-nrpe option to the configure script before compiling. If the daemon gets compiled with this option, it will loudly complain in the logs and elsewhere that is running in an insecure mode. Does this approach sound reasonable to people? On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > If you have 500 machines, and among those machines there are no two disks > alike, then I can only imagine the grief ahead of you. To take a page out > of www.infrastructures.org, it's desireable to maintain a convergence, not > divergence, among the various systems. Homogeneity is A Good Thing ?. > > Having said that, rather than maintaining 500 config files, why not maintain > a single config file containing all the similar and dissimilar config > particulars? Edit that one file, and either push it out from a trusted host > ("gold server", in Infrastructures.org parlance). Better still, set up an > rsync server (or some other server that you can live with, and set up a cron > job to pull down the latest nrpe.cfg file. (As has been emphasized on their > list, pull, never push. But take your pick. :) > > In our location, I maintain a single nrpe.cfg file, complete with all the > unique disk definitions. I'm not sure if it matters to you, but for the > most part, I've elected to use the percentage option of check_disk. 5% free > on the root partition of an 18GB disk isn't going to be a whole lot > different from 5% free on root of a 36GB disk. Sure, mathematically they're > different, so if exacting differences is critical in your environment, > create unique definitions for the different root partitions. (I'm also > specifying mount points, not device filenames.) On a related note, we have > partitions on our database servers which follow a fairly straightforward > naming scheme for the mount points, and since I don't expect those > partitions to change, I can either exclude them, or I can set a trivial > threshold for each of the warning and critical, but in those cases I specify > kbytes. (I do the latter; this lets anyone with the appropriate permissions > at the web interface view all the defined partitions.) > > [Sidebar: I noticed at one point that there's a limit to the length of the > command token in nrpe.cfg. As a result, I simplified all the names. Lesson > learned: Be economical with the keystrokes.] > > If you like, I can send you the nrpe.cfg file that I install on all our > hosts. > > You might find that instead of one master nrpe.cfg file, that you'd rather > manage a handful of dissimilar files. Might still want to use the > gold/config server, as above. > > Food for thought. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Monday, December 30, 2002 2:43 PM > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > cpu-wise, but > > has problems configuration-wise. (Imagine 500 machines all > > of which have 5 > > disks, and different check_disk arguments for each. That's 2500 > > configuration lines that need to be maintained over 500 > > machines in 500 > > files.) > > > > Perhaps there is room for something more secure than the > > current nrpe, but > > more scalable than check_by_ssh. Does that seem reasonable? > > If so, does > > anyone have suggestions for low cost security implementations > > that could > > enhance the security of nrpe without the cost of ssh? > > > > dave > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > To: 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > The general consensus is that check_by_ssh isn't a solution > > which will scale > > well, due to the nature of the number-crunching crypto beast. > > This is where > > NRPE has the advantage. > > > > check_by_ssh has the advantage when it comes to punching > > through a firewall, > > assuming that an appropriate port is open. Sure, you could > > open port 5666 > > for NRPE, but has has been discussed, that doesn't quite > > leave the same warm > > fuzzies. > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 12:14 PM > > > To: 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Let me ask a second question that might help me understand > > > more clearly the > > > situation. Check_by_ssh allows for the passing of arbitrary > > > arguments to > > > arbitrary command from the centralized Nagios server to any > > > remote machine > > > which has sshd running. NRPE allows for executing a specific > > > command with > > > specific arguments on any remote machine which has nrpe running. > > > > > > As someone setting up monitoring, when should I use > > > check_by_ssh and when > > > should I use nrpe? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 30, 2002 9:07 AM > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > executed. I think the code that I wrote will only allow one > > > of the commands > > > already listed in the nrpe.cfg file to be executed. The > > > arguments passed > > > are arbitrary, but not the command. (The code even checks to > > > ensure that the > > > command requested, without any arguments, exists before > > > executing it to > > > prevent malicious usage of arguments.) > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > Sent: Saturday, December 28, 2002 5:02 PM > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > executed and which by "default" is switched off is an > > accident waiting > > > to happen. > > > > > > It only takes 1 security breach via a plugin to completely > > destroy the > > > good name Nagios and its associated plugins have. > > > > > > There is a good truism that states "good news travels fast, > > > but bad news > > > travels even faster" > > > > > > I for one would not be too happy having a command available on my > > > network, trusted or not that would allow commands to be executed > > > remotely pon a box. For one. It's the kind of thing im > > always looking > > > for when im "playing on my " networks. > > > > > > Well that's my two cents worth > > > > > > Cheers > > > > > > 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 Dave > > > Viner > > > Sent: 28 December 2002 21:46 > > > To: Ethan Galstad; nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > These are excellent arguments for not incorporating the > > > enhancement I am > > > suggesting. However, I suspect that there are lots of > > > installations of > > > Nagios and NRPE that run on completely trusted network. (Or > > > the risk of > > > network intrusion through NRPE is worth the benefit of reduced > > > configuration > > > management.) > > > > > > What do you think about incorporating this enhancement but have it > > > turned > > > off by default, and enabled only at configure time? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > Galstad > > > Sent: Friday, December 27, 2002 7:38 PM > > > To: nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > There are several reasons why I have not added support for arguments > > > to checks in NRPE. Most have been touched on in the past on the > > > list, but I'll reiterate them here. The main issue is not > > overruning > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > and forth - that can be easily avoided... > > > > > > 1. > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > restrict connection based on IP address using TCP wrappers, but they > > > are still not authenticated. Also, I am not too familiar with IP > > > spoofing, but I'm sure its possible for someone to fake the > > > originating address of the connection and get the NRPE daemon to > > > accept the packet and execute the necessary plugin without too much > > > trouble. > > > > > > 2. > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > Regardless of what user the NRPE daemon is running as, these plugins > > > will be executed with higher privs. > > > > > > 3. > > > Plugins can be made to segfault under the right conditions. > > Sure, we > > > can try and eliminate this possibility, but it will probably always > > > exist to some extent since many plugins call system commands to get > > > their data. > > > > > > --- > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > work done, so allowing unauthenticated users to pass arbitrary > > > arguments/data to plugins that might be running suid commands is a > > > very bad idea indeed. > > > > > > Stunnel would provide some security, but there is no guarantee that > > > everyone would use it. There would undoubtably be many people that > > > would put off implementing it until they finished "testing" > > NRPE. In > > > the worst case, they might never get around to implementing stunnel > > > at all. In the likely best case scenario, there is at > > least a window > > > of opportunity. I just don't want to be responsible for > > the possible > > > carnage that happens at that point. :-) > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > that. > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > I'm not a C programmer by profession, so I defer your > > query to those > > > who > > > > have a strong background, both in C code and system/network > > > security. > > > It > > > > does presume that every other link in the chain is bulletproof. > > > [Insert > > > > ObRef to Bugtraq here.] > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > that approach > > > to > > > > begin with. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > security implications of this code. I'm not a security > > > > > expert, so please excuse the somewhat basic question. The > > > > > struct packet as defined in common/common.h has an argv > > > > > member which is a character array of length 2048. I believe > > > > > this means that if the incoming packet has an argv member > > > > > whose length is greater than 2048 chars, then the > > > > > rc=recvall(sock,(char > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > should fail, should it not? > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > encryption are good ones, regardless of the inclusion of > > > this code. > > > > > > > > > > thanks > > > > > > > > > > dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Carroll, Jim P [Contractor] > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > should explicitly > > > > > state the security risks in forcing the non-default > > > (added feature) > > > > > behaviour. > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > daemon starts, it > > > > > should briefly mention that it has been compiled for this > > > > > behaviour, and a > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > standalone, else > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > loud and clear > > > > > if it's started under root; preferably it would simply not > > > > > run as root, full > > > > > stop. > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > only permitting > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > desireable. > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > this feature > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > on a trusted > > > > > network, it's a non-issue. > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > if there were a > > > > > facility to enforce some level of native encryption, such as > > > > > what NSCA uses. > > > > > If you don't have the keys to the house, you get dropped on > > > > > the floor. (I > > > > > have a similar wish for NSClient.) > > > > > > > > > > Food for thought. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > sourceforge. > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > nrpe.cfg file lines like this: > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > argument string. For example: > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > number of times you'd need to modify that configuration file. > > > > > > Instead the modifications would occur on the centralized > > > > > > Nagios server's configuration file. > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > source for NRPE-1.6? > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Dave Viner > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > To: Naios Users > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > Security is a great reason for limiting the commands > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > remaining information as arguments passed to the executable. > > > > > > It is true that this is less secure that forcing the entire > > > > > > command line (executable and arguments) in the config file. > > > > > > But, so long as the executables are well authored and handle > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > significantly decrease security. Do you think that > > > > > > specifying arguments would make NRPE significantly > > less secure? > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Rue Turner > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > To: Naios Users > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > security. If the > > > > > > nrpe was allowed to run whatever it was asked it would > > > be easy to > > > > > > compromise your machines. This way although your configs are > > > > > > hefty (mine > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > commands from > > > > > > this library. > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > Hi, > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > people think this is a > > > > > > > good idea, I'll try to make a patch to support my > > > > > > suggestion. Currently the > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > 95 /dev/hda1 > > > > > > > As result of this design is that if you want to check > > > > > something like > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > nrpe.cfg file. > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > for the arguments to a > > > > > > > command to be specified by the central Nagios server > > > > > > instead of in the > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > command line which > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > specified from > > > > > > > the central Nagios server in some manner. > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > and reduce a lot of > > > > > > > redundant command definitions that differ only in the > > > > > arguments they > > > > > > > require. Also, it would mean that you'd need to update > > > > > > your nrpe.cfg very > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > a new plugin. > > > > > > > I don't have a concrete suggestion for implementing > > > > > > this yet, because I > > > > > > > want to see if the community is interested in this idea > > > > > > first. Has this > > > > > > > idea been suggested previously? Is anyone currently > > > > > > interested in the idea > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > thanks > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest > > gifts for > > > > > > > your favorite geek. Let your fingers do the > > typing. Visit > > > Now. > > > > > > > T H I N K G E E K . C O M > > http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > Nagios-users mailing list > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > interest where > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.NET email is sponsored by: The Best Geek > > Holiday Gifts! > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > your favorite geek. Let your fingers do the typing. > > > Visit Now. > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > _______________________________________________ > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > ------------------------------------------------------- > 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 > 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 _______________________________________________ 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 kurt.ziegenbein at saarstahl.com Tue Jan 7 13:49:00 2003 From: kurt.ziegenbein at saarstahl.com (ZIEGENBEIN, Kurt) Date: Tue, 7 Jan 2003 13:49:00 +0100 Subject: check_ntp and time-offset 0.000000 sec Message-ID: Hi all! We had to comment out the following pice of code in the check_ntp plugin: # An offset of 0.000000 with an error is probably bogus. Actually, # it's probably always bogus, but let's be paranoid here. if ($offset == 0) { undef $offset;} We are using check_ntp to watch for the time difference on our server which are all NTP-Clients. Some times Nagios reported an error, because of a zero-offset. At the moment I can't overview why this check should be done. What do you think? ciao Kurt ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rvelez at sunguruz.com Tue Jan 7 14:04:39 2003 From: rvelez at sunguruz.com (rvelez) Date: Tue, 07 Jan 2003 08:04:39 -0500 Subject: NAgios Libexec commands Message-ID: <20030107130439.21923.qmail@nsmx1.sunguruz.com> Hey guys, Basically I want to use more of the plugins but i relaized that most of the plugins have no entries in the checkcommands.cfg file, ie mailq. I want to do check_mailq and I am running qmail, does this mean that i would have to write the syntax similar to what is already written in thier but for the mailq plugin? Your help is greatly apprecited. Thanks Regards, Radames ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dennis.cannell at itouch.ie Tue Jan 7 15:11:24 2003 From: dennis.cannell at itouch.ie (Dennis Cannell) Date: Tue, 7 Jan 2003 14:11:24 -0000 Subject: Setting inital state of passive services Message-ID: Hi, I have Nagios up and running recieving SNMP traps via passive services (scheduled on no-time-periods, to work around that "disabled" indicator in the TAC Overview) I would like to set inital states of OK for each of the passive SNMP trap services. I would prefer them to be in that state rather than "pending". The only way to do this seems to be to mannually, via the GUI, supply OK passive check results for the services. Is there a way to get Nagios to automatically create these services with OK state on startup automatically? I've scoured the service object config... I'm using check_dummy returning 0 (OK) as a service check, but seeing as it is never actually scheduled, nothing will return. I've also tried changing the service to a valid time period and put both 'active_checks_enabled 0' and 'passive_checks_enabled 1' in but the service still stays as "pending". The only thing I have thought of so far is changing the service to retain state information and then submitting check results by hand. Ideally I would like the OK to be assumed without having to submit results by hand thou. The whole reason for this is because availability and associated reports show the services as spending 99% of their time in undetermined time. Thanks in advance for any leads anyone might have. Cheers Dennis ------------------------------------------------------- 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 Jan 7 15:53:51 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 07 Jan 2003 15:53:51 +0100 Subject: NAgios Libexec commands References: <20030107130439.21923.qmail@nsmx1.sunguruz.com> Message-ID: <3E1AE9FF.5BD7E941@gcc.dhl.com> Yes. http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#command rvelez wrote: > > Hey guys, > > Basically I want to use more of the plugins but i relaized that most of > the plugins have no entries in the checkcommands.cfg file, ie mailq. I want > to do check_mailq and I am running qmail, does this mean that i would have > to write the syntax similar to what is already written in thier but for the > mailq plugin? Your help is greatly apprecited. Thanks > > Regards, > > Radames > > ------------------------------------------------------- > 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 Jan 7 15:52:38 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 7 Jan 2003 09:52:38 -0500 (EST) Subject: SNMP Working .......... In-Reply-To: <001001c2b330$03b2b240$5f7b0297@atul> References: <001001c2b330$03b2b240$5f7b0297@atul> Message-ID: The only think required on the NT/2k side is the configuration of the community string. Usually you can set it from the propeties of the SNMP service in the "Services" panel under Admin Tools. NT/2k supports the HOST MIB so you should be able to query the disk usage info in addition to the interface traffic. -sg On Fri, 3 Jan 2003, Atul Shrivastava wrote: > Hello All, > > I want to know that what all are the settings that are required while configuring the SNMP service in Win NT & Win 2K machines. > I think that on the Nagios side only check_snmp is configured in the checkcommands.cfg > > Can anyone give me a way out. > > > 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 From kehr02 at yahoo.com Tue Jan 7 16:03:03 2003 From: kehr02 at yahoo.com (Karl Ehr) Date: Tue, 7 Jan 2003 07:03:03 -0800 (PST) Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Message-ID: <20030107150303.60421.qmail@web80304.mail.yahoo.com> I have a hacker challenge -- maybe... I've read the phobic posts about Red Hat 8.0, but I haven't seen anything that looks like my problem, RH 8.0 or otherwise: My problem is that the nsca daemon, when handling a remote network request from send_nsca, gives the following error: Jan 7 08:27:38 XXXX nsca[8827]: Handling the connection... Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> Host Name: 'laptop', Service Description: 'BOGUS', Return Code: '2', Output: 'Error Message goes here' Jan 7 08:27:38 XXXX nsca[8827]: Command file '/usr/local/nagios/var/rw/nagios.cmd ' does not exist, attempting to use alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for output Jan 7 08:27:38 XXXX nsca[8827]: Could not open alternate dump file '/usr/local/nagios/var/rw/nsca.dump' for appending Jan 7 08:27:38 XXXX nsca[8827]: End of connection... I've configured the user/group for both nagios and the nsca daemons to be 'nagios/nagios'. All of /usr/local/nagios is user/group nagios.nagios. The permissions are correct (I'm 99%) sure, because all of the external command CGI's work perfectly; also, su-ed to the nagios user, I can echo commands >> to the /usr/local/nagios/var/rw/nagios.cmd file and they show up fine both in the log and in the web interface.... I have tried compiling the 1.06b and 1.0 versions of nagios, the 2.1 and latest CVS build of nsca, mix-matching them in all combinations. I have set the permissions on the "rw" directory both by hand (setting the group, the S bit on the group level, etc...) and with the "install-commandmode" make option; I've also tried chmoding the file with "chmod 777" after it gets created when nagios starts and there is the same error. The fact that I can echo commands in locally as the "nagios" user and get good results seems to probably show that its neither a permissions issue or anything with the passive/external command interface. Maybe this is a bug with nsca itself? As an aside, I cannot get the alternate dump file to work either. Touching the nagios.dump file ahead of time, and setting wide open permissions makes no difference. (I'm assuming that the dump file is supposed to be a regular text file -- not a FIFO named pipe like the command file, right??) I'm stumped... but I'm also surprised that I'm seeing something that hasn't popped up for someone else already. Any help will bring you praise, beer, pizza, cookies or whatever tithe you demand. TIA, Karl __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From milton at isomedia.com Tue Jan 7 16:13:09 2003 From: milton at isomedia.com (Stephen Milton) Date: Tue, 7 Jan 2003 07:13:09 -0800 Subject: NRPE enhancement In-Reply-To: References: Message-ID: <20030107151309.GL1901@isomedia.com> Another option is NRPEP (one of the older NetSaint based tools) which was a perl replacement for the old NRPE. The perl version already has encryption. I have been able to use it in my Nagios installation with only trivial modifications to the check_nrpep program (change the config default directory). I suppose it is possible that the perl interpreter is less scalable than the check_by_ssh, not really sure, but it works well for me. -Steve On Tue, Jan 07, 2003 at 07:03:59AM -0500, Jolet, John eloquently stated: > works fine for me! > > -----Original Message----- > From: Ethan Galstad [mailto:nagios at nagios.org] > Sent: Monday, January 06, 2003 11:48 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > I've thought about this for a while now and have decided that I will > allow arguments to be passed to plugins in future versions of NRPE. > I've gotten a lot of requests for this feature and I understand that > it makes configuring things on the central server much easier. > However, because of the security implications this will have, I will > also be doing the following: > > 1. Incorporate encryption similar to NSCA that gives the NRPE daemon > some assurance of a trust level with the client > > 2. Strip all potentially dangerous shell metacharacters from the > arguments before they're passed to the plugin for exection > > Incorporating crypto into NRPE will affect performance a bit, but it > will still probably scale better than check_by_ssh. If the user > decides to disable native crypto support (and tunnel traffic through > stunnel, etc. instead), the NRPE daemon will refuse to accept > arguments for plugins unless the user specifically supplies a --dont- > blame-nrpe option to the configure script before compiling. If the > daemon gets compiled with this option, it will loudly complain in the > logs and elsewhere that is running in an insecure mode. > > Does this approach sound reasonable to people? > > > > On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > > > If you have 500 machines, and among those machines there are no two disks > > alike, then I can only imagine the grief ahead of you. To take a page out > > of www.infrastructures.org, it's desireable to maintain a convergence, not > > divergence, among the various systems. Homogeneity is A Good Thing ?. > > > > Having said that, rather than maintaining 500 config files, why not > maintain > > a single config file containing all the similar and dissimilar config > > particulars? Edit that one file, and either push it out from a trusted > host > > ("gold server", in Infrastructures.org parlance). Better still, set up an > > rsync server (or some other server that you can live with, and set up a > cron > > job to pull down the latest nrpe.cfg file. (As has been emphasized on > their > > list, pull, never push. But take your pick. :) > > > > In our location, I maintain a single nrpe.cfg file, complete with all the > > unique disk definitions. I'm not sure if it matters to you, but for the > > most part, I've elected to use the percentage option of check_disk. 5% > free > > on the root partition of an 18GB disk isn't going to be a whole lot > > different from 5% free on root of a 36GB disk. Sure, mathematically > they're > > different, so if exacting differences is critical in your environment, > > create unique definitions for the different root partitions. (I'm also > > specifying mount points, not device filenames.) On a related note, we > have > > partitions on our database servers which follow a fairly straightforward > > naming scheme for the mount points, and since I don't expect those > > partitions to change, I can either exclude them, or I can set a trivial > > threshold for each of the warning and critical, but in those cases I > specify > > kbytes. (I do the latter; this lets anyone with the appropriate > permissions > > at the web interface view all the defined partitions.) > > > > [Sidebar: I noticed at one point that there's a limit to the length of > the > > command token in nrpe.cfg. As a result, I simplified all the names. > Lesson > > learned: Be economical with the keystrokes.] > > > > If you like, I can send you the nrpe.cfg file that I install on all our > > hosts. > > > > You might find that instead of one master nrpe.cfg file, that you'd rather > > manage a handful of dissimilar files. Might still want to use the > > gold/config server, as above. > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 2:43 PM > > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > > cpu-wise, but > > > has problems configuration-wise. (Imagine 500 machines all > > > of which have 5 > > > disks, and different check_disk arguments for each. That's 2500 > > > configuration lines that need to be maintained over 500 > > > machines in 500 > > > files.) > > > > > > Perhaps there is room for something more secure than the > > > current nrpe, but > > > more scalable than check_by_ssh. Does that seem reasonable? > > > If so, does > > > anyone have suggestions for low cost security implementations > > > that could > > > enhance the security of nrpe without the cost of ssh? > > > > > > dave > > > > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > > To: 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > The general consensus is that check_by_ssh isn't a solution > > > which will scale > > > well, due to the nature of the number-crunching crypto beast. > > > This is where > > > NRPE has the advantage. > > > > > > check_by_ssh has the advantage when it comes to punching > > > through a firewall, > > > assuming that an appropriate port is open. Sure, you could > > > open port 5666 > > > for NRPE, but has has been discussed, that doesn't quite > > > leave the same warm > > > fuzzies. > > > > > > HTH. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Monday, December 30, 2002 12:14 PM > > > > To: 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Let me ask a second question that might help me understand > > > > more clearly the > > > > situation. Check_by_ssh allows for the passing of arbitrary > > > > arguments to > > > > arbitrary command from the centralized Nagios server to any > > > > remote machine > > > > which has sshd running. NRPE allows for executing a specific > > > > command with > > > > specific arguments on any remote machine which has nrpe running. > > > > > > > > As someone setting up monitoring, when should I use > > > > check_by_ssh and when > > > > should I use nrpe? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 30, 2002 9:07 AM > > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > > executed. I think the code that I wrote will only allow one > > > > of the commands > > > > already listed in the nrpe.cfg file to be executed. The > > > > arguments passed > > > > are arbitrary, but not the command. (The code even checks to > > > > ensure that the > > > > command requested, without any arguments, exists before > > > > executing it to > > > > prevent malicious usage of arguments.) > > > > > > > > dave > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > > Sent: Saturday, December 28, 2002 5:02 PM > > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > > executed and which by "default" is switched off is an > > > accident waiting > > > > to happen. > > > > > > > > It only takes 1 security breach via a plugin to completely > > > destroy the > > > > good name Nagios and its associated plugins have. > > > > > > > > There is a good truism that states "good news travels fast, > > > > but bad news > > > > travels even faster" > > > > > > > > I for one would not be too happy having a command available on my > > > > network, trusted or not that would allow commands to be executed > > > > remotely pon a box. For one. It's the kind of thing im > > > always looking > > > > for when im "playing on my " networks. > > > > > > > > Well that's my two cents worth > > > > > > > > Cheers > > > > > > > > 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 Dave > > > > Viner > > > > Sent: 28 December 2002 21:46 > > > > To: Ethan Galstad; nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > These are excellent arguments for not incorporating the > > > > enhancement I am > > > > suggesting. However, I suspect that there are lots of > > > > installations of > > > > Nagios and NRPE that run on completely trusted network. (Or > > > > the risk of > > > > network intrusion through NRPE is worth the benefit of reduced > > > > configuration > > > > management.) > > > > > > > > What do you think about incorporating this enhancement but have it > > > > turned > > > > off by default, and enabled only at configure time? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > > Galstad > > > > Sent: Friday, December 27, 2002 7:38 PM > > > > To: nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > There are several reasons why I have not added support for arguments > > > > to checks in NRPE. Most have been touched on in the past on the > > > > list, but I'll reiterate them here. The main issue is not > > > overruning > > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > > and forth - that can be easily avoided... > > > > > > > > 1. > > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > > restrict connection based on IP address using TCP wrappers, but they > > > > are still not authenticated. Also, I am not too familiar with IP > > > > spoofing, but I'm sure its possible for someone to fake the > > > > originating address of the connection and get the NRPE daemon to > > > > accept the packet and execute the necessary plugin without too much > > > > trouble. > > > > > > > > 2. > > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > > Regardless of what user the NRPE daemon is running as, these plugins > > > > will be executed with higher privs. > > > > > > > > 3. > > > > Plugins can be made to segfault under the right conditions. > > > Sure, we > > > > can try and eliminate this possibility, but it will probably always > > > > exist to some extent since many plugins call system commands to get > > > > their data. > > > > > > > > --- > > > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > > work done, so allowing unauthenticated users to pass arbitrary > > > > arguments/data to plugins that might be running suid commands is a > > > > very bad idea indeed. > > > > > > > > Stunnel would provide some security, but there is no guarantee that > > > > everyone would use it. There would undoubtably be many people that > > > > would put off implementing it until they finished "testing" > > > NRPE. In > > > > the worst case, they might never get around to implementing stunnel > > > > at all. In the likely best case scenario, there is at > > > least a window > > > > of opportunity. I just don't want to be responsible for > > > the possible > > > > carnage that happens at that point. :-) > > > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > > that. > > > > > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > > > I'm not a C programmer by profession, so I defer your > > > query to those > > > > who > > > > > have a strong background, both in C code and system/network > > > > security. > > > > It > > > > > does presume that every other link in the chain is bulletproof. > > > > [Insert > > > > > ObRef to Bugtraq here.] > > > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > > that approach > > > > to > > > > > begin with. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > > security implications of this code. I'm not a security > > > > > > expert, so please excuse the somewhat basic question. The > > > > > > struct packet as defined in common/common.h has an argv > > > > > > member which is a character array of length 2048. I believe > > > > > > this means that if the incoming packet has an argv member > > > > > > whose length is greater than 2048 chars, then the > > > > > > rc=recvall(sock,(char > > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > > should fail, should it not? > > > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > > encryption are good ones, regardless of the inclusion of > > > > this code. > > > > > > > > > > > > thanks > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Carroll, Jim P [Contractor] > > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > > should explicitly > > > > > > state the security risks in forcing the non-default > > > > (added feature) > > > > > > behaviour. > > > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > > daemon starts, it > > > > > > should briefly mention that it has been compiled for this > > > > > > behaviour, and a > > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > > standalone, else > > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > > loud and clear > > > > > > if it's started under root; preferably it would simply not > > > > > > run as root, full > > > > > > stop. > > > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > > only permitting > > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > > desireable. > > > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > > this feature > > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > > on a trusted > > > > > > network, it's a non-issue. > > > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > > if there were a > > > > > > facility to enforce some level of native encryption, such as > > > > > > what NSCA uses. > > > > > > If you don't have the keys to the house, you get dropped on > > > > > > the floor. (I > > > > > > have a similar wish for NSClient.) > > > > > > > > > > > > Food for thought. > > > > > > > > > > > > jc > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > > sourceforge. > > > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > > nrpe.cfg file lines like this: > > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > > argument string. For example: > > > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > > number of times you'd need to modify that configuration file. > > > > > > > Instead the modifications would occur on the centralized > > > > > > > Nagios server's configuration file. > > > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > > source for NRPE-1.6? > > > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Dave Viner > > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > > To: Naios Users > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > > Security is a great reason for limiting the commands > > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > > remaining information as arguments passed to the executable. > > > > > > > It is true that this is less secure that forcing the entire > > > > > > > command line (executable and arguments) in the config file. > > > > > > > But, so long as the executables are well authored and handle > > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > > significantly decrease security. Do you think that > > > > > > > specifying arguments would make NRPE significantly > > > less secure? > > > > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Rue Turner > > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > > To: Naios Users > > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > > security. If the > > > > > > > nrpe was allowed to run whatever it was asked it would > > > > be easy to > > > > > > > compromise your machines. This way although your configs are > > > > > > > hefty (mine > > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > > commands from > > > > > > > this library. > > > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > > Hi, > > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > > people think this is a > > > > > > > > good idea, I'll try to make a patch to support my > > > > > > > suggestion. Currently the > > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > > 95 /dev/hda1 > > > > > > > > As result of this design is that if you want to check > > > > > > something like > > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > > nrpe.cfg file. > > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > > for the arguments to a > > > > > > > > command to be specified by the central Nagios server > > > > > > > instead of in the > > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > > command line which > > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > > specified from > > > > > > > > the central Nagios server in some manner. > > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > > and reduce a lot of > > > > > > > > redundant command definitions that differ only in the > > > > > > arguments they > > > > > > > > require. Also, it would mean that you'd need to update > > > > > > > your nrpe.cfg very > > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > > a new plugin. > > > > > > > > I don't have a concrete suggestion for implementing > > > > > > > this yet, because I > > > > > > > > want to see if the community is interested in this idea > > > > > > > first. Has this > > > > > > > > idea been suggested previously? Is anyone currently > > > > > > > interested in the idea > > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > > > thanks > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > > Holiday Gifts! > > > > > > > > Time is running out! Thinkgeek.com has the coolest > > > gifts for > > > > > > > > your favorite geek. Let your fingers do the > > > typing. Visit > > > > Now. > > > > > > > > T H I N K G E E K . C O M > > > http://www.thinkgeek.com/sf/ > > > > > > > > _______________________________________________ > > > > > > > > Nagios-users mailing list > > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > > interest where > > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > > your favorite geek. Let your fingers do the typing. > > > > Visit Now. > > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > 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 > _______________________________________________ > 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 http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Stephen Milton - Vice President (425) 881-8769 x102 ISOMEDIA.COM - Premium Internet Services (425) 869-9437 Fax milton at isomedia.com http://www.isomedia.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From wcarlson at vh.org Tue Jan 7 16:29:18 2003 From: wcarlson at vh.org (Bill Carlson) Date: Tue, 7 Jan 2003 09:29:18 -0600 (CST) Subject: NRPE enhancement In-Reply-To: <3E1A15B0.8106.16A4A9E@localhost> References: <3E1A15B0.8106.16A4A9E@localhost> Message-ID: On Mon, 6 Jan 2003, Ethan Galstad wrote: > Does this approach sound reasonable to people? As long as the extra feature doesn't add any additional dependencies to NRPE, sounds like a good plan. Bill Carlson -- Systems Administrator wcarlson at vh.org | Anything is possible, Virtual Hospital http://www.vh.org/ | given time and money. University of Iowa Hospitals and Clinics | Opinions are mine, not my employer's. | ------------------------------------------------------- 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 Jan 7 16:22:07 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 7 Jan 2003 09:22:07 -0600 Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ECF88@mismail.ena.com> I don't know if it's just a display issue or not but this line caught my eye: Jan 7 08:27:38 XXXX nsca[8827]: Command file '/usr/local/nagios/var/rw/nagios.cmd ' Note the '' after nagios.cmd. Just seems kind of odd to me that that would be there. Other than that, does nsca run out of (x)inetd or as a daemon? For our sake could you do the following and resend to the list? ls -la /usr/local/nagios/var/rw ps -efwww | grep nsca Thanks, Marc > -----Original Message----- > From: Karl Ehr [mailto:kehr02 at yahoo.com] > Sent: Tuesday, January 07, 2003 9:03 AM > To: nagios > Subject: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not > a permission issue? > > I have a hacker challenge -- maybe... > > I've read the phobic posts about Red Hat 8.0, but I > haven't seen anything that looks like my problem, RH > 8.0 or otherwise: > > My problem is that the nsca daemon, when handling a > remote network request from send_nsca, gives the > following error: > > > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > connection... > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> Host > Name: 'laptop', Service Description: 'BOGUS', Return > Code: '2', Output: 'Error Message goes here' > Jan 7 08:27:38 XXXX nsca[8827]: Command file > '/usr/local/nagios/var/rw/nagios.cmd ' does not exist, > attempting to use alternate dump file > '/usr/local/nagios/var/rw/nsca.dump' for output > Jan 7 08:27:38 XXXX nsca[8827]: Could not open > alternate dump file > '/usr/local/nagios/var/rw/nsca.dump' for appending > Jan 7 08:27:38 XXXX nsca[8827]: End of connection... > > I've configured the user/group for both nagios and the > nsca daemons to be 'nagios/nagios'. All of > /usr/local/nagios is user/group nagios.nagios. The > permissions are correct (I'm 99%) sure, because all of > the external command CGI's work perfectly; also, su-ed > to the nagios user, I can echo commands >> to the > /usr/local/nagios/var/rw/nagios.cmd file and they show > up fine both in the log and in the web interface.... > > I have tried compiling the 1.06b and 1.0 versions of > nagios, the 2.1 and latest CVS build of nsca, > mix-matching them in all combinations. I have set > the permissions on the "rw" directory both by hand > (setting the group, the S bit on the group level, > etc...) and with the "install-commandmode" make > option; I've also tried chmoding the file with "chmod > 777" after it gets created when nagios starts and > there is the same error. > > The fact that I can echo commands in locally as the > "nagios" user and get good results seems to probably > show that its neither a permissions issue or anything > with the passive/external command interface. Maybe > this is a bug with nsca itself? > > As an aside, I cannot get the alternate dump file to > work either. Touching the nagios.dump file ahead of > time, and setting wide open permissions makes no > difference. (I'm assuming that the dump file is > supposed to be a regular text file -- not a FIFO named > pipe like the command file, right??) > > I'm stumped... but I'm also surprised that I'm seeing > something that hasn't popped up for someone else > already. Any help will bring you praise, beer, pizza, > cookies or whatever tithe you demand. TIA, > > Karl > > __________________________________________________ > Do you Yahoo!? > New DSL Internet Access from SBC & Yahoo! > http://sbc.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 mpowell at ena.com Tue Jan 7 16:32:25 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 7 Jan 2003 09:32:25 -0600 Subject: Setting inital state of passive services Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ECF89@mismail.ena.com> Nagios does not natively support the behavior you are looking for and as you've surmised, it will keep the services in a pending state until it receives some sort of check result for that service. It seems to me that you have several options to work with though. First, and easiest if you are OK with the services being in a pending state is to specify an initial state of OK during the report generation phase. Secondly, you could specify a service check for those services that simply returns an OK and give it a really long normal_check_interval. You may need to play with the service_interleave_factor to get the checks to execute quickly. A final option and probably more robust would be to specify a service check that looks at the status.sav file to see if the service is currently in a PENDING state and submit an OK result if so. That check could execute at a more normal interval and shouldn't be much of an impact at all. -- Marc > -----Original Message----- > From: Dennis Cannell [mailto:dennis.cannell at itouch.ie] > Sent: Tuesday, January 07, 2003 8:11 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Setting inital state of passive services > > > Hi, > > I have Nagios up and running recieving SNMP traps via passive services > (scheduled on no-time-periods, to work around that "disabled" indicator in > the TAC Overview) > > I would like to set inital states of OK for each of the passive SNMP trap > services. I would prefer them to be in that state rather than "pending". > > The only way to do this seems to be to mannually, via the GUI, supply OK > passive check results for the services. Is there a way to get Nagios to > automatically create these services with OK state on startup > automatically? > I've scoured the service object config... > > I'm using check_dummy returning 0 (OK) as a service check, but seeing as > it > is never actually scheduled, nothing will return. > > I've also tried changing the service to a valid time period and put both > 'active_checks_enabled 0' and 'passive_checks_enabled 1' in but the > service > still stays as "pending". > > The only thing I have thought of so far is changing the service to retain > state information and then submitting check results by hand. Ideally I > would like the OK to be assumed without having to submit results by hand > thou. > > The whole reason for this is because availability and associated reports > show the services as spending 99% of their time in undetermined time. > > Thanks in advance for any leads anyone might have. > > Cheers > > Dennis > > > > > ------------------------------------------------------- > 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 arasgado at la.ko.com Tue Jan 7 16:57:30 2003 From: arasgado at la.ko.com (Armando Rasgado) Date: Tue, 7 Jan 2003 09:57:30 -0600 Subject: Problems with cfg files Message-ID: Hi, I am a beginner in this topic of Nagios. The problem is that when i installed the Nagios software the installation didn?t create the etc folder, but thats not the problem, the real problem is that i can?t see any of the cfg files that I need. I tried copying the cfg files that are in installation folder and that at a first glance they looked fine, like the nagios.cfg and cgi.cfg, but there are others like the hosts.cfg that I really don?t now what information they need inside of it, or others like the resource.cfg, I understand that some of them you have to created them but there are others like the hosts.cfg that the plugin requires you that I don?t now what kind of information I need, I all ready read the manual but I can?t see anything that could help me. Thx for the help. Armando ------------------------------------------------------- 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 Jan 7 17:16:24 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Tue, 7 Jan 2003 10:16:24 -0600 Subject: Distributed Monitoring Message-ID: I haven't seen any responses yet, perhaps more information is required? Here is some of the debugging I have done: Verified services have "obsess over service" enabled: define service{ name check-service ; The 'name' of this service template, referenced in other service definitions is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 15 retry_check_interval 2 notification_interval 120 notification_period 24x7 notification_options w,u,c,r active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major per formance problems) ================================================ obsess_over_service 1 ; We should obsess over this service (if necessary) ================================================ check_freshness 1 ; 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } ? The "submit_check_result" command is defined as follows: define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } ??? The "ocsp_command" is configured in nagios.cfg as follows with obsess over services enabled: obsess_over_services=1 ocsp_command=submit_check_result I have removed the original commands from the documentation, and implemented the two scripts that came with the nagios tar ball in the contrib./distributed monitoring directory. I am able to send a service check manually, as Nagios, to the central server. [nagios at ilnetmon03 nagios]$ /usr/local/nagios/libexec/eventhandlers/submit_check_result 3390-RTR PING-RI 1 test 1 data packet(s) sent to host successfully. However the ocsp command never seems to be executed after any service checks. Here is the output with nagios compiled with debug set to 3: *** Event Details *** Event type: 0 (service check) Service Description: PING Associated Host: 3390-KRO Event time: Tue Jan 7 08:41:36 2003 Checking service 'PING' on host '3390-KRO'... *** Event Check Loop *** Current time: Tue Jan 7 08:41:36 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:37 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:38 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:39 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Details *** Event type: 10 (status save) Event time: Tue Jan 7 08:41:39 2003 *** Event Check Loop *** Current time: Tue Jan 7 08:41:39 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:40 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:41 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:42 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:43 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:44 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Details *** Event type: 7 (service check reaper) Event time: Tue Jan 7 08:41:44 2003 Starting to reap service check results... Found check result for service 'PING' on host '3390-KRO' Check Type: ACTIVE Parallelized?: Yes Exited OK?: Yes Return Status: 0 Plugin Output: 'FPING OK - 10.1.1.1 (loss=0.000000%, rta=27.800000 ms)' Finished reaping service check results. Any ideas on why it's not working? TIA, Richard -----Original Message----- From: Burnson, Richard Sent: Friday, January 03, 2003 3:53 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed Monitoring I am trying to setup distributed monitoring with Nagios 1.0 (Stable) on RedHat 7.2.? I have the nsca daemon running on the central server, and I have been able to successfully send a service check result via nsca-send from the distributed server.? The issue appears to be that the distributed server is not executing the ocsp_command.? Here are the settings on the distributed server: 1.????? Obsess over services is enabled both globally and per service. 2.????? The ocsp_command is defined in nagios.cfg as ocsp_command=submit_check_result 3.????? "submit_check_result" is defined in the command definitions section exactly from the documentation. 4.????? The submit_check_result script was created in the libexec directory and the command definition points directly to this file. I can log in as nagios and run the submit_check_result shell script successfully, and the service check is received by the central server.?? It simply seems to be that Nagios is not executing the ocsp command with every service check.? I've tried to watch the service check as they happen via the nagios.log file and even compiled nagios with debug 3.? Is there a better way to debug this?? Anyone have any ideas on what I may be missing? Thanks, Richard ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From JBilder at netrixllc.com Tue Jan 7 17:44:32 2003 From: JBilder at netrixllc.com (Jeff Bilder) Date: Tue, 07 Jan 2003 10:44:32 -0600 Subject: NRPE Problems on FreeBSD/OpenBSD Message-ID: I still seem to be getting the same error.... [root at nagios libexec]# ./check_disk -w 80% -c 70% / Disk "/" not mounted or nonexistant - Jeff >>> "Mike McClure" 01/07/03 12:17AM >>> Hi Jeff, Check the mountpoint, not the physical partition or slice: # ./check_disk -w 80% -c 70% / DISK OK - [1760969 kB (91%) free on /dev/wd0a] # ./check_disk -w 80% -c 70% /dev/wd0a Disk "/dev/wd0a" not mounted or nonexistant - Mike -- Mike McClure, CCIE # 5125, CISSP # 30232 PNE Services, Inc. - http://www.pneservices.com mmcclure at pneservices.com mobile: 913-636-5590 > Hello, > > I am having a problem running certain commands using nrpe. I have nagios running on > FreeBSD 4.7 and its checking commands on an OpenBSD machine. I seem to be > experiencing the problems below: > > [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_total_procs > Unable to read output > > [root at nagios libexec]# ./check_nrpe -H -p 5666 -c check_zombie_procs > Unable to read output > > the following are being run on both the OpenBSD and FreeBSD machines: > > FREEBSD 4.7 > ------- > Device Mountpoint FStype Options Dump Pass# > /dev/ad0s1b none swap sw 0 0 > /dev/ad0s1a / ufs rw 1 1 > /dev/ad0s1f /tmp ufs rw 2 2 > /dev/ad0s1g /usr ufs rw 2 2 > /dev/ad0s1e /var ufs rw 2 2 > > [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1a > Disk "/dev/ad0s1a" not mounted or nonexistant > > [root at nagios libexec]# ./check_disk 80 90 /dev/ad0s1f > Disk "/dev/ad0s1f" not mounted or nonexistant > --------- > > OPENBSD 3.0 > --------- > > /dev/wd0a / ffs rw 1 1 > > [root at home libexec]# ./check_disk 80 90 /dev/wd0a > Disk "/dev/wd0a" not mounted or nonexistant > ----------- > > They certainly seem mounted, has anyone run into this before? > > Thanks! > > Jeffry Bilder > Network Engineer > Netrix LLC > jbilder at netrixllc.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 > > ------------------------------------------------------- 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 Jan 7 18:10:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 11:10:46 -0600 Subject: Whole Configuration in a Database? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1241@PKDWB03C.ad.sprint.com> This was something that someone else had recently mentioned, after I'd converted over to MySQL support and posted a related question to the list. I can forward you that e-mail if you like. jc > -----Original Message----- > From: Jens Kruse [mailto:jens.kruse at mobilcom.de] > Sent: Tuesday, January 07, 2003 3:16 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Whole Configuration in a Database? > > > Hi, > > is that just rumours or any facts which will determine this? > > Regards, Jens > > > Carroll, Jim P [Contractor] wrote: > > I believe it's been discussed. But now for the Bad News. > > > > I recently found out from someone else on the list that the > current MySQL/PgSQL support is slated to disappear in a > future release. > > > > jc > > > > > >>-----Original Message----- > >>From: Jan-Hendrik Palic [mailto:jhp at addix.net] > >>Sent: Monday, January 06, 2003 6:11 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Whole Configuration in a Database? > >> > >> > >>Hi .. > >> > >>has anyone experiences with putting the whole configuration > of nagios > >>into a database (MySQL/PgSQL)? Just in time you can save > comments and > >>Servicestates init. > >> > >>Any plans to put a db-support like this into nagios in the future? > >> > >> Regards > >> Jan > > > > ------------------------------------------------------- > 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 Jan 7 18:21:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 11:21:18 -0600 Subject: Whole Configuration in a Database? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24D3@PKDWB03C.ad.sprint.com> Sweet! I was just looking at the 2.0 TODO items, and was tickled to see that there will be FIFO support via Real-Time Data Output. Naturally the "Check Results" was what perked my interest. :) jc > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Tuesday, January 07, 2003 3:49 AM > To: 'Jens Kruse'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Whole Configuration in a Database? > > > Check it out here http://www.nagios.org/upcoming.php > > Cheers > > 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 Jens > Kruse > Sent: 07 January 2003 09:16 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Whole Configuration in a Database? > > Hi, > > is that just rumours or any facts which will determine this? > > Regards, Jens > > > Carroll, Jim P [Contractor] wrote: > > I believe it's been discussed. But now for the Bad News. > > > > I recently found out from someone else on the list that the current > MySQL/PgSQL support is slated to disappear in a future release. > > > > jc > > > > > >>-----Original Message----- > >>From: Jan-Hendrik Palic [mailto:jhp at addix.net] > >>Sent: Monday, January 06, 2003 6:11 AM > >>To: nagios-users at lists.sourceforge.net > >>Subject: [Nagios-users] Whole Configuration in a Database? > >> > >> > >>Hi .. > >> > >>has anyone experiences with putting the whole configuration > of nagios > >>into a database (MySQL/PgSQL)? Just in time you can save > comments and > >>Servicestates init. > >> > >>Any plans to put a db-support like this into nagios in the future? > >> > >> Regards > >> Jan > > > > ------------------------------------------------------- > 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 dviner at yahoo-inc.com Tue Jan 7 18:36:00 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Tue, 7 Jan 2003 09:36:00 -0800 Subject: NRPE enhancement In-Reply-To: <3E1A15B0.8106.16A4A9E@localhost> References: <3E1A15B0.8106.16A4A9E@localhost> Message-ID: this sounds awesome to me ! how can i help? dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan Galstad Sent: Monday, January 06, 2003 9:48 PM To: nagios-users Subject: RE: [Nagios-users] NRPE enhancement I've thought about this for a while now and have decided that I will allow arguments to be passed to plugins in future versions of NRPE. I've gotten a lot of requests for this feature and I understand that it makes configuring things on the central server much easier. However, because of the security implications this will have, I will also be doing the following: 1. Incorporate encryption similar to NSCA that gives the NRPE daemon some assurance of a trust level with the client 2. Strip all potentially dangerous shell metacharacters from the arguments before they're passed to the plugin for exection Incorporating crypto into NRPE will affect performance a bit, but it will still probably scale better than check_by_ssh. If the user decides to disable native crypto support (and tunnel traffic through stunnel, etc. instead), the NRPE daemon will refuse to accept arguments for plugins unless the user specifically supplies a --dont- blame-nrpe option to the configure script before compiling. If the daemon gets compiled with this option, it will loudly complain in the logs and elsewhere that is running in an insecure mode. Does this approach sound reasonable to people? On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > If you have 500 machines, and among those machines there are no two disks > alike, then I can only imagine the grief ahead of you. To take a page out > of www.infrastructures.org, it's desireable to maintain a convergence, not > divergence, among the various systems. Homogeneity is A Good Thing ?. > > Having said that, rather than maintaining 500 config files, why not maintain > a single config file containing all the similar and dissimilar config > particulars? Edit that one file, and either push it out from a trusted host > ("gold server", in Infrastructures.org parlance). Better still, set up an > rsync server (or some other server that you can live with, and set up a cron > job to pull down the latest nrpe.cfg file. (As has been emphasized on their > list, pull, never push. But take your pick. :) > > In our location, I maintain a single nrpe.cfg file, complete with all the > unique disk definitions. I'm not sure if it matters to you, but for the > most part, I've elected to use the percentage option of check_disk. 5% free > on the root partition of an 18GB disk isn't going to be a whole lot > different from 5% free on root of a 36GB disk. Sure, mathematically they're > different, so if exacting differences is critical in your environment, > create unique definitions for the different root partitions. (I'm also > specifying mount points, not device filenames.) On a related note, we have > partitions on our database servers which follow a fairly straightforward > naming scheme for the mount points, and since I don't expect those > partitions to change, I can either exclude them, or I can set a trivial > threshold for each of the warning and critical, but in those cases I specify > kbytes. (I do the latter; this lets anyone with the appropriate permissions > at the web interface view all the defined partitions.) > > [Sidebar: I noticed at one point that there's a limit to the length of the > command token in nrpe.cfg. As a result, I simplified all the names. Lesson > learned: Be economical with the keystrokes.] > > If you like, I can send you the nrpe.cfg file that I install on all our > hosts. > > You might find that instead of one master nrpe.cfg file, that you'd rather > manage a handful of dissimilar files. Might still want to use the > gold/config server, as above. > > Food for thought. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Monday, December 30, 2002 2:43 PM > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > cpu-wise, but > > has problems configuration-wise. (Imagine 500 machines all > > of which have 5 > > disks, and different check_disk arguments for each. That's 2500 > > configuration lines that need to be maintained over 500 > > machines in 500 > > files.) > > > > Perhaps there is room for something more secure than the > > current nrpe, but > > more scalable than check_by_ssh. Does that seem reasonable? > > If so, does > > anyone have suggestions for low cost security implementations > > that could > > enhance the security of nrpe without the cost of ssh? > > > > dave > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > To: 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > The general consensus is that check_by_ssh isn't a solution > > which will scale > > well, due to the nature of the number-crunching crypto beast. > > This is where > > NRPE has the advantage. > > > > check_by_ssh has the advantage when it comes to punching > > through a firewall, > > assuming that an appropriate port is open. Sure, you could > > open port 5666 > > for NRPE, but has has been discussed, that doesn't quite > > leave the same warm > > fuzzies. > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 12:14 PM > > > To: 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Let me ask a second question that might help me understand > > > more clearly the > > > situation. Check_by_ssh allows for the passing of arbitrary > > > arguments to > > > arbitrary command from the centralized Nagios server to any > > > remote machine > > > which has sshd running. NRPE allows for executing a specific > > > command with > > > specific arguments on any remote machine which has nrpe running. > > > > > > As someone setting up monitoring, when should I use > > > check_by_ssh and when > > > should I use nrpe? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 30, 2002 9:07 AM > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > executed. I think the code that I wrote will only allow one > > > of the commands > > > already listed in the nrpe.cfg file to be executed. The > > > arguments passed > > > are arbitrary, but not the command. (The code even checks to > > > ensure that the > > > command requested, without any arguments, exists before > > > executing it to > > > prevent malicious usage of arguments.) > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > Sent: Saturday, December 28, 2002 5:02 PM > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > executed and which by "default" is switched off is an > > accident waiting > > > to happen. > > > > > > It only takes 1 security breach via a plugin to completely > > destroy the > > > good name Nagios and its associated plugins have. > > > > > > There is a good truism that states "good news travels fast, > > > but bad news > > > travels even faster" > > > > > > I for one would not be too happy having a command available on my > > > network, trusted or not that would allow commands to be executed > > > remotely pon a box. For one. It's the kind of thing im > > always looking > > > for when im "playing on my " networks. > > > > > > Well that's my two cents worth > > > > > > Cheers > > > > > > 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 Dave > > > Viner > > > Sent: 28 December 2002 21:46 > > > To: Ethan Galstad; nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > These are excellent arguments for not incorporating the > > > enhancement I am > > > suggesting. However, I suspect that there are lots of > > > installations of > > > Nagios and NRPE that run on completely trusted network. (Or > > > the risk of > > > network intrusion through NRPE is worth the benefit of reduced > > > configuration > > > management.) > > > > > > What do you think about incorporating this enhancement but have it > > > turned > > > off by default, and enabled only at configure time? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > Galstad > > > Sent: Friday, December 27, 2002 7:38 PM > > > To: nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > There are several reasons why I have not added support for arguments > > > to checks in NRPE. Most have been touched on in the past on the > > > list, but I'll reiterate them here. The main issue is not > > overruning > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > and forth - that can be easily avoided... > > > > > > 1. > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > restrict connection based on IP address using TCP wrappers, but they > > > are still not authenticated. Also, I am not too familiar with IP > > > spoofing, but I'm sure its possible for someone to fake the > > > originating address of the connection and get the NRPE daemon to > > > accept the packet and execute the necessary plugin without too much > > > trouble. > > > > > > 2. > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > Regardless of what user the NRPE daemon is running as, these plugins > > > will be executed with higher privs. > > > > > > 3. > > > Plugins can be made to segfault under the right conditions. > > Sure, we > > > can try and eliminate this possibility, but it will probably always > > > exist to some extent since many plugins call system commands to get > > > their data. > > > > > > --- > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > work done, so allowing unauthenticated users to pass arbitrary > > > arguments/data to plugins that might be running suid commands is a > > > very bad idea indeed. > > > > > > Stunnel would provide some security, but there is no guarantee that > > > everyone would use it. There would undoubtably be many people that > > > would put off implementing it until they finished "testing" > > NRPE. In > > > the worst case, they might never get around to implementing stunnel > > > at all. In the likely best case scenario, there is at > > least a window > > > of opportunity. I just don't want to be responsible for > > the possible > > > carnage that happens at that point. :-) > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > that. > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > I'm not a C programmer by profession, so I defer your > > query to those > > > who > > > > have a strong background, both in C code and system/network > > > security. > > > It > > > > does presume that every other link in the chain is bulletproof. > > > [Insert > > > > ObRef to Bugtraq here.] > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > that approach > > > to > > > > begin with. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > security implications of this code. I'm not a security > > > > > expert, so please excuse the somewhat basic question. The > > > > > struct packet as defined in common/common.h has an argv > > > > > member which is a character array of length 2048. I believe > > > > > this means that if the incoming packet has an argv member > > > > > whose length is greater than 2048 chars, then the > > > > > rc=recvall(sock,(char > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > should fail, should it not? > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > encryption are good ones, regardless of the inclusion of > > > this code. > > > > > > > > > > thanks > > > > > > > > > > dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Carroll, Jim P [Contractor] > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > should explicitly > > > > > state the security risks in forcing the non-default > > > (added feature) > > > > > behaviour. > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > daemon starts, it > > > > > should briefly mention that it has been compiled for this > > > > > behaviour, and a > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > standalone, else > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > loud and clear > > > > > if it's started under root; preferably it would simply not > > > > > run as root, full > > > > > stop. > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > only permitting > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > desireable. > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > this feature > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > on a trusted > > > > > network, it's a non-issue. > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > if there were a > > > > > facility to enforce some level of native encryption, such as > > > > > what NSCA uses. > > > > > If you don't have the keys to the house, you get dropped on > > > > > the floor. (I > > > > > have a similar wish for NSClient.) > > > > > > > > > > Food for thought. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > sourceforge. > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > nrpe.cfg file lines like this: > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > argument string. For example: > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > number of times you'd need to modify that configuration file. > > > > > > Instead the modifications would occur on the centralized > > > > > > Nagios server's configuration file. > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > source for NRPE-1.6? > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Dave Viner > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > To: Naios Users > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > Security is a great reason for limiting the commands > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > remaining information as arguments passed to the executable. > > > > > > It is true that this is less secure that forcing the entire > > > > > > command line (executable and arguments) in the config file. > > > > > > But, so long as the executables are well authored and handle > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > significantly decrease security. Do you think that > > > > > > specifying arguments would make NRPE significantly > > less secure? > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Rue Turner > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > To: Naios Users > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > security. If the > > > > > > nrpe was allowed to run whatever it was asked it would > > > be easy to > > > > > > compromise your machines. This way although your configs are > > > > > > hefty (mine > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > commands from > > > > > > this library. > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > Hi, > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > people think this is a > > > > > > > good idea, I'll try to make a patch to support my > > > > > > suggestion. Currently the > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > 95 /dev/hda1 > > > > > > > As result of this design is that if you want to check > > > > > something like > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > nrpe.cfg file. > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > for the arguments to a > > > > > > > command to be specified by the central Nagios server > > > > > > instead of in the > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > command line which > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > specified from > > > > > > > the central Nagios server in some manner. > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > and reduce a lot of > > > > > > > redundant command definitions that differ only in the > > > > > arguments they > > > > > > > require. Also, it would mean that you'd need to update > > > > > > your nrpe.cfg very > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > a new plugin. > > > > > > > I don't have a concrete suggestion for implementing > > > > > > this yet, because I > > > > > > > want to see if the community is interested in this idea > > > > > > first. Has this > > > > > > > idea been suggested previously? Is anyone currently > > > > > > interested in the idea > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > thanks > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest > > gifts for > > > > > > > your favorite geek. Let your fingers do the > > typing. Visit > > > Now. > > > > > > > T H I N K G E E K . C O M > > http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > Nagios-users mailing list > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > interest where > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.NET email is sponsored by: The Best Geek > > Holiday Gifts! > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > your favorite geek. Let your fingers do the typing. > > > Visit Now. > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > _______________________________________________ > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > ------------------------------------------------------- > 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 > 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 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 bnelson at rightnow.com Tue Jan 7 18:55:21 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Tue, 7 Jan 2003 10:55:21 -0700 Subject: check_ntp and time-offset 0.000000 sec Message-ID: I've done the same thing in our environment. An offset of '0' didn't happen very often, but it WAS frequent enough to get annoyed with notifications about it. --Ben -----Original Message----- From: ZIEGENBEIN, Kurt [mailto:kurt.ziegenbein at saarstahl.com] Sent: Tuesday, January 07, 2003 5:49 AM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] check_ntp and time-offset 0.000000 sec Hi all! We had to comment out the following pice of code in the check_ntp plugin: # An offset of 0.000000 with an error is probably bogus. Actually, # it's probably always bogus, but let's be paranoid here. if ($offset == 0) { undef $offset;} We are using check_ntp to watch for the time difference on our server which are all NTP-Clients. Some times Nagios reported an error, because of a zero-offset. At the moment I can't overview why this check should be done. What do you think? ciao Kurt ------------------------------------------------------- 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 pascal at infinity.hn.org Tue Jan 7 18:55:42 2003 From: pascal at infinity.hn.org (Pascal Jermini) Date: Tue, 7 Jan 2003 18:55:42 +0100 Subject: groups of hostgroups? Message-ID: <20030107185542.370a126e.pascal@infinity.hn.org> Hello, I was wondering if it was possible to do something like a group of hostgroups: we currently have a certain number of computers attached to an array of servers, then we also have another batch of computers also attached to another array of servers. Repeat this a few times and you have our current setup. We started with the first group of machines/servers, and we assiged different hostgroups for the machines and for the servers. Now if we move on and integrate the rest of our computing resources into Nagios we face a big problem: when looking at the Services pages we have all the servers and workstations all in one page. It would be nice to create a group for each workstations/servers/"other services" pairs and have like a"tab" in the services page, each tab corresponding to a certain pair. This also is interesting from the point of view of the system managers: for each pair there's a sysadmin attached to it, and it's not useful to him to know that there's a problem on a segment he doesn't administer. Using multiple istances of Nagios is a no-go, since our current goal is to centralize as much as possible all the monitoring... I hope that my explanation/request are clear enough.. regards, Pascal -- --------------------------------------------------------------------- Pascal Jermini Anything is good if it's made of chocolate. --------------------------------------------------------------------- ------------------------------------------------------- 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 Jan 7 19:41:26 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 12:41:26 -0600 Subject: Setting up service dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1247@PKDWB03C.ad.sprint.com> I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 7 19:50:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 12:50:24 -0600 Subject: convert java code to nagios plugin? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24D5@PKDWB03C.ad.sprint.com> One reference: http://nagios.webdev.sprintspectrum.com/nagios/docs/plugins.html#howto Hmm. I know I've come across docs on how to write them before. Off the top of my head: - return a single line to stdout (<1024 bytes) - use return codes of 0 (OK), 1 (warning) and 2 (critical) - reference other plugins (eg, check_tcp --help) for examples Returning a useful string will make looking at your Nagios web site nicer. If you're writing a plugin to check a temperature sensor and all it returns is GOOD or BAD, that doesn't really tell you the current temperature. Food for thought. jc > -----Original Message----- > From: Peter Krzystofiak [mailto:pkrzystofiak at endeavors.com] > Sent: Monday, January 06, 2003 7:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] convert java code to nagios plugin? > > > I have code that when it is executed, it prints one line > > example: > > java -cp x.jar RunX ====> System.out.println will print a > > "GOOD" or "BAD" depending on status of the thing that is > being monitored. > > > how to i go about turning this into a nagios plugin? > i've dug deep through tons of documentation and have > no idea how to convert this code into a plugin. (I know that > there exists a mailing list for plugins) > > Input is welcomed > > Thank You, > > Peter > pkrzystofiak at endeavors.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 > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jboulter at yahoo-inc.com Tue Jan 7 20:05:13 2003 From: jboulter at yahoo-inc.com (Jeff Boulter) Date: Tue, 7 Jan 2003 11:05:13 -0800 Subject: Setting up service dependencies In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1247@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1247@PKDWB03C.ad.sprint.com> Message-ID: <003b01c2b67f$b5560310$24ea7ecf@JBOULTER> That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 7 20:20:47 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 13:20:47 -0600 Subject: groups of hostgroups? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E124A@PKDWB03C.ad.sprint.com> To answer your initial question, no, I don't believe the hostgroups-of-hostgroups feature exists. To answer the actual problem you're trying to address, I'm attaching an e-mail which answers this. HTH. jc > -----Original Message----- > From: Pascal Jermini [mailto:pascal at infinity.hn.org] > Sent: Tuesday, January 07, 2003 11:56 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] groups of hostgroups? > > > Hello, > > I was wondering if it was possible to do something like a group of > hostgroups: we currently have a certain number of computers > attached to an > array of servers, then we also have another batch of computers also > attached to another array of servers. Repeat this a few times > and you have > our current setup. > > We started with the first group of machines/servers, and we assiged > different hostgroups for the machines and for the servers. > Now if we move > on and integrate the rest of our computing resources into > Nagios we face a > big problem: when looking at the Services pages we have all > the servers > and workstations all in one page. It would be nice to create > a group for > each workstations/servers/"other services" pairs > and have like a"tab" in the services page, each tab corresponding to a > certain pair. > > This also is interesting from the point of view of the system > managers: > for each pair there's a sysadmin attached to it, and it's not > useful to > him to know that there's a problem on a segment he doesn't administer. > > Using multiple istances of Nagios is a no-go, since our > current goal is to > centralize as much as possible all the monitoring... > > I hope that my explanation/request are clear enough.. > > regards, > > Pascal > > -- > --------------------------------------------------------------------- > Pascal Jermini > > Anything is good if it's made of chocolate. > --------------------------------------------------------------------- > > > ------------------------------------------------------- > 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 embedded message was scrubbed... From: "JPP" Subject: Re: [Nagios-users] Restrict users to view certain hostgroups in cgi's Date: Mon, 2 Dec 2002 18:36:32 -0600 Size: 5238 URL: From donavan at 4wx.net Tue Jan 7 20:39:46 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 13:39:46 -0600 Subject: nagios and astaro? Message-ID: <20030107193946.M59855@4wx.net> Is anyone running astaro as their firewall? I've been working with nagios on an astaro firewall for the past month or so. I've got it up and running using nrpe (without snmp), in addition, I've written a couple of plugins specific to astaro. If anyone is interested, let me know, I'll put together a small webpage. Astaro is a wonderful firewall (www.astaro.com and www.astaro.org), no affiliation, just a satified user (for 2 years or so now). Thanks, .dn -- Donavan Nelson 4wx Networks www.4wx.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From vseerror at Lehigh.EDU Tue Jan 7 21:10:54 2003 From: vseerror at Lehigh.EDU (Wayne Mery) Date: Tue, 07 Jan 2003 15:10:54 -0500 Subject: *service* check status in statumap.cgi ? In-Reply-To: <011801c275fb$1c84edf0$f5c8dfc2@niltxp> References: <00e101c275f8$bf7b6730$f5c8dfc2@niltxp> <1034871466.1649.4.camel@aten> <011801c275fb$1c84edf0$f5c8dfc2@niltxp> Message-ID: <3E1B344E.4060000@lehigh.edu> Steve Loughran wrote: > mmm.... ok, but I was looking for something that would be more obvious just > by looking at the map, like changing the background color of the hosts (like > when they are down or unreachable), so you can just leave the statusmap > refreshing on a monitor in the corner of the IT/MIS room. > > Steve I'd very much like to see this on our system, i.e. background color reflect the 'worst' state on the display. Is this enhancement 'on the books'? Or better yet, available? If not available, will it likely have to wait for the php version of the cgis?? (php not due til version 3.0 - ouch) >>if you hold your mouse over the host there will pop an icky javascript >>dialog box up, saying stuff like 5 OK, 1 crit etc.. >> Anders >> >>On Thu, 2002-10-17 at 18:17, Steve Loughran wrote: >> >>>Hi all >>> >>>Unless I am being partcularly dumb today, is it true that the state of >>>hosts displayed in statusmap.cgi is only taken from the *host* checks >>>(host-alive) for the hosts? If so (and I think it is), is there anyway > > of > >>>getting statusmap.cgi to display warnings and critical *service* checks >>> on the map? >>> ... >>>------------------------------------------------- >>>Steve Loughran, Network Infrastructure Manager >>>Sony Computer Entertainment Europe (Cambridge) >>>Yamaha YZF1000R Thunderace >>>ICQ#: 104426046 -- Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA 610-758-3983 ** http://www.lehigh.edu/~wsm0 ** Save a Life - Sign an Organ Donor card ** http://www.transweb.org for more information ------------------------------------------------------- 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 Jan 7 21:34:25 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 7 Jan 2003 20:34:25 -0000 Subject: Problems with cfg files In-Reply-To: References: Message-ID: <000c01c2b68c$2b2de560$0400a8c0@squarebox.com> Hi, Take alook at my nagios demo and then take a look at the nagios configuration site where I have all the configuration files I used to create the site. This should help you get up and running pretty quickly. I have 2 more pages to add on apache , which I am currently looking at now and then I should have this all the pages updated by midnight GMT Nagios demo site http://nagios.square-box.com Nagios configuration files site http://demo.square-box.com Hope this helps anyone Cheers 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 Armando Rasgado Sent: 07 January 2003 15:58 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problems with cfg files Hi, I am a beginner in this topic of Nagios. The problem is that when i installed the Nagios software the installation didn?t create the etc folder, but thats not the problem, the real problem is that i can?t see any of the cfg files that I need. I tried copying the cfg files that are in installation folder and that at a first glance they looked fine, like the nagios.cfg and cgi.cfg, but there are others like the hosts.cfg that I really don?t now what information they need inside of it, or others like the resource.cfg, I understand that some of them you have to created them but there are others like the hosts.cfg that the plugin requires you that I don?t now what kind of information I need, I all ready read the manual but I can?t see anything that could help me. Thx for the help. Armando ------------------------------------------------------- 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 sghosh at sghosh.org Tue Jan 7 21:48:23 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 7 Jan 2003 15:48:23 -0500 (EST) Subject: Problems with cfg files In-Reply-To: References: Message-ID: "make install-config" to create the etc dir and install the sample config files there. Configuration - what each file is for.. http://nagios.sourceforge.net/docs/1_0/config.html -sg On Tue, 7 Jan 2003, Armando Rasgado wrote: > Hi, > > I am a beginner in this topic of Nagios. The problem is that when i > installed the Nagios software the installation didn?t create the etc > folder, but thats not the problem, the real problem is that i can?t see any > of the cfg files that I need. > > > I tried copying the cfg files that are in installation folder and that at a > first glance they looked fine, like the nagios.cfg and cgi.cfg, but there > are others like the hosts.cfg that I really don?t now what information they > need inside of it, or others like the resource.cfg, > > I understand that some of them you have to created them but there are > others like the hosts.cfg that the plugin requires you that I don?t now > what kind of information I need, I all ready read the manual but I can?t > see anything that could help me. > > > Thx for the help. > > Armando > > > > > ------------------------------------------------------- > 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 benny at bennyvision.com Tue Jan 7 22:17:56 2003 From: benny at bennyvision.com (C. Bensend) Date: Tue, 7 Jan 2003 15:17:56 -0600 Subject: Same old "Nagios may not be running!" thing Message-ID: <20030107151756.B28414@bennyvision.com> Hey folks, I know this question has been asked a hundred times, but I've either tried all of the solutions posted previously, or SourceForge's lovely mailing list archive search has crapped one too many times. I'm getting the old "Nagios may not be running" error with the CGI's, and I'll be damned if I can see why. I have: * Run the nagios_check_command manually from the command line, which works perfectly * Shortened the '-C' value in said command to just 'nagios', which I've had to do on another handful of installations * Verified that permissions/ownerships are fine with the config files, the status log, and the check_nagios command * Changed the nagios_check_command to use 'check_dummy 0', and it STILL thinks nagios isn't running (?!) * Stopped nagios, made sure all processes have died, and restarted it * Stopped nagios, made sure all processes have died, deleted all the log files, and restarted it * Rebooted the machine just to make sure (well, it DID have a 517 day uptime) * Used check_nagios both with flags and without, ie: /home/nagios/libexec/check_nagios /home/nagios/var/status.log 5 \ '/home/nagios/bin/nagios' and /home/nagios/libexec/check_nagios -F /home/nagios/var/status.log \ -e 5 -C '/home/nagios/bin/nagios' No matter what I've tried, I have exactly the same problem. The CGI's all display the "Warning: Monitoring process may not be running!" error, and the process info displays an UNKNOWN state, with "Nagios check command did not return any output." I'm boggled. This is a pretty big annoyance for me, as we use the web interface / command mode pretty heavily. This is on an OpenBSD 2.8 machine. Can someone, _anyone_, point out the error of my (or Nagios') ways? I'm pulling my hair out faster than it's falling out, and trust me, that's pretty fast. ;) Thanks! 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 pivert_home at yahoo.fr Tue Jan 7 22:11:26 2003 From: pivert_home at yahoo.fr (Pivert) Date: 07 Jan 2003 22:11:26 +0100 Subject: disk_check_smb ==> No Output !? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E121E@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E121E@PKDWB03C.ad.sprint.com> Message-ID: <1041973888.2853.7.camel@pivert.pivertdomain.be> I think so... # 'check_disk_smb' command definition define command{ command_name check_disk_smb command_line $USER1$/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -u username -p password } But I think here is the answer : monitoringServer:~ # /usr/local/nagios/plugins/check_disk_smb -H MYSERVER -s aShareOnTheServer -u username -p password Can't locate utils.pm in @INC (@INC contains: nagios/plugins /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0 /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0 /usr/lib/perl5/site_perl .) at /usr/local/nagios/plugins/check_disk_smb line 29. BEGIN failed--compilation aborted at /usr/local/nagios/plugins/check_disk_smb line 29. monitoringServer:~ # cd /usr/local/nagios/plugins/ monitoringServer:/usr/local/nagios/plugins # ./check_disk_smb -H MYSERVER -s aSh areOnTheServer -u username -p password Disk ok - 21.45G (87%) free on \\MYSERVER\aShareOnTheServer monitoringServer:/usr/local/nagios/plugins # Le lun 06/01/2003 ? 16:24, Carroll, Jim P [Contractor] a ?crit : > Is check_disk_smb properly defined in checkcommands.cfg? > > jc > > > -----Original Message----- > > From: Pivert [mailto:pivert_home at yahoo.fr] > > Sent: Friday, January 03, 2003 6:45 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] disk_check_smb ==> No Output !? > > > > > > Hi !! > > > > I have a verry strange problem with Nagios and this plugin. > > In nagios, I > > have the plugin telling (No output!) : > > > > [1041349454] SERVICE NOTIFICATION: > > sysmsg;MyWindowsHost;DISK;CRITICAL;notify-by-email;(No output!) > > > > And it I check the service manually : > > > > eye:/usr/local/nagios/plugins # ./check_disk_smb -H MyWindowsHost -s > > AShare -u smb_check_user -p smb_check_password > > Disk ok - 21.45G (87%) free on \\MyWindowsHost\AShare > > eye:/usr/local/nagios/plugins # > > > > I tryed with the same user as nagios run without success.. > > > > Does anybody have an idea ?! > > > > Thanks!!! > > > > > > Pivert. > > > > ___________________________________________________________ > > 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 > > > > > ------------------------------------------------------- > 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 ___________________________________________________________ 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 ofb at budget-tech.com Tue Jan 7 22:39:19 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Tue, 7 Jan 2003 16:39:19 -0500 Subject: pseudo-host with multiple ip's Message-ID: <011901c2b695$3c373ab0$0201a8c0@boston> Apologies if this, or something similar, has been answered already. I'm new to the group, and didn't see anything in the archive that answered my question. *** I'd like to know if it's possible to monitor a machine with multiple ip addresses without creating an entirely separate host in hosts.cfg for each ip address? What I'd like to do is monitor unused IP space. I'd like to create a pseudo-host called "Unused IPs" and then add the IP addresses to that one pseudo-host which should not be up and responding. I know it's nit-picky, but I'd like to be able to do this so I can have the unused IPs nested under the "Unused IP" pseudo-host entry (from the Service Detail page). Lastly, I've seen some mention of other plugins that didn't come in the Plugins v1.3.0 Beta2... is there a secret plugin repository somewhere? Thanks, Olivier ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From peterpan at pvamu.edu Tue Jan 7 23:17:00 2003 From: peterpan at pvamu.edu (Peter Pan) Date: Tue, 7 Jan 2003 16:17:00 -0600 Subject: Nagios upgrade Message-ID: <00af01c2b69a$7f918fe0$0e38cf81@fucko> I recently upgraded from netsaint to nagios. I am used to using check_nrpep to execute plugins on the remote host. The check_nrpep would look at the config file on the remote host for the ARGS. I have downloaded nsca to do this, but am not familiar if it does indeed do the same thing as check_nrpep. Thanks Peter Pan Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan at live2think.com Tue Jan 7 23:03:16 2003 From: stan at live2think.com (Stan Tichomirov) Date: Tue, 07 Jan 2003 14:03:16 -0800 Subject: Same old "Nagios may not be running!" thing References: <20030107151756.B28414@bennyvision.com> <3E1B4C12.88ED8C5F@live2think.com> <20030107155206.A18446@bennyvision.com> Message-ID: <3E1B4EA4.D471BCB1@live2think.com> hmm.. I haven't tried running NetSaint, or Nagios on OpenBSD, so i'm not aware of any issues specific to that O/S. I think I remember seing "Nagios process may not be running" error when I accidently tried starting nagios without any plugins installed, right after upgrading. Is it finding the libexec directory ok? Stan Tichomirov "C. Bensend" wrote: > Hey Stan, > > Yes, and yes. This machine has been running Netsaint > for two years, and the authentication is setup and working > perfectly. I'm just in the process of upgrading this > particular monitoring server to Nagios 1.0, and so far, this > has been the only show-stopper. > > Thanks! If you think of anything else, I'm all ears. > > 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 jcarro10 at sprintspectrum.com Tue Jan 7 22:46:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 7 Jan 2003 15:46:54 -0600 Subject: Setting up service dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E124C@PKDWB03C.ad.sprint.com> That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From don_schultz at panvera.com Tue Jan 7 23:10:45 2003 From: don_schultz at panvera.com (Don Schultz) Date: Tue, 7 Jan 2003 16:10:45 -0600 Subject: pseudo-host with multiple ip's Message-ID: <72CF2973A7532D478D85271D40F608FCC3F527@mercury.panvera.com> You should be able to specify a host (make up a name, example "unused Ips") and add a bunch of "address: x.x.x.x" one for each IP address and set it to only notify on recovery. define host{ # use template name (if you use templates) host_name unused-ip-addresses alias Unused IPs address 64.91.20.45 address 64.91.20.46 address 64.91.20.47 notification_period some time period notification_interval interval host_check_command check_host_alive notification_options r # parents specify parent hosts if you use parents directive } I believe that should work, it's been a while since I set it all up from scratch so someone correct me if it's needed ;) .: Don Schultz :: Unix Systems Administrator :: Panvera, LLC :: 501 Charmany Dr. :: Madison, WI 53719 \\ :: Phone: 608.204.5060 :: Fax: 608.204.5061 :: Cell: 608.213.7523 :: Email: don_schultz at panvera.com > -----Original Message----- > From: Olivier F. Beauchemin (Budget-Tech IT Consulting) > [mailto:ofb at budget-tech.com] > Sent: Tuesday, January 07, 2003 3:39 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] pseudo-host with multiple ip's > > > Apologies if this, or something similar, has been answered > already. I'm new > to the group, and didn't see anything in the archive that answered my > question. > *** > > I'd like to know if it's possible to monitor a machine with > multiple ip > addresses without creating an entirely separate host in > hosts.cfg for each > ip address? > > What I'd like to do is monitor unused IP space. I'd like to create a > pseudo-host called "Unused IPs" and then add the IP addresses > to that one > pseudo-host which should not be up and responding. I know > it's nit-picky, > but I'd like to be able to do this so I can have the unused > IPs nested under > the "Unused IP" pseudo-host entry (from the Service Detail page). > > Lastly, I've seen some mention of other plugins that didn't > come in the > Plugins v1.3.0 Beta2... is there a secret plugin repository somewhere? > > Thanks, > Olivier > > > > ------------------------------------------------------- > 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 benny at bennyvision.com Tue Jan 7 23:12:58 2003 From: benny at bennyvision.com (C. Bensend) Date: Tue, 7 Jan 2003 16:12:58 -0600 Subject: Same old "Nagios may not be running!" thing In-Reply-To: <3E1B4EA4.D471BCB1@live2think.com>; from stan@live2think.com on Tue, Jan 07, 2003 at 02:03:16PM -0800 References: <20030107151756.B28414@bennyvision.com> <3E1B4C12.88ED8C5F@live2think.com> <20030107155206.A18446@bennyvision.com> <3E1B4EA4.D471BCB1@live2think.com> Message-ID: <20030107161258.B25453@bennyvision.com> On Tue, Jan 07, 2003 at 02:03:16PM -0800, Stan Tichomirov wrote: > hmm.. I haven't tried running NetSaint, or Nagios on OpenBSD, so i'm > not aware of any issues specific to that O/S. I think I remember seing > "Nagios process may not be running" error when I accidently tried > starting nagios without any plugins installed, right after upgrading. > Is it finding the libexec directory ok? For what it's worth, I am running Netsaint and Nagios on three separate machines, six total instances, and I've never seen this one. All of the instances are running on OpenBSD, from 2.8 to 3.2. Oh, good grief. I checked the permissions on libexec, and they were mode 0700. Well, that's going to give Apache problems getting to the check_nagios, I'd think. ;) So, this problem is solved. Thank you VERY much, Stan - I needed a fresh brain to point at the obvious. However. I'd love to know _why_ libexec was 0700... This was a fresh install from nagios-plugins-200211121100, and I did _not_ manually twiddle any permissions. Did a plugins release escape with an oops? Or should I just go home now? ;) Reguardless, thanks very much. :) Benny ps: Before anyone asks, the default umask for the user I built things with is 027, and is in the same group as the Apache user. ;) ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ "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 ofb at budget-tech.com Wed Jan 8 00:13:15 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Tue, 7 Jan 2003 18:13:15 -0500 Subject: pseudo-host with multiple ip's References: <72CF2973A7532D478D85271D40F608FCC3F527@mercury.panvera.com> Message-ID: <018f01c2b6a2$5ba01450$0201a8c0@boston> I tried exactly this, however, only the first ip address in the list appears to be used. Thanks, Olivier You should be able to specify a host (make up a name, example "unused Ips") and add a bunch of "address: x.x.x.x" one for each IP address and set it to only notify on recovery. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stan at live2think.com Wed Jan 8 00:17:29 2003 From: stan at live2think.com (Stan Tichomirov) Date: Tue, 07 Jan 2003 15:17:29 -0800 Subject: Same old "Nagios may not be running!" thing References: <20030107151756.B28414@bennyvision.com> <3E1B4C12.88ED8C5F@live2think.com> <20030107155206.A18446@bennyvision.com> <3E1B4EA4.D471BCB1@live2think.com> <20030107161258.B25453@bennyvision.com> Message-ID: <3E1B6009.994D7733@live2think.com> glad i could help :-) we have written some shell scripts to report memory/cpu utilization for *nix boxes, these should work on solaris, linux, freebsd, hpux and tru64 (you will have to change some paths). also, i wrote a couple of scripts for freebsd (haven't tested on OpenBSD or NetBSD) to check for utilization of mbuf clusters using netstat -m (mbuf cluster utilization goes up during some DOS attacks). Try them out if you want. http://live2think.com/software/src/nagios/nagios_plugins/ Stan Tichomirov "C. Bensend" wrote: > On Tue, Jan 07, 2003 at 02:03:16PM -0800, Stan Tichomirov wrote: > > hmm.. I haven't tried running NetSaint, or Nagios on OpenBSD, so i'm > > not aware of any issues specific to that O/S. I think I remember seing > > "Nagios process may not be running" error when I accidently tried > > starting nagios without any plugins installed, right after upgrading. > > Is it finding the libexec directory ok? > > For what it's worth, I am running Netsaint and Nagios on > three separate machines, six total instances, and I've > never seen this one. All of the instances are running > on OpenBSD, from 2.8 to 3.2. > > Oh, good grief. I checked the permissions on libexec, and > they were mode 0700. Well, that's going to give Apache > problems getting to the check_nagios, I'd think. ;) > > So, this problem is solved. Thank you VERY much, Stan - > I needed a fresh brain to point at the obvious. > > However. I'd love to know _why_ libexec was 0700... This > was a fresh install from nagios-plugins-200211121100, and > I did _not_ manually twiddle any permissions. Did a plugins > release escape with an oops? Or should I just go home now? > ;) > > Reguardless, thanks very much. :) > > Benny > > ps: Before anyone asks, the default umask for the user I > built things with is 027, and is in the same group as the > Apache user. ;) > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ > "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 > _______________________________________________ > 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 steve at dtnspeed.net Wed Jan 8 00:24:08 2003 From: steve at dtnspeed.net (Steven L. Kohrs) Date: 07 Jan 2003 17:24:08 -0600 Subject: Multiple templates in a service definition? Message-ID: <1041981848.1533.37.camel@localhost.localdomain> Is it possible to 'use' more than one template in a service definition? What about multiple hosts? I need the same PING capabilities on all my hosts. Example: define service{ name generic-service ... } define service{ name generic-ping service_description PING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups engineers notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ping!100.0,20%!500.0,60% } define service{ use generic-service ; Name of service template to use use generic-ping ; Name of service template to use host_name one,five,seven,eight,nine,www,ns1,ns2 } ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Wed Jan 8 01:00:48 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 18:00:48 -0600 Subject: Fw: Re: Multiple templates in a service definition? In-Reply-To: <20030107235844.M47801@4wx.net> References: <1041981848.1533.37.camel@localhost.localdomain> <20030107235844.M47801@4wx.net> Message-ID: <20030108000048.M64755@4wx.net> I forgot the list, duhhh. ---------- Forwarded Message ----------- From: "donavan nelson" To: "Steven L. Kohrs" Sent: Tue, 7 Jan 2003 17:58:44 -0600 Subject: Re: [Nagios-users] Multiple templates in a service definition? I do something similar, but it's a slightly different mind set template A template B, uses A service X, uses template B Same behavior, different method. I don't know if your way even works.... Example # Generic service definition template define service{ name generic-service ; ... } define service{ use generic-service name generic_check_disk is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups 4wx-admin notification_interval 240 notification_period 24x7 notification_options c,r register 0 } define service{ use generic_check_disk service_description / check_command check_nrpe!check_disk_root host_name sparky, cat } define service{ use generic_check_disk service_description /var/log check_command check_nrpe!check_disk_var_log host_name sparky, cat } Hopefully you can find something useful here. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Steven L. Kohrs" To: nagios-users at lists.sourceforge.net Sent: 07 Jan 2003 17:24:08 -0600 Subject: [Nagios-users] Multiple templates in a service definition? > Is it possible to 'use' more than one template in a service definition? > What about multiple hosts? > I need the same PING capabilities on all my hosts. > > Example: > > define service{ > name generic-service > ... > } > > define service{ > name generic-ping > > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups engineers > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ping!100.0,20%!500.0, > 60% } > > define service{ > use generic-service ; Name of service template to > use use generic-ping ; Name of service template > to use > > host_name one,five,seven,eight,nine,www,ns1,ns2 > } > > ------------------------------------------------------- > 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 ------- End of Original Message ------- ------- End of Forwarded Message ------- -- Donavan Nelson 4wx Networks www.4wx.net ------------------------------------------------------- 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 Jan 8 00:53:03 2003 From: gwichman at zantaz.com (Gerald Wichmann) Date: Tue, 7 Jan 2003 15:53:03 -0800 Subject: Anyone monitor a 3ware raid adapter? Message-ID: <12C7D768CC8ED4118A9200508BEEC6FB02CB412D@zanexch.zantaz.com> Been reading 3ware's documentation and it's not entirely clear to me what the best way is to monitor for warnings and errors. They have a neat web page tool that you can connect directly to the box and see the status of things. But that's fairly useless in integrating it with nagios. They do let you configure it to email an account if there's an error or problem. So that seems like one potential method. Setup a 3ware admin account and if it ever gets any email, throw up a critical notification to nagios. Might be tricky since I don't know what these emails look like as far as parsing them for some appropriate output to pass to nagios and differentiating a warning from an error. Lastly theres an extended log file which I believe only gets created or appended to when there is an error of some sort. I could monitor to see if that file ever appears, and if it does just cat whatever is in it as output, and throw a critical.. again problem being I've never seen whats in one.. Anyone monitoring 3ware adapters for errors/warnings using nagios? I'd love to know how you're doing it and perhaps get code from you.. 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 groups at thinlayer.co.uk Wed Jan 8 01:58:09 2003 From: groups at thinlayer.co.uk (Thinlayer) Date: 08 Jan 2003 00:58:09 +0000 Subject: Fw: Re: Multiple templates in a service definition? In-Reply-To: <20030108000048.M64755@4wx.net> References: <1041981848.1533.37.camel@localhost.localdomain> <20030107235844.M47801@4wx.net> <20030108000048.M64755@4wx.net> Message-ID: <1041987489.1138.24.camel@servalon> > I forgot the list, duhhh. damn you - would have saved me typing my tuppeny bits worth :) here's some more anyway (edited to avoid gratuitous repition) > I do something similar, but it's a slightly different mind set > > template A > > template B, uses A > > service X, uses template B > > Same behavior, different method. I don't know if your way even works.... AFAIK you can't use more than one other than via inheritance as Donavan says but remember not to register your templates and also that the templates cannot be used as services. You can of course take it further if you require different types of say ping buy making your generic-ping a service. This means you'll need to define: generic-service : top level template generic-ping : uses generic-service - also a template some-special-ping : uses generic-ping - actual service other-special-ping : uses generic-ping - actual service etc. hope this helps too rue ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sean.knox at sbcglobal.net Wed Jan 8 02:16:22 2003 From: sean.knox at sbcglobal.net (Sean Knox) Date: Tue, 07 Jan 2003 17:16:22 -0800 Subject: Apan and rrd permissions In-Reply-To: <12C7D768CC8ED4118A9200508BEEC6FB02CB412D@zanexch.zantaz.com> References: <12C7D768CC8ED4118A9200508BEEC6FB02CB412D@zanexch.zantaz.com> Message-ID: <3E1B7BE6.6090508@sbcglobal.net> Does anyone know which user accesses the rrd files through apan? Currently I have them chmod'ed to 777, which isn't ideal. :) Thanks, Sean ------------------------------------------------------- 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 Tue Jan 7 23:10:35 2003 From: nagios at cerbernet.co.uk (nagios at cerbernet.co.uk) Date: Tue, 7 Jan 2003 22:10:35 GMT Subject: 3D Status map problem Message-ID: <200301072210.h07MAZgP027335@gaould.cerbernet.co.uk> Having a bit of a nightmare with the 3D status map in Nagios. I have added extend host information into a file and referenced this file in the config file. I know the extended host information is working as the hosts appear in the web interface with the icons I have put in. However going to the 3D status map shows a blank screen if I let set default_statuswrl_layout to either 2,3 or 4. If I set it to 0 and specify coordinates for the icons the 3D status map tells me I have not specified any coordinates and to consult the FAQ. I really don't know where I maybe going wrong as I was able to get this to work in Netsaint but since switching to Nagios I can't. I am sure there are no configuration file options I have missed to enable to 3D status map, in fact I am sure by default this is already enabled as standard. Has anyone any idea what maybe going wrong? Thanks Tony ------------------------------------------------------- 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 Jan 8 04:52:34 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 7 Jan 2003 22:52:34 -0500 (EST) Subject: pseudo-host with multiple ip's In-Reply-To: <72CF2973A7532D478D85271D40F608FCC3F527@mercury.panvera.com> References: <72CF2973A7532D478D85271D40F608FCC3F527@mercury.panvera.com> Message-ID: I would put a single IP (either end of the unused space) as the host address and add the rest as services. notify on recovery is good - and long interval between checks - 12 hours or the like if you don't expect to see many allocations.. OR make app the unused IPs as service checks on a core router host using negate and check_ping. - This would react more as a unkown host just entered my domain... -sg On Tue, 7 Jan 2003, Don Schultz wrote: > You should be able to specify a host (make up a name, example "unused > Ips") and add a bunch of "address: x.x.x.x" one for each IP address and > set it to only notify on recovery. > > define host{ > # use template name (if you use > templates) > host_name unused-ip-addresses > alias Unused IPs > address 64.91.20.45 > address 64.91.20.46 > address 64.91.20.47 > notification_period some time period > notification_interval interval > host_check_command check_host_alive > notification_options r > # parents specify parent hosts if you use parents > directive > } > > I believe that should work, it's been a while since I set it all up from > scratch so someone correct me if it's needed ;) > > .: Don Schultz > :: Unix Systems Administrator > :: Panvera, LLC > :: 501 Charmany Dr. > :: Madison, WI 53719 > \\ > :: Phone: 608.204.5060 > :: Fax: 608.204.5061 > :: Cell: 608.213.7523 > :: Email: don_schultz at panvera.com > > > > -----Original Message----- > > From: Olivier F. Beauchemin (Budget-Tech IT Consulting) > > [mailto:ofb at budget-tech.com] > > Sent: Tuesday, January 07, 2003 3:39 PM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] pseudo-host with multiple ip's > > > > > > Apologies if this, or something similar, has been answered > > already. I'm new > > to the group, and didn't see anything in the archive that answered my > > question. > > *** > > > > I'd like to know if it's possible to monitor a machine with > > multiple ip > > addresses without creating an entirely separate host in > > hosts.cfg for each > > ip address? > > > > What I'd like to do is monitor unused IP space. I'd like to create a > > pseudo-host called "Unused IPs" and then add the IP addresses > > to that one > > pseudo-host which should not be up and responding. I know > > it's nit-picky, > > but I'd like to be able to do this so I can have the unused > > IPs nested under > > the "Unused IP" pseudo-host entry (from the Service Detail page). > > > > Lastly, I've seen some mention of other plugins that didn't > > come in the > > Plugins v1.3.0 Beta2... is there a secret plugin repository somewhere? > > > > Thanks, > > Olivier > > > > > > > > ------------------------------------------------------- > > 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 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 Shane_Seidel at gwf.com.au Wed Jan 8 06:40:02 2003 From: Shane_Seidel at gwf.com.au (Shane_Seidel at gwf.com.au) Date: Wed, 8 Jan 2003 15:40:02 +1000 Subject: Win2000 App Log errors from NS client Message-ID: <4A256CA8.001FFE38.00@gisw900.gwf.com.au> Rainer, Sorry I haven't replied sooner, annual leave. The error was occuring at the interval set in the original config. Even more weird. I checked the logs and the errors have stopped. There is no record of the a server reboot, service stop etc. I am puzzled but happy things have returned to normal. Note that i had stopped and restarted the service previously, no joy. Thanks for your help in this matter. Regards Shane To: ********************************************************************************************************************************************** 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 -------------- ? ? ? ?Shane Seidel/GWFIS/GWF at GWF, nagios-users at lists.sourceforge.net cc: Subject: ? ? ? ?RE: Win2000 App Log errors from NS client [IMAGE] > Rainer, > > Thanks, and point taken. However you may have noticed that I > had removed that > service from the services.cfg file for this host and > checkcommands.cfg file. > This has been replaced using the check_citrix plugin. Still > the errors occur. > > regards > Shane Does the error occur everytime when nagios executes check_citrix or ist the timestamp in the W2K error-log unrelated to the activities of the plugin? In the latter case it might help to restart the NSClient-Service. (But from the code I can see that NSClient *builds* the actual perf-counter at the moment the query arrives over the net and *destroys* it after the query is done. Only the "standard" perfmons (SystemTotalProcessorTime, SystemSystemUpTime, MemoryCommitLimit, MemoryCommitByte) are build at startup of NSClient and run until the Service ist stopped.) Are there other error-messages generated by NS-Client? cheers Rainer (Embedded image moved to file: pic24361.pcx) -------------- next part -------------- A non-text attachment was scrubbed... Name: pic24361.pcx Type: application/octet-stream Size: 2461 bytes Desc: not available URL: From donavan at 4wx.net Wed Jan 8 05:42:45 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 22:42:45 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108041921.83431.qmail@web12604.mail.yahoo.com> References: <20030107152358.M99750@4wx.net> <20030108041921.83431.qmail@web12604.mail.yahoo.com> Message-ID: <20030108044245.M43412@4wx.net> what is the format of your check_nrpe entry in chkcommands.cfg? -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: hrishy To: donavan nelson Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) Subject: Re: [Nagios-users] incoorect command line arguments supplied > Hi Donavan > > Yep I have tried that...when i try that on the solaris > box it works does not complain at all.. > > when i try from my nagios host..only then this message > is thrown up > > regards > Hrishy > > --- donavan nelson wrote: > run the > check_disk on the command line on the sun > > box to get the arguments > > sorted. change the config file, restart nrpe and > > all should be good. > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: hrishy > > To: nagios-users at lists.sourceforge.net > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > Subject: [Nagios-users] incoorect command line > > arguments supplied > > > > > Hi All > > > > > > My nagios host is running linux from where i want > > to > > > monitor my sun machine.My services.cfg file on > > nagios > > > host is like this > > > > > > define service{ > > > use generic-service ; > > > host_name unix1 > > > service_description /dev/dsk/c0t0d0s0 Free > > Space > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 3 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > contact_groups unix-admins > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options w,u,c,r > > > check_command check_nrpe!check_disk1 > > > } > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > machine > > > has the following lines in it.. > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > -w > > > 20 -c 10 -m /usr > > > > > > I am getting incorrect command line arguments > > > supplied..while as when i run the command in stand > > > alone mode on the sun server it works.. > > > > > > Can anybody help..why this is happening > > > > > > 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: > > > 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 > > ------- End of Original Message ------- > > > > __________________________________________________ > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 06:06:43 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <20030108044245.M43412@4wx.net> References: <20030108044245.M43412@4wx.net> Message-ID: <20030108050643.40320.qmail@web12605.mail.yahoo.com> Hi Donovan The format of command is define command{ command_name check_nrpe command_line /usr/local/nagios/libexec/check_nrpe $HOSTADDRESS$ -c $ARG1$ } is this command format right ? And oofcourse thanks for takin your valuable timeout to respond ;-D regards Hrishy --- donavan nelson wrote: > what is the format of your check_nrpe entry in > chkcommands.cfg? > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: hrishy > To: donavan nelson > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > Subject: Re: [Nagios-users] incoorect command line > arguments supplied > > > Hi Donavan > > > > Yep I have tried that...when i try that on the > solaris > > box it works does not complain at all.. > > > > when i try from my nagios host..only then this > message > > is thrown up > > > > regards > > Hrishy > > > > --- donavan nelson wrote: > run > the > > check_disk on the command line on the sun > > > box to get the arguments > > > sorted. change the config file, restart nrpe > and > > > all should be good. > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: hrishy > > > To: nagios-users at lists.sourceforge.net > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > Subject: [Nagios-users] incoorect command line > > > arguments supplied > > > > > > > Hi All > > > > > > > > My nagios host is running linux from where i > want > > > to > > > > monitor my sun machine.My services.cfg file on > > > nagios > > > > host is like this > > > > > > > > define service{ > > > > use generic-service ; > > > > host_name unix1 > > > > service_description /dev/dsk/c0t0d0s0 Free > > > Space > > > > is_volatile 0 > > > > check_period 24x7 > > > > max_check_attempts 3 > > > > normal_check_interval 5 > > > > retry_check_interval 1 > > > > contact_groups unix-admins > > > > notification_interval 120 > > > > notification_period 24x7 > > > > notification_options w,u,c,r > > > > check_command check_nrpe!check_disk1 > > > > } > > > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > > machine > > > > has the following lines in it.. > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > -w > > > > 20 -c 10 -m /usr > > > > > > > > I am getting incorrect command line arguments > > > > supplied..while as when i run the command in > stand > > > > alone mode on the sun server it works.. > > > > > > > > Can anybody help..why this is happening > > > > > > > > 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: > > > > 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 > > > ------- End of Original Message ------- > > > > > > > __________________________________________________ > > 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 > ------- End of Original 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 __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Wed Jan 8 06:16:31 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 23:16:31 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108050643.40320.qmail@web12605.mail.yahoo.com> References: <20030108044245.M43412@4wx.net> <20030108050643.40320.qmail@web12605.mail.yahoo.com> Message-ID: <20030108051631.M52601@4wx.net> that is what I would expect. are you doing any other check_nrpe commands? It might give us a clue as to were to look next. I'm sure you have restarted nrpe on the solaris box and nagios on the nagios server? Any firewalls or other network gadgets between you and the solaris box? And can you ping from the nagios server to the solaris box? (I'm sure this is way to basic at this point :) ) My time isn't too valuable right now....but you are welcome. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: hrishy To: donavan nelson , nagios-users Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) Subject: Re: [Nagios-users] incoorect command line arguments supplied > Hi Donovan > > The format of command is > > define command{ > command_name check_nrpe > command_line /usr/local/nagios/libexec/check_nrpe > $HOSTADDRESS$ -c $ARG1$ > } > > is this command format right ? And oofcourse thanks > for takin your valuable timeout to respond ;-D > > regards > Hrishy > ***MONSTER SNIP*** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 06:27:13 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:27:13 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <20030108051631.M52601@4wx.net> References: <20030108051631.M52601@4wx.net> Message-ID: <20030108052713.66543.qmail@web12601.mail.yahoo.com> Hi Donovan LOL..thanks for that encouragement..;-D.. 1)Yeah nrpe is restarted on the soalris box 2)Nagios is restarted on the Linux box 3)There is no firewall between them 4)I am able to do ping from the linux box to the solaris machine well from the commnad line of the nagios box..if i type ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users \ > -wt 20 -ct 10 -to 5 i am still getting Incorrect command line arguments supplied am i missing something.. regards Hrishy --- donavan nelson wrote: > that is what I would expect. are you doing any > other check_nrpe commands? It > might give us a clue as to were to look next. I'm > sure you have restarted > nrpe on the solaris box and nagios on the nagios > server? Any firewalls or > other network gadgets between you and the solaris > box? > > And can you ping from the nagios server to the > solaris box? (I'm sure this is > way to basic at this point :) ) > > My time isn't too valuable right now....but you are > welcome. > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: hrishy > To: donavan nelson , nagios-users > > Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) > Subject: Re: [Nagios-users] incoorect command line > arguments supplied > > > Hi Donovan > > > > The format of command is > > > > define command{ > > command_name check_nrpe > > command_line > /usr/local/nagios/libexec/check_nrpe > > $HOSTADDRESS$ -c $ARG1$ > > } > > > > is this command format right ? And oofcourse > thanks > > for takin your valuable timeout to respond ;-D > > > > regards > > Hrishy > > > ***MONSTER SNIP*** __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Wed Jan 8 06:35:19 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 23:35:19 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108052713.66543.qmail@web12601.mail.yahoo.com> References: <20030108051631.M52601@4wx.net> <20030108052713.66543.qmail@web12601.mail.yahoo.com> Message-ID: <20030108053519.M18479@4wx.net> you can not use check_nrpe from the command line (I tried :) ) it must be used from within nagios. That will eliminate that frustration. Have you tried it from within the nagios config files? .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: hrishy To: donavan nelson , nagios-users Sent: Wed, 8 Jan 2003 05:27:13 +0000 (GMT) Subject: Re: [Nagios-users] incoorect command line arguments supplied > Hi Donovan > > LOL..thanks for that encouragement..;-D.. > > 1)Yeah nrpe is restarted on the soalris box > 2)Nagios is restarted on the Linux box > 3)There is no firewall between them > 4)I am able to do ping from the linux box to the > solaris machine > > well from the commnad line of the nagios box..if i > type > ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users \ > > > -wt 20 -ct 10 -to 5 > > i am still getting > Incorrect command line arguments supplied > > am i missing something.. > > regards > Hrishy > --- donavan nelson wrote: > that is > what I would expect. are you doing any > > other check_nrpe commands? It > > might give us a clue as to were to look next. I'm > > sure you have restarted > > nrpe on the solaris box and nagios on the nagios > > server? Any firewalls or > > other network gadgets between you and the solaris > > box? > > > > And can you ping from the nagios server to the > > solaris box? (I'm sure this is > > way to basic at this point :) ) > > > > My time isn't too valuable right now....but you are > > welcome. > > > > .dn > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: hrishy > > To: donavan nelson , nagios-users > > > > Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) > > Subject: Re: [Nagios-users] incoorect command line > > arguments supplied > > > > > Hi Donovan > > > > > > The format of command is > > > > > > define command{ > > > command_name check_nrpe > > > command_line > > /usr/local/nagios/libexec/check_nrpe > > > $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > is this command format right ? And oofcourse > > thanks > > > for takin your valuable timeout to respond ;-D > > > > > > regards > > > Hrishy > > > > > ***MONSTER SNIP*** > > __________________________________________________ > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 06:46:30 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:46:30 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <1042004273.1444.234.camel@dev.showkilr.com> References: <1042004273.1444.234.camel@dev.showkilr.com> Message-ID: <20030108054630.83515.qmail@web12606.mail.yahoo.com> Hi Showkillr why is $USER1$ necessary did you define this macro somewhere ? I did not understand the meaning of $USER1$ also from the command line when i say from the nagios box..it works..where 176.1.111.89 is my sun solaris box and port number is 5666 ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users USERS OK - 2 users currently logged in regards Hrishy --- Showkilr wrote: > Here is what needs to be in the checkcommand.cfg for > check_nrpe to work > > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H > $HOSTADDRESS$ -c $ARG1$ > } > > Showkilr > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > Hi Donovan > > > > The format of command is > > > > define command{ > > command_name check_nrpe > > command_line > /usr/local/nagios/libexec/check_nrpe > > $HOSTADDRESS$ -c $ARG1$ > > } > > > > is this command format right ? And oofcourse > thanks > > for takin your valuable timeout to respond ;-D > > > > regards > > Hrishy > > > > > > > > --- donavan nelson wrote: > > what is > > the format of your check_nrpe entry in > > > chkcommands.cfg? > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: hrishy > > > To: donavan nelson > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > Subject: Re: [Nagios-users] incoorect command > line > > > arguments supplied > > > > > > > Hi Donavan > > > > > > > > Yep I have tried that...when i try that on the > > > solaris > > > > box it works does not complain at all.. > > > > > > > > when i try from my nagios host..only then this > > > message > > > > is thrown up > > > > > > > > regards > > > > Hrishy > > > > > > > > --- donavan nelson wrote: > > run > > > the > > > > check_disk on the command line on the sun > > > > > box to get the arguments > > > > > sorted. change the config file, restart > nrpe > > > and > > > > > all should be good. > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: hrishy > > > > > To: nagios-users at lists.sourceforge.net > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > Subject: [Nagios-users] incoorect command > line > > > > > arguments supplied > > > > > > > > > > > Hi All > > > > > > > > > > > > My nagios host is running linux from where > i > > > want > > > > > to > > > > > > monitor my sun machine.My services.cfg > file on > > > > > nagios > > > > > > host is like this > > > > > > > > > > > > define service{ > > > > > > use generic-service ; > > > > > > host_name unix1 > > > > > > service_description /dev/dsk/c0t0d0s0 > Free > > > > > Space > > > > > > is_volatile 0 > > > > > > check_period 24x7 > > > > > > max_check_attempts 3 > > > > > > normal_check_interval 5 > > > > > > retry_check_interval 1 > > > > > > contact_groups unix-admins > > > > > > notification_interval 120 > > > > > > notification_period 24x7 > > > > > > notification_options w,u,c,r > > > > > > check_command check_nrpe!check_disk1 > > > > > > } > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > solaris > > > > > machine > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > -w > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > I am getting incorrect command line > arguments > > > > > > supplied..while as when i run the command > in > > > stand > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > 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: > > > > > > 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 > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > __________________________________________________ > > > > 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 > > > ------- End of Original 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 > > > > > __________________________________________________ > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Wed Jan 8 06:43:21 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 7 Jan 2003 23:43:21 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <1042004273.1444.234.camel@dev.showkilr.com> References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> Message-ID: <20030108054321.M58388@4wx.net> I don't have the -H in mine. I'm running the latest released versions of the plugins and nagios. hrishy, what versions are you running? .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Showkilr To: hrishy Sent: 07 Jan 2003 23:37:53 -0600 Subject: Re: [Nagios-users] incoorect command line arguments supplied > Here is what needs to be in the checkcommand.cfg for check_nrpe to work > > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ > } > > Showkilr > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > Hi Donovan > > > > The format of command is > > > > define command{ > > command_name check_nrpe > > command_line /usr/local/nagios/libexec/check_nrpe > > $HOSTADDRESS$ -c $ARG1$ > > } > > > > is this command format right ? And oofcourse thanks > > for takin your valuable timeout to respond ;-D > > > > regards > > Hrishy > > > > > > > > --- donavan nelson wrote: > what is > > the format of your check_nrpe entry in > > > chkcommands.cfg? > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: hrishy > > > To: donavan nelson > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > Subject: Re: [Nagios-users] incoorect command line > > > arguments supplied > > > > > > > Hi Donavan > > > > > > > > Yep I have tried that...when i try that on the > > > solaris > > > > box it works does not complain at all.. > > > > > > > > when i try from my nagios host..only then this > > > message > > > > is thrown up > > > > > > > > regards > > > > Hrishy > > > > > > > > --- donavan nelson wrote: > run > > > the > > > > check_disk on the command line on the sun > > > > > box to get the arguments > > > > > sorted. change the config file, restart nrpe > > > and > > > > > all should be good. > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: hrishy > > > > > To: nagios-users at lists.sourceforge.net > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > Subject: [Nagios-users] incoorect command line > > > > > arguments supplied > > > > > > > > > > > Hi All > > > > > > > > > > > > My nagios host is running linux from where i > > > want > > > > > to > > > > > > monitor my sun machine.My services.cfg file on > > > > > nagios > > > > > > host is like this > > > > > > > > > > > > define service{ > > > > > > use generic-service ; > > > > > > host_name unix1 > > > > > > service_description /dev/dsk/c0t0d0s0 Free > > > > > Space > > > > > > is_volatile 0 > > > > > > check_period 24x7 > > > > > > max_check_attempts 3 > > > > > > normal_check_interval 5 > > > > > > retry_check_interval 1 > > > > > > contact_groups unix-admins > > > > > > notification_interval 120 > > > > > > notification_period 24x7 > > > > > > notification_options w,u,c,r > > > > > > check_command check_nrpe!check_disk1 > > > > > > } > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > > > > machine > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > -w > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > I am getting incorrect command line arguments > > > > > > supplied..while as when i run the command in > > > stand > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > 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: > > > > > > 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 > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > __________________________________________________ > > > > 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 > > > ------- End of Original 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 > > > > __________________________________________________ > > 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: > > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 06:37:53 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 23:37:53 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108050643.40320.qmail@web12605.mail.yahoo.com> References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> Message-ID: <1042004273.1444.234.camel@dev.showkilr.com> Here is what needs to be in the checkcommand.cfg for check_nrpe to work define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } Showkilr On Tue, 2003-01-07 at 23:06, hrishy wrote: > Hi Donovan > > The format of command is > > define command{ > command_name check_nrpe > command_line /usr/local/nagios/libexec/check_nrpe > $HOSTADDRESS$ -c $ARG1$ > } > > is this command format right ? And oofcourse thanks > for takin your valuable timeout to respond ;-D > > regards > Hrishy > > > > --- donavan nelson wrote: > what is > the format of your check_nrpe entry in > > chkcommands.cfg? > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: hrishy > > To: donavan nelson > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > Subject: Re: [Nagios-users] incoorect command line > > arguments supplied > > > > > Hi Donavan > > > > > > Yep I have tried that...when i try that on the > > solaris > > > box it works does not complain at all.. > > > > > > when i try from my nagios host..only then this > > message > > > is thrown up > > > > > > regards > > > Hrishy > > > > > > --- donavan nelson wrote: > run > > the > > > check_disk on the command line on the sun > > > > box to get the arguments > > > > sorted. change the config file, restart nrpe > > and > > > > all should be good. > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: hrishy > > > > To: nagios-users at lists.sourceforge.net > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > Subject: [Nagios-users] incoorect command line > > > > arguments supplied > > > > > > > > > Hi All > > > > > > > > > > My nagios host is running linux from where i > > want > > > > to > > > > > monitor my sun machine.My services.cfg file on > > > > nagios > > > > > host is like this > > > > > > > > > > define service{ > > > > > use generic-service ; > > > > > host_name unix1 > > > > > service_description /dev/dsk/c0t0d0s0 Free > > > > Space > > > > > is_volatile 0 > > > > > check_period 24x7 > > > > > max_check_attempts 3 > > > > > normal_check_interval 5 > > > > > retry_check_interval 1 > > > > > contact_groups unix-admins > > > > > notification_interval 120 > > > > > notification_period 24x7 > > > > > notification_options w,u,c,r > > > > > check_command check_nrpe!check_disk1 > > > > > } > > > > > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > > > machine > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > -w > > > > > 20 -c 10 -m /usr > > > > > > > > > > I am getting incorrect command line arguments > > > > > supplied..while as when i run the command in > > stand > > > > > alone mode on the sun server it works.. > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > 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: > > > > > 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 > > > > ------- End of Original Message ------- > > > > > > > > > > __________________________________________________ > > > 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 > > ------- End of Original 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 > > __________________________________________________ > 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: > 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 sysadmin at showkilr.com Wed Jan 8 06:51:04 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 23:51:04 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108054321.M58388@4wx.net> References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> <20030108054321.M58388@4wx.net> Message-ID: <1042005065.1655.258.camel@dev.showkilr.com> I have the current CVS build. and since 1.7 -H is in there Usage: /usr/lib/nagios/plugins/check_nrpe -H [-p port] [-c command] [-wt warn_time] [-ct crit_time] [-to to_sec] you can test the check_nrpe from the command line. /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 -c check_disk1 = Failure /usr/lib/nagios/plugins/check_nrpe -H 192.168.50.122 -c check_disk1 = Sucess Showkilr On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > I don't have the -H in mine. I'm running the latest released versions of the > plugins and nagios. > > hrishy, what versions are you running? > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Showkilr > To: hrishy > Sent: 07 Jan 2003 23:37:53 -0600 > Subject: Re: [Nagios-users] incoorect command line arguments supplied > > > Here is what needs to be in the checkcommand.cfg for check_nrpe to work > > > > define command{ > > command_name check_nrpe > > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ > > } > > > > Showkilr > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > Hi Donovan > > > > > > The format of command is > > > > > > define command{ > > > command_name check_nrpe > > > command_line /usr/local/nagios/libexec/check_nrpe > > > $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > is this command format right ? And oofcourse thanks > > > for takin your valuable timeout to respond ;-D > > > > > > regards > > > Hrishy > > > > > > > > > > > > --- donavan nelson wrote: > what is > > > the format of your check_nrpe entry in > > > > chkcommands.cfg? > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: hrishy > > > > To: donavan nelson > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > Subject: Re: [Nagios-users] incoorect command line > > > > arguments supplied > > > > > > > > > Hi Donavan > > > > > > > > > > Yep I have tried that...when i try that on the > > > > solaris > > > > > box it works does not complain at all.. > > > > > > > > > > when i try from my nagios host..only then this > > > > message > > > > > is thrown up > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > --- donavan nelson wrote: > run > > > > the > > > > > check_disk on the command line on the sun > > > > > > box to get the arguments > > > > > > sorted. change the config file, restart nrpe > > > > and > > > > > > all should be good. > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > > Subject: [Nagios-users] incoorect command line > > > > > > arguments supplied > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > My nagios host is running linux from where i > > > > want > > > > > > to > > > > > > > monitor my sun machine.My services.cfg file on > > > > > > nagios > > > > > > > host is like this > > > > > > > > > > > > > > define service{ > > > > > > > use generic-service ; > > > > > > > host_name unix1 > > > > > > > service_description /dev/dsk/c0t0d0s0 Free > > > > > > Space > > > > > > > is_volatile 0 > > > > > > > check_period 24x7 > > > > > > > max_check_attempts 3 > > > > > > > normal_check_interval 5 > > > > > > > retry_check_interval 1 > > > > > > > contact_groups unix-admins > > > > > > > notification_interval 120 > > > > > > > notification_period 24x7 > > > > > > > notification_options w,u,c,r > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > } > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > > > > > machine > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > -w > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > I am getting incorrect command line arguments > > > > > > > supplied..while as when i run the command in > > > > stand > > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > > > 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: > > > > > > > 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 > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > __________________________________________________ > > > > > 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 > > > > ------- End of Original 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 > > > > > > __________________________________________________ > > > 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: > > > 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 > ------- End of Original 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 hrishys at yahoo.co.uk Wed Jan 8 06:51:06 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:51:06 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <20030108053519.M18479@4wx.net> References: <20030108053519.M18479@4wx.net> Message-ID: <20030108055106.83750.qmail@web12606.mail.yahoo.com> Hi Donavan well when i tried from the command line of the nagios linux box i am able to run the check_nrpe ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users USERS OK - 2 users currently logged in and that command is sucessfull.. regards Hrishy --- donavan nelson wrote: > you can not use check_nrpe from the command line (I > tried :) ) it must be used > from within nagios. That will eliminate that > frustration. > > Have you tried it from within the nagios config > files? > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: hrishy > To: donavan nelson , nagios-users > > Sent: Wed, 8 Jan 2003 05:27:13 +0000 (GMT) > Subject: Re: [Nagios-users] incoorect command line > arguments supplied > > > Hi Donovan > > > > LOL..thanks for that encouragement..;-D.. > > > > 1)Yeah nrpe is restarted on the soalris box > > 2)Nagios is restarted on the Linux box > > 3)There is no firewall between them > > 4)I am able to do ping from the linux box to the > > solaris machine > > > > well from the commnad line of the nagios box..if i > > type > > ./check_nrpe -H 176.1.111.89 -p 5666 -c > check_users \ > > > > > -wt 20 -ct 10 -to 5 > > > > i am still getting > > Incorrect command line arguments supplied > > > > am i missing something.. > > > > regards > > Hrishy > > --- donavan nelson wrote: > > that is > > what I would expect. are you doing any > > > other check_nrpe commands? It > > > might give us a clue as to were to look next. > I'm > > > sure you have restarted > > > nrpe on the solaris box and nagios on the nagios > > > server? Any firewalls or > > > other network gadgets between you and the > solaris > > > box? > > > > > > And can you ping from the nagios server to the > > > solaris box? (I'm sure this is > > > way to basic at this point :) ) > > > > > > My time isn't too valuable right now....but you > are > > > welcome. > > > > > > .dn > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: hrishy > > > To: donavan nelson , > nagios-users > > > > > > Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) > > > Subject: Re: [Nagios-users] incoorect command > line > > > arguments supplied > > > > > > > Hi Donovan > > > > > > > > The format of command is > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line > > > /usr/local/nagios/libexec/check_nrpe > > > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > is this command format right ? And oofcourse > > > thanks > > > > for takin your valuable timeout to respond ;-D > > > > > > > > regards > > > > Hrishy > > > > > > > ***MONSTER SNIP*** > > > > __________________________________________________ > > 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 > ------- End of Original 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 __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Nathan.Hand at defence.gov.au Wed Jan 8 06:42:57 2003 From: Nathan.Hand at defence.gov.au (Hand, Nathan) Date: Wed, 8 Jan 2003 16:42:57 +1100 Subject: SEC: UNCLASS: host with multiple addresses Message-ID: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D61@c1clex02.cbr.defence.gov.au> I have a multi-homed host (multiple physical interfaces). The same services are running on each interface and I'd like to be notified if any interface fails. I can do this by creating multiple host entries (and I am doing it this way right now). define host { host_name myhost-eth0 address 192.168.1.1 } define host { host_name myhost-eth1 address 192.168.2.1 } But what I'd really like to do is something like this define host { host_name myhost address 192.168.1.1, 192.168.2.1 } Unfortunately this doesn't seem to work. I've also tried define host { host_name myhost address 192.168.1.1 address 192.168.2.1 } But as near as I can tell the second address overrides the first address. I couldn't find an answer in the FAQ, mailing list archive, or online documentation. Is there a better way of doing what I want to do? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 06:54:37 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 23:54:37 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108054630.83515.qmail@web12606.mail.yahoo.com> References: <20030108054630.83515.qmail@web12606.mail.yahoo.com> Message-ID: <1042005278.1444.261.camel@dev.showkilr.com> Yes $USER1$ is defined in resource.cfg it is set to the path of the plugins. # Sets $USER1$ to be the path to the plugins $USER1$=/usr/lib/nagios/plugins # Sets $USER2$ to be the path to event handlers #$USER2$=/usr/lib/nagios/plugins/eventhandlers Showkilr On Tue, 2003-01-07 at 23:46, hrishy wrote: > Hi Showkillr > > why is $USER1$ necessary did you define this macro > somewhere ? I did not understand the meaning of > $USER1$ > > > also from the command line when i say from the nagios > box..it works..where 176.1.111.89 is my sun solaris > box and port number is 5666 > > ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users > USERS OK - 2 users currently logged in > > regards > Hrishy > > > > --- Showkilr wrote: > Here is > what needs to be in the checkcommand.cfg for > > check_nrpe to work > > > > define command{ > > command_name check_nrpe > > command_line $USER1$/check_nrpe -H > > $HOSTADDRESS$ -c $ARG1$ > > } > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > Hi Donovan > > > > > > The format of command is > > > > > > define command{ > > > command_name check_nrpe > > > command_line > > /usr/local/nagios/libexec/check_nrpe > > > $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > is this command format right ? And oofcourse > > thanks > > > for takin your valuable timeout to respond ;-D > > > > > > regards > > > Hrishy > > > > > > > > > > > > --- donavan nelson wrote: > > > what is > > > the format of your check_nrpe entry in > > > > chkcommands.cfg? > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: hrishy > > > > To: donavan nelson > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > Subject: Re: [Nagios-users] incoorect command > > line > > > > arguments supplied > > > > > > > > > Hi Donavan > > > > > > > > > > Yep I have tried that...when i try that on the > > > > solaris > > > > > box it works does not complain at all.. > > > > > > > > > > when i try from my nagios host..only then this > > > > message > > > > > is thrown up > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > --- donavan nelson wrote: > > > run > > > > the > > > > > check_disk on the command line on the sun > > > > > > box to get the arguments > > > > > > sorted. change the config file, restart > > nrpe > > > > and > > > > > > all should be good. > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > > Subject: [Nagios-users] incoorect command > > line > > > > > > arguments supplied > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > My nagios host is running linux from where > > i > > > > want > > > > > > to > > > > > > > monitor my sun machine.My services.cfg > > file on > > > > > > nagios > > > > > > > host is like this > > > > > > > > > > > > > > define service{ > > > > > > > use generic-service ; > > > > > > > host_name unix1 > > > > > > > service_description /dev/dsk/c0t0d0s0 > > Free > > > > > > Space > > > > > > > is_volatile 0 > > > > > > > check_period 24x7 > > > > > > > max_check_attempts 3 > > > > > > > normal_check_interval 5 > > > > > > > retry_check_interval 1 > > > > > > > contact_groups unix-admins > > > > > > > notification_interval 120 > > > > > > > notification_period 24x7 > > > > > > > notification_options w,u,c,r > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > } > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > > solaris > > > > > > machine > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > -w > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > I am getting incorrect command line > > arguments > > > > > > > supplied..while as when i run the command > > in > > > > stand > > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > > > 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: > > > > > > > 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 > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > 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 > > > > ------- End of Original 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 > > > > > > > > __________________________________________________ > > > === message truncated === > > __________________________________________________ > 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: > 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 donavan at 4wx.net Wed Jan 8 07:04:32 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 8 Jan 2003 00:04:32 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108055106.83750.qmail@web12606.mail.yahoo.com> References: <20030108053519.M18479@4wx.net> <20030108055106.83750.qmail@web12606.mail.yahoo.com> Message-ID: <20030108060432.M31371@4wx.net> I have version 1.5 of check_nrpe....and my check_nrpe does work from the command line. My mistake. I must of had a configuration error....ekkk, sorry. I can even prove it :D [donavan at shzaam libexec]$ ./check_nrpe 192.168.94.253 -p 7777 -c check_public Traffic ok - Ave. In = 1.2 KB/s, Ave. Out = 861.0 B/s When you run ./check_nrpe -H 176.1.111.89 -p 5666 -c check_disk1 what happens? Below, it looks like you have command line parameters for the check_disk1 command, this would be incorrect. These go in the nrpe config file on the sun box. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: hrishy To: donavan nelson , nagios-users Sent: Wed, 8 Jan 2003 05:51:06 +0000 (GMT) Subject: Re: [Nagios-users] incoorect command line arguments supplied > Hi Donavan > > well when i tried from the command line of the nagios > linux box i am able to run the check_nrpe > > ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users > USERS OK - 2 users currently logged in > > and that command is sucessfull.. > > regards > Hrishy > > --- donavan nelson wrote: > you can > not use check_nrpe from the command line (I > > tried :) ) it must be used > > from within nagios. That will eliminate that > > frustration. > > > > Have you tried it from within the nagios config > > files? > > > > .dn > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: hrishy > > To: donavan nelson , nagios-users > > > > Sent: Wed, 8 Jan 2003 05:27:13 +0000 (GMT) > > Subject: Re: [Nagios-users] incoorect command line > > arguments supplied > > > > > Hi Donovan > > > > > > LOL..thanks for that encouragement..;-D.. > > > > > > 1)Yeah nrpe is restarted on the soalris box > > > 2)Nagios is restarted on the Linux box > > > 3)There is no firewall between them > > > 4)I am able to do ping from the linux box to the > > > solaris machine > > > > > > well from the commnad line of the nagios box..if i > > > type > > > ./check_nrpe -H 176.1.111.89 -p 5666 -c > > check_users \ > > > > > > > -wt 20 -ct 10 -to 5 > > > > > > i am still getting > > > Incorrect command line arguments supplied > > > > > > am i missing something.. > > > > > > regards > > > Hrishy > > > --- donavan nelson wrote: > > > that is > > > what I would expect. are you doing any > > > > other check_nrpe commands? It > > > > might give us a clue as to were to look next. > > I'm > > > > sure you have restarted > > > > nrpe on the solaris box and nagios on the nagios > > > > server? Any firewalls or > > > > other network gadgets between you and the > > solaris > > > > box? > > > > > > > > And can you ping from the nagios server to the > > > > solaris box? (I'm sure this is > > > > way to basic at this point :) ) > > > > > > > > My time isn't too valuable right now....but you > > are > > > > welcome. > > > > > > > > .dn > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: hrishy > > > > To: donavan nelson , > > nagios-users > > > > > > > > Sent: Wed, 8 Jan 2003 05:06:43 +0000 (GMT) > > > > Subject: Re: [Nagios-users] incoorect command > > line > > > > arguments supplied > > > > > > > > > Hi Donovan > > > > > > > > > > The format of command is > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line > > > > /usr/local/nagios/libexec/check_nrpe > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > is this command format right ? And oofcourse > > > > thanks > > > > > for takin your valuable timeout to respond ;-D > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > ***MONSTER SNIP*** > > > > > > __________________________________________________ > > > 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 > > ------- End of Original 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 > > __________________________________________________ > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ofb at budget-tech.com Wed Jan 8 07:03:27 2003 From: ofb at budget-tech.com (Olivier Beauchemin (Budget-Tech IT Consulting)) Date: Wed, 8 Jan 2003 01:03:27 -0500 Subject: check_ifoperstatus Message-ID: <010f01c2b6db$aa15e590$0401a8c0@moscow> I'm having some trouble getting check_ifoperstatus to work correctly, which might be my fault... From the command line, it works just fine, although failing to print the results on it's own line. ie. [obeauche at mrtg libexec]# ./check_ifoperstatus -H x.x.x.x -C foobar -d Serial0/0 OK: Interface Serial0/0 (index 1) is up.[obeauche at mrtg libexec]# With the same arguments in the service.cfg file, it's working... but I get "(No output returned from plugin)" as the status. So, what does this mean? How do I fix it? Thanks, Olivier ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 06:57:26 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:57:26 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <1042004273.1444.234.camel@dev.showkilr.com> References: <1042004273.1444.234.camel@dev.showkilr.com> Message-ID: <20030108055726.45283.qmail@web12608.mail.yahoo.com> Hi Showkilr Well once agin you are right ....;-D here the $USER1$ exapnds to /usr/local/nagios/libexec.. ;-D..so either configuration are essentially the same.. regards Hrishy --- Showkilr wrote: > Here is what needs to be in the checkcommand.cfg for > check_nrpe to work > > define command{ > command_name check_nrpe > command_line $USER1$/check_nrpe -H > $HOSTADDRESS$ -c $ARG1$ > } > > Showkilr > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > Hi Donovan > > > > The format of command is > > > > define command{ > > command_name check_nrpe > > command_line > /usr/local/nagios/libexec/check_nrpe > > $HOSTADDRESS$ -c $ARG1$ > > } > > > > is this command format right ? And oofcourse > thanks > > for takin your valuable timeout to respond ;-D > > > > regards > > Hrishy > > > > > > > > --- donavan nelson wrote: > > what is > > the format of your check_nrpe entry in > > > chkcommands.cfg? > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: hrishy > > > To: donavan nelson > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > Subject: Re: [Nagios-users] incoorect command > line > > > arguments supplied > > > > > > > Hi Donavan > > > > > > > > Yep I have tried that...when i try that on the > > > solaris > > > > box it works does not complain at all.. > > > > > > > > when i try from my nagios host..only then this > > > message > > > > is thrown up > > > > > > > > regards > > > > Hrishy > > > > > > > > --- donavan nelson wrote: > > run > > > the > > > > check_disk on the command line on the sun > > > > > box to get the arguments > > > > > sorted. change the config file, restart > nrpe > > > and > > > > > all should be good. > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: hrishy > > > > > To: nagios-users at lists.sourceforge.net > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > Subject: [Nagios-users] incoorect command > line > > > > > arguments supplied > > > > > > > > > > > Hi All > > > > > > > > > > > > My nagios host is running linux from where > i > > > want > > > > > to > > > > > > monitor my sun machine.My services.cfg > file on > > > > > nagios > > > > > > host is like this > > > > > > > > > > > > define service{ > > > > > > use generic-service ; > > > > > > host_name unix1 > > > > > > service_description /dev/dsk/c0t0d0s0 > Free > > > > > Space > > > > > > is_volatile 0 > > > > > > check_period 24x7 > > > > > > max_check_attempts 3 > > > > > > normal_check_interval 5 > > > > > > retry_check_interval 1 > > > > > > contact_groups unix-admins > > > > > > notification_interval 120 > > > > > > notification_period 24x7 > > > > > > notification_options w,u,c,r > > > > > > check_command check_nrpe!check_disk1 > > > > > > } > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > solaris > > > > > machine > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > -w > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > I am getting incorrect command line > arguments > > > > > > supplied..while as when i run the command > in > > > stand > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > 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: > > > > > > 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 > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > __________________________________________________ > > > > 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 > > > ------- End of Original 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 > > > > > __________________________________________________ > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 06:56:09 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 05:56:09 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <20030108054321.M58388@4wx.net> References: <20030108054321.M58388@4wx.net> Message-ID: <20030108055609.83942.qmail@web12606.mail.yahoo.com> Hi Donovan I am runing version 1.0 regards Hrishy --- donavan nelson wrote: > I don't have the -H in mine. I'm running the latest > released versions of the > plugins and nagios. > > hrishy, what versions are you running? > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Showkilr > To: hrishy > Sent: 07 Jan 2003 23:37:53 -0600 > Subject: Re: [Nagios-users] incoorect command line > arguments supplied > > > Here is what needs to be in the checkcommand.cfg > for check_nrpe to work > > > > define command{ > > command_name check_nrpe > > command_line $USER1$/check_nrpe -H > $HOSTADDRESS$ -c $ARG1$ > > } > > > > Showkilr > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > Hi Donovan > > > > > > The format of command is > > > > > > define command{ > > > command_name check_nrpe > > > command_line > /usr/local/nagios/libexec/check_nrpe > > > $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > is this command format right ? And oofcourse > thanks > > > for takin your valuable timeout to respond ;-D > > > > > > regards > > > Hrishy > > > > > > > > > > > > --- donavan nelson wrote: > > what is > > > the format of your check_nrpe entry in > > > > chkcommands.cfg? > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: hrishy > > > > To: donavan nelson > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > Subject: Re: [Nagios-users] incoorect command > line > > > > arguments supplied > > > > > > > > > Hi Donavan > > > > > > > > > > Yep I have tried that...when i try that on > the > > > > solaris > > > > > box it works does not complain at all.. > > > > > > > > > > when i try from my nagios host..only then > this > > > > message > > > > > is thrown up > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > --- donavan nelson wrote: > > run > > > > the > > > > > check_disk on the command line on the sun > > > > > > box to get the arguments > > > > > > sorted. change the config file, restart > nrpe > > > > and > > > > > > all should be good. > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > > Subject: [Nagios-users] incoorect command > line > > > > > > arguments supplied > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > My nagios host is running linux from > where i > > > > want > > > > > > to > > > > > > > monitor my sun machine.My services.cfg > file on > > > > > > nagios > > > > > > > host is like this > > > > > > > > > > > > > > define service{ > > > > > > > use generic-service ; > > > > > > > host_name unix1 > > > > > > > service_description > /dev/dsk/c0t0d0s0 Free > > > > > > Space > > > > > > > is_volatile 0 > > > > > > > check_period 24x7 > > > > > > > max_check_attempts 3 > > > > > > > normal_check_interval 5 > > > > > > > retry_check_interval 1 > > > > > > > contact_groups unix-admins > > > > > > > notification_interval 120 > > > > > > > notification_period 24x7 > > > > > > > notification_options w,u,c,r > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > } > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > solaris > > > > > > machine > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > -w > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > I am getting incorrect command line > arguments > > > > > > > supplied..while as when i run the > command in > > > > stand > > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > > > 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: > > > > > > > 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 > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do You Yahoo!? > > > > > Everything you'll ever need on one web page > > > > > from News and Sport to Email and Music > Charts > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 06:58:26 2003 From: sysadmin at showkilr.com (Showkilr) Date: 07 Jan 2003 23:58:26 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <1042005065.1655.258.camel@dev.showkilr.com> References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> <20030108054321.M58388@4wx.net> <1042005065.1655.258.camel@dev.showkilr.com> Message-ID: <1042005507.1444.263.camel@dev.showkilr.com> Going trough the sources.. -H was introduced in version 1.6 version 1.5 did not use -H Showkilr On Tue, 2003-01-07 at 23:51, Showkilr wrote: > I have the current CVS build. and since 1.7 -H is in there > > Usage: /usr/lib/nagios/plugins/check_nrpe -H [-p port] > [-c command] [-wt warn_time] [-ct crit_time] [-to to_sec] > > you can test the check_nrpe from the command line. > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 -c check_disk1 = > Failure > > /usr/lib/nagios/plugins/check_nrpe -H 192.168.50.122 -c check_disk1 = > Sucess > > > Showkilr > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > I don't have the -H in mine. I'm running the latest released versions of the > > plugins and nagios. > > > > hrishy, what versions are you running? > > > > .dn > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: Showkilr > > To: hrishy > > Sent: 07 Jan 2003 23:37:53 -0600 > > Subject: Re: [Nagios-users] incoorect command line arguments supplied > > > > > Here is what needs to be in the checkcommand.cfg for check_nrpe to work > > > > > > define command{ > > > command_name check_nrpe > > > command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > Hi Donovan > > > > > > > > The format of command is > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line /usr/local/nagios/libexec/check_nrpe > > > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > is this command format right ? And oofcourse thanks > > > > for takin your valuable timeout to respond ;-D > > > > > > > > regards > > > > Hrishy > > > > > > > > > > > > > > > > --- donavan nelson wrote: > what is > > > > the format of your check_nrpe entry in > > > > > chkcommands.cfg? > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: hrishy > > > > > To: donavan nelson > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > Subject: Re: [Nagios-users] incoorect command line > > > > > arguments supplied > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > Yep I have tried that...when i try that on the > > > > > solaris > > > > > > box it works does not complain at all.. > > > > > > > > > > > > when i try from my nagios host..only then this > > > > > message > > > > > > is thrown up > > > > > > > > > > > > regards > > > > > > Hrishy > > > > > > > > > > > > --- donavan nelson wrote: > run > > > > > the > > > > > > check_disk on the command line on the sun > > > > > > > box to get the arguments > > > > > > > sorted. change the config file, restart nrpe > > > > > and > > > > > > > all should be good. > > > > > > > > > > > > > > -- > > > > > > > Donavan Nelson > > > > > > > 4wx Networks > > > > > > > www.4wx.net > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: hrishy > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 (GMT) > > > > > > > Subject: [Nagios-users] incoorect command line > > > > > > > arguments supplied > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > My nagios host is running linux from where i > > > > > want > > > > > > > to > > > > > > > > monitor my sun machine.My services.cfg file on > > > > > > > nagios > > > > > > > > host is like this > > > > > > > > > > > > > > > > define service{ > > > > > > > > use generic-service ; > > > > > > > > host_name unix1 > > > > > > > > service_description /dev/dsk/c0t0d0s0 Free > > > > > > > Space > > > > > > > > is_volatile 0 > > > > > > > > check_period 24x7 > > > > > > > > max_check_attempts 3 > > > > > > > > normal_check_interval 5 > > > > > > > > retry_check_interval 1 > > > > > > > > contact_groups unix-admins > > > > > > > > notification_interval 120 > > > > > > > > notification_period 24x7 > > > > > > > > notification_options w,u,c,r > > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > > } > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun solaris > > > > > > > machine > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > > -w > > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > > > I am getting incorrect command line arguments > > > > > > > > supplied..while as when i run the command in > > > > > stand > > > > > > > > alone mode on the sun server it works.. > > > > > > > > > > > > > > > > Can anybody help..why this is happening > > > > > > > > > > > > > > > > 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: > > > > > > > > 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 > > > > > > > ------- End of Original Message ------- > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > > 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 > > > > > ------- End of Original 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 > > > > > > > > __________________________________________________ > > > > 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: > > > > 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 > > ------- End of Original 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 > _______________________________________________ > 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 hrishys at yahoo.co.uk Wed Jan 8 07:12:19 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 06:12:19 +0000 (GMT) Subject: incoorect command line arguments supplied In-Reply-To: <1042005065.1655.258.camel@dev.showkilr.com> References: <1042005065.1655.258.camel@dev.showkilr.com> Message-ID: <20030108061219.86025.qmail@web12606.mail.yahoo.com> Hio Showkilr Well dude once agin your suggestion worked like charm..;-D..but i guess there is a port problem.. now i am getting the error connection refused by host ./check_nrpe -H 192.168.50.122 -c check_disk1 Connection refused or timed out well thats strange..because earlier i never had thsi problem.. regards Hrishy --- Showkilr wrote: > I have the current CVS build. and since 1.7 -H is in > there > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > [-p port] > [-c command] [-wt warn_time] [-ct crit_time] [-to > to_sec] > > you can test the check_nrpe from the command line. > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 -c > check_disk1 = > Failure > > /usr/lib/nagios/plugins/check_nrpe -H 192.168.50.122 > -c check_disk1 = > Sucess > > > Showkilr > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > I don't have the -H in mine. I'm running the > latest released versions of the > > plugins and nagios. > > > > hrishy, what versions are you running? > > > > .dn > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: Showkilr > > To: hrishy > > Sent: 07 Jan 2003 23:37:53 -0600 > > Subject: Re: [Nagios-users] incoorect command line > arguments supplied > > > > > Here is what needs to be in the checkcommand.cfg > for check_nrpe to work > > > > > > define command{ > > > command_name check_nrpe > > > command_line $USER1$/check_nrpe -H > $HOSTADDRESS$ -c $ARG1$ > > > } > > > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > Hi Donovan > > > > > > > > The format of command is > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line > /usr/local/nagios/libexec/check_nrpe > > > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > is this command format right ? And oofcourse > thanks > > > > for takin your valuable timeout to respond ;-D > > > > > > > > regards > > > > Hrishy > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > what is > > > > the format of your check_nrpe entry in > > > > > chkcommands.cfg? > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: hrishy > > > > > To: donavan nelson > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > Subject: Re: [Nagios-users] incoorect > command line > > > > > arguments supplied > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > Yep I have tried that...when i try that on > the > > > > > solaris > > > > > > box it works does not complain at all.. > > > > > > > > > > > > when i try from my nagios host..only then > this > > > > > message > > > > > > is thrown up > > > > > > > > > > > > regards > > > > > > Hrishy > > > > > > > > > > > > --- donavan nelson > wrote: > run > > > > > the > > > > > > check_disk on the command line on the sun > > > > > > > box to get the arguments > > > > > > > sorted. change the config file, restart > nrpe > > > > > and > > > > > > > all should be good. > > > > > > > > > > > > > > -- > > > > > > > Donavan Nelson > > > > > > > 4wx Networks > > > > > > > www.4wx.net > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: hrishy > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > (GMT) > > > > > > > Subject: [Nagios-users] incoorect > command line > > > > > > > arguments supplied > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > My nagios host is running linux from > where i > > > > > want > > > > > > > to > > > > > > > > monitor my sun machine.My services.cfg > file on > > > > > > > nagios > > > > > > > > host is like this > > > > > > > > > > > > > > > > define service{ > > > > > > > > use generic-service ; > > > > > > > > host_name unix1 > > > > > > > > service_description > /dev/dsk/c0t0d0s0 Free > > > > > > > Space > > > > > > > > is_volatile 0 > > > > > > > > check_period 24x7 > > > > > > > > max_check_attempts 3 > > > > > > > > normal_check_interval 5 > > > > > > > > retry_check_interval 1 > > > > > > > > contact_groups unix-admins > > > > > > > > notification_interval 120 > > > > > > > > notification_period 24x7 > > > > > > > > notification_options w,u,c,r > > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > > } > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > solaris > > > > > > > machine > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > > -w > > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > > > I am getting incorrect command line > arguments > > > > > > > > supplied..while as when i run the > command in > > > > > stand > > > > > > > > alone mode on the sun server it > works.. > > > > > > > > > > > > > > > > Can anybody help..why this is > happening > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sean.knox at sbcglobal.net Wed Jan 8 07:24:24 2003 From: sean.knox at sbcglobal.net (Sean Knox) Date: Tue, 07 Jan 2003 22:24:24 -0800 Subject: APAN: All zero data in rrds In-Reply-To: <1042005507.1444.263.camel@dev.showkilr.com> References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> <20030108054321.M58388@4wx.net> <1042005065.1655.258.camel@dev.showkilr.com> <1042005507.1444.263.camel@dev.showkilr.com> Message-ID: <3E1BC418.4080005@sbcglobal.net> Hello, I have apan setup recording ping round trip times (as evident from apan.debug). However, checking the data stored in my rrd files, I see that my data are zeroes: # rrdtool fetch edge-router-PING.rrd AVERAGE 1042006800: 0.0000000000e+00 1042006860: 0.0000000000e+00 1042006920: 0.0000000000e+00 Apan shows it is working properly: Tue Jan 7 22:26:40 PST 2003 Args: ping router apan-ping 1042007200 150.0,30% 300.0,60% PING: 'ping' Ping: router, RTT: 0.40 Anyone have an idea what's causing this? Thanks, Sean ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 07:25:59 2003 From: sysadmin at showkilr.com (Showkilr) Date: 08 Jan 2003 00:25:59 -0600 Subject: connection timed out In-Reply-To: <20030108061854.59263.qmail@web12607.mail.yahoo.com> References: <20030108061854.59263.qmail@web12607.mail.yahoo.com> Message-ID: <1042007159.1655.276.camel@dev.showkilr.com> In your nrpe.cfg on the remote server your trying to check there is a line allowed_hosts= by default it reads allowed_hosts=127.0.0.1 change it to read something like this allowed_hosts=127.0.0.1,192.168.0.1 192.168.0.1 being the monitoring server interface IP Showkilr On Wed, 2003-01-08 at 00:18, hrishy wrote: > Hi Showkilr > > so you are the developer..hmm..nice thats really > cool..i am excited talki to you ;-D.. > > now to the problem.. > > when i run the command > > ./check_nrpe -H 176.1.111.89 -c check_disk1 > > Connection refused by host > > wheras earlier i never had this problem > > > > > --- hrishy wrote: > Hio > Showkilr > > > > Well dude once agin your suggestion worked like > > charm..;-D..but i guess there is a port problem.. > > > > now i am getting the error connection refused by > > host > > > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > > Connection refused or timed out > > > > well thats strange..because earlier i never had thsi > > problem.. > > > > regards > > Hrishy > > > > > > --- Showkilr wrote: > I > > have > > the current CVS build. and since 1.7 -H is in > > > there > > > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > > [-p port] > > > [-c command] [-wt warn_time] [-ct crit_time] [-to > > > to_sec] > > > > > > you can test the check_nrpe from the command line. > > > > > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 > > -c > > > check_disk1 = > > > Failure > > > > > > /usr/lib/nagios/plugins/check_nrpe -H > > 192.168.50.122 > > > -c check_disk1 = > > > Sucess > > > > > > > > > Showkilr > > > > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > > > I don't have the -H in mine. I'm running the > > > latest released versions of the > > > > plugins and nagios. > > > > > > > > hrishy, what versions are you running? > > > > > > > > .dn > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: Showkilr > > > > To: hrishy > > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > > Subject: Re: [Nagios-users] incoorect command > > line > > > arguments supplied > > > > > > > > > Here is what needs to be in the > > checkcommand.cfg > > > for check_nrpe to work > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line $USER1$/check_nrpe -H > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > Showkilr > > > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > > Hi Donovan > > > > > > > > > > > > The format of command is > > > > > > > > > > > > define command{ > > > > > > command_name check_nrpe > > > > > > command_line > > > /usr/local/nagios/libexec/check_nrpe > > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > } > > > > > > > > > > > > is this command format right ? And oofcourse > > > thanks > > > > > > for takin your valuable timeout to respond > > ;-D > > > > > > > > > > > > regards > > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > > > > > what is > > > > > > the format of your check_nrpe entry in > > > > > > > chkcommands.cfg? > > > > > > > > > > > > > > -- > > > > > > > Donavan Nelson > > > > > > > 4wx Networks > > > > > > > www.4wx.net > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: hrishy > > > > > > > To: donavan nelson > > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > > > Subject: Re: [Nagios-users] incoorect > > > command line > > > > > > > arguments supplied > > > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > > > Yep I have tried that...when i try that > > on > > > the > > > > > > > solaris > > > > > > > > box it works does not complain at all.. > > > > > > > > > > > > > > > > when i try from my nagios host..only > > then > > > this > > > > > > > message > > > > > > > > is thrown up > > > > > > > > > > > > > > > > regards > > > > > > > > Hrishy > > > > > > > > > > > > > > > > --- donavan nelson > > > wrote: > run > > > > > > > the > > > > > > > > check_disk on the command line on the > > sun > > > > > > > > > box to get the arguments > > > > > > > > > sorted. change the config file, > > restart > > > nrpe > > > > > > > and > > > > > > > > > all should be good. > > > > > > > > > > > > > > > > > > -- > > > > > > > > > Donavan Nelson > > > > > > > > > 4wx Networks > > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > > > ---------- Original Message > > ----------- > > > > > > > > > From: hrishy > > > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > > > (GMT) > > > > > > > > > Subject: [Nagios-users] incoorect > > > command line > > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > > > > > My nagios host is running linux from > > > where i > > > > > > > want > > > > > > > > > to > > > > > > > > > > monitor my sun machine.My > > services.cfg > > > file on > > > > > > > > > nagios > > > > > > > > > > host is like this > > > > > > > > > > > > > > > > > > > > define service{ > > > > > > > > > > use generic-service ; > > > > > > > > > > host_name unix1 > > > > > > > > > > service_description > > > /dev/dsk/c0t0d0s0 Free > > > > > > > > > Space > > > > > > > > > > is_volatile 0 > > > > > > > > > > check_period 24x7 > > > > > > > > > > max_check_attempts 3 > > > > > > > > > > normal_check_interval 5 > > > > > > > > > > retry_check_interval 1 > > > > > > > > > > contact_groups unix-admins > > > > > > > > > > notification_interval 120 > > > > > > > > > > notification_period 24x7 > > > > > > > > > > notification_options w,u,c,r > > > > > > > > > > check_command > > check_nrpe!check_disk1 > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the > > sun > > > solaris > > > > > > > > > machine > > > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > === message truncated === > > __________________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 07:18:54 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 06:18:54 +0000 (GMT) Subject: connection timed out In-Reply-To: <20030108061219.86025.qmail@web12606.mail.yahoo.com> References: <20030108061219.86025.qmail@web12606.mail.yahoo.com> Message-ID: <20030108061854.59263.qmail@web12607.mail.yahoo.com> Hi Showkilr so you are the developer..hmm..nice thats really cool..i am excited talki to you ;-D.. now to the problem.. when i run the command ./check_nrpe -H 176.1.111.89 -c check_disk1 Connection refused by host wheras earlier i never had this problem --- hrishy wrote: > Hio Showkilr > > Well dude once agin your suggestion worked like > charm..;-D..but i guess there is a port problem.. > > now i am getting the error connection refused by > host > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > Connection refused or timed out > > well thats strange..because earlier i never had thsi > problem.. > > regards > Hrishy > > > --- Showkilr wrote: > I > have > the current CVS build. and since 1.7 -H is in > > there > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > [-p port] > > [-c command] [-wt warn_time] [-ct crit_time] [-to > > to_sec] > > > > you can test the check_nrpe from the command line. > > > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 > -c > > check_disk1 = > > Failure > > > > /usr/lib/nagios/plugins/check_nrpe -H > 192.168.50.122 > > -c check_disk1 = > > Sucess > > > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > > I don't have the -H in mine. I'm running the > > latest released versions of the > > > plugins and nagios. > > > > > > hrishy, what versions are you running? > > > > > > .dn > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: Showkilr > > > To: hrishy > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > Subject: Re: [Nagios-users] incoorect command > line > > arguments supplied > > > > > > > Here is what needs to be in the > checkcommand.cfg > > for check_nrpe to work > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line $USER1$/check_nrpe -H > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > Showkilr > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > Hi Donovan > > > > > > > > > > The format of command is > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line > > /usr/local/nagios/libexec/check_nrpe > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > is this command format right ? And oofcourse > > thanks > > > > > for takin your valuable timeout to respond > ;-D > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > > > what is > > > > > the format of your check_nrpe entry in > > > > > > chkcommands.cfg? > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: donavan nelson > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > > Subject: Re: [Nagios-users] incoorect > > command line > > > > > > arguments supplied > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > Yep I have tried that...when i try that > on > > the > > > > > > solaris > > > > > > > box it works does not complain at all.. > > > > > > > > > > > > > > when i try from my nagios host..only > then > > this > > > > > > message > > > > > > > is thrown up > > > > > > > > > > > > > > regards > > > > > > > Hrishy > > > > > > > > > > > > > > --- donavan nelson > > wrote: > run > > > > > > the > > > > > > > check_disk on the command line on the > sun > > > > > > > > box to get the arguments > > > > > > > > sorted. change the config file, > restart > > nrpe > > > > > > and > > > > > > > > all should be good. > > > > > > > > > > > > > > > > -- > > > > > > > > Donavan Nelson > > > > > > > > 4wx Networks > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > ---------- Original Message > ----------- > > > > > > > > From: hrishy > > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > > (GMT) > > > > > > > > Subject: [Nagios-users] incoorect > > command line > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > > > My nagios host is running linux from > > where i > > > > > > want > > > > > > > > to > > > > > > > > > monitor my sun machine.My > services.cfg > > file on > > > > > > > > nagios > > > > > > > > > host is like this > > > > > > > > > > > > > > > > > > define service{ > > > > > > > > > use generic-service ; > > > > > > > > > host_name unix1 > > > > > > > > > service_description > > /dev/dsk/c0t0d0s0 Free > > > > > > > > Space > > > > > > > > > is_volatile 0 > > > > > > > > > check_period 24x7 > > > > > > > > > max_check_attempts 3 > > > > > > > > > normal_check_interval 5 > > > > > > > > > retry_check_interval 1 > > > > > > > > > contact_groups unix-admins > > > > > > > > > notification_interval 120 > > > > > > > > > notification_period 24x7 > > > > > > > > > notification_options w,u,c,r > > > > > > > > > check_command > check_nrpe!check_disk1 > > > > > > > > > } > > > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the > sun > > solaris > > > > > > > > machine > > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 07:28:23 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 06:28:23 +0000 (GMT) Subject: connection timed out In-Reply-To: <1042007159.1655.276.camel@dev.showkilr.com> References: <1042007159.1655.276.camel@dev.showkilr.com> Message-ID: <20030108062823.48167.qmail@web12608.mail.yahoo.com> Hi Showkilr Yep i have done this .... if i specify the port number it seems to be working ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users USERS OK - 2 users currently logged in regards Hrishy --- Showkilr wrote: > In your nrpe.cfg on the remote server your trying to > check > there is a line allowed_hosts= > > by default it reads > > allowed_hosts=127.0.0.1 > > change it to read something like this > > allowed_hosts=127.0.0.1,192.168.0.1 > > > 192.168.0.1 being the monitoring server interface IP > > Showkilr > > > On Wed, 2003-01-08 at 00:18, hrishy wrote: > > Hi Showkilr > > > > so you are the developer..hmm..nice thats really > > cool..i am excited talki to you ;-D.. > > > > now to the problem.. > > > > when i run the command > > > > ./check_nrpe -H 176.1.111.89 -c check_disk1 > > > > Connection refused by host > > > > wheras earlier i never had this problem > > > > > > > > > > --- hrishy wrote: > Hio > > Showkilr > > > > > > Well dude once agin your suggestion worked like > > > charm..;-D..but i guess there is a port > problem.. > > > > > > now i am getting the error connection refused by > > > host > > > > > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > > > Connection refused or timed out > > > > > > well thats strange..because earlier i never had > thsi > > > problem.. > > > > > > regards > > > Hrishy > > > > > > > > > --- Showkilr wrote: > I > > > have > > > the current CVS build. and since 1.7 -H is in > > > > there > > > > > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > > > [-p port] > > > > [-c command] [-wt warn_time] [-ct crit_time] > [-to > > > > to_sec] > > > > > > > > you can test the check_nrpe from the command > line. > > > > > > > > /usr/lib/nagios/plugins/check_nrpe > 192.168.50.122 > > > -c > > > > check_disk1 = > > > > Failure > > > > > > > > /usr/lib/nagios/plugins/check_nrpe -H > > > 192.168.50.122 > > > > -c check_disk1 = > > > > Sucess > > > > > > > > > > > > Showkilr > > > > > > > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson > wrote: > > > > > I don't have the -H in mine. I'm running > the > > > > latest released versions of the > > > > > plugins and nagios. > > > > > > > > > > hrishy, what versions are you running? > > > > > > > > > > .dn > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: Showkilr > > > > > To: hrishy > > > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > > > Subject: Re: [Nagios-users] incoorect > command > > > line > > > > arguments supplied > > > > > > > > > > > Here is what needs to be in the > > > checkcommand.cfg > > > > for check_nrpe to work > > > > > > > > > > > > define command{ > > > > > > command_name check_nrpe > > > > > > command_line $USER1$/check_nrpe > -H > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > } > > > > > > > > > > > > Showkilr > > > > > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > > > Hi Donovan > > > > > > > > > > > > > > The format of command is > > > > > > > > > > > > > > define command{ > > > > > > > command_name check_nrpe > > > > > > > command_line > > > > /usr/local/nagios/libexec/check_nrpe > > > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > > } > > > > > > > > > > > > > > is this command format right ? And > oofcourse > > > > thanks > > > > > > > for takin your valuable timeout to > respond > > > ;-D > > > > > > > > > > > > > > regards > > > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- donavan nelson > wrote: > > > > > > > > what is > > > > > > > the format of your check_nrpe entry in > > > > > > > > chkcommands.cfg? > > > > > > > > > > > > > > > > -- > > > > > > > > Donavan Nelson > > > > > > > > 4wx Networks > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > ---------- Original Message > ----------- > > > > > > > > From: hrishy > > > > > > > > To: donavan nelson > > > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 > (GMT) > > > > > > > > Subject: Re: [Nagios-users] incoorect > > > > command line > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > > > > > Yep I have tried that...when i try > that > > > on > > > > the > > > > > > > > solaris > > > > > > > > > box it works does not complain at > all.. > > > > > > > > > > > > > > > > > > when i try from my nagios host..only > > > then > > > > this > > > > > > > > message > > > > > > > > > is thrown up > > > > > > > > > > > > > > > > > > regards > > > > > > > > > Hrishy > > > > > > > > > > > > > > > > > > --- donavan nelson > > > > > wrote: > run > > > > > > > > the > > > > > > > > > check_disk on the command line on > the > > > sun > > > > > > > > > > box to get the arguments > > > > > > > > > > sorted. change the config file, > > > restart > > > > nrpe > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 07:15:41 2003 From: sysadmin at showkilr.com (Showkilr) Date: 08 Jan 2003 00:15:41 -0600 Subject: incoorect command line arguments supplied In-Reply-To: <20030108061219.86025.qmail@web12606.mail.yahoo.com> References: <20030108061219.86025.qmail@web12606.mail.yahoo.com> Message-ID: <1042006542.1444.271.camel@dev.showkilr.com> Try your servers IP address not Mine.. RFC1918 will not route.. Showkilr On Wed, 2003-01-08 at 00:12, hrishy wrote: > Hio Showkilr > > Well dude once agin your suggestion worked like > charm..;-D..but i guess there is a port problem.. > > now i am getting the error connection refused by host > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > Connection refused or timed out > > well thats strange..because earlier i never had thsi > problem.. > > regards > Hrishy > > > --- Showkilr wrote: > I have > the current CVS build. and since 1.7 -H is in > > there > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > [-p port] > > [-c command] [-wt warn_time] [-ct crit_time] [-to > > to_sec] > > > > you can test the check_nrpe from the command line. > > > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 -c > > check_disk1 = > > Failure > > > > /usr/lib/nagios/plugins/check_nrpe -H 192.168.50.122 > > -c check_disk1 = > > Sucess > > > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > > I don't have the -H in mine. I'm running the > > latest released versions of the > > > plugins and nagios. > > > > > > hrishy, what versions are you running? > > > > > > .dn > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: Showkilr > > > To: hrishy > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > Subject: Re: [Nagios-users] incoorect command line > > arguments supplied > > > > > > > Here is what needs to be in the checkcommand.cfg > > for check_nrpe to work > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line $USER1$/check_nrpe -H > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > Showkilr > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > Hi Donovan > > > > > > > > > > The format of command is > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line > > /usr/local/nagios/libexec/check_nrpe > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > is this command format right ? And oofcourse > > thanks > > > > > for takin your valuable timeout to respond ;-D > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > > what is > > > > > the format of your check_nrpe entry in > > > > > > chkcommands.cfg? > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: donavan nelson > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > > Subject: Re: [Nagios-users] incoorect > > command line > > > > > > arguments supplied > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > Yep I have tried that...when i try that on > > the > > > > > > solaris > > > > > > > box it works does not complain at all.. > > > > > > > > > > > > > > when i try from my nagios host..only then > > this > > > > > > message > > > > > > > is thrown up > > > > > > > > > > > > > > regards > > > > > > > Hrishy > > > > > > > > > > > > > > --- donavan nelson > > wrote: > run > > > > > > the > > > > > > > check_disk on the command line on the sun > > > > > > > > box to get the arguments > > > > > > > > sorted. change the config file, restart > > nrpe > > > > > > and > > > > > > > > all should be good. > > > > > > > > > > > > > > > > -- > > > > > > > > Donavan Nelson > > > > > > > > 4wx Networks > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > > From: hrishy > > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > > (GMT) > > > > > > > > Subject: [Nagios-users] incoorect > > command line > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > > > My nagios host is running linux from > > where i > > > > > > want > > > > > > > > to > > > > > > > > > monitor my sun machine.My services.cfg > > file on > > > > > > > > nagios > > > > > > > > > host is like this > > > > > > > > > > > > > > > > > > define service{ > > > > > > > > > use generic-service ; > > > > > > > > > host_name unix1 > > > > > > > > > service_description > > /dev/dsk/c0t0d0s0 Free > > > > > > > > Space > > > > > > > > > is_volatile 0 > > > > > > > > > check_period 24x7 > > > > > > > > > max_check_attempts 3 > > > > > > > > > normal_check_interval 5 > > > > > > > > > retry_check_interval 1 > > > > > > > > > contact_groups unix-admins > > > > > > > > > notification_interval 120 > > > > > > > > > notification_period 24x7 > > > > > > > > > notification_options w,u,c,r > > > > > > > > > check_command check_nrpe!check_disk1 > > > > > > > > > } > > > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the sun > > solaris > > > > > > > > machine > > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > command[check_disk1]=/usr/nagios/libexec/check_disk > > > > > > > > -w > > > > > > > > > 20 -c 10 -m /usr > > > > > > > > > > > > > > > > > > I am getting incorrect command line > > arguments > > > > > > > > > supplied..while as when i run the > > command in > > > > > > stand > > > > > > > > > alone mode on the sun server it > > works.. > > > > > > > > > > > > > > > > > > Can anybody help..why this is > > happening > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > === message truncated === > > __________________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 07:22:37 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 06:22:37 +0000 (GMT) Subject: connection timed out port number conflict In-Reply-To: <20030108061219.86025.qmail@web12606.mail.yahoo.com> References: <20030108061219.86025.qmail@web12606.mail.yahoo.com> Message-ID: <20030108062237.48024.qmail@web12605.mail.yahoo.com> Hi Showkilr so you are the developer..hmm..nice thats really cool..i am excited talki to you ;-D.. now to the problem.. when i run the command ./check_nrpe -H 176.1.111.89 -c check_disk1 Connection refused by host but when i try ./check_nrpe -H 176.1.111.89 -p 5666 -c check_disk1 DISK OK - [780265 kB (39%) free on /usr] with port number it seems to be working ;-D regards Hrishy --- hrishy wrote: > Hio Showkilr > > Well dude once agin your suggestion worked like > charm..;-D..but i guess there is a port problem.. > > now i am getting the error connection refused by > host > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > Connection refused or timed out > > well thats strange..because earlier i never had thsi > problem.. > > regards > Hrishy > > > --- Showkilr wrote: > I > have > the current CVS build. and since 1.7 -H is in > > there > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > [-p port] > > [-c command] [-wt warn_time] [-ct crit_time] [-to > > to_sec] > > > > you can test the check_nrpe from the command line. > > > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 > -c > > check_disk1 = > > Failure > > > > /usr/lib/nagios/plugins/check_nrpe -H > 192.168.50.122 > > -c check_disk1 = > > Sucess > > > > > > Showkilr > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > > I don't have the -H in mine. I'm running the > > latest released versions of the > > > plugins and nagios. > > > > > > hrishy, what versions are you running? > > > > > > .dn > > > > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: Showkilr > > > To: hrishy > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > Subject: Re: [Nagios-users] incoorect command > line > > arguments supplied > > > > > > > Here is what needs to be in the > checkcommand.cfg > > for check_nrpe to work > > > > > > > > define command{ > > > > command_name check_nrpe > > > > command_line $USER1$/check_nrpe -H > > $HOSTADDRESS$ -c $ARG1$ > > > > } > > > > > > > > Showkilr > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > Hi Donovan > > > > > > > > > > The format of command is > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line > > /usr/local/nagios/libexec/check_nrpe > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > is this command format right ? And oofcourse > > thanks > > > > > for takin your valuable timeout to respond > ;-D > > > > > > > > > > regards > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > > > what is > > > > > the format of your check_nrpe entry in > > > > > > chkcommands.cfg? > > > > > > > > > > > > -- > > > > > > Donavan Nelson > > > > > > 4wx Networks > > > > > > www.4wx.net > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > From: hrishy > > > > > > To: donavan nelson > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > > Subject: Re: [Nagios-users] incoorect > > command line > > > > > > arguments supplied > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > Yep I have tried that...when i try that > on > > the > > > > > > solaris > > > > > > > box it works does not complain at all.. > > > > > > > > > > > > > > when i try from my nagios host..only > then > > this > > > > > > message > > > > > > > is thrown up > > > > > > > > > > > > > > regards > > > > > > > Hrishy > > > > > > > > > > > > > > --- donavan nelson > > wrote: > run > > > > > > the > > > > > > > check_disk on the command line on the > sun > > > > > > > > box to get the arguments > > > > > > > > sorted. change the config file, > restart > > nrpe > > > > > > and > > > > > > > > all should be good. > > > > > > > > > > > > > > > > -- > > > > > > > > Donavan Nelson > > > > > > > > 4wx Networks > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > ---------- Original Message > ----------- > > > > > > > > From: hrishy > > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > > (GMT) > > > > > > > > Subject: [Nagios-users] incoorect > > command line > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > > > My nagios host is running linux from > > where i > > > > > > want > > > > > > > > to > > > > > > > > > monitor my sun machine.My > services.cfg > > file on > > > > > > > > nagios > > > > > > > > > host is like this > > > > > > > > > > > > > > > > > > define service{ > > > > > > > > > use generic-service ; > > > > > > > > > host_name unix1 > > > > > > > > > service_description > > /dev/dsk/c0t0d0s0 Free > > > > > > > > Space > > > > > > > > > is_volatile 0 > > > > > > > > > check_period 24x7 > > > > > > > > > max_check_attempts 3 > > > > > > > > > normal_check_interval 5 > > > > > > > > > retry_check_interval 1 > > > > > > > > > contact_groups unix-admins > > > > > > > > > notification_interval 120 > > > > > > > > > notification_period 24x7 > > > > > > > > > notification_options w,u,c,r > > > > > > > > > check_command > check_nrpe!check_disk1 > > > > > > > > > } > > > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the > sun > > solaris > > > > > > > > machine > > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From desmondc at bii.a-star.edu.sg Wed Jan 8 07:41:58 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Wed, 8 Jan 2003 14:41:58 +0800 Subject: [Apan-users] APAN: All zero data in rrds References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> <20030108054321.M58388@4wx.net> <1042005065.1655.258.camel@dev.showkilr.com> <1042005507.1444.263.camel@dev.showkilr.com> <3E1BC418.4080005@sbcglobal.net> Message-ID: <005101c2b6e1$0b059fd0$0b79a8c0@desmond> You're having the same problem as I do... Fredrik has pointed out to me that it might be a problem to do with some math-lib. I haven't had the solution yet.. ====================================== Desmond Chia. BioInformatics Institute Laboratories for Information Technology 21 Heng Mui Keng Terrace Level 3, #03-36 Singapore 119613 desmondc at bii.a-star.edu.sg http://student.bii.a-star.edu.sg/~desmondc/ ====================================== ----- Original Message ----- From: "Sean Knox" To: "nagios-users" ; ; "Fredrik W?nglund" Sent: Wednesday, January 08, 2003 2:24 PM Subject: [Apan-users] APAN: All zero data in rrds > Hello, I have apan setup recording ping round trip times (as evident > from apan.debug). However, checking the data stored in my rrd files, I > see that my data are zeroes: > > # rrdtool fetch edge-router-PING.rrd AVERAGE > > 1042006800: 0.0000000000e+00 > 1042006860: 0.0000000000e+00 > 1042006920: 0.0000000000e+00 > > Apan shows it is working properly: > > Tue Jan 7 22:26:40 PST 2003 Args: ping router apan-ping 1042007200 > 150.0,30% 300.0,60% > PING: 'ping' > Ping: router, RTT: 0.40 > > Anyone have an idea what's causing this? > > Thanks, > Sean > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Apan-users mailing list > Apan-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/apan-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 07:29:37 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 06:29:37 +0000 (GMT) Subject: connection timed out In-Reply-To: <1042007159.1655.276.camel@dev.showkilr.com> References: <1042007159.1655.276.camel@dev.showkilr.com> Message-ID: <20030108062937.93575.qmail@web12604.mail.yahoo.com> Hi Showkilr Yep i have done this .... if i specify the port number it seems to be working ./check_nrpe -H 176.1.111.89 -p 5666 -c check_users USERS OK - 2 users currently logged in so in my commnads.cfg now i have coded define command{ command_name check_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ } regards Hrishy --- Showkilr wrote: > In your nrpe.cfg on the remote server your trying to > check > there is a line allowed_hosts= > > by default it reads > > allowed_hosts=127.0.0.1 > > change it to read something like this > > allowed_hosts=127.0.0.1,192.168.0.1 > > > 192.168.0.1 being the monitoring server interface IP > > Showkilr > > > On Wed, 2003-01-08 at 00:18, hrishy wrote: > > Hi Showkilr > > > > so you are the developer..hmm..nice thats really > > cool..i am excited talki to you ;-D.. > > > > now to the problem.. > > > > when i run the command > > > > ./check_nrpe -H 176.1.111.89 -c check_disk1 > > > > Connection refused by host > > > > wheras earlier i never had this problem > > > > > > > > > > --- hrishy wrote: > Hio > > Showkilr > > > > > > Well dude once agin your suggestion worked like > > > charm..;-D..but i guess there is a port > problem.. > > > > > > now i am getting the error connection refused by > > > host > > > > > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > > > Connection refused or timed out > > > > > > well thats strange..because earlier i never had > thsi > > > problem.. > > > > > > regards > > > Hrishy > > > > > > > > > --- Showkilr wrote: > I > > > have > > > the current CVS build. and since 1.7 -H is in > > > > there > > > > > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > > > [-p port] > > > > [-c command] [-wt warn_time] [-ct crit_time] > [-to > > > > to_sec] > > > > > > > > you can test the check_nrpe from the command > line. > > > > > > > > /usr/lib/nagios/plugins/check_nrpe > 192.168.50.122 > > > -c > > > > check_disk1 = > > > > Failure > > > > > > > > /usr/lib/nagios/plugins/check_nrpe -H > > > 192.168.50.122 > > > > -c check_disk1 = > > > > Sucess > > > > > > > > > > > > Showkilr > > > > > > > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson > wrote: > > > > > I don't have the -H in mine. I'm running > the > > > > latest released versions of the > > > > > plugins and nagios. > > > > > > > > > > hrishy, what versions are you running? > > > > > > > > > > .dn > > > > > > > > > > -- > > > > > Donavan Nelson > > > > > 4wx Networks > > > > > www.4wx.net > > > > > > > > > > ---------- Original Message ----------- > > > > > From: Showkilr > > > > > To: hrishy > > > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > > > Subject: Re: [Nagios-users] incoorect > command > > > line > > > > arguments supplied > > > > > > > > > > > Here is what needs to be in the > > > checkcommand.cfg > > > > for check_nrpe to work > > > > > > > > > > > > define command{ > > > > > > command_name check_nrpe > > > > > > command_line $USER1$/check_nrpe > -H > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > } > > > > > > > > > > > > Showkilr > > > > > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > > > Hi Donovan > > > > > > > > > > > > > > The format of command is > > > > > > > > > > > > > > define command{ > > > > > > > command_name check_nrpe > > > > > > > command_line > > > > /usr/local/nagios/libexec/check_nrpe > > > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > > } > > > > > > > > > > > > > > is this command format right ? And > oofcourse > > > > thanks > > > > > > > for takin your valuable timeout to > respond > > > ;-D > > > > > > > > > > > > > > regards > > > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > > > > > > > > > --- donavan nelson > wrote: > > > > > > > > what is > > > > > > > the format of your check_nrpe entry in > > > > > > > > chkcommands.cfg? > > > > > > > > > > > > > > > > -- > > > > > > > > Donavan Nelson > > > > > > > > 4wx Networks > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > ---------- Original Message > ----------- > > > > > > > > From: hrishy > > > > > > > > To: donavan nelson > > > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 > (GMT) > > > > > > > > Subject: Re: [Nagios-users] incoorect > > > > command line > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > > > > > Yep I have tried that...when i try > that > > > on > > > > the > > > > > > > > solaris > > > > > > > > > box it works does not complain at > all.. > > > > > > > > > > > > > > > > > > when i try from my nagios host..only > > > then > > > > this > > > > > > > > message > > > > > > > > > is thrown up > > > > > > > > > > > > > > > > > > regards > > > > > > > > > Hrishy > > > > > > > > > > > > > > > > > > --- donavan nelson > > > > > wrote: > run > > > > > > > > the > > > > > > > > > check_disk on the command line on > the > > > sun > > > > > > > > > > box to get the arguments > > > > > > > > > > sorted. change the config file, > > > restart > > > > nrpe > === message truncated === __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Wed Jan 8 07:23:49 2003 From: sysadmin at showkilr.com (Showkilr) Date: 08 Jan 2003 00:23:49 -0600 Subject: connection timed out In-Reply-To: <20030108061854.59263.qmail@web12607.mail.yahoo.com> References: <20030108061854.59263.qmail@web12607.mail.yahoo.com> Message-ID: <1042007029.1655.273.camel@dev.showkilr.com> No Im not the developer.. Ethan IS I just have submitted a few patches like other have. Showkilr On Wed, 2003-01-08 at 00:18, hrishy wrote: > Hi Showkilr > > so you are the developer..hmm..nice thats really > cool..i am excited talki to you ;-D.. > > now to the problem.. > > when i run the command > > ./check_nrpe -H 176.1.111.89 -c check_disk1 > > Connection refused by host > > wheras earlier i never had this problem > > > > > --- hrishy wrote: > Hio > Showkilr > > > > Well dude once agin your suggestion worked like > > charm..;-D..but i guess there is a port problem.. > > > > now i am getting the error connection refused by > > host > > > > ./check_nrpe -H 192.168.50.122 -c check_disk1 > > Connection refused or timed out > > > > well thats strange..because earlier i never had thsi > > problem.. > > > > regards > > Hrishy > > > > > > --- Showkilr wrote: > I > > have > > the current CVS build. and since 1.7 -H is in > > > there > > > > > > Usage: /usr/lib/nagios/plugins/check_nrpe -H > > > [-p port] > > > [-c command] [-wt warn_time] [-ct crit_time] [-to > > > to_sec] > > > > > > you can test the check_nrpe from the command line. > > > > > > /usr/lib/nagios/plugins/check_nrpe 192.168.50.122 > > -c > > > check_disk1 = > > > Failure > > > > > > /usr/lib/nagios/plugins/check_nrpe -H > > 192.168.50.122 > > > -c check_disk1 = > > > Sucess > > > > > > > > > Showkilr > > > > > > > > > On Tue, 2003-01-07 at 23:43, donavan nelson wrote: > > > > I don't have the -H in mine. I'm running the > > > latest released versions of the > > > > plugins and nagios. > > > > > > > > hrishy, what versions are you running? > > > > > > > > .dn > > > > > > > > -- > > > > Donavan Nelson > > > > 4wx Networks > > > > www.4wx.net > > > > > > > > ---------- Original Message ----------- > > > > From: Showkilr > > > > To: hrishy > > > > Sent: 07 Jan 2003 23:37:53 -0600 > > > > Subject: Re: [Nagios-users] incoorect command > > line > > > arguments supplied > > > > > > > > > Here is what needs to be in the > > checkcommand.cfg > > > for check_nrpe to work > > > > > > > > > > define command{ > > > > > command_name check_nrpe > > > > > command_line $USER1$/check_nrpe -H > > > $HOSTADDRESS$ -c $ARG1$ > > > > > } > > > > > > > > > > Showkilr > > > > > > > > > > On Tue, 2003-01-07 at 23:06, hrishy wrote: > > > > > > Hi Donovan > > > > > > > > > > > > The format of command is > > > > > > > > > > > > define command{ > > > > > > command_name check_nrpe > > > > > > command_line > > > /usr/local/nagios/libexec/check_nrpe > > > > > > $HOSTADDRESS$ -c $ARG1$ > > > > > > } > > > > > > > > > > > > is this command format right ? And oofcourse > > > thanks > > > > > > for takin your valuable timeout to respond > > ;-D > > > > > > > > > > > > regards > > > > > > Hrishy > > > > > > > > > > > > > > > > > > > > > > > > --- donavan nelson wrote: > > > > > > what is > > > > > > the format of your check_nrpe entry in > > > > > > > chkcommands.cfg? > > > > > > > > > > > > > > -- > > > > > > > Donavan Nelson > > > > > > > 4wx Networks > > > > > > > www.4wx.net > > > > > > > > > > > > > > ---------- Original Message ----------- > > > > > > > From: hrishy > > > > > > > To: donavan nelson > > > > > > > Sent: Wed, 8 Jan 2003 04:19:21 +0000 (GMT) > > > > > > > Subject: Re: [Nagios-users] incoorect > > > command line > > > > > > > arguments supplied > > > > > > > > > > > > > > > Hi Donavan > > > > > > > > > > > > > > > > Yep I have tried that...when i try that > > on > > > the > > > > > > > solaris > > > > > > > > box it works does not complain at all.. > > > > > > > > > > > > > > > > when i try from my nagios host..only > > then > > > this > > > > > > > message > > > > > > > > is thrown up > > > > > > > > > > > > > > > > regards > > > > > > > > Hrishy > > > > > > > > > > > > > > > > --- donavan nelson > > > wrote: > run > > > > > > > the > > > > > > > > check_disk on the command line on the > > sun > > > > > > > > > box to get the arguments > > > > > > > > > sorted. change the config file, > > restart > > > nrpe > > > > > > > and > > > > > > > > > all should be good. > > > > > > > > > > > > > > > > > > -- > > > > > > > > > Donavan Nelson > > > > > > > > > 4wx Networks > > > > > > > > > www.4wx.net > > > > > > > > > > > > > > > > > > ---------- Original Message > > ----------- > > > > > > > > > From: hrishy > > > > > > > > > To: nagios-users at lists.sourceforge.net > > > > > > > > > Sent: Tue, 7 Jan 2003 10:08:30 +0000 > > > (GMT) > > > > > > > > > Subject: [Nagios-users] incoorect > > > command line > > > > > > > > > arguments supplied > > > > > > > > > > > > > > > > > > > Hi All > > > > > > > > > > > > > > > > > > > > My nagios host is running linux from > > > where i > > > > > > > want > > > > > > > > > to > > > > > > > > > > monitor my sun machine.My > > services.cfg > > > file on > > > > > > > > > nagios > > > > > > > > > > host is like this > > > > > > > > > > > > > > > > > > > > define service{ > > > > > > > > > > use generic-service ; > > > > > > > > > > host_name unix1 > > > > > > > > > > service_description > > > /dev/dsk/c0t0d0s0 Free > > > > > > > > > Space > > > > > > > > > > is_volatile 0 > > > > > > > > > > check_period 24x7 > > > > > > > > > > max_check_attempts 3 > > > > > > > > > > normal_check_interval 5 > > > > > > > > > > retry_check_interval 1 > > > > > > > > > > contact_groups unix-admins > > > > > > > > > > notification_interval 120 > > > > > > > > > > notification_period 24x7 > > > > > > > > > > notification_options w,u,c,r > > > > > > > > > > check_command > > check_nrpe!check_disk1 > > > > > > > > > > } > > > > > > > > > > > > > > > > > > > > and the /etc/nrpe.cfg file on the > > sun > > > solaris > > > > > > > > > machine > > > > > > > > > > has the following lines in it.. > > > > > > > > > > > > > > > > > > > > > > > === message truncated === > > __________________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Wed Jan 8 09:01:16 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 08 Jan 2003 09:01:16 +0100 Subject: Fw: Re: Multiple templates in a servicedefinition? References: <1041981848.1533.37.camel@localhost.localdomain> <20030107235844.M47801@4wx.net> <20030108000048.M64755@4wx.net> <1041987489.1138.24.camel@servalon> Message-ID: <3E1BDACC.F36D818D@gcc.dhl.com> Well, while we are at the template feature exploring, I've got another question. Can Nagios add up directive definitions? What I mean is this: Our Nagios box is hooked up to the Cisco Catalyst in our server room. Since each and every host that Nagios needs to check passes through that Catalyst, it makes that a parent of all hosts. So I can create a genereic host defintion that has: define host{ name generic-host parents catalyst-server-room register 0 } However. We are monitoring devices that have to pass through other Catalysts before they reach the one in the server room. Is it then possible to create a host: define host{ host_name hostname use generic-host parents catalyst-first-floor } And will this host then have two parent hosts? Are templates that flexible? Thinlayer wrote: > > > I forgot the list, duhhh. > damn you - would have saved me typing my tuppeny bits worth :) > here's some more anyway (edited to avoid gratuitous repition) > > > I do something similar, but it's a slightly different mind set > > > > template A > > > > template B, uses A > > > > service X, uses template B > > > > Same behavior, different method. I don't know if your way even works.... > AFAIK you can't use more than one other than via inheritance as Donavan > says but remember not to register your templates and also that the > templates cannot be used as services. > > You can of course take it further if you require different types of say > ping buy making your generic-ping a service. > This means you'll need to define: > > generic-service : top level template > generic-ping : uses generic-service - also a template > > some-special-ping : uses generic-ping - actual service > other-special-ping : uses generic-ping - actual service > etc. > > hope this helps too > rue > > ------------------------------------------------------- > 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 desmondc at bii.a-star.edu.sg Wed Jan 8 10:58:37 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Wed, 8 Jan 2003 17:58:37 +0800 Subject: [Apan-users] APAN: All zero data in rrds References: <20030108050643.40320.qmail@web12605.mail.yahoo.com> <1042004273.1444.234.camel@dev.showkilr.com> <20030108054321.M58388@4wx.net> <1042005065.1655.258.camel@dev.showkilr.com> <1042005507.1444.263.camel@dev.showkilr.com> <3E1BC418.4080005@sbcglobal.net> Message-ID: <001201c2b6fc$85d27010$0b79a8c0@desmond> Hi, The problems lies in that in the following line RTT=`echo $RTT/1000|bc -l`, "bc" returns null. The reason is becuase i don't have the bc command. Thanks to Fredrik in helping solve the problem! ----- Original Message ----- From: "Sean Knox" To: "nagios-users" ; ; "Fredrik W?nglund" Sent: Wednesday, January 08, 2003 2:24 PM Subject: [Apan-users] APAN: All zero data in rrds > Hello, I have apan setup recording ping round trip times (as evident > from apan.debug). However, checking the data stored in my rrd files, I > see that my data are zeroes: > > # rrdtool fetch edge-router-PING.rrd AVERAGE > > 1042006800: 0.0000000000e+00 > 1042006860: 0.0000000000e+00 > 1042006920: 0.0000000000e+00 > > Apan shows it is working properly: > > Tue Jan 7 22:26:40 PST 2003 Args: ping router apan-ping 1042007200 > 150.0,30% 300.0,60% > PING: 'ping' > Ping: router, RTT: 0.40 > > Anyone have an idea what's causing this? > > Thanks, > Sean > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > Apan-users mailing list > Apan-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/apan-users > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 8 12:11:44 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 8 Jan 2003 11:11:44 +0000 (GMT) Subject: monitoring oracle ,CPU,performance,and sybase with nagios In-Reply-To: <001201c2b6fc$85d27010$0b79a8c0@desmond> References: <001201c2b6fc$85d27010$0b79a8c0@desmond> Message-ID: <20030108111144.85155.qmail@web12607.mail.yahoo.com> Hi I have some custom shell scripts to monitor a)Oracle is up or not b)sybase is up or not c)CPU d)performance how do we integrate this with nagios ? 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dyk at aon.at Wed Jan 8 11:22:58 2003 From: dyk at aon.at (York Keyser) Date: Wed, 08 Jan 2003 11:22:58 +0100 Subject: VRML an pics in Statusmap Message-ID: <3E1BFC02.9040100@aon.at> Hello again ;) I still have the problem with vrml I have got a FreeBSD4.7. There I have installed openvrml but it doesn't work ;( I can't find any docu about it. Can somebody help me with this problem. Problem second: I will change the Pics about my computers in status map at the moment i have a "?" there. I can finde the image under: http://localhost/nagios/images/linux40.png I write this in hostextinfo.cfg define hostextinfo{ host_name Excalibur icon_image linux40.png 2d_coords 100.250 } but it doesnt work. :( Thanks 4 helping an sorry about my bad english york -- "Und es heisst auch, frage nicht die Elben um Rat, denn sie werden sowohl Ja als auch Nein sagen." [Frodo] ------------------------------------------------------- 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 Jan 8 12:33:57 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 08 Jan 2003 12:33:57 +0100 Subject: monitoring oracle ,CPU,performance,and sybase with nagios References: <20030108111144.85155.qmail@web12607.mail.yahoo.com> Message-ID: <3E1C0CA5.FF93B8C@gcc.dhl.com> hrishy wrote: > > Hi > > I have some custom shell scripts to monitor > > a)Oracle is up or not check_oracle > b)sybase is up or not build your own plugin using sqsh and freetds Or just use check_tcp > c)CPU check_load > d)performance define "performance" ------------------------------------------------------- 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 Wed Jan 8 12:55:16 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 8 Jan 2003 12:55:16 +0100 Subject: APAN: All zero data in rrds Message-ID: <9EA0F1554816EB499A4B1136B80E8DE278045B@storevis.datavis.se> OK, as you may have read, yo need the bc command.. -----Original Message----- From: Sean Knox [mailto:sean.knox at sbcglobal.net] Sent: Wed 08-Jan-03 07:24 To: nagios-users; apan-users at lists.sourceforge.net; Fredrik W?nglund Cc: Subject: APAN: All zero data in rrds Hello, I have apan setup recording ping round trip times (as evident from apan.debug). However, checking the data stored in my rrd files, I see that my data are zeroes: # rrdtool fetch edge-router-PING.rrd AVERAGE 1042006800: 0.0000000000e+00 1042006860: 0.0000000000e+00 1042006920: 0.0000000000e+00 Apan shows it is working properly: Tue Jan 7 22:26:40 PST 2003 Args: ping router apan-ping 1042007200 150.0,30% 300.0,60% PING: 'ping' Ping: router, RTT: 0.40 Anyone have an idea what's causing this? Thanks, Sean ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From swalker at floridabroadband.net Wed Jan 8 15:16:57 2003 From: swalker at floridabroadband.net (Scott Walker) Date: Wed, 08 Jan 2003 09:16:57 -0500 Subject: Problem with Nagios 1.0 Message-ID: <3E1C32D9.6030702@floridabroadband.net> I have nagios rolled out and monitorin my network (it's great), But I'm having one big issue... It seems after (a random amount of time between 5 mins and an hour) nagios will seem to get confused and 'forget' that it's actually runing. It will continue to monitor/page you with problems.. But when you go to the webpage, and try to acknowledge problems, etc It says "the nagios process could not be found", etc, etc, etc. Has anyone encountered this before? Or have a fix for it? ------------------------------------------------------- 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 Wed Jan 8 15:23:58 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Wed, 08 Jan 2003 09:23:58 -0500 Subject: Host Dependencies In-Reply-To: <20030107151756.B28414@bennyvision.com> References: <20030107151756.B28414@bennyvision.com> Message-ID: <3E1C347E.4060409@datawire.net> I want to make my servers dependant on my routers and switches, so that if a switch goes down I don't get a billion e-mail from all the servers behind it.... I was reading about the Host Dependencies and figure this will do the trick, my question is can I comma seperate the host name?? or do I need to have a new rule per server... IE. define hostdependency{ host_name Server1, Server2, Server3, Server4 dependent_host_name Switch1 notification_failure_criteria d,u } ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 8 16:00:29 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 10:00:29 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D2886F@phsexch20.mgh.harvard.edu> I installed the latest nrpe client on a remote machine, and also copied the necessary plugins from the nagios server to the client. The nrpe.cfg file was modified to suit the remote machine's configuration. When I tried to monitor the various services on the client I was confronted with the following error message: Return code of 127 is out of bounds - plugin may be missing. I am running Nagios 1.0 with the latest nrpe client as well as the latest nagios plug-ins. There were no apparent problems with compiling and installing the nrpe client on the remote machine. The /etc/xinetd.d services were restarted after the nrpe install was complete. The nagios server is running on a Red Hat 8.0 box and the remote client is Red Hat 7.3 ------------------------------------------------------- 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 Jan 8 16:16:06 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 10:16:06 -0500 (EST) Subject: check_ifoperstatus In-Reply-To: <010f01c2b6db$aa15e590$0401a8c0@moscow> References: <010f01c2b6db$aa15e590$0401a8c0@moscow> Message-ID: On Wed, 8 Jan 2003, Olivier Beauchemin (Budget-Tech IT Consulting) wrote: > I'm having some trouble getting check_ifoperstatus to work correctly, which > might be my fault... From the command line, it works just fine, although > failing to print the results on it's own line. > > ie. > [obeauche at mrtg libexec]# ./check_ifoperstatus -H x.x.x.x -C foobar -d > Serial0/0 > OK: Interface Serial0/0 (index 1) is up.[obeauche at mrtg libexec]# > > With the same arguments in the service.cfg file, it's working... but I get > "(No output returned from plugin)" as the status. > > So, what does this mean? How do I fix it? > > Thanks, > Olivier > > Please post the config... -- ------------------------------------------------------- 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 Jan 8 16:18:41 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 10:18:41 -0500 (EST) Subject: SEC: UNCLASS: host with multiple addresses In-Reply-To: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D61@c1clex02.cbr.defence.gov.au> References: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D61@c1clex02.cbr.defence.gov.au> Message-ID: Currently the host entry only supports a single address. Configure the host address to be the IP "closest" to the monitoring platform and the secondary IPs are monitored as services of the host (check_ping, etc) -sg On Wed, 8 Jan 2003, Hand, Nathan wrote: > I have a multi-homed host (multiple physical interfaces). The same services > are running on each interface and I'd like to be notified if any interface > fails. I can do this by creating multiple host entries (and I am doing it > this way right now). > > define host { > host_name myhost-eth0 > address 192.168.1.1 > } > > define host { > host_name myhost-eth1 > address 192.168.2.1 > } > > But what I'd really like to do is something like this > > define host { > host_name myhost > address 192.168.1.1, 192.168.2.1 > } > > Unfortunately this doesn't seem to work. I've also tried > > define host { > host_name myhost > address 192.168.1.1 > address 192.168.2.1 > } > > But as near as I can tell the second address overrides the first address. > > I couldn't find an answer in the FAQ, mailing list archive, or online > documentation. Is there a better way of doing what I want to do? > -- ------------------------------------------------------- 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 Jan 8 16:12:35 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 08 Jan 2003 16:12:35 +0100 Subject: Host Dependencies References: <20030107151756.B28414@bennyvision.com> <3E1C347E.4060409@datawire.net> Message-ID: <3E1C3FE3.9D286EE0@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." Kind regards, Tom Chris Stankaitis wrote: > > I want to make my servers dependant on my routers and switches, so that > if a switch goes down I don't get a billion e-mail from all the servers > behind it.... I was reading about the Host Dependencies and figure this > will do the trick, my question is can I comma seperate the host name?? > or do I need to have a new rule per server... > > IE. > > define hostdependency{ > host_name Server1, Server2, Server3, Server4 > dependent_host_name Switch1 > notification_failure_criteria d,u > } > > ------------------------------------------------------- > 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 Jan 8 16:14:45 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 09:14:45 -0600 Subject: pseudo-host with multiple ip's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24D8@PKDWB03C.ad.sprint.com> Instead of using the built-in support for IP addresses in Nagios, instead of using /etc/hosts, why not use DNS? You can define multiple A records for a given hostname, and only specify that hostname within Nagios. (It's early, I haven't had my coffee yet, I don't have the rest of the thread of this message, so forgive me if my answer isn't relevant. ;^) jc > -----Original Message----- > From: Olivier F. Beauchemin (Budget-Tech IT Consulting) > [mailto:ofb at budget-tech.com] > Sent: Tuesday, January 07, 2003 5:13 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] pseudo-host with multiple ip's > > > I tried exactly this, however, only the first ip address in > the list appears > to be used. > > Thanks, > Olivier > > > You should be able to specify a host (make up a name, example "unused > Ips") and add a bunch of "address: x.x.x.x" one for each IP > address and > set it to only notify on recovery. > > > > > ------------------------------------------------------- > 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 sysadmin at showkilr.com Wed Jan 8 16:58:05 2003 From: sysadmin at showkilr.com (Showkilr) Date: 08 Jan 2003 09:58:05 -0600 Subject: Nrpe Error Message In-Reply-To: <5593DA408212D511B0910002A513501F01D2886F@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D2886F@phsexch20.mgh.harvard.edu> Message-ID: <1042041486.1444.287.camel@dev.showkilr.com> Have you tried running Nrpe in stand alone mode via nrpe -c -d then try the test again. What version of Nrpe are you running. Showkilr On Wed, 2003-01-08 at 09:00, Kaplan, Andrew H. wrote: > I installed the latest nrpe client on a remote machine, and also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg file was modified > to suit the > remote machine's configuration. When I tried to monitor the various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 Wed Jan 8 17:03:45 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 11:03:45 -0500 (EST) Subject: pseudo-host with multiple ip's In-Reply-To: <014b01c2b6e6$fada2990$0401a8c0@moscow> References: <014b01c2b6e6$fada2990$0401a8c0@moscow> Message-ID: What error are you getting? Remember nagios doesn't do anything with host entries unless there is a service issue. So the service checks should return OK for non-existant IPs and CRITICAL for pingable IPs Using "negate check_fping -H unusedIP" for the service and notify on failure. -sg On Wed, 8 Jan 2003, Olivier Beauchemin (Budget-Tech IT Consulting) wrote: > Thanks. I tried this, as I think you outlined it, and it didn't work. > > What do you think the config should look like for this? > > Olivier > > ----- Original Message ----- > From: "Subhendu Ghosh" > To: > Sent: Tuesday, January 07, 2003 10:52 PM > Subject: RE: [Nagios-users] pseudo-host with multiple ip's > > > > I would put a single IP (either end of the unused space) as the host > > address and add the rest as services. > > > > notify on recovery is good - and long interval between checks - 12 hours > > or the like if you don't expect to see many allocations.. > > > > > > OR make app the unused IPs as service checks on a core router host using > > negate and check_ping. - This would react more as a unkown host just > > entered my domain... > > > > -sg > > > > > > On Tue, 7 Jan 2003, Don Schultz wrote: > > > > > You should be able to specify a host (make up a name, example "unused > > > Ips") and add a bunch of "address: x.x.x.x" one for each IP address and > > > set it to only notify on recovery. > > > > > > define host{ > > > # use template name (if you use > > > templates) > > > host_name unused-ip-addresses > > > alias Unused IPs > > > address 64.91.20.45 > > > address 64.91.20.46 > > > address 64.91.20.47 > > > notification_period some time period > > > notification_interval interval > > > host_check_command check_host_alive > > > notification_options r > > > # parents specify parent hosts if you use parents > > > directive > > > } > > > > > > I believe that should work, it's been a while since I set it all up from > > > scratch so someone correct me if it's needed ;) > > > > > > .: Don Schultz > > > :: Unix Systems Administrator > > > :: Panvera, LLC > > > :: 501 Charmany Dr. > > > :: Madison, WI 53719 > > > \\ > > > :: Phone: 608.204.5060 > > > :: Fax: 608.204.5061 > > > :: Cell: 608.213.7523 > > > :: Email: don_schultz at panvera.com > > > > > > > > > > -----Original Message----- > > > > From: Olivier F. Beauchemin (Budget-Tech IT Consulting) > > > > [mailto:ofb at budget-tech.com] > > > > Sent: Tuesday, January 07, 2003 3:39 PM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] pseudo-host with multiple ip's > > > > > > > > > > > > Apologies if this, or something similar, has been answered > > > > already. I'm new > > > > to the group, and didn't see anything in the archive that answered my > > > > question. > > > > *** > > > > > > > > I'd like to know if it's possible to monitor a machine with > > > > multiple ip > > > > addresses without creating an entirely separate host in > > > > hosts.cfg for each > > > > ip address? > > > > > > > > What I'd like to do is monitor unused IP space. I'd like to create a > > > > pseudo-host called "Unused IPs" and then add the IP addresses > > > > to that one > > > > pseudo-host which should not be up and responding. I know > > > > it's nit-picky, > > > > but I'd like to be able to do this so I can have the unused > > > > IPs nested under > > > > the "Unused IP" pseudo-host entry (from the Service Detail page). > > > > > > > > Lastly, I've seen some mention of other plugins that didn't > > > > come in the > > > > Plugins v1.3.0 Beta2... is there a secret plugin repository somewhere? > > > > > > > > Thanks, > > > > Olivier > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > 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 Jan 8 16:56:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 09:56:54 -0600 Subject: Host Dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1253@PKDWB03C.ad.sprint.com> Check out the 'parents' directive. jc > -----Original Message----- > From: Chris Stankaitis [mailto:chris.stankaitis at datawire.net] > Sent: Wednesday, January 08, 2003 8:24 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host Dependencies > > > I want to make my servers dependant on my routers and > switches, so that > if a switch goes down I don't get a billion e-mail from all > the servers > behind it.... I was reading about the Host Dependencies and > figure this > will do the trick, my question is can I comma seperate the > host name?? > or do I need to have a new rule per server... > > IE. > > define hostdependency{ > host_name > Server1, Server2, Server3, Server4 > dependent_host_name Switch1 > notification_failure_criteria d,u > } > > > > > ------------------------------------------------------- > 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 Jan 8 17:05:09 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 10:05:09 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1255@PKDWB03C.ad.sprint.com> And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 ess.nec.de Wed Jan 8 17:25:04 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Wed, 8 Jan 2003 17:25:04 +0100 Subject: pseudo-host with multiple ip's In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24D8@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Wed, Jan 08, 2003 at 09:14:45AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F24D8@PKDWB03C.ad.sprint.com> Message-ID: <20030108172504.H1644@ess.nec.de> On Wed, Jan 08, 2003 at 09:14:45AM -0600, Carroll, Jim P [Contractor] wrote: > Instead of using the built-in support for IP addresses in Nagios, instead of > using /etc/hosts, why not use DNS? You can define multiple A records for a > given hostname, and only specify that hostname within Nagios. ...and get tons and billions of notifications once your DNS server goes down. > (It's early, I haven't had my coffee yet, I don't have the rest of the > thread of this message, so forgive me if my answer isn't relevant. ;^) No problem, have a nice coffee. ;-) Rasmus ------------------------------------------------------- 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 Jan 8 17:03:07 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 10:03:07 -0600 Subject: NSClient error Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24DA@PKDWB03C.ad.sprint.com> We're in the process of rolling out NSClient, and our NT guru is stumped with the following error: 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 Collect CPU - ERROR: 0x800007D6. Oddly, this is only happening on one host. (We've got NSClient running on 4 hosts so far.) Version of NSClient is 1.0.7.0 on 3 of these hosts, including the problem host. Can anyone shed any light on this? TIA, jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 8 17:33:26 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 11:33:26 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28870@phsexch20.mgh.harvard.edu> Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 don_schultz at panvera.com Wed Jan 8 17:38:54 2003 From: don_schultz at panvera.com (Don Schultz) Date: Wed, 8 Jan 2003 10:38:54 -0600 Subject: NSClient error Message-ID: <72CF2973A7532D478D85271D40F608FCC3F542@mercury.panvera.com> Which version of windows? 2k? NT4? -- 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 jcarro10 at sprintspectrum.com Wed Jan 8 17:32:19 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 10:32:19 -0600 Subject: tweaking 'views' in Nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24DB@PKDWB03C.ad.sprint.com> Last night I finally made the bold leap to restricting views in the Nagios web interface via the authorized_for_* directives in cgi.cfg. To wit, the new values for the latest config is: authorized_for_system_information=* authorized_for_configuration_information=* authorized_for_system_commands=nagiosadmin,jcarro10 authorized_for_all_services=nagiosadmin,guest authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin So far, so good! However, I have a few DBAs that belong to the dev-dbas contactgroup, and that contactgroup is defined in quite a few (Oracle-related) services. If one of the DBAs logs in to Nagios, the Tactical Overview lists 109 services but no (zero, zilch) hosts. Which makes sense given the permissions, really. If he clicks on Service Detail, he see alls their wonderful services listed there, and only theirs. Sweet! However, if he clicks on Host Detail (Status Overview, Status Summary, Status Grid), he gets the "It appears as though you don't have permission..." message. The Status Map is functionally useless (no hosts shown). It would be nice if the DBAs could see the hosts (only those hosts related to the services they're monitoring). The obvious solution would be to add the dev-dbas contactgroup to the relevant hosts. I have two concerns in this regard: - doing so would allow a DBA to acknowledge a host problem or put it into scheduled downtime, etc. - doing so might give the DBAs a view with services that they don't care to know about (too much clutter) SO, I was wondering if there's a way to grant them read-only access to the hosts. Ideas, anyone? jc ------------------------------------------------------- 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 Jan 8 17:38:20 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 10:38:20 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1258@PKDWB03C.ad.sprint.com> All I can think of at the moment, is that you need to check the following: - run the check_nrpe command again, but under the nagios username (permissions test) - check your checkcommands.cfg file for the appropriate check_nrpe definition jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 10:33 AM > To: Carroll, Jim P [Contractor] > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > > Things got a little better since I sent out my e-mail. I am > getting a connection > to > to the remote client. Now I am getting an INCORRECT COMMAND > LINE ARGUMENTS > SUPPLIED > error. > > When I run the check from the command line, it comes out fine. > > Here is the syntax of the nrpe.cfg file on the client: > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > 95 /dev/sda8 > command[check_load]=/usr/local/nagios/libexec/check_load > 15,10,5 30,25,20 > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > What is going on? > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, January 08, 2003 11:05 AM > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > > And running check_nrpe from the command line...? Pass or fail...? > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 9:00 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nrpe Error Message > > > > > > I installed the latest nrpe client on a remote machine, and > > also copied the > > necessary > > plugins from the nagios server to the client. The nrpe.cfg > > file was modified > > to suit the > > remote machine's configuration. When I tried to monitor the > > various services > > on the client > > I was confronted with the following error message: > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > I am running Nagios 1.0 with the latest nrpe client as well > > as the latest > > nagios plug-ins. > > > > There were no apparent problems with compiling and > installing the nrpe > > client on the remote machine. > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > complete. > > > > The nagios server is running on a Red Hat 8.0 box and the > > remote client is > > Red Hat 7.3 > > > > > > > > > > ------------------------------------------------------- > > 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 Jan 8 18:06:23 2003 From: sandromergvaz at uol.com.br (sandromergvaz) Date: Wed, 8 Jan 2003 15:06:23 -0200 Subject: NSClient error Message-ID: Jim: There errors appears when the counters definitions on counters.defs files differ from those at Performance Monitor. Try to change the counters.defs and restart the service. HTH, SMV > We're in the process of rolling out NSClient, and our NT gur u is stumped > with the following error: > > The description for Event ID ( 2 ) in Source ( NSClient ) ca nnot be found. > The local computer may not have the necessary registry infor mation or > message DLL files to display messages from a remote computer . The following > information is part of the event: NSClient Error: PDH.dll Co llect CPU - > ERROR: 0x800007D6. > > Oddly, this is only happening on one host. (We've got NSCli ent running on 4 > hosts so far.) > > Version of NSClient is 1.0.7.0 on 3 of these hosts, includin g the problem > host. > > Can anyone shed any light on this? > > TIA, > > jc > > > ------------------------------------------------------- > This SF.NET email is sponsored by: > SourceForge Enterprise Edition + IBM + LinuxWorld = Somethin g 2 See! > http://www.vasoftware.com > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > --- UOL, o melhor da Internet http://www.uol.com.br/ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tinzauro at axiomintegration.com Wed Jan 8 18:16:33 2003 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 08 Jan 2003 11:16:33 -0600 Subject: One(host) to One(contacts) setup Message-ID: <1042046198.1670.119.camel@inzauro1.axiomintegration.com> This is a 2 part question. 1. Has anyone found an easier way of setting up a one host to one contact enviroment for nagios. It absolutely suck the way it is right now with the hosts,contact,contactgroup, setup now. 2. Does Nagios support includes in the config files? I would like to create one config file for each host instead of creating one type of config file for all hosts. I think this approach would be easier to manage as well as easier to automate for multiple hosts with the same characteristics but different contacts for problems. The one include file for the individual host would have all the information that would have been in all the *.cfg files. Please put some thought into this one. Rewards from the naught blonde female sex gods would be you future:) Terry ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From steve at dtnspeed.net Wed Jan 8 18:22:11 2003 From: steve at dtnspeed.net (Steven L. Kohrs) Date: 08 Jan 2003 11:22:11 -0600 Subject: Dougal Scott database scripts Message-ID: <1042046531.1945.65.camel@localhost.localdomain> In the archive, I came across a message where someone mentioned that Dougal Scott had written scripts to import Nagios logs into a database. However, I didn't have much luck finding those scripts with a Google search. I've currently compiled Nagios with MySQL support, but would like to comply with future Nagios releases. The developer made an excellent point with their explanation on why database support is being eliminated. I'm also interested in generating config files from a database. I've got 800+ hosts to configure. I did see someone post some code for accomplishing this. Anybody else have any luck with implementing this? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin_wedeking at pvamu.edu Wed Jan 8 18:30:51 2003 From: justin_wedeking at pvamu.edu (Justin Wedeking) Date: Wed, 8 Jan 2003 11:30:51 -0600 Subject: nrpep problem Message-ID: <010301c2b73b$c8a58780$0e38cf81@fucko> I keep getting this error, and so far have had no luck with resolving it. Any help is greatly appreciated. I need to get this nagios server up and running whodevil:/usr/local/nrpep-0.2# ./check_nrpep -h localhost -c check_ping Use of uninitialized value in split at ./check_nrpep line 145, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 146, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 147, line 1. Use of uninitialized value in right bitshift (>>) at ./check_nrpep line 148, line 1. Justin Wedeking Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Jan 8 18:01:39 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 11:01:39 -0600 Subject: NSClient error Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E125D@PKDWB03C.ad.sprint.com> My bad... Win2k, SP2. jc > -----Original Message----- > From: Don Schultz [mailto:don_schultz at panvera.com] > Sent: Wednesday, January 08, 2003 10:39 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] NSClient error > > > Which version of windows? 2k? NT4? > > -- > 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 ralf.wurzinger at materna.fr Wed Jan 8 18:34:43 2003 From: ralf.wurzinger at materna.fr (Ralf Wurzinger) Date: Wed, 08 Jan 2003 18:34:43 +0100 Subject: can not compile check_nt on Solaris 9 Message-ID: <3E1C6133.3090900@materna.fr> Hello, I have a problem compiling check_nt plugin on a Solaris 9 box using gcc 3.2. I have installed nagios-plugins-200211131100 with success and can get them working, however copying check_nt.c to the plugin directory and following the proposition posted on this mailing list by Subhendu Ghosh on 2002-11-15 failed: gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -c check_nt.c This creates the object file. But then gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins -o check_nt utils.o -lutils gives: ld: fatal: library -lutils: not found There is a utils.o file in the directory which was created during the plugin compilation. Anybody knows the right gcc command line? Thank's a lot! Ralf ------------------------------------------------------- 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 Jan 8 18:00:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 11:00:41 -0600 Subject: pseudo-host with multiple ip's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E125C@PKDWB03C.ad.sprint.com> You're only using one DNS server? Tsk tsk tsk. ;^) jc > -----Original Message----- > From: Rasmus Plewe [mailto:rplewe at ess.nec.de] > Sent: Wednesday, January 08, 2003 10:25 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] pseudo-host with multiple ip's > > > On Wed, Jan 08, 2003 at 09:14:45AM -0600, Carroll, Jim P > [Contractor] wrote: > > Instead of using the built-in support for IP addresses in > Nagios, instead of > > using /etc/hosts, why not use DNS? You can define multiple > A records for a > > given hostname, and only specify that hostname within Nagios. > > ...and get tons and billions of notifications once your DNS server > goes down. > > > (It's early, I haven't had my coffee yet, I don't have the > rest of the > > thread of this message, so forgive me if my answer isn't > relevant. ;^) > > No problem, have a nice coffee. ;-) > > > 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 AHKAPLAN at PARTNERS.ORG Wed Jan 8 18:37:09 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 12:37:09 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28873@phsexch20.mgh.harvard.edu> The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 dviner at yahoo-inc.com Wed Jan 8 18:51:20 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Wed, 8 Jan 2003 09:51:20 -0800 Subject: Nrpe Error Message In-Reply-To: <5593DA408212D511B0910002A513501F01D28873@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D28873@phsexch20.mgh.harvard.edu> Message-ID: might want to try double-quoting the C argument like this: ./check_nrpe -H oneofxeon -p 5666 -C "/usr/local/nagios/libexec/check_disk -w 80 -c 95" dave -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 9:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 pete.dewell at VoltEurope.com Wed Jan 8 18:56:15 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 08 Jan 2003 17:56:15 +0000 Subject: Nrpe Error Message Message-ID: Try leaving out the -H . Just use check_nrpe ..... P "Kaplan, Andrew H." wrote: > > The command that I entered at the monitoring host was > > ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w > 80 -c 95 > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > What gives? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 11:49 AM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > Try running the check_nrpe command from the monitoring host. > > check_nrpe -H -p -C check_userrs > > see if that gets you any further. > > I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 > > -J > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, > Andrew > H. > Sent: Wednesday, January 08, 2003 10:33 AM > To: 'Carroll, Jim P [Contractor]' > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > Things got a little better since I sent out my e-mail. I am getting a > connection > to > to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS > SUPPLIED > error. > > When I run the check from the command line, it comes out fine. > > Here is the syntax of the nrpe.cfg file on the client: > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > What is going on? > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, January 08, 2003 11:05 AM > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > And running check_nrpe from the command line...? Pass or fail...? > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 9:00 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nrpe Error Message > > > > > > I installed the latest nrpe client on a remote machine, and > > also copied the > > necessary > > plugins from the nagios server to the client. The nrpe.cfg > > file was modified > > to suit the > > remote machine's configuration. When I tried to monitor the > > various services > > on the client > > I was confronted with the following error message: > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > I am running Nagios 1.0 with the latest nrpe client as well > > as the latest > > nagios plug-ins. > > > > There were no apparent problems with compiling and installing the nrpe > > client on the remote machine. > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > complete. > > > > The nagios server is running on a Red Hat 8.0 box and the > > remote client is > > Red Hat 7.3 > > > > > > > > > > ------------------------------------------------------- > > 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 -- 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 From tinzauro at axiomintegration.com Wed Jan 8 19:04:27 2003 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 08 Jan 2003 12:04:27 -0600 Subject: One(host) to One(contacts) setup In-Reply-To: References: Message-ID: <1042049072.1153.128.camel@inzauro1.axiomintegration.com> Does this mean that data from say the hosts.cfg file can go into a generic cfg file that has all contact info.host info, and service info? To put it simple, it is possible to place all configuration information in one file as long as it maintains the coorect syntax. Terry On Wed, 2003-01-08 at 11:39, Subhendu Ghosh wrote: > On 8 Jan 2003, Terry Inzauro wrote: > > > This is a 2 part question. > > > > 1. Has anyone found an easier way of setting up a one host to one > > contact enviroment for nagios. It absolutely suck the way it is right > > now with the hosts,contact,contactgroup, setup now. > > no :( > > > > > 2. Does Nagios support includes in the config files? I would like to > > create one config file for each host instead of creating one type of > > config file for all hosts. I think this approach would be easier to > > manage as well as easier to automate for multiple hosts with the same > > characteristics but different contacts for problems. The one include > > file for the individual host would have all the information that would > > have been in all the *.cfg files. > > instead of cfg_file use cfg_dir in nagios.cfg to include all files in the > sub-directory.. > > > > > Please put some thought into this one. Rewards from the naught blonde > > female sex gods would be you future:) > > > > > > Terry > > > > > > -- > > -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jboulter at yahoo-inc.com Wed Jan 8 19:11:52 2003 From: jboulter at yahoo-inc.com (Jeff Boulter) Date: Wed, 8 Jan 2003 10:11:52 -0800 Subject: Setting up service dependencies In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E124C@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E124C@PKDWB03C.ad.sprint.com> Message-ID: <000001c2b741$6c002020$24ea7ecf@JBOULTER> I've looked at the examples that come with nagios and they don't seem to address the problem of using hostgroups versus hosts. I'm not using NPRE, but if you have examples using hostgroups, I'd love to see them. Jeff -----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: Tuesday, January 07, 2003 1:47 PM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Jan 8 18:50:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 11:50:44 -0600 Subject: One(host) to One(contacts) setup Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24DC@PKDWB03C.ad.sprint.com> 1. Not sure. I'll defer to others. 2. This is exactly what I'm doing. You may be familiar with the cfg_file directive in nagios.cfg. Depending on what version of Nagios you're using, cfg_dir is also supported. In my case, I'm simply doing: cfg_dir=/usr/local/nagios/etc/configs So long as the files in that directory end in .cfg, Nagios will read them and treat them like other config files. I've set up a single config file per host. For example, abcde.cfg would deal with hostname abcde. It does mean you won't be aggregating definitions, but that's not necessarily a bad thing. You could create a file called boilerplate.cfg.example (or something equally meaningful to you) and use that as the baseline for new host definitions. I remember asking (and Ethan responded in the affirmative) whether directory recursion for cfg_dir would be supported. I don't recall which version supports it; it could be that 1.0 already has that. Based on that, you could even go the extra step, creating subdirectories for each hostname, eg, /usr/local/nagios/etc/configs/abcde, and simply add separate components (host/service definitions) to that directory (all files ending in .cfg, of course). The only host-related file that I can see you being forced into aggregating host information, would be hostgroups.cfg. Does this help? jc > -----Original Message----- > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > Sent: Wednesday, January 08, 2003 11:17 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] One(host) to One(contacts) setup > > > This is a 2 part question. > > 1. Has anyone found an easier way of setting up a one host to one > contact enviroment for nagios. It absolutely suck the way it is right > now with the hosts,contact,contactgroup, setup now. > > 2. Does Nagios support includes in the config files? I would like to > create one config file for each host instead of creating one type of > config file for all hosts. I think this approach would be easier to > manage as well as easier to automate for multiple hosts with the same > characteristics but different contacts for problems. The one include > file for the individual host would have all the information that would > have been in all the *.cfg files. > > Please put some thought into this one. Rewards from the naught blonde > female sex gods would be you future:) > > > Terry > > > > > > > > > ------------------------------------------------------- > 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 Wed Jan 8 19:24:53 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 13:24:53 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28876@phsexch20.mgh.harvard.edu> When I ran the command on the remote host as follows: ./check_disk -w 80 -c 60 /dev/hda1 I got the following: DISK OK - [14786 kB (33%) free on /dev/sda1] The command syntax in nrpe.cfg file is as follows: command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 10 -c 5 /dev/sda1 I am still getting the incorrect command line arguments supplied error message on service detail page. -----Original Message----- From: donavan nelson [mailto:donavan at 4wx.net] Sent: Wednesday, January 08, 2003 1:05 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message arguments for nrpe go in the nrpe.cfg file on the remote host. it is a 3 part setup 1. add a service on the nagios server (services.cfg) 2. verify or add a check_nrpe entry on the nagios server (checkcommands.cfg) 3. configure the check on the remote host (test it at the command line first ;) ) .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Kaplan, Andrew H." To: 'Jeremy Tinley' Sent: Wed, 8 Jan 2003 12:37:09 -0500 Subject: RE: [Nagios-users] Nrpe Error Message > The command that I entered at the monitoring host was > > ./check_nrpe -H oneofxeon -p 5666 -C > /usr/local/nagios/libexec/check_disk -w 80 -c 95 > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > What gives? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 11:49 AM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > Try running the check_nrpe command from the monitoring host. > > check_nrpe -H -p -C check_userrs > > see if that gets you any further. > > I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 > > -J > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > Kaplan, Andrew > H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > Things got a little better since I sent out my e-mail. I am getting a > connection > to > to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS > SUPPLIED > error. > > When I run the check from the command line, it comes out fine. > > Here is the syntax of the nrpe.cfg file on the client: > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30, > 25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 > 200 > > What is going on? > > -----Original Message----- > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, > 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > And running check_nrpe from the command line...? Pass or fail...? > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 9:00 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nrpe Error Message > > > > > > I installed the latest nrpe client on a remote machine, and > > also copied the > > necessary > > plugins from the nagios server to the client. The nrpe.cfg > > file was modified > > to suit the > > remote machine's configuration. When I tried to monitor the > > various services > > on the client > > I was confronted with the following error message: > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > I am running Nagios 1.0 with the latest nrpe client as well > > as the latest > > nagios plug-ins. > > > > There were no apparent problems with compiling and installing the nrpe > > client on the remote machine. > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > complete. > > > > The nagios server is running on a Red Hat 8.0 box and the > > remote client is > > Red Hat 7.3 > > > > > > > > > > ------------------------------------------------------- > > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 8 19:33:56 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 13:33:56 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28877@phsexch20.mgh.harvard.edu> The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 donavan at 4wx.net Wed Jan 8 19:40:24 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 8 Jan 2003 12:40:24 -0600 Subject: Nrpe Error Message In-Reply-To: <5593DA408212D511B0910002A513501F01D28876@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D28876@phsexch20.mgh.harvard.edu> Message-ID: <20030108184024.M28779@4wx.net> what version of the plugins are you running? -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Kaplan, Andrew H." To: 'donavan nelson' Sent: Wed, 8 Jan 2003 13:24:53 -0500 Subject: RE: [Nagios-users] Nrpe Error Message > When I ran the command on the remote host as follows: > > ./check_disk -w 80 -c 60 /dev/hda1 > > I got the following: > > DISK OK - [14786 kB (33%) free on /dev/sda1] > > The command syntax in nrpe.cfg file is as follows: > > command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 10 -c 5 > /dev/sda1 > > I am still getting the incorrect command line arguments supplied > error message on service detail page. > > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net] > Sent: Wednesday, January 08, 2003 1:05 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > arguments for nrpe go in the nrpe.cfg file on the remote host. > > it is a 3 part setup > > 1. add a service on the nagios server (services.cfg) > > 2. verify or add a check_nrpe entry on the nagios server > (checkcommands.cfg) > 3. configure the check on the remote host (test it at the command > line first ;) ) > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: "Kaplan, Andrew H." > To: 'Jeremy Tinley' > Sent: Wed, 8 Jan 2003 12:37:09 -0500 > Subject: RE: [Nagios-users] Nrpe Error Message > > > The command that I entered at the monitoring host was > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > /usr/local/nagios/libexec/check_disk -w 80 -c 95 > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 11:49 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Try running the check_nrpe command from the monitoring host. > > > > check_nrpe -H -p -C check_userrs > > > > see if that gets you any further. > > > > I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 > > > > -J > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of > > Kaplan, Andrew > > H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P > [Contractor]' > > Cc: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Things got a little better since I sent out my e-mail. I am getting a > > connection > > to > > to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS > > SUPPLIED > > error. > > > > When I run the check from the command line, it comes out fine. > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 > > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30, > > 25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 > > 200 > > > > What is going on? > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, > > 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > also copied the > > > necessary > > > plugins from the nagios server to the client. The nrpe.cfg > > > file was modified > > > to suit the > > > remote machine's configuration. When I tried to monitor the > > > various services > > > on the client > > > I was confronted with the following error message: > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > as the latest > > > nagios plug-ins. > > > > > > There were no apparent problems with compiling and installing the nrpe > > > client on the remote machine. > > > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > > complete. > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > remote client is > > > Red Hat 7.3 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > ------- End of Original Message ------- ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 8 19:43:42 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 13:43:42 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28878@phsexch20.mgh.harvard.edu> I am running nrpe under xinetd. I did a netstat -a | grep 5666 and there was no output. I was returned to a shell prompt. Nrpe.cfg is located at /usr/local/nagios Anything else? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:36 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, take one giant step backwards. How are you running nrpe? As a daemon or xinetd/inetd? Now do a netstat -a | grep 5666 What's the output? Now, where is nrpe.cfg? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:34 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 sghosh at sghosh.org Wed Jan 8 19:49:19 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 13:49:19 -0500 (EST) Subject: One(host) to One(contacts) setup In-Reply-To: <1042049072.1153.128.camel@inzauro1.axiomintegration.com> References: <1042049072.1153.128.camel@inzauro1.axiomintegration.com> Message-ID: On 8 Jan 2003, Terry Inzauro wrote: > Does this mean that data from say the hosts.cfg file can go into a > generic cfg file that has all contact info.host info, and service info? > > To put it simple, it is possible to place all configuration information > in one file as long as it maintains the coorect syntax. A cfg file can contain any config info - host, service, groups, contact, timeperiods... (with correct syntax) There are 2 special cfg files - nagios.cfg and cgi.cfg which have defined filenames and elements. All other cfg files are by convention (eg host.cfg for hosts) -sg > > > Terry > > > On Wed, 2003-01-08 at 11:39, Subhendu Ghosh wrote: > > On 8 Jan 2003, Terry Inzauro wrote: > > > > > This is a 2 part question. > > > > > > 1. Has anyone found an easier way of setting up a one host to one > > > contact enviroment for nagios. It absolutely suck the way it is right > > > now with the hosts,contact,contactgroup, setup now. > > > > no :( > > > > > > > > 2. Does Nagios support includes in the config files? I would like to > > > create one config file for each host instead of creating one type of > > > config file for all hosts. I think this approach would be easier to > > > manage as well as easier to automate for multiple hosts with the same > > > characteristics but different contacts for problems. The one include > > > file for the individual host would have all the information that would > > > have been in all the *.cfg files. > > > > instead of cfg_file use cfg_dir in nagios.cfg to include all files in the > > sub-directory.. > > > > > > > > Please put some thought into this one. Rewards from the naught blonde > > > female sex gods would be you future:) > > > > > > > > > Terry > > > > > > > > > > -- -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 8 19:51:52 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 8 Jan 2003 13:51:52 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D2887A@phsexch20.mgh.harvard.edu> The file reads as follows: # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = -i /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:47 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, what's the /etc/xinetd.d/nrpe file look like? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:44 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I am running nrpe under xinetd. I did a netstat -a | grep 5666 and there was no output. I was returned to a shell prompt. Nrpe.cfg is located at /usr/local/nagios Anything else? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:36 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, take one giant step backwards. How are you running nrpe? As a daemon or xinetd/inetd? Now do a netstat -a | grep 5666 What's the output? Now, where is nrpe.cfg? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:34 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 tinzauro at axiomintegration.com Wed Jan 8 20:26:34 2003 From: tinzauro at axiomintegration.com (Terry Inzauro) Date: 08 Jan 2003 13:26:34 -0600 Subject: One(host) to One(contacts) setup In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24DC@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24DC@PKDWB03C.ad.sprint.com> Message-ID: <1042053999.4367.6.camel@inzauro1.axiomintegration.com> This is exactly what I was looking for. Many thanks for taking the time. Terry Inzauro On Wed, 2003-01-08 a t 11:50, Carroll, Jim P [Contractor] wrote: > 1. Not sure. I'll defer to others. > > 2. This is exactly what I'm doing. You may be familiar with the cfg_file > directive in nagios.cfg. Depending on what version of Nagios you're using, > cfg_dir is also supported. In my case, I'm simply doing: > > cfg_dir=/usr/local/nagios/etc/configs > > So long as the files in that directory end in .cfg, Nagios will read them > and treat them like other config files. > > I've set up a single config file per host. For example, abcde.cfg would > deal with hostname abcde. It does mean you won't be aggregating > definitions, but that's not necessarily a bad thing. You could create a > file called boilerplate.cfg.example (or something equally meaningful to you) > and use that as the baseline for new host definitions. > > I remember asking (and Ethan responded in the affirmative) whether directory > recursion for cfg_dir would be supported. I don't recall which version > supports it; it could be that 1.0 already has that. Based on that, you > could even go the extra step, creating subdirectories for each hostname, eg, > /usr/local/nagios/etc/configs/abcde, and simply add separate components > (host/service definitions) to that directory (all files ending in .cfg, of > course). > > The only host-related file that I can see you being forced into aggregating > host information, would be hostgroups.cfg. > > Does this help? > > jc > > > -----Original Message----- > > From: Terry Inzauro [mailto:tinzauro at axiomintegration.com] > > Sent: Wednesday, January 08, 2003 11:17 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] One(host) to One(contacts) setup > > > > > > This is a 2 part question. > > > > 1. Has anyone found an easier way of setting up a one host to one > > contact enviroment for nagios. It absolutely suck the way it is right > > now with the hosts,contact,contactgroup, setup now. > > > > 2. Does Nagios support includes in the config files? I would like to > > create one config file for each host instead of creating one type of > > config file for all hosts. I think this approach would be easier to > > manage as well as easier to automate for multiple hosts with the same > > characteristics but different contacts for problems. The one include > > file for the individual host would have all the information that would > > have been in all the *.cfg files. > > > > Please put some thought into this one. Rewards from the naught blonde > > female sex gods would be you future:) > > > > > > Terry > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > 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 swhitney at journyx.com Wed Jan 8 20:40:04 2003 From: swhitney at journyx.com (Scott Whitney) Date: Wed, 8 Jan 2003 13:40:04 -0600 Subject: Nagios errors in pre-flight Message-ID: <0bfb01c2b74d$be4c6e40$aa64a8c0@whitneys> I've been looking at this for awhile, and I'm a little confused. Perhaps the semantics are confusing me. This might be boneheaded, but... Nagios says: Warning: Contact group 'int-pri-page' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Warning: Contact group 'int-sec-email' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Warning: Contact group 'int-sec-page' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Warning: Contact group 'john' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! Warning: Contact group 'nagios' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! These are all used in quite a few service definitions. About what, exactly, is it complaining? Sample from the config where you will see that a couple of these are definitely used: ####################### BEGIN SERVICE DEFINITION ####################### define service { use int-service host_name lorax service_description disk_root check_command check_nrpe!root } define serviceescalation { use int-pri-page host_name lorax service_description disk_root } define serviceescalation { use int-sec-email host_name lorax service_description disk_root } define serviceescalation { use int-sec-page host_name lorax service_description disk_root } ######################## END SERVICE DEFINITION ######################## -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Wed Jan 8 21:15:13 2003 From: twelsh at square-box.com (Tom Welsh) Date: Wed, 8 Jan 2003 20:15:13 -0000 Subject: VRML an pics in Statusmap In-Reply-To: <3E1BFC02.9040100@aon.at> References: <3E1BFC02.9040100@aon.at> Message-ID: <000c01c2b752$a6fa0680$0400a8c0@squarebox.com> You have not defined your vrml image. Here's how I've done it on nagios.square-box.com # 'gdserver03' host definition define hostextinfo{ host_name gdserver03 icon_image win40.jpg icon_image_alt win40.gif vrml_image win40.png statusmap_image win40.gd2 } you can check out my 3d view at http://nagios.square-box.com and all the configs are on the nagios tab at http://demo.square-box.com 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 York Keyser Sent: 08 January 2003 10:23 To: nagios-users Subject: [Nagios-users] VRML an pics in Statusmap Hello again ;) I still have the problem with vrml I have got a FreeBSD4.7. There I have installed openvrml but it doesn't work ;( I can't find any docu about it. Can somebody help me with this problem. Problem second: I will change the Pics about my computers in status map at the moment i have a "?" there. I can finde the image under: http://localhost/nagios/images/linux40.png I write this in hostextinfo.cfg define hostextinfo{ host_name Excalibur icon_image linux40.png 2d_coords 100.250 } but it doesnt work. :( Thanks 4 helping an sorry about my bad english york -- "Und es heisst auch, frage nicht die Elben um Rat, denn sie werden sowohl Ja als auch Nein sagen." [Frodo] ------------------------------------------------------- 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 sylvain.ouellet at cognicase.ca Wed Jan 8 21:23:28 2003 From: sylvain.ouellet at cognicase.ca (Sylvain Ouellet) Date: Wed, 8 Jan 2003 15:23:28 -0500 Subject: ping problems Message-ID: Hi guys, I have nagios configured and everything works fine. Now what bothers me is that sometimes nagios pings a systems and gives me a 20% packet loss. Now when I do a ping to the same system from the same machine using the ping command, everything seems to be just fine. I can let the ping command go for 15 minutes and I'll get no packet loss but nagios will report a 20 or 40% packet loss. It doesn't happen every day but it happens just enough to make me nervious. So is there anything wrong or any known problems, glitches. Thank you. -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkrzystofiak at endeavors.com Wed Jan 8 21:55:32 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 8 Jan 2003 12:55:32 -0800 Subject: FPING Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63A2@mail.endeavorstech.com> I don't have fping in /libexec I downloaded fping from fping.com and tried to turn it into a plugin... but it doesn't return any values. How can I get the binary? Thanks, Peter ------------------------------------------------------- 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 Wed Jan 8 22:06:30 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Wed, 8 Jan 2003 15:06:30 -0600 Subject: FPING Message-ID: You need to install the fping application from fping.com. Then you can go back to your plugin installation directory and run "make check_fping". It should compile the service check, and then you can move the check_fping binary to the libexec directory. Richard -----Original Message----- From: Peter Krzystofiak [mailto:pkrzystofiak at endeavors.com] Sent: Wednesday, January 08, 2003 2:56 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] FPING I don't have fping in /libexec I downloaded fping from fping.com and tried to turn it into a plugin... but it doesn't return any values. How can I get the binary? Thanks, Peter ------------------------------------------------------- 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 Wed Jan 8 22:32:48 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 16:32:48 -0500 (EST) Subject: ping problems In-Reply-To: References: Message-ID: It is possible for a network to loose some packets and not others... If you suspect a link is getting flakey - with intermittent high packet losses - run another perf app like SmokePing to gather some history about packet loss on a path. -sg On Wed, 8 Jan 2003, Sylvain Ouellet wrote: > Hi guys, > > I have nagios configured and everything works fine. > > Now what bothers me is that sometimes nagios pings a systems and gives > me a 20% packet loss. Now when I do a ping to the same system from the > same machine using the ping command, everything seems to be just fine. I > can let the ping command go for 15 minutes and I'll get no packet loss > but nagios will report a 20 or 40% packet loss. It doesn't happen every > day but it happens just enough to make me nervious. > > So is there anything wrong or any known problems, glitches. > > > > Thank you. > > -- ------------------------------------------------------- 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 Jan 8 22:30:48 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 16:30:48 -0500 (EST) Subject: FPING In-Reply-To: <53109A46D4F58F458B18D009EAEEDC830E63A2@mail.endeavorstech.com> References: <53109A46D4F58F458B18D009EAEEDC830E63A2@mail.endeavorstech.com> Message-ID: On Wed, 8 Jan 2003, Peter Krzystofiak wrote: > I don't have fping in /libexec > > I downloaded fping from fping.com and tried to turn it > into a plugin... but it doesn't return any values. > > How can I get the binary? > > > Thanks, > > Peter Install fping from fping.com somewher in your PATH Delete config.cache in nagiosplugins source dir run configure (to detect fping) and make (to compile check_fping) cp plugins/check_fping to your libexec dir. -- -sg ------------------------------------------------------- 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 Jan 8 22:58:04 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 8 Jan 2003 15:58:04 -0600 Subject: FPING Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ECFFB@mismail.ena.com> Once all this is done Peter, you can create a new check_fping command like so or modify the command_line for your existing check_ping command. # 'check_fping' command definition define command{ command_name check_fping command_line $USER1$/check_fping $HOSTADDRESS$ -n 10 -w500.0 30 -c1000.0 60 } > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Wednesday, January 08, 2003 3:31 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] FPING > > On Wed, 8 Jan 2003, Peter Krzystofiak wrote: > > > I don't have fping in /libexec > > > > I downloaded fping from fping.com and tried to turn it > > into a plugin... but it doesn't return any values. > > > > How can I get the binary? > > > > > > Thanks, > > > > Peter > > Install fping from fping.com somewher in your PATH > > Delete config.cache in nagiosplugins source dir > > run configure (to detect fping) and make (to compile check_fping) > > cp plugins/check_fping to your libexec dir. > > -- > > -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 thom.berre at samlerhuset.no Wed Jan 8 23:15:31 2003 From: thom.berre at samlerhuset.no (Thom Berre) Date: Wed, 8 Jan 2003 23:15:31 +0100 Subject: Hosts / hostgrups Message-ID: <693E33DF086A0940925DB185A440BE8406E275@obelix.samlerhuset.no> Hi! Has there been any discussion regarding the way hostgroups might be used? 1. I often would have needed to make a hostgrup from multiple hostgroups, 2. Another wanted "nice to have" is the possibility to exclude one or more hosts from a hostgroup in a servicedefinition. Are these suggestions good enough for further discussions, or are there other ways of doing this in the current framework? -- Thom Mikail Berre IT Koordinator Samlerhuset Norge AS ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ofb at budget-tech.com Wed Jan 8 23:13:38 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Wed, 8 Jan 2003 17:13:38 -0500 Subject: check_ifoperstatus References: Message-ID: <001201c2b763$32c71b70$0201a8c0@boston> As requested (let me know if there's anything else you might want): >From checkcommands.cfg # 'check_ifoperstatus' command definition define command{ command_name check_ifoperstatus command_line $USER1$/check_ifoperstatus } Other check commands work, so $USER1$ is defined just fine. Also, check_ifoperstatus is working via the command line. >From services.cfg define service{ use generic-service ; Name of service template to use host_name cisco_gateway service_description Ethernet0/0 Status is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups olivier notification_interval 240 notification_period 24x7 notification_options c,r check_command check_ifoperstatus!-H x.x.x.x!-C foobar!-k 3 } Other services against this host work as well, eg. ping. The IPs and community have been changed to protect the innocent! ;-) This is what I get in the status.log: [1042063599] SERVICE;cisco_gateway;PING;OK;1/3;HARD;1042063321;1042063621;ACTIVE;1;1;1;10 42023429;0;OK;191466;0;1190;0;0;0;1;0;5;1;0;0.00;0;1;1;1;PING OK - Packet loss = 0%, RTA = 1.65 ms [1042063599] SERVICE;cisco_gateway;Serial0/0 Status;UNKNOWN;3/3;HARD;1042063289;1042063589;ACTIVE;1;1;1;1042003006;0;UNKN OWN;120;7523;0;81354;0;0;1;0;2;1;0;0.00;0;1;1;1 ;(No output returned from plugin) Thanks, Olivier "Subhendu Ghosh" wrote: > Please post the config... > On Wed, 8 Jan 2003, Olivier Beauchemin (Budget-Tech IT Consulting) wrote: > > > I'm having some trouble getting check_ifoperstatus to work correctly, which > > might be my fault... From the command line, it works just fine, although > > failing to print the results on it's own line. > > > > ie. > > [obeauche at mrtg libexec]# ./check_ifoperstatus -H x.x.x.x -C foobar -d > > Serial0/0 > > OK: Interface Serial0/0 (index 1) is up.[obeauche at mrtg libexec]# > > > > With the same arguments in the service.cfg file, it's working... but I get > > "(No output returned from plugin)" as the status. > > > > So, what does this mean? How do I fix it? > > > > Thanks, > > Olivier ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From showkilr at showkilr.com Wed Jan 8 23:29:35 2003 From: showkilr at showkilr.com (James Peterson) Date: Wed, 8 Jan 2003 16:29:35 -0600 Subject: Nrpe Error Message Message-ID: <008701c2b765$6ce545a0$6600a8c0@playnet.com> here are the args you need to change. server_args = -c /usr/local/nagios/nrpe.cfg --inetd user = nagios James "Showkilr" Peterson > ----- Original Message ----- > From: "Kaplan, Andrew H." > To: "'Jeremy Tinley'" > Cc: > Sent: Wednesday, January 08, 2003 12:51 PM > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The file reads as follows: > > > > # default: on > > # description: NRPE > > service nrpe > > { > > disable = no > > flags = REUSE > > socket_type = stream > > wait = no > > user = root > > server = /usr/local/nagios/nrpe > > server_args = -i /usr/local/nagios/nrpe.cfg > > log_on_failure += USERID > > only_from = 132.183.12.125 > > } > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:47 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:44 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I am running nrpe under xinetd. > > > > I did a netstat -a | grep 5666 and there was no output. I was returned to > a > > shell prompt. > > > > Nrpe.cfg is located at /usr/local/nagios > > > > Anything else? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:36 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, take one giant step backwards. > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > Now do a netstat -a | grep 5666 > > > > What's the output? > > > > Now, where is nrpe.cfg? > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:34 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The messages log file had the following entries: > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:07 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > check_disk? Or check)disk. Not sure if you just made a typo on the > command > > back into the email. > > > > Check the log on oneofxeon, probably in /var/log/messages to see what's > > going > > on. That usually means that you don't have permission to connect (ala, > > /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you > > don't. > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:55 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I entered in the following: > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > and got the following: > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 12:49 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Perhaps I gave you the wrong command.. lowercase c, instead of capital: > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:46 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Here's what I entered: > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > I got the same error message..... > > > > I also tried > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > and got the same result.... > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 12:41 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > You have to specify -C check_disk > > > > It's the same command in the square brackets: > > command[check_users]=.... > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:37 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The command that I entered at the monitoring host was > > > > ./check_nrpe -H oneofxeon -p 5666 -C > /usr/local/nagios/libexec/check_disk -w > > 80 -c 95 > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 11:49 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Try running the check_nrpe command from the monitoring host. > > > > check_nrpe -H -p -C check_userrs > > > > see if that gets you any further. > > > > I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 > > > > -J > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, > > Andrew > > H. > > Sent: Wednesday, January 08, 2003 10:33 AM > > To: 'Carroll, Jim P [Contractor]' > > Cc: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Things got a little better since I sent out my e-mail. I am getting a > > connection > > to > > to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS > > SUPPLIED > > error. > > > > When I run the check from the command line, it comes out fine. > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 > > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > What is going on? > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, January 08, 2003 11:05 AM > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > also copied the > > > necessary > > > plugins from the nagios server to the client. The nrpe.cfg > > > file was modified > > > to suit the > > > remote machine's configuration. When I tried to monitor the > > > various services > > > on the client > > > I was confronted with the following error message: > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > as the latest > > > nagios plug-ins. > > > > > > There were no apparent problems with compiling and installing the nrpe > > > client on the remote machine. > > > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > > complete. > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > remote client is > > > Red Hat 7.3 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 pkrzystofiak at endeavors.com Wed Jan 8 23:36:34 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 8 Jan 2003 14:36:34 -0800 Subject: check_fping error Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63A6@mail.endeavorstech.com> when I run the command ./check_fping -H localhost -w 100.0,20% -c 500.0,60% it gives me an error (below) FPING UNKNOWN - localhost my check_ping works fine...am I doing something wrong here? thanks, Peter ------------------------------------------------------- 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 Jan 8 23:38:49 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 17:38:49 -0500 (EST) Subject: check_ifoperstatus In-Reply-To: <001201c2b763$32c71b70$0201a8c0@boston> References: <001201c2b763$32c71b70$0201a8c0@boston> Message-ID: Change "command_line" to : $USER1$/check_ifoperstatus -H $ARG1$ -C $ARG2$ -k $ARG3$ Change "check_command" to : check_ifoperstatus!x.x.x.x!foobar!3 -sg On Wed, 8 Jan 2003, Olivier F. Beauchemin (Budget-Tech IT Consulting) wrote: > As requested (let me know if there's anything else you might want): > > >From checkcommands.cfg > > # 'check_ifoperstatus' command definition > define command{ > command_name check_ifoperstatus > command_line $USER1$/check_ifoperstatus > } > > > Other check commands work, so $USER1$ is defined just fine. Also, > check_ifoperstatus is working via the command line. > > >From services.cfg > > define service{ > use generic-service ; Name of > service template to use > host_name cisco_gateway > service_description Ethernet0/0 Status > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups olivier > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command check_ifoperstatus!-H x.x.x.x!-C > foobar!-k 3 > } > > > Other services against this host work as well, eg. ping. The IPs and > community have been changed to protect the innocent! ;-) > > This is what I get in the status.log: > > [1042063599] > SERVICE;cisco_gateway;PING;OK;1/3;HARD;1042063321;1042063621;ACTIVE;1;1;1;10 > 42023429;0;OK;191466;0;1190;0;0;0;1;0;5;1;0;0.00;0;1;1;1;PING OK - Packet > loss > = 0%, RTA = 1.65 ms > [1042063599] SERVICE;cisco_gateway;Serial0/0 > Status;UNKNOWN;3/3;HARD;1042063289;1042063589;ACTIVE;1;1;1;1042003006;0;UNKN > OWN;120;7523;0;81354;0;0;1;0;2;1;0;0.00;0;1;1;1 > ;(No output returned from plugin) > > > Thanks, > Olivier > > > "Subhendu Ghosh" wrote: > > Please post the config... > > > On Wed, 8 Jan 2003, Olivier Beauchemin (Budget-Tech IT Consulting) wrote: > > > > > I'm having some trouble getting check_ifoperstatus to work correctly, > which > > > might be my fault... From the command line, it works just fine, > although > > > failing to print the results on it's own line. > > > > > > ie. > > > [obeauche at mrtg libexec]# ./check_ifoperstatus -H x.x.x.x -C foobar -d > > > Serial0/0 > > > OK: Interface Serial0/0 (index 1) is up.[obeauche at mrtg libexec]# > > > > > > With the same arguments in the service.cfg file, it's working... but I > get > > > "(No output returned from plugin)" as the status. > > > > > > So, what does this mean? How do I fix it? > > > > > > Thanks, > > > Olivier > -- ------------------------------------------------------- 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 Jan 8 23:19:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 16:19:25 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24DF@PKDWB03C.ad.sprint.com> Also, you can't pass a command to the nrpe daemon. (Not yet, anyway. Refer to earlier thread, concluding in Ethan deciding he would add that feature into NRPE, with restrictions.) You'll need to refer to the token that you've defined in the remote host's nrpe.cfg file. So let's take a trivial example. In this example, the remote host's name is 'wingnut'. In wingnut's nrpe.cfg file, you could have the following defined: command[check_nrpe_status]=echo "OK - NRPE is alive" In this case, on the Nagios host you would run this command line test: ./check_nrpe wingnut -c check_nrpe_status (the "-p 5666" is redundant, as that's the default port) Try this fairly basic test. For one thing, it doesn't rely on plugins, so you can eliminate those as a possible problem. jc > -----Original Message----- > From: Pete Dewell [mailto:pete.dewell at VoltEurope.com] > Sent: Wednesday, January 08, 2003 11:56 AM > To: 'Nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Nrpe Error Message > > > Try leaving out the -H . > > Just use > > check_nrpe ..... > > P > > "Kaplan, Andrew H." wrote: > > > > The command that I entered at the monitoring host was > > > > ./check_nrpe -H oneofxeon -p 5666 -C > /usr/local/nagios/libexec/check_disk -w > > 80 -c 95 > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 11:49 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Try running the check_nrpe command from the monitoring host. > > > > check_nrpe -H -p -C check_userrs > > > > see if that gets you any further. > > > > I noticed that -H and -p were added in the change from nrpe > 1.5 to 1.6 > > > > -J > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Kaplan, > > Andrew > > H. > > Sent: Wednesday, January 08, 2003 10:33 AM > > To: 'Carroll, Jim P [Contractor]' > > Cc: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Things got a little better since I sent out my e-mail. I am > getting a > > connection > > to > > to the remote client. Now I am getting an INCORRECT COMMAND > LINE ARGUMENTS > > SUPPLIED > > error. > > > > When I run the check from the command line, it comes out fine. > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > command[check_disk1]=/usr/local/nagios/libexec/check_disk > 80 95 /dev/sda8 > > command[check_load]=/usr/local/nagios/libexec/check_load > 15,10,5 30,25,20 > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > What is going on? > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, January 08, 2003 11:05 AM > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > also copied the > > > necessary > > > plugins from the nagios server to the client. The nrpe.cfg > > > file was modified > > > to suit the > > > remote machine's configuration. When I tried to monitor the > > > various services > > > on the client > > > I was confronted with the following error message: > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > as the latest > > > nagios plug-ins. > > > > > > There were no apparent problems with compiling and > installing the nrpe > > > client on the remote machine. > > > > > > The /etc/xinetd.d services were restarted after the nrpe > install was > > > complete. > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > remote client is > > > Red Hat 7.3 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > -- > > 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 > ------------------------------------------------------- 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 Jan 8 23:25:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 16:25:18 -0600 Subject: NRPE enhancement Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E126B@PKDWB03C.ad.sprint.com> Sounds great! I can see myself checking into the crypto option. jc > -----Original Message----- > From: Ethan Galstad [mailto:nagios at nagios.org] > Sent: Monday, January 06, 2003 11:48 PM > To: nagios-users > Subject: RE: [Nagios-users] NRPE enhancement > > > I've thought about this for a while now and have decided that I will > allow arguments to be passed to plugins in future versions of NRPE. > I've gotten a lot of requests for this feature and I understand that > it makes configuring things on the central server much easier. > However, because of the security implications this will have, I will > also be doing the following: > > 1. Incorporate encryption similar to NSCA that gives the NRPE daemon > some assurance of a trust level with the client > > 2. Strip all potentially dangerous shell metacharacters from the > arguments before they're passed to the plugin for exection > > Incorporating crypto into NRPE will affect performance a bit, but it > will still probably scale better than check_by_ssh. If the user > decides to disable native crypto support (and tunnel traffic through > stunnel, etc. instead), the NRPE daemon will refuse to accept > arguments for plugins unless the user specifically supplies a --dont- > blame-nrpe option to the configure script before compiling. If the > daemon gets compiled with this option, it will loudly complain in the > logs and elsewhere that is running in an insecure mode. > > Does this approach sound reasonable to people? > > > > On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > > > If you have 500 machines, and among those machines there > are no two disks > > alike, then I can only imagine the grief ahead of you. To > take a page out > > of www.infrastructures.org, it's desireable to maintain a > convergence, not > > divergence, among the various systems. Homogeneity is A > Good Thing ?. > > > > Having said that, rather than maintaining 500 config files, > why not maintain > > a single config file containing all the similar and > dissimilar config > > particulars? Edit that one file, and either push it out > from a trusted host > > ("gold server", in Infrastructures.org parlance). Better > still, set up an > > rsync server (or some other server that you can live with, > and set up a cron > > job to pull down the latest nrpe.cfg file. (As has been > emphasized on their > > list, pull, never push. But take your pick. :) > > > > In our location, I maintain a single nrpe.cfg file, > complete with all the > > unique disk definitions. I'm not sure if it matters to > you, but for the > > most part, I've elected to use the percentage option of > check_disk. 5% free > > on the root partition of an 18GB disk isn't going to be a whole lot > > different from 5% free on root of a 36GB disk. Sure, > mathematically they're > > different, so if exacting differences is critical in your > environment, > > create unique definitions for the different root > partitions. (I'm also > > specifying mount points, not device filenames.) On a > related note, we have > > partitions on our database servers which follow a fairly > straightforward > > naming scheme for the mount points, and since I don't expect those > > partitions to change, I can either exclude them, or I can > set a trivial > > threshold for each of the warning and critical, but in > those cases I specify > > kbytes. (I do the latter; this lets anyone with the > appropriate permissions > > at the web interface view all the defined partitions.) > > > > [Sidebar: I noticed at one point that there's a limit to > the length of the > > command token in nrpe.cfg. As a result, I simplified all > the names. Lesson > > learned: Be economical with the keystrokes.] > > > > If you like, I can send you the nrpe.cfg file that I > install on all our > > hosts. > > > > You might find that instead of one master nrpe.cfg file, > that you'd rather > > manage a handful of dissimilar files. Might still want to use the > > gold/config server, as above. > > > > Food for thought. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 2:43 PM > > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > > cpu-wise, but > > > has problems configuration-wise. (Imagine 500 machines all > > > of which have 5 > > > disks, and different check_disk arguments for each. That's 2500 > > > configuration lines that need to be maintained over 500 > > > machines in 500 > > > files.) > > > > > > Perhaps there is room for something more secure than the > > > current nrpe, but > > > more scalable than check_by_ssh. Does that seem reasonable? > > > If so, does > > > anyone have suggestions for low cost security implementations > > > that could > > > enhance the security of nrpe without the cost of ssh? > > > > > > dave > > > > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > > To: 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > The general consensus is that check_by_ssh isn't a solution > > > which will scale > > > well, due to the nature of the number-crunching crypto beast. > > > This is where > > > NRPE has the advantage. > > > > > > check_by_ssh has the advantage when it comes to punching > > > through a firewall, > > > assuming that an appropriate port is open. Sure, you could > > > open port 5666 > > > for NRPE, but has has been discussed, that doesn't quite > > > leave the same warm > > > fuzzies. > > > > > > HTH. > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > Sent: Monday, December 30, 2002 12:14 PM > > > > To: 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > Let me ask a second question that might help me understand > > > > more clearly the > > > > situation. Check_by_ssh allows for the passing of arbitrary > > > > arguments to > > > > arbitrary command from the centralized Nagios server to any > > > > remote machine > > > > which has sshd running. NRPE allows for executing a specific > > > > command with > > > > specific arguments on any remote machine which has nrpe running. > > > > > > > > As someone setting up monitoring, when should I use > > > > check_by_ssh and when > > > > should I use nrpe? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > Dave Viner > > > > Sent: Monday, December 30, 2002 9:07 AM > > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > I don't think that my enhancement allows an arbitrary > command to be > > > > executed. I think the code that I wrote will only allow one > > > > of the commands > > > > already listed in the nrpe.cfg file to be executed. The > > > > arguments passed > > > > are arbitrary, but not the command. (The code even checks to > > > > ensure that the > > > > command requested, without any arguments, exists before > > > > executing it to > > > > prevent malicious usage of arguments.) > > > > > > > > dave > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > > Sent: Saturday, December 28, 2002 5:02 PM > > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > In my humble opinion an option that allows an arbitary > command to be > > > > executed and which by "default" is switched off is an > > > accident waiting > > > > to happen. > > > > > > > > It only takes 1 security breach via a plugin to completely > > > destroy the > > > > good name Nagios and its associated plugins have. > > > > > > > > There is a good truism that states "good news travels fast, > > > > but bad news > > > > travels even faster" > > > > > > > > I for one would not be too happy having a command > available on my > > > > network, trusted or not that would allow commands to be executed > > > > remotely pon a box. For one. It's the kind of thing im > > > always looking > > > > for when im "playing on my " networks. > > > > > > > > Well that's my two cents worth > > > > > > > > Cheers > > > > > > > > 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 Dave > > > > Viner > > > > Sent: 28 December 2002 21:46 > > > > To: Ethan Galstad; nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > These are excellent arguments for not incorporating the > > > > enhancement I am > > > > suggesting. However, I suspect that there are lots of > > > > installations of > > > > Nagios and NRPE that run on completely trusted network. (Or > > > > the risk of > > > > network intrusion through NRPE is worth the benefit of reduced > > > > configuration > > > > management.) > > > > > > > > What do you think about incorporating this enhancement > but have it > > > > turned > > > > off by default, and enabled only at configure time? > > > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On > Behalf Of Ethan > > > > Galstad > > > > Sent: Friday, December 27, 2002 7:38 PM > > > > To: nagios-users > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > There are several reasons why I have not added support > for arguments > > > > to checks in NRPE. Most have been touched on in the past on the > > > > list, but I'll reiterate them here. The main issue is not > > > overruning > > > > the 2K packet that the check_nrpe plugin and NRPE > daemon pass back > > > > and forth - that can be easily avoided... > > > > > > > > 1. > > > > Users connecting to the NRPE are not authenticated. > Sure, you can > > > > restrict connection based on IP address using TCP > wrappers, but they > > > > are still not authenticated. Also, I am not too > familiar with IP > > > > spoofing, but I'm sure its possible for someone to fake the > > > > originating address of the connection and get the NRPE daemon to > > > > accept the packet and execute the necessary plugin > without too much > > > > trouble. > > > > > > > > 2. > > > > Some plugins (like check_dhcp) may (have to) be > installed suid root. > > > > Regardless of what user the NRPE daemon is running as, > these plugins > > > > will be executed with higher privs. > > > > > > > > 3. > > > > Plugins can be made to segfault under the right conditions. > > > Sure, we > > > > can try and eliminate this possibility, but it will > probably always > > > > exist to some extent since many plugins call system > commands to get > > > > their data. > > > > > > > > --- > > > > > > > > Most remote exploits rely on buffer overflows/segfaults > to get their > > > > work done, so allowing unauthenticated users to pass arbitrary > > > > arguments/data to plugins that might be running suid > commands is a > > > > very bad idea indeed. > > > > > > > > Stunnel would provide some security, but there is no > guarantee that > > > > everyone would use it. There would undoubtably be many > people that > > > > would put off implementing it until they finished "testing" > > > NRPE. In > > > > the worst case, they might never get around to > implementing stunnel > > > > at all. In the likely best case scenario, there is at > > > least a window > > > > of opportunity. I just don't want to be responsible for > > > the possible > > > > carnage that happens at that point. :-) > > > > > > > > Also, incorporating native encryption into NRPE > involves reinventing > > > > the wheel called "check_by_ssh", so I'm really > interested in doing > > > > that. > > > > > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > > > I'm not a C programmer by profession, so I defer your > > > query to those > > > > who > > > > > have a strong background, both in C code and system/network > > > > security. > > > > It > > > > > does presume that every other link in the chain is > bulletproof. > > > > [Insert > > > > > ObRef to Bugtraq here.] > > > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > > that approach > > > > to > > > > > begin with. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > > security implications of this code. I'm not a security > > > > > > expert, so please excuse the somewhat basic question. The > > > > > > struct packet as defined in common/common.h has an argv > > > > > > member which is a character array of length 2048. > I believe > > > > > > this means that if the incoming packet has an argv member > > > > > > whose length is greater than 2048 chars, then the > > > > > > rc=recvall(sock,(char > > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > > should fail, should it not? > > > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > > encryption are good ones, regardless of the inclusion of > > > > this code. > > > > > > > > > > > > thanks > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Carroll, Jim P [Contractor] > > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > > should explicitly > > > > > > state the security risks in forcing the non-default > > > > (added feature) > > > > > > behaviour. > > > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > > daemon starts, it > > > > > > should briefly mention that it has been compiled for this > > > > > > behaviour, and a > > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > > standalone, else > > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > > loud and clear > > > > > > if it's started under root; preferably it would simply not > > > > > > run as root, full > > > > > > stop. > > > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > > only permitting > > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > > desireable. > > > > > > > > > > > > I'm not a security guru, but it seems to me that > facilitating > > > > > > this feature > > > > > > would open oneself up to a buffer overflow attack. > If you're > > > > > > on a trusted > > > > > > network, it's a non-issue. > > > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > > if there were a > > > > > > facility to enforce some level of native encryption, such as > > > > > > what NSCA uses. > > > > > > If you don't have the keys to the house, you get dropped on > > > > > > the floor. (I > > > > > > have a similar wish for NSClient.) > > > > > > > > > > > > Food for thought. > > > > > > > > > > > > jc > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, > I've made a > > > > > > > patch to the nrpe source that implements what I'm > describing. > > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > > sourceforge. > > > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > > nrpe.cfg file lines like this: > > > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it > like this: > > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen > -a "-w 50000 > > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > > > And the effect is that > /usr/local/libexec/nagios/check_disk > > > > > > > is invoked with the -w 50000 -c 10000 -p > /dev/ad0s1e as the > > > > > > > argument string. For example: > > > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > > size of the nrpe.cfg and, more importantly, would > reduce the > > > > > > > number of times you'd need to modify that > configuration file. > > > > > > > Instead the modifications would occur on the centralized > > > > > > > Nagios server's configuration file. > > > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > > source for NRPE-1.6? > > > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Dave Viner > > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > > To: Naios Users > > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > > Security is a great reason for limiting the commands > > > > > > > that NRPE is able to execute. But my suggested > enhancement > > > > > > > wouldn't allow NRPE to execute any command that > isn't listed > > > > > > > in the cfg file. That is, the NRPE would still > need to find > > > > > > > the path to the executable in the nrpe.cfg file, > then use any > > > > > > > remaining information as arguments passed to the > executable. > > > > > > > It is true that this is less secure that forcing > the entire > > > > > > > command line (executable and arguments) in the > config file. > > > > > > > But, so long as the executables are well authored > and handle > > > > > > > unexpected arguments well, I think this > enhancement would not > > > > > > > significantly decrease security. Do you think that > > > > > > > specifying arguments would make NRPE significantly > > > less secure? > > > > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > > Rue Turner > > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > > To: Naios Users > > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > > security. If the > > > > > > > nrpe was allowed to run whatever it was asked it would > > > > be easy to > > > > > > > compromise your machines. This way although your > configs are > > > > > > > hefty (mine > > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > > commands from > > > > > > > this library. > > > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > > Hi, > > > > > > > > I'd like to suggest an enhancement to > NRPE, and if > > > > > > > people think this is a > > > > > > > > good idea, I'll try to make a patch to support my > > > > > > > suggestion. Currently the > > > > > > > > nrpe.cfg file specifies all the commands in > this fashion: > > > > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > > 95 /dev/hda1 > > > > > > > > As result of this design is that if you want to check > > > > > > something like > > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate > lines in the > > > > > > > nrpe.cfg file. > > > > > > > > So, I'd like to propose that we extend > NRPE to allow > > > > > > > for the arguments to a > > > > > > > > command to be specified by the central Nagios server > > > > > > > instead of in the > > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > > command line which > > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > > '/usr/local/nagios/libexec/check_disk'. The > rest would be > > > > > > > specified from > > > > > > > > the central Nagios server in some manner. > > > > > > > > I think this would great simplify the > nrpe.cfg files, > > > > > > > and reduce a lot of > > > > > > > > redundant command definitions that differ only in the > > > > > > arguments they > > > > > > > > require. Also, it would mean that you'd need to update > > > > > > > your nrpe.cfg very > > > > > > > > rarely. In fact, you'd only need to update it > when you add > > > > > > > a new plugin. > > > > > > > > I don't have a concrete suggestion for > implementing > > > > > > > this yet, because I > > > > > > > > want to see if the community is interested in this idea > > > > > > > first. Has this > > > > > > > > idea been suggested previously? Is anyone currently > > > > > > > interested in the idea > > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > > > thanks > > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > > Holiday Gifts! > > > > > > > > Time is running out! Thinkgeek.com has the coolest > > > gifts for > > > > > > > > your favorite geek. Let your fingers do the > > > typing. Visit > > > > Now. > > > > > > > > T H I N K G E E K . C O M > > > http://www.thinkgeek.com/sf/ > > > > > > > > _______________________________________________ > > > > > > > > Nagios-users mailing list > > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > > interest where > > > > > > > an alphabetical list of subjects with references > ought to be. > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the > coolest gifts for > > > > > > > your favorite geek. Let your fingers do the typing. > > > > Visit Now. > > > > > > > T H I N K G E E K . C O M > http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > 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 > _______________________________________________ > 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 Jan 8 23:38:28 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 16:38:28 -0600 Subject: FPING Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E126C@PKDWB03C.ad.sprint.com> I just checked fping.com. Aside from the ability to be able to ping multiple hosts at once (something which doesn't seem to be a useful feature in Nagios, since check_fping still needs to specify only one host), there doesn't appear to be any benefit to it. Is there something I'm missing? jc > -----Original Message----- > From: Marc Powell [mailto:mpowell at ena.com] > Sent: Wednesday, January 08, 2003 3:58 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FPING > > > Once all this is done Peter, you can create a new check_fping command > like so or modify the command_line for your existing > check_ping command. > > # 'check_fping' command definition > define command{ > command_name check_fping > command_line $USER1$/check_fping $HOSTADDRESS$ -n > 10 -w500.0 > 30 -c1000.0 60 > } > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Wednesday, January 08, 2003 3:31 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] FPING > > > > On Wed, 8 Jan 2003, Peter Krzystofiak wrote: > > > > > I don't have fping in /libexec > > > > > > I downloaded fping from fping.com and tried to turn it > > > into a plugin... but it doesn't return any values. > > > > > > How can I get the binary? > > > > > > > > > Thanks, > > > > > > Peter > > > > Install fping from fping.com somewher in your PATH > > > > Delete config.cache in nagiosplugins source dir > > > > run configure (to detect fping) and make (to compile check_fping) > > > > cp plugins/check_fping to your libexec dir. > > > > -- > > > > -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 > _______________________________________________ > 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 bakkerl at lamp.xs4all.nl Thu Jan 9 00:01:25 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 09 Jan 2003 00:01:25 +0100 Subject: Nrpe Error Message In-Reply-To: <5593DA408212D511B0910002A513501F01D28870@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D28870@phsexch20.mgh.harvard.edu> Message-ID: <1042066882.8705.4.camel@peitha> On Wed, 2003-01-08 at 17:33, Kaplan, Andrew H. wrote: > Things got a little better since I sent out my e-mail. I am getting a connection > to > to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS > SUPPLIED > error. > > When I run the check from the command line, it comes out fine. > > Here is the syntax of the nrpe.cfg file on the client: > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > What is going on? After this last line in the nrpe.cfg the may not be a empty line. Delete all chars after the last command-line and save the file. Lennard > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, January 08, 2003 11:05 AM > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > > And running check_nrpe from the command line...? Pass or fail...? > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 9:00 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nrpe Error Message > > > > > > I installed the latest nrpe client on a remote machine, and > > also copied the > > necessary > > plugins from the nagios server to the client. The nrpe.cfg > > file was modified > > to suit the > > remote machine's configuration. When I tried to monitor the > > various services > > on the client > > I was confronted with the following error message: > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > I am running Nagios 1.0 with the latest nrpe client as well > > as the latest > > nagios plug-ins. > > > > There were no apparent problems with compiling and installing the nrpe > > client on the remote machine. > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > complete. > > > > The nagios server is running on a Red Hat 8.0 box and the > > remote client is > > Red Hat 7.3 > > > > > > > > > > ------------------------------------------------------- > > 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 jwedeking at budweiser.com Thu Jan 9 00:10:56 2003 From: jwedeking at budweiser.com (Justin Wedeking) Date: 8 Jan 2003 23:10:56 -0000 Subject: nagios upgrade Message-ID: <20030108231056.22892.qmail@confucius.synacor.com> My email has been acting funny, so I do not even know if my questions made the list. I recently upgraded to nagios, but I am having all kinds of problems. Sorry if I have over posted, but here it my problem. whodevil:/usr/local/nrpep-0.2# ./check_nrpep -h localhost -c check_imapd Use of uninitialized value in split at ./check_nrpep line 145, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 146, line 1. Use of uninitialized value in substitution (s///) at ./check_nrpep line 147, line 1. Use of uninitialized value in right bitshift (>>) at ./check_nrpep line 148, line 1. whodevil:/usr/local/nrpep-0.2# I do not know what is causing this problem, but need to resolve it quickly. Thanks for any help you guys might be willing to offer. Justin Wedeking Information Technology -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Thu Jan 9 00:14:07 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Wed, 8 Jan 2003 17:14:07 -0600 Subject: FPING Message-ID: Fping also has the ability to send out all of the packets nearly simultaneously. The interval between packets is configurable. So instead of waiting 10 seconds for 5 packets to timeout if something goes down, you only have a < 3 second total timeout for all 5 packets. Thereby greatly improving your system performance, even during a large outage on a large network. This is more useful for service checks, since host checks send out only one packet by default. Richard -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 4:38 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] FPING I just checked fping.com. Aside from the ability to be able to ping multiple hosts at once (something which doesn't seem to be a useful feature in Nagios, since check_fping still needs to specify only one host), there doesn't appear to be any benefit to it. Is there something I'm missing? jc > -----Original Message----- > From: Marc Powell [mailto:mpowell at ena.com] > Sent: Wednesday, January 08, 2003 3:58 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] FPING > > > Once all this is done Peter, you can create a new check_fping command > like so or modify the command_line for your existing > check_ping command. > > # 'check_fping' command definition > define command{ > command_name check_fping > command_line $USER1$/check_fping $HOSTADDRESS$ -n > 10 -w500.0 > 30 -c1000.0 60 > } > > > > > -----Original Message----- > > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > > Sent: Wednesday, January 08, 2003 3:31 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] FPING > > > > On Wed, 8 Jan 2003, Peter Krzystofiak wrote: > > > > > I don't have fping in /libexec > > > > > > I downloaded fping from fping.com and tried to turn it > > > into a plugin... but it doesn't return any values. > > > > > > How can I get the binary? > > > > > > > > > Thanks, > > > > > > Peter > > > > Install fping from fping.com somewher in your PATH > > > > Delete config.cache in nagiosplugins source dir > > > > run configure (to detect fping) and make (to compile check_fping) > > > > cp plugins/check_fping to your libexec dir. > > > > -- > > > > -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 > _______________________________________________ > 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 Jan 9 00:31:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 8 Jan 2003 17:31:03 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E0@PKDWB03C.ad.sprint.com> Hmm. That's not what I'm using. This is what I'm using, quite successfully: $ cat /etc/xinetd.d/nrpe # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /home/nagios/bin/nrpe server_args = -i /home/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 127.0.0.1 10.108.58.68 10.108.58.69 } Andrew, I noticed you've set the user to root. For security reasons, after you've completed this 'test phase', I urge you to define an unprivileged account (eg, 'nagios') and set user to nagios, as above. You might also want to add 127.0.0.1 to the only_from declaration, so that after installation, you can do a simple "telnet localhost 5666" to see if the nrpe daemon answers. Oh, and in case it hasn't been mentioned yet, you'll need to restart xinetd. A "pkill -12 xinetd" works under RH Linux 7.2. If things are still dysfunctional, check your /var/log/messages. jc > -----Original Message----- > From: James Peterson [mailto:showkilr at showkilr.com] > Sent: Wednesday, January 08, 2003 4:30 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nrpe Error Message > > > here are the args you need to change. > > server_args = -c /usr/local/nagios/nrpe.cfg --inetd > user = nagios > > > James "Showkilr" Peterson > > ----- Original Message ----- > > From: "Kaplan, Andrew H." > > To: "'Jeremy Tinley'" > > Cc: > > Sent: Wednesday, January 08, 2003 12:51 PM > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > The file reads as follows: > > > > > > # default: on > > > # description: NRPE > > > service nrpe > > > { > > > disable = no > > > flags = REUSE > > > socket_type = stream > > > wait = no > > > user = root > > > server = /usr/local/nagios/nrpe > > > server_args = -i /usr/local/nagios/nrpe.cfg > > > log_on_failure += USERID > > > only_from = 132.183.12.125 > > > } > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:47 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 12:44 PM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I am running nrpe under xinetd. > > > > > > I did a netstat -a | grep 5666 and there was no output. I > was returned > to > > a > > > shell prompt. > > > > > > Nrpe.cfg is located at /usr/local/nagios > > > > > > Anything else? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:36 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Ok, take one giant step backwards. > > > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > > > Now do a netstat -a | grep 5666 > > > > > > What's the output? > > > > > > Now, where is nrpe.cfg? > > > > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 12:34 PM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > The messages log file had the following entries: > > > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > > > What gives? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:07 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > check_disk? Or check)disk. Not sure if you just made a > typo on the > > command > > > back into the email. > > > > > > Check the log on oneofxeon, probably in /var/log/messages > to see what's > > > going > > > on. That usually means that you don't have permission to > connect (ala, > > > /etc/hosts.allow if you run under (x)inetd or the > nrpe.cfg file if you > > > don't. > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:55 AM > > > To: 'Jeremy Tinley' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I entered in the following: > > > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > > > and got the following: > > > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 12:49 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Perhaps I gave you the wrong command.. lowercase c, > instead of capital: > > > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:46 AM > > > To: 'Jeremy Tinley' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Here's what I entered: > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > > > I got the same error message..... > > > > > > I also tried > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > > > and got the same result.... > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 12:41 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > You have to specify -C check_disk > > > > > > It's the same command in the square brackets: > > > command[check_users]=.... > > > > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:37 AM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > The command that I entered at the monitoring host was > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > /usr/local/nagios/libexec/check_disk -w > > > 80 -c 95 > > > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > > > What gives? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 11:49 AM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Try running the check_nrpe command from the monitoring host. > > > > > > check_nrpe -H -p -C check_userrs > > > > > > see if that gets you any further. > > > > > > I noticed that -H and -p were added in the change from > nrpe 1.5 to 1.6 > > > > > > -J > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net] On > Behalf Of Kaplan, > > > Andrew > > > H. > > > Sent: Wednesday, January 08, 2003 10:33 AM > > > To: 'Carroll, Jim P [Contractor]' > > > Cc: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Things got a little better since I sent out my e-mail. I > am getting a > > > connection > > > to > > > to the remote client. Now I am getting an INCORRECT COMMAND LINE > ARGUMENTS > > > SUPPLIED > > > error. > > > > > > When I run the check from the command line, it comes out fine. > > > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 > /dev/sda8 > > > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 > 30,25,20 > > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > > > What is going on? > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Wednesday, January 08, 2003 11:05 AM > > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > > also copied the > > > > necessary > > > > plugins from the nagios server to the client. The nrpe.cfg > > > > file was modified > > > > to suit the > > > > remote machine's configuration. When I tried to monitor the > > > > various services > > > > on the client > > > > I was confronted with the following error message: > > > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > > as the latest > > > > nagios plug-ins. > > > > > > > > There were no apparent problems with compiling and > installing the nrpe > > > > client on the remote machine. > > > > > > > > The /etc/xinetd.d services were restarted after the > nrpe install was > > > > complete. > > > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > > remote client is > > > > Red Hat 7.3 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > _______________________________________________ > 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 steve at dtnspeed.net Wed Jan 8 00:31:23 2003 From: steve at dtnspeed.net (Steven L. Kohrs) Date: 07 Jan 2003 17:31:23 -0600 Subject: check_nagios + MySQL = Nagios possible not running? Message-ID: <1041982283.4106.198.camel@localhost.localdomain> In researching why I too was receiving the "Nagios process may not be running" message, I came across a question. If I'm using MySQL to store my status information, will status.log ever get written to? I say no, because I've been running Nagios all day and there's no entry in this file. The check_nagios script compares the last timestamp from within this file to determining whether Nagios is running, correct? Hence, I'll always receive the warning that the status log was updated too far in the past. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nickbernstein at sbcglobal.net Thu Jan 9 00:48:10 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Wed, 8 Jan 2003 15:48:10 -0800 Subject: Error with "check_ping" and other basic status tools Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79E5D@officesrv.docmagic.com> OS: GNU LINUX, RedHat v. 7.3 Nagios: 1.0 Overview: I've successfully installed nagios and have it at the point where one host is defined and it doesn't give me errors when I start it. Currently, I'm getting the error: "(Return code of 127 is out of bounds - plugin may be missing)" - which would be expected, and in fact was expected in regards to something like the free-space, or Current Users checks, but I wouldn't think for the ping. I would have to install client software for the the other checks, but not for ping. I'm sure that this has been discussed before, and I apologize. This is happening in essentially the default install but I didn't see anything in the installation/configuration guide that discussed this. This is my first time setting up nagios, and the only thing that I could find that seemed even close to relevant was this: http://www.nagios.org/faqs/viewfaq.php?faq_id=17 but from what I I understand, nagios got rid of the /usr/local/nagios/libexec directory when it changed over from netsaint -> nagios. I did an "fgrep ping *" in the nagios/etc directory to see if I could figure out what nagios was calling to try and ping the server (one would think /bin/ping but you never know) and the only thing I could come up with is that in the checkcommands.cfg file the check_ping command is defined as: # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } and resource.cfg:$USER1$=/usr/local/nagios/libexec Am I daft, or just missing something? It seems like the /usr/local/nagios/libexec directory should have been created during installation and there should be a *bunch* of stuff in it. Could someone point to where I can get these files? Any help or explanations would be very greatly appreciated. Thanks in advance, Nick -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | nickbernstein at inbox.lv | +--------------------------------------------------------------------------- --------+ ------------------------------------------------------- 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 Jan 9 01:28:09 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 8 Jan 2003 16:28:09 -0800 (PST) Subject: Error with "check_ping" and other basic status tools In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79E5D@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79E5D@officesrv.docmagic.com> Message-ID: <20030109002809.36342.qmail@web21511.mail.yahoo.com> You need to download and install the plugins, and they'll endup in /usr/local/libexec/nagios... :) "Nicholas P. Bernstein" wrote:OS: GNU LINUX, RedHat v. 7.3 Nagios: 1.0 Overview: I've successfully installed nagios and have it at the point where one host is defined and it doesn't give me errors when I start it. Currently, I'm getting the error: "(Return code of 127 is out of bounds - plugin may be missing)" - which would be expected, and in fact was expected in regards to something like the free-space, or Current Users checks, but I wouldn't think for the ping. I would have to install client software for the the other checks, but not for ping. I'm sure that this has been discussed before, and I apologize. This is happening in essentially the default install but I didn't see anything in the installation/configuration guide that discussed this. This is my first time setting up nagios, and the only thing that I could find that seemed even close to relevant was this: http://www.nagios.org/faqs/viewfaq.php?faq_id=17 but from what I I understand, nagios got rid of the /usr/local/nagios/libexec directory when it changed over from netsaint -> nagios. I did an "fgrep ping *" in the nagios/etc directory to see if I could figure out what nagios was calling to try and ping the server (one would think /bin/ping but you never know) and the only thing I could come up with is that in the checkcommands.cfg file the check_ping command is defined as: # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } and resource.cfg:$USER1$=/usr/local/nagios/libexec Am I daft, or just missing something? It seems like the /usr/local/nagios/libexec directory should have been created during installation and there should be a *bunch* of stuff in it. Could someone point to where I can get these files? Any help or explanations would be very greatly appreciated. Thanks in advance, Nick -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From desmondc at bii.a-star.edu.sg Thu Jan 9 01:55:52 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Thu, 9 Jan 2003 08:55:52 +0800 Subject: Error with "check_ping" and other basic status tools References: <20030109002809.36342.qmail@web21511.mail.yahoo.com> Message-ID: <009701c2b779$dc1e3c10$0b79a8c0@desmond> /usr/local/nagios/libexec you mean?? :-) ----- Original Message ----- From: Jon Lyons To: Nicholas P. Bernstein ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 8:28 AM Subject: Re: [Nagios-users] Error with "check_ping" and other basic status tools You need to download and install the plugins, and they'll endup in /usr/local/libexec/nagios... :) "Nicholas P. Bernstein" wrote: OS: GNU LINUX, RedHat v. 7.3 Nagios: 1.0 Overview: I've successfully installed nagios and have it at the point where one host is defined and it doesn't give me errors when I start it. Currently, I'm getting the error: "(Return code of 127 is out of bounds - plugin may be missing)" - which would be expected, and in fact was expected in regards to something like the free-space, or Current Users checks, but I wouldn't think for the ping. I would have to install client software for the the other checks, but not for ping. I'm sure that this has been discussed before, and I apologize. This is happening in essentially the default install but I didn't see anything in the installation/configuration guide that discussed this. This is my first time setting up nagios, and the only thing that I could find that seemed even close to relevant was this: http://www.nagios.org/faqs/viewfaq.php?faq_id=17 but from what I I understand, nagios got rid of the /usr/local/nagios/libexec directory when it changed over from netsaint -> nagios. I did an "fgrep ping *" in the nagios/etc directory to see if I could figure out what nagios was calling to try and ping the server (one would think /bin/ping but you never know) and the only thing I could come up with is that in the checkcommands.cfg file the check_ping command is defined as: # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } and resource.cfg:$USER1$=/usr/local/nagios/libexec Am I daft, or just missing something? It seems like the /usr/local/nagios/libexec directory should have been created during installation and there should be a *bunch* of stuff in it. Could someone point to where I can get these files? Any help or explanations would be very greatly appreciated. Thanks in advance, Nick -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 ------------------------------------------------------------------------------ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From nickbernstein at sbcglobal.net Thu Jan 9 02:36:57 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Wed, 8 Jan 2003 17:36:57 -0800 Subject: (Q) Defining services to use hostgroups instead of hosts Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79E5F@officesrv.docmagic.com> Is this possible? I tried changing the host_name config line to that of a hostgroup (as defined in the nagios/etc/hostgroups.cfg file) and I also tried changing the host_name category to host_group, but got no love on that one either. -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | nickbernstein at inbox.lv | +--------------------------------------------------------------------------- --------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jboulter at yahoo-inc.com Thu Jan 9 02:52:45 2003 From: jboulter at yahoo-inc.com (Jeff Boulter) Date: Wed, 8 Jan 2003 17:52:45 -0800 Subject: Setting up service dependencies Message-ID: <00ed01c2b781$cea3f130$24ea7ecf@JBOULTER> I think I found a workaround for this. For some servers, like webservers most of the services are some form of HTTP request, so I changed the check_command on the host to do a simple http request. If that fails, then the host is considered 'down' rather than just using the standard ping check. If this is 'bad' for some reason, please let me know. second question: is it possible to pass arbitrary ssh parameters to check_ssh, like "-1" for ssh v1? Doesn't appear so, but maybe there's a trick? Jeff -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 10:12 AM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Setting up service dependencies I've looked at the examples that come with nagios and they don't seem to address the problem of using hostgroups versus hosts. I'm not using NPRE, but if you have examples using hostgroups, I'd love to see them. Jeff -----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: Tuesday, January 07, 2003 1:47 PM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Jan 9 04:24:53 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 22:24:53 -0500 (EST) Subject: Question on host/newtork load In-Reply-To: <20030104121906.GA1752@localhost> References: <20030104121906.GA1752@localhost> Message-ID: On Sat, 4 Jan 2003, Gilles Poiret wrote: > Hi, > > I plan to monitor a large network (spread : worldwide, 30 equipments, 60 > services to begin) I have to have very accurate information, so checks > will occur every 1 or 2 min, I think.( for instance, to catch a reboot) An interval of less than 5 minutes is not reasonable when actively monitoring a device on the other side of the world. You basic packet latency is going to be in the order of seconds depending on the bandwidth. > > First point > ----------- > > I'm wondering about the type of Nagios host required (CPU, memory,...) in that configuration, and if the volume of equipments/services raise (x2, for instance) > ( Is a PIII 750 Mhz, 256 Mo RAM enough ?) > > This host will also run MRTG, to view bandwidth on 20 equipments. Shouldn't have any problem. - make sure your disk is fast and watch your disk I/O > > Second point > ------------ > which is the bandwidth overhead generated by those checks ? Is there a way to evaluate it by advance ? > run a couple of the service chesk your are interested in and do a packet capture - tcpdump/ethereal... -sg > I'd like feedback from people who are using Nagios on that context. > > > Thanks for advance, > -- ------------------------------------------------------- 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 Jan 9 04:26:29 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 22:26:29 -0500 (EST) Subject: disk_check_smb ==> No Output !? In-Reply-To: <1041973888.2853.7.camel@pivert.pivertdomain.be> References: <1041973888.2853.7.camel@pivert.pivertdomain.be> Message-ID: copy utils.pm from plugin-scripts to the libexec dir. (usually gets installed with make install) -sg On 7 Jan 2003, Pivert wrote: > I think so... > > > # 'check_disk_smb' command definition > define command{ > command_name check_disk_smb > command_line $USER1$/check_disk_smb -H $HOSTADDRESS$ -s > $ARG1$ -u username -p password > } > > But I think here is the answer : > > monitoringServer:~ # /usr/local/nagios/plugins/check_disk_smb -H > MYSERVER -s aShareOnTheServer -u username -p password > Can't locate utils.pm in @INC (@INC contains: nagios/plugins > /usr/lib/perl5/5.6.0/i586-linux /usr/lib/perl5/5.6.0 > /usr/lib/perl5/site_perl/5.6.0/i586-linux /usr/lib/perl5/site_perl/5.6.0 > /usr/lib/perl5/site_perl .) at /usr/local/nagios/plugins/check_disk_smb > line 29. > BEGIN failed--compilation aborted at > /usr/local/nagios/plugins/check_disk_smb line 29. > > monitoringServer:~ # cd /usr/local/nagios/plugins/ > > monitoringServer:/usr/local/nagios/plugins # ./check_disk_smb -H > MYSERVER -s aSh > areOnTheServer -u username -p password > Disk ok - 21.45G (87%) free on \\MYSERVER\aShareOnTheServer > monitoringServer:/usr/local/nagios/plugins # > > Le lun 06/01/2003 ? 16:24, Carroll, Jim P [Contractor] a ?crit : > > Is check_disk_smb properly defined in checkcommands.cfg? > > > > jc > > > > > -----Original Message----- > > > From: Pivert [mailto:pivert_home at yahoo.fr] > > > Sent: Friday, January 03, 2003 6:45 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] disk_check_smb ==> No Output !? > > > > > > > > > Hi !! > > > > > > I have a verry strange problem with Nagios and this plugin. > > > In nagios, I > > > have the plugin telling (No output!) : > > > > > > [1041349454] SERVICE NOTIFICATION: > > > sysmsg;MyWindowsHost;DISK;CRITICAL;notify-by-email;(No output!) > > > > > > And it I check the service manually : > > > > > > eye:/usr/local/nagios/plugins # ./check_disk_smb -H MyWindowsHost -s > > > AShare -u smb_check_user -p smb_check_password > > > Disk ok - 21.45G (87%) free on \\MyWindowsHost\AShare > > > eye:/usr/local/nagios/plugins # > > > > > > I tryed with the same user as nagios run without success.. > > > > > > Does anybody have an idea ?! > > > > > > Thanks!!! > > > > > > > > > Pivert. > > > > > > ___________________________________________________________ > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > ___________________________________________________________ > 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 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 Jan 9 04:15:10 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 22:15:10 -0500 (EST) Subject: Nagios errors in pre-flight In-Reply-To: <0bfb01c2b74d$be4c6e40$aa64a8c0@whitneys> References: <0bfb01c2b74d$be4c6e40$aa64a8c0@whitneys> Message-ID: the use statement below refers to a template - not a contact group. Perhaps your service-template "int-pri-page" needs to have a contact_group field called "int-pri-page" -sg On Wed, 8 Jan 2003, Scott Whitney wrote: > I've been looking at this for awhile, and I'm a little confused. Perhaps the semantics are confusing me. This might be boneheaded, but... > > Nagios says: > Warning: Contact group 'int-pri-page' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! > Warning: Contact group 'int-sec-email' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! > Warning: Contact group 'int-sec-page' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! > Warning: Contact group 'john' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! > Warning: Contact group 'nagios' is not used in any hostgroup/service definitions or host/hostgroup/service escalations! > > These are all used in quite a few service definitions. About what, exactly, is it complaining? > > Sample from the config where you will see that a couple of these are definitely used: > > ####################### BEGIN SERVICE DEFINITION ####################### > define service { > use int-service > host_name lorax > service_description disk_root > check_command check_nrpe!root > } > > define serviceescalation { > use int-pri-page > host_name lorax > service_description disk_root > } > define serviceescalation { > use int-sec-email > host_name lorax > service_description disk_root > } > define serviceescalation { > use int-sec-page > host_name lorax > service_description disk_root > } > ######################## END SERVICE DEFINITION ######################## > -- ------------------------------------------------------- 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 Jan 9 04:52:29 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 8 Jan 2003 22:52:29 -0500 (EST) Subject: wonderful tool for speeding up nagios In-Reply-To: <20021220162545.GS9740@jinny.ie> References: <20021220162545.GS9740@jinny.ie> Message-ID: On Fri, 20 Dec 2002, John P. Looney wrote: > My monitoring box is a low-end raq3, so the massive number of snmpgets > that it was doing was cripping the box - it had a constant load of 4 till > I reduced the monitoring time to 8 minutes, and the load went back to 1.5 > or so. > > I've just installed the snmp proxy from ;http://freshmeat.net/releases/107146/ > > And my load is now down to 0.07 :) I'm happy. highly recommended for > performance - but I'd be interested to know if people have opinions on > it's stability. > > John > > Reading all the MIB files is know resource hog and some pactches exist to limit what files to read. The code looks interesting and your speedup is certainly impressive. Haven't used it as yet. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tribune at cybersol.com.au Thu Jan 9 08:31:15 2003 From: tribune at cybersol.com.au (Mario Zuppini) Date: Thu, 9 Jan 2003 17:31:15 +1000 Subject: nagios 1.0 config files missing?? Message-ID: <003501c2b7b1$1804fe30$238e22cb@wogboy> Hi, I've installed via debian package the latest nagios 1.0 and all the config has gone seemingly well until i went to compile the plugins, im getting the error [1042096870] Error: Host check command 'check-host-alive' specified for host 'printer1' is not defined anywhere! [1042096870] Error: Host check command 'check-host-alive' specified for host 'printer2' is not defined anywhere! and [1042096870] Error: Service check command 'check_ftp' specified in service 'FTP' for host 'bashful' not defined anywhere! [1042096870] Error: Service check command 'check_ping' specified in service 'PING' for host 'bashful' not defined anywhere! [1042096870] Error: Service check command 'check_pop' specified in service 'POP3' for host 'bashful' not defined anywhere! now from what I can gather, these should be defined in /etc/nagios/checkcommands.cfg ? and that file tells me to update it via the update-nagios command, but it only creates a blank file becuase there are no cfg files in /usr/share/nagios/pluginconfig where / how do i get the cfg files for the plugins ??? all help appreciated, im tearing my hair out here trying to find a solution for it. Please feel free to contact us with any further queries. Thank You Mario Zuppini Systems Administrator Total Cybersolutions www.cybersol.com.au PO BOX 2081 Windsor QLD 4030 Australia Phone : +617-3861-0882 Fax: +617-3861-0884 sysadmin at cybersol.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: From Fredrik.Wanglund at datavis.se Thu Jan 9 08:45:48 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 9 Jan 2003 08:45:48 +0100 Subject: (Q) Defining services to use hostgroups instead of hosts Message-ID: <9EA0F1554816EB499A4B1136B80E8DE278045D@storevis.datavis.se> Change the line 'host_name xxx' to 'hostgroup_name yyy' /FredrikW -----Original Message----- From: Nicholas P. Bernstein [mailto:nickbernstein at sbcglobal.net] Sent: Thu 09-Jan-03 02:36 To: Nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] (Q) Defining services to use hostgroups instead of hosts Is this possible? I tried changing the host_name config line to that of a hostgroup (as defined in the nagios/etc/hostgroups.cfg file) and I also tried changing the host_name category to host_group, but got no love on that one either. -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 tdeblend at gcc.dhl.com Thu Jan 9 09:01:17 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 09 Jan 2003 09:01:17 +0100 Subject: NSClient error References: <74D428BDBFD5D04CB54E84499ECA29DB2F24DA@PKDWB03C.ad.sprint.com> Message-ID: <3E1D2C4D.AA544D29@gcc.dhl.com> This is a known issue and has een discussed many times before on this list. I experience the same thing on some servers, nut not all of them. The strange thing is that I have a Citrix farm with five servers that have the very same hardware and have the very same Ghost image. Yet it only happens on two of them. The author has announced a fix in the long awaited next release. Let me guess: you are seeing this behaviour on a multi processor Compaq (Proliant) server? "Carroll, Jim P [Contractor]" wrote: > > We're in the process of rolling out NSClient, and our NT guru is stumped > with the following error: > > 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 Collect CPU - > ERROR: 0x800007D6. > > Oddly, this is only happening on one host. (We've got NSClient running on 4 > hosts so far.) > > Version of NSClient is 1.0.7.0 on 3 of these hosts, including the problem > host. > > Can anyone shed any light on this? > > TIA, > > 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 ralf.wurzinger at materna.fr Thu Jan 9 09:58:09 2003 From: ralf.wurzinger at materna.fr (Ralf Wurzinger) Date: Thu, 09 Jan 2003 09:58:09 +0100 Subject: can not compile check_nt on Solaris 9 In-Reply-To: References: Message-ID: <3E1D39A1.2040102@materna.fr> Thanks a lot! This got me on the right way. One has to add a few other object files with variables and functions referenced by check_nt.c Being in the plugins directory the following command works: gcc -g -O2 -I. -L. -o check_nt utils.o negate.o popen.o snprintf.o getopt1.o getopt.o Ralf Subhendu Ghosh wrote: >remove the -lutils in the second command - there is no libutils.so, just >utils.o > >-sg > >On Wed, 8 Jan 2003, Ralf Wurzinger wrote: > > > >>Hello, >> >>I have a problem compiling check_nt plugin on a Solaris 9 box using gcc 3.2. >>I have installed nagios-plugins-200211131100 with success and can get >>them working, however copying check_nt.c to the plugin directory and >>following the proposition posted on this mailing list by Subhendu Ghosh >>on 2002-11-15 failed: >> >> gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins >>-c check_nt.c >> >>This creates the object file. >> >>But then >> >> gcc -g -O2 -I/path/to/nagiosplug/plugins -L/path/to/nagiosplug/plugins >> -o check_nt utils.o -lutils >> >>gives: >> >>ld: fatal: library -lutils: not found >> >>There is a utils.o file in the directory which was created during the >>plugin compilation. >> >>Anybody knows the right gcc command line? >> >>Thank's a lot! >> >>Ralf >> >> >> >>------------------------------------------------------- >>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 Markus.Kraus.hp at sysde.eads.net Thu Jan 9 10:12:06 2003 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Thu, 9 Jan 2003 10:12:06 +0100 Subject: nagios 1.0 config files missing?? Message-ID: "where / how do i get the cfg files for the plugins ???" There are no config files for the plugins but for the nagios process that uses the plugins. Do you "make install-config # install sample-Files to /usr/local/nagios/etc" to generate sample config files? It also seems that you don't have the default directory structure of nagios? Perhaps the config files are somewhere, the nagios process can't find them?! To make things easier I recommend you to use the default structure "usr/local/nagios/" and so on. -----Original Message----- From: Mario Zuppini [mailto:tribune at cybersol.com.au] Sent: Donnerstag, 9. Januar 2003 08:31 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios 1.0 config files missing?? Hi, I've installed via debian package the latest nagios 1.0 and all the config has gone seemingly well until i went to compile the plugins, im getting the error [1042096870] Error: Host check command 'check-host-alive' specified for host 'printer1' is not defined anywhere! [1042096870] Error: Host check command 'check-host-alive' specified for host 'printer2' is not defined anywhere! and [1042096870] Error: Service check command 'check_ftp' specified in service 'FTP' for host 'bashful' not defined anywhere! [1042096870] Error: Service check command 'check_ping' specified in service 'PING' for host 'bashful' not defined anywhere! [1042096870] Error: Service check command 'check_pop' specified in service 'POP3' for host 'bashful' not defined anywhere! now from what I can gather, these should be defined in /etc/nagios/checkcommands.cfg ? and that file tells me to update it via the update-nagios command, but it only creates a blank file becuase there are no cfg files in /usr/share/nagios/pluginconfig where / how do i get the cfg files for the plugins ??? all help appreciated, im tearing my hair out here trying to find a solution for it. Please feel free to contact us with any further queries. Thank You Mario Zuppini Systems Administrator Total Cybersolutions www.cybersol.com.au PO BOX 2081 Windsor QLD 4030 Australia Phone : +617-3861-0882 Fax: +617-3861-0884 sysadmin at cybersol.com.au -------------- next part -------------- An HTML attachment was scrubbed... URL: From tdeblend at gcc.dhl.com Thu Jan 9 10:28:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 09 Jan 2003 10:28:41 +0100 Subject: nagios 1.0 config files missing?? References: Message-ID: <3E1D40C9.F07F0A29@gcc.dhl.com> In sum: don't use the deb packages, but compile Nagios from source :-) > "Kraus, Markus" wrote: > > "where / how do i get the cfg files for the plugins ???" > There are no config files for the plugins but for the nagios process > that uses the plugins. Do you "make install-config # install > sample-Files to /usr/local/nagios/etc" to generate sample config > files? It also seems that you don't have the default directory > structure of nagios? Perhaps the config files are somewhere, the > nagios process can't find them?! To make things easier I recommend > you to use the default structure "usr/local/nagios/" and so on. > > -----Original Message----- > From: Mario Zuppini [mailto:tribune at cybersol.com.au] > Sent: Donnerstag, 9. Januar 2003 08:31 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nagios 1.0 config files missing?? > > Hi, > > I've installed via debian package the latest nagios 1.0 > and all the config has gone seemingly well until i went to > compile the plugins, im getting the error > > [1042096870] Error: Host check command 'check-host-alive' > specified for host 'printer1' is not defined anywhere! > [1042096870] Error: Host check command 'check-host-alive' > specified for host 'printer2' is not defined anywhere! > > and > > [1042096870] Error: Service check command 'check_ftp' > specified in service 'FTP' for host 'bashful' not defined > anywhere! > [1042096870] Error: Service check command 'check_ping' > specified in service 'PING' for host 'bashful' not defined > anywhere! > [1042096870] Error: Service check command 'check_pop' > specified in service 'POP3' for host 'bashful' not defined > anywhere! > > now from what I can gather, these should be defined in > /etc/nagios/checkcommands.cfg ? and that file tells me to > update > it via the update-nagios command, but it only creates a > blank file becuase there are no cfg files in > /usr/share/nagios/pluginconfig > > where / how do i get the cfg files for the plugins ??? > > all help appreciated, im tearing my hair out here trying > to find a solution for it. > > Please feel free to contact us with any further queries. > > Thank You > > Mario Zuppini > Systems Administrator > > Total Cybersolutions > www.cybersol.com.au > > PO BOX 2081 > Windsor QLD 4030 > Australia > Phone : +617-3861-0882 > Fax: +617-3861-0884 > sysadmin at cybersol.com.au > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dennis.cannell at itouch.ie Thu Jan 9 13:07:05 2003 From: dennis.cannell at itouch.ie (Dennis Cannell) Date: Thu, 9 Jan 2003 12:07:05 -0000 Subject: Setting inital state of passive services In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ECF89@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ECF89@mismail.ena.com> Message-ID: Hi Marc, > Nagios does not natively support the behavior you are looking for and as > you've surmised, it will keep the services in a pending state until it > receives some sort of check result for that service. Thanks for the response, I think solution 3 would be best for me, so I'm going to have a go at that. As it happens I've also found a stop-gap kind of measure. The passive checks are for SNMP traps. As I'm using Net-SNMP 4.2.3, and need to use a polling script to check for ErrorFlags and send traps, I just got said script to send "OK" traps when it starts up. That doesn't solve the problem when Nagios is restarted after snmpd however so I'll try solution three ;-) Cheers Dennis ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From KreigD at webex.com Thu Jan 9 13:18:31 2003 From: KreigD at webex.com (Kreig Dubose) Date: Thu, 9 Jan 2003 04:18:31 -0800 Subject: Nagios & Architecture Message-ID: Hello All- I'm a new user of the mailing list and the product and am quite excited about the program and how it can help out with my duties/responsibilities. On to my question: Having spent the better part of this early morning searching the web and the archives I can't find anything that really relates to the Fail-over/Remote Monitoring capabilities and architecture of Nagios. Are there any good bits of information floating about regarding the Implementation Architecture for Nagios ? I'd hate to start down an bad road? Eventually this could be a multi-continent 1000 Plus machine install. Thanks. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From KreigD at webex.com Thu Jan 9 13:22:02 2003 From: KreigD at webex.com (Kreig Dubose) Date: Thu, 9 Jan 2003 04:22:02 -0800 Subject: New Nagios and DB Functionality Message-ID: I've been tasked with ressurecting Nagios. Unfortunately for me my mgr would like it to incorporate either MySQL or PostGreSQL. I have very little DB experience aside from an antiquated PL/SQL class years ago. In reading the archives I can see plusses and minuses for incorporating DB functionality but what with it going away from the main code and my inexperience I'm looking for other opinions. Fail-over and redundancy are important issues for this install. Is that going to only be available with a DB ? TIA ------------------------------------------------------- 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 Jan 9 13:39:31 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Thu, 9 Jan 2003 13:39:31 +0100 Subject: (Q) Defining services to use hostgroups instea d of hosts Message-ID: Have you tried "hostgroup_name"? That works for me ;-)) -vol > -----Original Message----- > From: Nicholas P. Bernstein [mailto:nickbernstein at sbcglobal.net] > Sent: Thursday, January 09, 2003 2:37 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] (Q) Defining services to use > hostgroups instead > of hosts > > > Is this possible? I tried changing the host_name config line > to that of a > hostgroup (as defined in the nagios/etc/hostgroups.cfg file) > and I also > tried changing the host_name category to host_group, but got > no love on that > one either. > > -- > > +------------------------------------------------------------- > -------------- > --------+ > | Nicholas Bernstein | Work: > | Home: | > | UNIX Systems Administrator | nick at docmagic.com | > nickbernstein at sbcglobal.net | > | Document Systems Inc. | www.docmagic.com > | 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 mpowell at ena.com Thu Jan 9 14:50:13 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 9 Jan 2003 07:50:13 -0600 Subject: Nagios & Architecture Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E267F4@mismail.ena.com> Check out the Distributed Monitoring section of the Nagios documentation. I believe there is also an Advanced Topics section that might be pertinent. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Kreig Dubose To: 'nagios-users at lists.sourceforge.net' Sent: Thu Jan 09 06:18:31 2003 Subject: [Nagios-users] Nagios & Architecture Hello All- I'm a new user of the mailing list and the product and am quite excited about the program and how it can help out with my duties/responsibilities. On to my question: Having spent the better part of this early morning searching the web and the archives I can't find anything that really relates to the Fail-over/Remote Monitoring capabilities and architecture of Nagios. Are there any good bits of information floating about regarding the Implementation Architecture for Nagios ? I'd hate to start down an bad road? Eventually this could be a multi-continent 1000 Plus machine install. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Thu Jan 9 14:48:58 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 9 Jan 2003 08:48:58 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28880@phsexch20.mgh.harvard.edu> I ran netstat and I simply returned to the command prompt without any output appearing on the screen. I restarted xinetd via /etc/rc.d/init.d/xinetd restart and there were no messages from nrpe in the log. Finally, I ran the command line you suggested, but did not get any different reaction. What now? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 3:25 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Sorry, I was at lunch. :) Ok, check netstat again and see if it's bound. You should have something like this: $ netstat -a | grep 5666 tcp 0 0 *:5666 *:* LISTEN If you don't, then nrpe isn't running. Restart xinetd. If you get no messages from nrpe in the log and it still isn't running, you need to try running it manually. /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon Let me know what that does. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Jeremy -- Sorry to bother you, but have you any ideas why I'm having this problem? Thanks. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:16 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message What does /var/log/messages show now? And what's the ls -al output of /usr/local/nagios ? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:15 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Did what you asked...and still no luck.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:02 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the server_args changed), then make sure that /usr/local/nagios/nrpe is chmod 755 (-rwxr-xr-x): # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = --inetd -c /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message The version of nrpe that I am using is version 1.6. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:57 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message One more.. what version of NRPE are you using on oneofxeon # /usr/local/nagios/bin/nrpe --help NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Version: 1.5 Last Modified: 06-03-2002 License: GPL Then give me an "ls -al /usr/local/nagios/nrpe" -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:52 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The file reads as follows: # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = -i /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:47 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, what's the /etc/xinetd.d/nrpe file look like? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:44 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I am running nrpe under xinetd. I did a netstat -a | grep 5666 and there was no output. I was returned to a shell prompt. Nrpe.cfg is located at /usr/local/nagios Anything else? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:36 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, take one giant step backwards. How are you running nrpe? As a daemon or xinetd/inetd? Now do a netstat -a | grep 5666 What's the output? Now, where is nrpe.cfg? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:34 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 kuehne at sietec.de Thu Jan 9 15:17:59 2003 From: kuehne at sietec.de (Alex Kuehne) Date: Thu, 09 Jan 2003 15:17:59 +0100 Subject: check_nagios + MySQL = Nagios possible not running? Message-ID: <3E1D8497.3080400@sietec.de> > -----Original Message----- > From: Steven L. Kohrs [mailto:steve at dtnspeed.net] > Sent: Wednesday, January 08, 2003 12:31 AM > To: Nagios Mailing List > Subject: [Nagios-users] check_nagios + MySQL = Nagios possible not > running? > > > In researching why I too was receiving the "Nagios process may not be > running" message, I came across a question. If I'm using > MySQL to store > my status information, will status.log ever get written to? I have all my stuff in a MySQL database and status.log gets written, at least one time per hour. > The check_nagios script compares the last timestamp from within this > file to determining whether Nagios is running, correct? Hence, I'll > always receive the warning that the status log was updated too far in > the past. Make sure the nagios process have write permission to its logfile. Also test whether your check_nagios command is set up properly. Best Regards Alex Kuehne -- Network Manager, SAG, Berlin, Germany ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Thu Jan 9 15:44:19 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 9 Jan 2003 09:44:19 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28882@phsexch20.mgh.harvard.edu> I ran the ps auxww | grep npre command and nrpe did not appear. If nrpe is not starting up, what is going on and what do I need to do to get it up and running? I have followed the instructions to the letter and there should be no reason for this to be happening. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Thursday, January 09, 2003 9:41 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message When you ran: /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon It should have returned you to a prompt. Check ps auxww | grep nrpe and it should be running. Then check netstat. The problem it appears is that nrpe isn't starting. Once you get nrpe started, it should show up in netstat, then you can try sending commands to it. -J -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Thursday, January 09, 2003 7:49 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I ran netstat and I simply returned to the command prompt without any output appearing on the screen. I restarted xinetd via /etc/rc.d/init.d/xinetd restart and there were no messages from nrpe in the log. Finally, I ran the command line you suggested, but did not get any different reaction. What now? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 3:25 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Sorry, I was at lunch. :) Ok, check netstat again and see if it's bound. You should have something like this: $ netstat -a | grep 5666 tcp 0 0 *:5666 *:* LISTEN If you don't, then nrpe isn't running. Restart xinetd. If you get no messages from nrpe in the log and it still isn't running, you need to try running it manually. /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon Let me know what that does. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Jeremy -- Sorry to bother you, but have you any ideas why I'm having this problem? Thanks. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:16 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message What does /var/log/messages show now? And what's the ls -al output of /usr/local/nagios ? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:15 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Did what you asked...and still no luck.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:02 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the server_args changed), then make sure that /usr/local/nagios/nrpe is chmod 755 (-rwxr-xr-x): # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = --inetd -c /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message The version of nrpe that I am using is version 1.6. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:57 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message One more.. what version of NRPE are you using on oneofxeon # /usr/local/nagios/bin/nrpe --help NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Version: 1.5 Last Modified: 06-03-2002 License: GPL Then give me an "ls -al /usr/local/nagios/nrpe" -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:52 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The file reads as follows: # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = -i /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:47 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, what's the /etc/xinetd.d/nrpe file look like? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:44 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I am running nrpe under xinetd. I did a netstat -a | grep 5666 and there was no output. I was returned to a shell prompt. Nrpe.cfg is located at /usr/local/nagios Anything else? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:36 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, take one giant step backwards. How are you running nrpe? As a daemon or xinetd/inetd? Now do a netstat -a | grep 5666 What's the output? Now, where is nrpe.cfg? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:34 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 Thu Jan 9 15:47:06 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 9 Jan 2003 09:47:06 -0500 Subject: Nrpe Error Message Message-ID: <5593DA408212D511B0910002A513501F01D28883@phsexch20.mgh.harvard.edu> That was a typo on my part...anyway the same error message on the service detail screen is there.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Thursday, January 09, 2003 9:46 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Nrpe, not npre. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Thursday, January 09, 2003 8:44 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I ran the ps auxww | grep npre command and nrpe did not appear. If nrpe is not starting up, what is going on and what do I need to do to get it up and running? I have followed the instructions to the letter and there should be no reason for this to be happening. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Thursday, January 09, 2003 9:41 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message When you ran: /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon It should have returned you to a prompt. Check ps auxww | grep nrpe and it should be running. Then check netstat. The problem it appears is that nrpe isn't starting. Once you get nrpe started, it should show up in netstat, then you can try sending commands to it. -J -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Thursday, January 09, 2003 7:49 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I ran netstat and I simply returned to the command prompt without any output appearing on the screen. I restarted xinetd via /etc/rc.d/init.d/xinetd restart and there were no messages from nrpe in the log. Finally, I ran the command line you suggested, but did not get any different reaction. What now? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 3:25 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Sorry, I was at lunch. :) Ok, check netstat again and see if it's bound. You should have something like this: $ netstat -a | grep 5666 tcp 0 0 *:5666 *:* LISTEN If you don't, then nrpe isn't running. Restart xinetd. If you get no messages from nrpe in the log and it still isn't running, you need to try running it manually. /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon Let me know what that does. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Jeremy -- Sorry to bother you, but have you any ideas why I'm having this problem? Thanks. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:16 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message What does /var/log/messages show now? And what's the ls -al output of /usr/local/nagios ? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 1:15 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Did what you asked...and still no luck.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 2:02 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the server_args changed), then make sure that /usr/local/nagios/nrpe is chmod 755 (-rwxr-xr-x): # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = --inetd -c /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:59 PM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message The version of nrpe that I am using is version 1.6. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:57 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message One more.. what version of NRPE are you using on oneofxeon # /usr/local/nagios/bin/nrpe --help NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Version: 1.5 Last Modified: 06-03-2002 License: GPL Then give me an "ls -al /usr/local/nagios/nrpe" -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:52 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The file reads as follows: # default: on # description: NRPE service nrpe { disable = no flags = REUSE socket_type = stream wait = no user = root server = /usr/local/nagios/nrpe server_args = -i /usr/local/nagios/nrpe.cfg log_on_failure += USERID only_from = 132.183.12.125 } -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:47 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, what's the /etc/xinetd.d/nrpe file look like? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:44 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message I am running nrpe under xinetd. I did a netstat -a | grep 5666 and there was no output. I was returned to a shell prompt. Nrpe.cfg is located at /usr/local/nagios Anything else? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:36 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Ok, take one giant step backwards. How are you running nrpe? As a daemon or xinetd/inetd? Now do a netstat -a | grep 5666 What's the output? Now, where is nrpe.cfg? -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 12:34 PM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The messages log file had the following entries: Server /usr/local/nagios/nrpe is not executable [line=10] nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 1:07 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message check_disk? Or check)disk. Not sure if you just made a typo on the command back into the email. Check the log on oneofxeon, probably in /var/log/messages to see what's going on. That usually means that you don't have permission to connect (ala, /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you don't. -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:55 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message I entered in the following: ./check_nrpe -H oneofxeon -p 5666 -c check)disk and got the following: CHECK_NRPE: Error receiving data from host. -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:49 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Perhaps I gave you the wrong command.. lowercase c, instead of capital: $ ./check_nrpe -H db1 -p 5666 -c check_disk_var DISK OK - [4632496 kB (96%) free on /dev/sda8] -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:46 AM To: 'Jeremy Tinley' Subject: RE: [Nagios-users] Nrpe Error Message Here's what I entered: ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 I got the same error message..... I also tried ./check_nrpe -H oneofxeon -p 5666 -C check_disk and got the same result.... -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 12:41 PM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message You have to specify -C check_disk It's the same command in the square brackets: command[check_users]=.... -----Original Message----- From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] Sent: Wednesday, January 08, 2003 11:37 AM To: 'Jeremy Tinley' Cc: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Nrpe Error Message The command that I entered at the monitoring host was ./check_nrpe -H oneofxeon -p 5666 -C /usr/local/nagios/libexec/check_disk -w 80 -c 95 The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED What gives? -----Original Message----- From: Jeremy Tinley [mailto:jtinley at unirez.com] Sent: Wednesday, January 08, 2003 11:49 AM To: Kaplan, Andrew H. Subject: RE: [Nagios-users] Nrpe Error Message Try running the check_nrpe command from the monitoring host. check_nrpe -H -p -C check_userrs see if that gets you any further. I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 -J -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, Andrew H. Sent: Wednesday, January 08, 2003 10:33 AM To: 'Carroll, Jim P [Contractor]' Cc: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Things got a little better since I sent out my e-mail. I am getting a connection to to the remote client. Now I am getting an INCORRECT COMMAND LINE ARGUMENTS SUPPLIED error. When I run the check from the command line, it comes out fine. Here is the syntax of the nrpe.cfg file on the client: command[check_users]=/usr/local/nagios/libexec/check_users 50 80 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/sda8 command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 30,25,20 command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 What is going on? -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Wednesday, January 08, 2003 11:05 AM To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message And running check_nrpe from the command line...? Pass or fail...? jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 9:00 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nrpe Error Message > > > I installed the latest nrpe client on a remote machine, and > also copied the > necessary > plugins from the nagios server to the client. The nrpe.cfg > file was modified > to suit the > remote machine's configuration. When I tried to monitor the > various services > on the client > I was confronted with the following error message: > > Return code of 127 is out of bounds - plugin may be missing. > > I am running Nagios 1.0 with the latest nrpe client as well > as the latest > nagios plug-ins. > > There were no apparent problems with compiling and installing the nrpe > client on the remote machine. > > The /etc/xinetd.d services were restarted after the nrpe install was > complete. > > The nagios server is running on a Red Hat 8.0 box and the > remote client is > Red Hat 7.3 > > > > > ------------------------------------------------------- > 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 swalker at floridabroadband.net Thu Jan 9 15:54:48 2003 From: swalker at floridabroadband.net (Scott Walker) Date: Thu, 09 Jan 2003 09:54:48 -0500 Subject: Problem with Nagios 1.0 References: <3E1C32D9.6030702@floridabroadband.net> Message-ID: <3E1D8D38.9080205@floridabroadband.net> Does anyone know of a problem with restarting Nagios every hour? Will it affect monitoring? Does it keep track of when last checked, and when it should be checked again? I still can't figure out why nagios is losing it's log file and thinking that it's not running. Scott Walker wrote: > I have nagios rolled out and monitorin my network (it's great), But I'm > having one big issue... It seems after (a random amount of time between > 5 mins and an hour) nagios will seem to get confused and 'forget' that > it's actually runing. It will continue to monitor/page you with > problems.. But when you go to the webpage, and try to acknowledge > problems, etc It says "the nagios process could not be found", etc, etc, > etc. > > Has anyone encountered this before? Or have a fix for 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 jtinley at unirez.com Thu Jan 9 15:51:41 2003 From: jtinley at unirez.com (Jeremy Tinley) Date: Thu, 9 Jan 2003 08:51:41 -0600 Subject: Nrpe Error Message In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24E0@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24E0@PKDWB03C.ad.sprint.com> Message-ID: <004f01c2b7ee$9eaf8e40$b201a8c0@unirez.com> The syntax of nrpe changed from 1.5 to 1.6 (-i becomes --inetd and -c is used for config file specification). -----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: Wednesday, January 08, 2003 5:31 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Nrpe Error Message Hmm. That's not what I'm using. This is what I'm using, quite successfully: $ cat /etc/xinetd.d/nrpe # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /home/nagios/bin/nrpe server_args = -i /home/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 127.0.0.1 10.108.58.68 10.108.58.69 } Andrew, I noticed you've set the user to root. For security reasons, after you've completed this 'test phase', I urge you to define an unprivileged account (eg, 'nagios') and set user to nagios, as above. You might also want to add 127.0.0.1 to the only_from declaration, so that after installation, you can do a simple "telnet localhost 5666" to see if the nrpe daemon answers. Oh, and in case it hasn't been mentioned yet, you'll need to restart xinetd. A "pkill -12 xinetd" works under RH Linux 7.2. If things are still dysfunctional, check your /var/log/messages. jc > -----Original Message----- > From: James Peterson [mailto:showkilr at showkilr.com] > Sent: Wednesday, January 08, 2003 4:30 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nrpe Error Message > > > here are the args you need to change. > > server_args = -c /usr/local/nagios/nrpe.cfg --inetd > user = nagios > > > James "Showkilr" Peterson > > ----- Original Message ----- > > From: "Kaplan, Andrew H." > > To: "'Jeremy Tinley'" > > Cc: > > Sent: Wednesday, January 08, 2003 12:51 PM > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > The file reads as follows: > > > > > > # default: on > > > # description: NRPE > > > service nrpe > > > { > > > disable = no > > > flags = REUSE > > > socket_type = stream > > > wait = no > > > user = root > > > server = /usr/local/nagios/nrpe > > > server_args = -i /usr/local/nagios/nrpe.cfg > > > log_on_failure += USERID > > > only_from = 132.183.12.125 > > > } > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:47 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 12:44 PM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I am running nrpe under xinetd. > > > > > > I did a netstat -a | grep 5666 and there was no output. I > was returned > to > > a > > > shell prompt. > > > > > > Nrpe.cfg is located at /usr/local/nagios > > > > > > Anything else? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:36 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Ok, take one giant step backwards. > > > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > > > Now do a netstat -a | grep 5666 > > > > > > What's the output? > > > > > > Now, where is nrpe.cfg? > > > > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 12:34 PM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > The messages log file had the following entries: > > > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > > > What gives? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 1:07 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > check_disk? Or check)disk. Not sure if you just made a > typo on the > > command > > > back into the email. > > > > > > Check the log on oneofxeon, probably in /var/log/messages > to see what's > > > going > > > on. That usually means that you don't have permission to > connect (ala, > > > /etc/hosts.allow if you run under (x)inetd or the > nrpe.cfg file if you > > > don't. > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:55 AM > > > To: 'Jeremy Tinley' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I entered in the following: > > > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > > > and got the following: > > > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 12:49 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Perhaps I gave you the wrong command.. lowercase c, > instead of capital: > > > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:46 AM > > > To: 'Jeremy Tinley' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Here's what I entered: > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > > > I got the same error message..... > > > > > > I also tried > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > > > and got the same result.... > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 12:41 PM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > You have to specify -C check_disk > > > > > > It's the same command in the square brackets: > > > command[check_users]=.... > > > > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 11:37 AM > > > To: 'Jeremy Tinley' > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > The command that I entered at the monitoring host was > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > /usr/local/nagios/libexec/check_disk -w > > > 80 -c 95 > > > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > > > What gives? > > > > > > -----Original Message----- > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > Sent: Wednesday, January 08, 2003 11:49 AM > > > To: Kaplan, Andrew H. > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > Try running the check_nrpe command from the monitoring host. > > > > > > check_nrpe -H -p -C check_userrs > > > > > > see if that gets you any further. > > > > > > I noticed that -H and -p were added in the change from > nrpe 1.5 to 1.6 > > > > > > -J > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net] On > Behalf Of Kaplan, > > > Andrew > > > H. > > > Sent: Wednesday, January 08, 2003 10:33 AM > > > To: 'Carroll, Jim P [Contractor]' > > > Cc: Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Things got a little better since I sent out my e-mail. I > am getting a > > > connection > > > to > > > to the remote client. Now I am getting an INCORRECT COMMAND LINE > ARGUMENTS > > > SUPPLIED > > > error. > > > > > > When I run the check from the command line, it comes out fine. > > > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 > /dev/sda8 > > > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 > 30,25,20 > > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > > > What is going on? > > > > > > -----Original Message----- > > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > > Sent: Wednesday, January 08, 2003 11:05 AM > > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > > To: Nagios-users at lists.sourceforge.net > > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > > also copied the > > > > necessary > > > > plugins from the nagios server to the client. The nrpe.cfg > > > > file was modified > > > > to suit the > > > > remote machine's configuration. When I tried to monitor the > > > > various services > > > > on the client > > > > I was confronted with the following error message: > > > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > > as the latest > > > > nagios plug-ins. > > > > > > > > There were no apparent problems with compiling and > installing the nrpe > > > > client on the remote machine. > > > > > > > > The /etc/xinetd.d services were restarted after the > nrpe install was > > > > complete. > > > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > > remote client is > > > > Red Hat 7.3 > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > _______________________________________________ > 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 sysadmin at showkilr.com Thu Jan 9 16:07:09 2003 From: sysadmin at showkilr.com (Showkilr) Date: 09 Jan 2003 09:07:09 -0600 Subject: Nrpe Error Message In-Reply-To: <004f01c2b7ee$9eaf8e40$b201a8c0@unirez.com> References: <004f01c2b7ee$9eaf8e40$b201a8c0@unirez.com> Message-ID: <1042124829.1850.2.camel@dev.showkilr.com> 1.6 has a bug with the config option command_timeout=60 download 1.7 which fixed it. Showkilr On Thu, 2003-01-09 at 08:51, Jeremy Tinley wrote: > The syntax of nrpe changed from 1.5 to 1.6 (-i becomes --inetd and -c is used > for config file specification). > > > > -----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: Wednesday, January 08, 2003 5:31 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > Hmm. That's not what I'm using. This is what I'm using, quite > successfully: > > $ cat /etc/xinetd.d/nrpe > # default: on > # description: NRPE > service nrpe > { > flags = REUSE > socket_type = stream > wait = no > user = nagios > server = /home/nagios/bin/nrpe > server_args = -i /home/nagios/etc/nrpe.cfg > log_on_failure += USERID > disable = no > only_from = 127.0.0.1 10.108.58.68 10.108.58.69 > } > > Andrew, I noticed you've set the user to root. For security reasons, after > you've completed this 'test phase', I urge you to define an unprivileged > account (eg, 'nagios') and set user to nagios, as above. You might also > want to add 127.0.0.1 to the only_from declaration, so that after > installation, you can do a simple "telnet localhost 5666" to see if the nrpe > daemon answers. > > Oh, and in case it hasn't been mentioned yet, you'll need to restart xinetd. > A "pkill -12 xinetd" works under RH Linux 7.2. If things are still > dysfunctional, check your /var/log/messages. > > jc > > > -----Original Message----- > > From: James Peterson [mailto:showkilr at showkilr.com] > > Sent: Wednesday, January 08, 2003 4:30 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] Nrpe Error Message > > > > > > here are the args you need to change. > > > > server_args = -c /usr/local/nagios/nrpe.cfg --inetd > > user = nagios > > > > > > James "Showkilr" Peterson > > > ----- Original Message ----- > > > From: "Kaplan, Andrew H." > > > To: "'Jeremy Tinley'" > > > Cc: > > > Sent: Wednesday, January 08, 2003 12:51 PM > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > The file reads as follows: > > > > > > > > # default: on > > > > # description: NRPE > > > > service nrpe > > > > { > > > > disable = no > > > > flags = REUSE > > > > socket_type = stream > > > > wait = no > > > > user = root > > > > server = /usr/local/nagios/nrpe > > > > server_args = -i /usr/local/nagios/nrpe.cfg > > > > log_on_failure += USERID > > > > only_from = 132.183.12.125 > > > > } > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 1:47 PM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 12:44 PM > > > > To: 'Jeremy Tinley' > > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > I am running nrpe under xinetd. > > > > > > > > I did a netstat -a | grep 5666 and there was no output. I > > was returned > > to > > > a > > > > shell prompt. > > > > > > > > Nrpe.cfg is located at /usr/local/nagios > > > > > > > > Anything else? > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 1:36 PM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > Ok, take one giant step backwards. > > > > > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > > > > > Now do a netstat -a | grep 5666 > > > > > > > > What's the output? > > > > > > > > Now, where is nrpe.cfg? > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 12:34 PM > > > > To: 'Jeremy Tinley' > > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > The messages log file had the following entries: > > > > > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > > > > > What gives? > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 1:07 PM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > check_disk? Or check)disk. Not sure if you just made a > > typo on the > > > command > > > > back into the email. > > > > > > > > Check the log on oneofxeon, probably in /var/log/messages > > to see what's > > > > going > > > > on. That usually means that you don't have permission to > > connect (ala, > > > > /etc/hosts.allow if you run under (x)inetd or the > > nrpe.cfg file if you > > > > don't. > > > > > > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 11:55 AM > > > > To: 'Jeremy Tinley' > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > I entered in the following: > > > > > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > > > > > and got the following: > > > > > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 12:49 PM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > Perhaps I gave you the wrong command.. lowercase c, > > instead of capital: > > > > > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 11:46 AM > > > > To: 'Jeremy Tinley' > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > Here's what I entered: > > > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > > > > > I got the same error message..... > > > > > > > > I also tried > > > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > > > > > and got the same result.... > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 12:41 PM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > You have to specify -C check_disk > > > > > > > > It's the same command in the square brackets: > > > > command[check_users]=.... > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > Sent: Wednesday, January 08, 2003 11:37 AM > > > > To: 'Jeremy Tinley' > > > > Cc: 'Nagios-users at lists.sourceforge.net' > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > The command that I entered at the monitoring host was > > > > > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > > /usr/local/nagios/libexec/check_disk -w > > > > 80 -c 95 > > > > > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > > > > > What gives? > > > > > > > > -----Original Message----- > > > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > > > Sent: Wednesday, January 08, 2003 11:49 AM > > > > To: Kaplan, Andrew H. > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > Try running the check_nrpe command from the monitoring host. > > > > > > > > check_nrpe -H -p -C check_userrs > > > > > > > > see if that gets you any further. > > > > > > > > I noticed that -H and -p were added in the change from > > nrpe 1.5 to 1.6 > > > > > > > > -J > > > > > > > > -----Original Message----- > > > > From: nagios-users-admin at lists.sourceforge.net > > > > [mailto:nagios-users-admin at lists.sourceforge.net] On > > Behalf Of Kaplan, > > > > Andrew > > > > H. > > > > Sent: Wednesday, January 08, 2003 10:33 AM > > > > To: 'Carroll, Jim P [Contractor]' > > > > Cc: Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > Things got a little better since I sent out my e-mail. I > > am getting a > > > > connection > > > > to > > > > to the remote client. Now I am getting an INCORRECT COMMAND LINE > > ARGUMENTS > > > > SUPPLIED > > > > error. > > > > > > > > When I run the check from the command line, it comes out fine. > > > > > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 > > /dev/sda8 > > > > command[check_load]=/usr/local/nagios/libexec/check_load 15,10,5 > > 30,25,20 > > > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > > > > > What is going on? > > > > > > > > -----Original Message----- > > > > From: Carroll, Jim P [Contractor] > > [mailto:jcarro10 at sprintspectrum.com] > > > > Sent: Wednesday, January 08, 2003 11:05 AM > > > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > > > also copied the > > > > > necessary > > > > > plugins from the nagios server to the client. The nrpe.cfg > > > > > file was modified > > > > > to suit the > > > > > remote machine's configuration. When I tried to monitor the > > > > > various services > > > > > on the client > > > > > I was confronted with the following error message: > > > > > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > > > as the latest > > > > > nagios plug-ins. > > > > > > > > > > There were no apparent problems with compiling and > > installing the nrpe > > > > > client on the remote machine. > > > > > > > > > > The /etc/xinetd.d services were restarted after the > > nrpe install was > > > > > complete. > > > > > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > > > remote client is > > > > > Red Hat 7.3 > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > _______________________________________________ > > 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 jcarro10 at sprintspectrum.com Thu Jan 9 16:28:48 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 09:28:48 -0600 Subject: Setting up service dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E1@PKDWB03C.ad.sprint.com> It's not A Bad Thing per se; given the example of a host behind a firewall with a hole at port 80 poked through it, it would certainly have merit. But in the case where your webserver fails but, say, sshd is still up, can the host be said to be down? Just to say that I gave you a servicedependency example, here it is: define service{ host_name itdmll01 use icmp service_description NRPE check contact_groups linux-admins check_command check_nrpe!check_nrpe_status } define service{ host_name itdmll01 use icmp service_description Total Users contact_groups linux-admins check_command check_nrpe!check_users } define servicedependency{ dependent_host_name itdmll01 dependent_service_description Total Users host_name itdmll01 service_description NRPE check execution_failure_criteria w,u,c notification_failure_criteria w,u,c } Explanation: "NRPE check" is the basic 'is NRPE up' check. "Total Users" actually kicks off a plugin on the remote host. "Total Users" is dependent on "NRPE check". If "Total Users" fails, it checks to make sure that "NRPE check" is up/down. If the latter is down, that's all I get alerted on. If it's still up, then I get alerted on the former. Does this help? jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 7:53 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I think I found a workaround for this. For some servers, like webservers most of the services are some form of HTTP request, so I changed the check_command on the host to do a simple http request. If that fails, then the host is considered 'down' rather than just using the standard ping check. If this is 'bad' for some reason, please let me know. second question: is it possible to pass arbitrary ssh parameters to check_ssh, like "-1" for ssh v1? Doesn't appear so, but maybe there's a trick? Jeff -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 10:12 AM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Setting up service dependencies I've looked at the examples that come with nagios and they don't seem to address the problem of using hostgroups versus hosts. I'm not using NPRE, but if you have examples using hostgroups, I'd love to see them. Jeff -----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: Tuesday, January 07, 2003 1:47 PM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From MSingle at davita.com Thu Jan 9 17:24:32 2003 From: MSingle at davita.com (Mike Singleton) Date: Thu, 09 Jan 2003 08:24:32 -0800 Subject: (no subject) Message-ID: DaVita Inc. ------------------------------------------------------- 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 Jan 9 17:06:15 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 10:06:15 -0600 Subject: New Nagios and DB Functionality Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E3@PKDWB03C.ad.sprint.com> Regarding redundancy/fail-over: http://nagios.sourceforge.net/docs/1_0/redundancy.html Regarding MySQL/PostGreSQL, you might want to show this to your manager, in particular points 8 and 9 under Misc Changes: http://www.nagios.org/upcoming.php jc > -----Original Message----- > From: Kreig Dubose [mailto:KreigD at webex.com] > Sent: Thursday, January 09, 2003 6:22 AM > To: 'nagios-users at lists.sourceforge.net' > Subject: [Nagios-users] New Nagios and DB Functionality > > > I've been tasked with ressurecting Nagios. Unfortunately for > me my mgr > would like it to incorporate either MySQL or PostGreSQL. I > have very little > DB experience aside from an antiquated PL/SQL class years > ago. In reading > the archives I can see plusses and minuses for incorporating DB > functionality but what with it going away from the main code and my > inexperience I'm looking for other opinions. Fail-over and > redundancy are > important issues for this install. Is that going to only be > available with > a DB ? > > TIA > > > > ------------------------------------------------------- > 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 Jan 9 17:23:01 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 10:23:01 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1278@PKDWB03C.ad.sprint.com> Since you're on Linux, try this: strace -o /tmp/nrpe.err /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg (Yes, skip the --daemon option, as we want this to run without detaching from the terminal.) >From what you've said, I expect that nrpe will exit and you'll be back at the shell prompt. Next, take a look at /tmp/nrpe.err and see if there are any glaring errors. Start at the end of the file and work backwards. Paste anything relevant here, and include 3 lines before/after the line(s) in question. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Thursday, January 09, 2003 8:44 AM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > > I ran the ps auxww | grep npre command and nrpe did not appear. > > If nrpe is not starting up, what is going on and what do I need to > do to get it up and running? I have followed the instructions to the > letter and there should be no reason for this to be happening. > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Thursday, January 09, 2003 9:41 AM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > When you ran: > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > It should have returned you to a prompt. > > Check ps auxww | grep nrpe and it should be running. Then > check netstat. The > problem it appears is that nrpe isn't starting. > > Once you get nrpe started, it should show up in netstat, then > you can try > sending commands to it. > > -J > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Thursday, January 09, 2003 7:49 AM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > I ran netstat and I simply returned to the command prompt > without any output > appearing on the screen. > > I restarted xinetd via /etc/rc.d/init.d/xinetd restart and > there were no > messages from nrpe in the log. > > Finally, I ran the command line you suggested, but did not > get any different > reaction. > > What now? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 3:25 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Sorry, I was at lunch. :) > > Ok, check netstat again and see if it's bound. You should > have something > like > this: > > $ netstat -a | grep 5666 > tcp 0 0 *:5666 *:* > LISTEN > > If you don't, then nrpe isn't running. > > Restart xinetd. If you get no messages from nrpe in the log > and it still > isn't running, you need to try running it manually. > > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > Let me know what that does. > > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 1:59 PM > To: 'Jeremy Tinley' > Subject: RE: [Nagios-users] Nrpe Error Message > > Jeremy -- Sorry to bother you, but have you any ideas why I'm > having this > problem? Thanks. > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 2:16 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > What does /var/log/messages show now? > > And what's the ls -al output of /usr/local/nagios ? > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 1:15 PM > To: 'Jeremy Tinley' > Subject: RE: [Nagios-users] Nrpe Error Message > > Did what you asked...and still no luck.... > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 2:02 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the > server_args > changed), then make sure that /usr/local/nagios/nrpe is chmod 755 > (-rwxr-xr-x): > > # default: on > # description: NRPE > service nrpe > { > disable = no > flags = REUSE > socket_type = stream > wait = no > user = root > server = /usr/local/nagios/nrpe > server_args = --inetd -c /usr/local/nagios/nrpe.cfg > log_on_failure += USERID > only_from = 132.183.12.125 > } > > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 12:59 PM > To: 'Jeremy Tinley' > Subject: RE: [Nagios-users] Nrpe Error Message > > The version of nrpe that I am using is version 1.6. > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 1:57 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > One more.. what version of NRPE are you using on oneofxeon > > > # /usr/local/nagios/bin/nrpe --help > > NRPE - Nagios Remote Plugin Executor > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > Version: 1.5 > Last Modified: 06-03-2002 > License: GPL > > > Then give me an "ls -al /usr/local/nagios/nrpe" > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 12:52 PM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > The file reads as follows: > > # default: on > # description: NRPE > service nrpe > { > disable = no > flags = REUSE > socket_type = stream > wait = no > user = root > server = /usr/local/nagios/nrpe > server_args = -i /usr/local/nagios/nrpe.cfg > log_on_failure += USERID > only_from = 132.183.12.125 > } > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 1:47 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 12:44 PM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > I am running nrpe under xinetd. > > I did a netstat -a | grep 5666 and there was no output. I was > returned to a > shell prompt. > > Nrpe.cfg is located at /usr/local/nagios > > Anything else? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 1:36 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Ok, take one giant step backwards. > > How are you running nrpe? As a daemon or xinetd/inetd? > > Now do a netstat -a | grep 5666 > > What's the output? > > Now, where is nrpe.cfg? > > > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 12:34 PM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > The messages log file had the following entries: > > Server /usr/local/nagios/nrpe is not executable [line=10] > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > Config file '//nrpe.cfg' contained errors, bailing out... > > What gives? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 1:07 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > check_disk? Or check)disk. Not sure if you just made a typo > on the command > back into the email. > > Check the log on oneofxeon, probably in /var/log/messages to > see what's > going > on. That usually means that you don't have permission to > connect (ala, > /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg file if you > don't. > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 11:55 AM > To: 'Jeremy Tinley' > Subject: RE: [Nagios-users] Nrpe Error Message > > I entered in the following: > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > and got the following: > > CHECK_NRPE: Error receiving data from host. > > > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 12:49 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Perhaps I gave you the wrong command.. lowercase c, instead > of capital: > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 11:46 AM > To: 'Jeremy Tinley' > Subject: RE: [Nagios-users] Nrpe Error Message > > Here's what I entered: > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > I got the same error message..... > > I also tried > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > and got the same result.... > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 12:41 PM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > You have to specify -C check_disk > > It's the same command in the square brackets: > command[check_users]=.... > > > > > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 08, 2003 11:37 AM > To: 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > The command that I entered at the monitoring host was > > ./check_nrpe -H oneofxeon -p 5666 -C > /usr/local/nagios/libexec/check_disk -w > 80 -c 95 > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > What gives? > > -----Original Message----- > From: Jeremy Tinley [mailto:jtinley at unirez.com] > Sent: Wednesday, January 08, 2003 11:49 AM > To: Kaplan, Andrew H. > Subject: RE: [Nagios-users] Nrpe Error Message > > > Try running the check_nrpe command from the monitoring host. > > check_nrpe -H -p -C check_userrs > > see if that gets you any further. > > I noticed that -H and -p were added in the change from nrpe 1.5 to 1.6 > > -J > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Kaplan, > Andrew > H. > Sent: Wednesday, January 08, 2003 10:33 AM > To: 'Carroll, Jim P [Contractor]' > Cc: Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > Things got a little better since I sent out my e-mail. I am getting a > connection > to > to the remote client. Now I am getting an INCORRECT COMMAND > LINE ARGUMENTS > SUPPLIED > error. > > When I run the check from the command line, it comes out fine. > > Here is the syntax of the nrpe.cfg file on the client: > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > 95 /dev/sda8 > command[check_load]=/usr/local/nagios/libexec/check_load > 15,10,5 30,25,20 > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > What is going on? > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Wednesday, January 08, 2003 11:05 AM > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Nrpe Error Message > > > And running check_nrpe from the command line...? Pass or fail...? > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 9:00 AM > > To: Nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Nrpe Error Message > > > > > > I installed the latest nrpe client on a remote machine, and > > also copied the > > necessary > > plugins from the nagios server to the client. The nrpe.cfg > > file was modified > > to suit the > > remote machine's configuration. When I tried to monitor the > > various services > > on the client > > I was confronted with the following error message: > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > I am running Nagios 1.0 with the latest nrpe client as well > > as the latest > > nagios plug-ins. > > > > There were no apparent problems with compiling and > installing the nrpe > > client on the remote machine. > > > > The /etc/xinetd.d services were restarted after the nrpe install was > > complete. > > > > The nagios server is running on a Red Hat 8.0 box and the > > remote client is > > Red Hat 7.3 > > > > > > > > > > ------------------------------------------------------- > > 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 jcarro10 at sprintspectrum.com Thu Jan 9 18:12:58 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 11:12:58 -0600 Subject: Nrpe Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E4@PKDWB03C.ad.sprint.com> Hmm. Nothing glaring that I can see. Were there any messages sent to your terminal before you got your shell prompt back? Did you remember to put this in /etc/services: nrpe 5666/tcp # NRPE See if that helps. Try running it again without the --daemon switch. Don't bother with strace (for now). jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Thursday, January 09, 2003 11:00 AM > To: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] Nrpe Error Message > > > Jim, > > I'm enclosing the entire file just to make sure nothing > relevant is left out. > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Thursday, January 09, 2003 11:23 AM > To: Kaplan, Andrew H.; 'Jeremy Tinley' > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nrpe Error Message > > > Since you're on Linux, try this: > > strace -o /tmp/nrpe.err /usr/local/nagios/nrpe -c > /usr/local/nagios/nrpe.cfg > > (Yes, skip the --daemon option, as we want this to run > without detaching > from the terminal.) > > From what you've said, I expect that nrpe will exit and > you'll be back at > the shell prompt. Next, take a look at /tmp/nrpe.err and see > if there are > any glaring errors. Start at the end of the file and work > backwards. Paste > anything relevant here, and include 3 lines before/after the > line(s) in > question. > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Thursday, January 09, 2003 8:44 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > I ran the ps auxww | grep npre command and nrpe did not appear. > > > > If nrpe is not starting up, what is going on and what do I need to > > do to get it up and running? I have followed the instructions to the > > letter and there should be no reason for this to be happening. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Thursday, January 09, 2003 9:41 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > When you ran: > > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > > > It should have returned you to a prompt. > > > > Check ps auxww | grep nrpe and it should be running. Then > > check netstat. The > > problem it appears is that nrpe isn't starting. > > > > Once you get nrpe started, it should show up in netstat, then > > you can try > > sending commands to it. > > > > -J > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Thursday, January 09, 2003 7:49 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I ran netstat and I simply returned to the command prompt > > without any output > > appearing on the screen. > > > > I restarted xinetd via /etc/rc.d/init.d/xinetd restart and > > there were no > > messages from nrpe in the log. > > > > Finally, I ran the command line you suggested, but did not > > get any different > > reaction. > > > > What now? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 3:25 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Sorry, I was at lunch. :) > > > > Ok, check netstat again and see if it's bound. You should > > have something > > like > > this: > > > > $ netstat -a | grep 5666 > > tcp 0 0 *:5666 *:* > > LISTEN > > > > If you don't, then nrpe isn't running. > > > > Restart xinetd. If you get no messages from nrpe in the log > > and it still > > isn't running, you need to try running it manually. > > > > /usr/local/nagios/nrpe -c /usr/local/nagios/nrpe.cfg --daemon > > > > Let me know what that does. > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 1:59 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Jeremy -- Sorry to bother you, but have you any ideas why I'm > > having this > > problem? Thanks. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 2:16 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > What does /var/log/messages show now? > > > > And what's the ls -al output of /usr/local/nagios ? > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 1:15 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Did what you asked...and still no luck.... > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 2:02 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, go into /etc/xinetd.d/nrpe and modify it thus (only the > > server_args > > changed), then make sure that /usr/local/nagios/nrpe is chmod 755 > > (-rwxr-xr-x): > > > > # default: on > > # description: NRPE > > service nrpe > > { > > disable = no > > flags = REUSE > > socket_type = stream > > wait = no > > user = root > > server = /usr/local/nagios/nrpe > > server_args = --inetd -c /usr/local/nagios/nrpe.cfg > > log_on_failure += USERID > > only_from = 132.183.12.125 > > } > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:59 PM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The version of nrpe that I am using is version 1.6. > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:57 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > One more.. what version of NRPE are you using on oneofxeon > > > > > > # /usr/local/nagios/bin/nrpe --help > > > > NRPE - Nagios Remote Plugin Executor > > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > > Version: 1.5 > > Last Modified: 06-03-2002 > > License: GPL > > > > > > Then give me an "ls -al /usr/local/nagios/nrpe" > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:52 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The file reads as follows: > > > > # default: on > > # description: NRPE > > service nrpe > > { > > disable = no > > flags = REUSE > > socket_type = stream > > wait = no > > user = root > > server = /usr/local/nagios/nrpe > > server_args = -i /usr/local/nagios/nrpe.cfg > > log_on_failure += USERID > > only_from = 132.183.12.125 > > } > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:47 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, what's the /etc/xinetd.d/nrpe file look like? > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:44 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I am running nrpe under xinetd. > > > > I did a netstat -a | grep 5666 and there was no output. I was > > returned to a > > shell prompt. > > > > Nrpe.cfg is located at /usr/local/nagios > > > > Anything else? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:36 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Ok, take one giant step backwards. > > > > How are you running nrpe? As a daemon or xinetd/inetd? > > > > Now do a netstat -a | grep 5666 > > > > What's the output? > > > > Now, where is nrpe.cfg? > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 12:34 PM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The messages log file had the following entries: > > > > Server /usr/local/nagios/nrpe is not executable [line=10] > > > > nrpe[26725]: Unable to open config file '//nrpe.cfg' for reading > > Config file '//nrpe.cfg' contained errors, bailing out... > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 1:07 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > check_disk? Or check)disk. Not sure if you just made a typo > > on the command > > back into the email. > > > > Check the log on oneofxeon, probably in /var/log/messages to > > see what's > > going > > on. That usually means that you don't have permission to > > connect (ala, > > /etc/hosts.allow if you run under (x)inetd or the nrpe.cfg > file if you > > don't. > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:55 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > I entered in the following: > > > > ./check_nrpe -H oneofxeon -p 5666 -c check)disk > > > > and got the following: > > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 12:49 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Perhaps I gave you the wrong command.. lowercase c, instead > > of capital: > > > > $ ./check_nrpe -H db1 -p 5666 -c check_disk_var > > DISK OK - [4632496 kB (96%) free on /dev/sda8] > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:46 AM > > To: 'Jeremy Tinley' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Here's what I entered: > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk -w 80 -c 95 > > > > I got the same error message..... > > > > I also tried > > > > ./check_nrpe -H oneofxeon -p 5666 -C check_disk > > > > and got the same result.... > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 12:41 PM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > You have to specify -C check_disk > > > > It's the same command in the square brackets: > > command[check_users]=.... > > > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Wednesday, January 08, 2003 11:37 AM > > To: 'Jeremy Tinley' > > Cc: 'Nagios-users at lists.sourceforge.net' > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > The command that I entered at the monitoring host was > > > > ./check_nrpe -H oneofxeon -p 5666 -C > > /usr/local/nagios/libexec/check_disk -w > > 80 -c 95 > > > > The result was INCORRECT COMMAND LINE ARGUMENTS SUPPLIED > > > > What gives? > > > > -----Original Message----- > > From: Jeremy Tinley [mailto:jtinley at unirez.com] > > Sent: Wednesday, January 08, 2003 11:49 AM > > To: Kaplan, Andrew H. > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > Try running the check_nrpe command from the monitoring host. > > > > check_nrpe -H -p -C check_userrs > > > > see if that gets you any further. > > > > I noticed that -H and -p were added in the change from nrpe > 1.5 to 1.6 > > > > -J > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Kaplan, > > Andrew > > H. > > Sent: Wednesday, January 08, 2003 10:33 AM > > To: 'Carroll, Jim P [Contractor]' > > Cc: Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > Things got a little better since I sent out my e-mail. I am > getting a > > connection > > to > > to the remote client. Now I am getting an INCORRECT COMMAND > > LINE ARGUMENTS > > SUPPLIED > > error. > > > > When I run the check from the command line, it comes out fine. > > > > Here is the syntax of the nrpe.cfg file on the client: > > > > command[check_users]=/usr/local/nagios/libexec/check_users 50 80 > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > 95 /dev/sda8 > > command[check_load]=/usr/local/nagios/libexec/check_load > > 15,10,5 30,25,20 > > command[check_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > > > What is going on? > > > > -----Original Message----- > > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > > Sent: Wednesday, January 08, 2003 11:05 AM > > To: Kaplan, Andrew H.; Nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Nrpe Error Message > > > > > > And running check_nrpe from the command line...? Pass or fail...? > > > > jc > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > > Sent: Wednesday, January 08, 2003 9:00 AM > > > To: Nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Nrpe Error Message > > > > > > > > > I installed the latest nrpe client on a remote machine, and > > > also copied the > > > necessary > > > plugins from the nagios server to the client. The nrpe.cfg > > > file was modified > > > to suit the > > > remote machine's configuration. When I tried to monitor the > > > various services > > > on the client > > > I was confronted with the following error message: > > > > > > Return code of 127 is out of bounds - plugin may be missing. > > > > > > I am running Nagios 1.0 with the latest nrpe client as well > > > as the latest > > > nagios plug-ins. > > > > > > There were no apparent problems with compiling and > > installing the nrpe > > > client on the remote machine. > > > > > > The /etc/xinetd.d services were restarted after the nrpe > install was > > > complete. > > > > > > The nagios server is running on a Red Hat 8.0 box and the > > > remote client is > > > Red Hat 7.3 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 gcoon at inch.com Thu Jan 9 18:53:37 2003 From: gcoon at inch.com (Gerald) Date: Thu, 9 Jan 2003 12:53:37 -0500 (EST) Subject: Slashdot Article Message-ID: <20030109125009.F76609-100000@kod.inch.com> For those that haven't seen yet, slashdot posted the interview of Ethan. http://interviews.slashdot.org/article.pl?sid=03/01/09/1216259&mode=thread&tid=156 Ethan: Great job with the responses. I particularly liked the restraint in answering the netsaint -> nagios question again. I checked and the FAQ section of nagios still doesn't mention the Lawyers or the real reason for the name change. I know it's been mentioned repeatedly on the lists though. Gerald ------------------------------------------------------- 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 Jan 9 19:08:55 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 12:08:55 -0600 Subject: NSClient error Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1281@PKDWB03C.ad.sprint.com> I've kept quite a few NSClient-related error msg e-mails from this list in my personal archive, but couldn't find anything which nailed this, specifically. The hardware is a Dell 2450, P3-733 Xeon. jc > -----Original Message----- > From: Tom DE BLENDE [mailto:tdeblend at gcc.dhl.com] > Sent: Thursday, January 09, 2003 2:01 AM > To: Carroll, Jim P [Contractor] > Cc: Nagios (E-mail) > Subject: Re: [Nagios-users] NSClient error > > > This is a known issue and has een discussed many times before on this > list. I experience the same thing on some servers, nut not all of > them. The strange thing is that I have a Citrix farm with five servers > that have the very same hardware and have the very same Ghost image. > Yet it only happens on two of them. > > The author has announced a fix in the long awaited next release. > > Let me guess: you are seeing this behaviour on a multi processor > Compaq (Proliant) server? > > "Carroll, Jim P [Contractor]" wrote: > > > > We're in the process of rolling out NSClient, and our NT > guru is stumped > > with the following error: > > > > 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 > Collect CPU - > > ERROR: 0x800007D6. > > > > Oddly, this is only happening on one host. (We've got > NSClient running on 4 > > hosts so far.) > > > > Version of NSClient is 1.0.7.0 on 3 of these hosts, > including the problem > > host. > > > > Can anyone shed any light on this? > > > > TIA, > > > > 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 justin at pvamu.edu Thu Jan 9 19:52:00 2003 From: justin at pvamu.edu (Justin) Date: Thu, 9 Jan 2003 12:52:00 -0600 Subject: squarbox Message-ID: <012501c2b810$52f01b10$0e38cf81@fucko> I unserstand that squarebox technologies has their config's online to look at. A freind once showed me these configs and I could copy them right off the page and edit the to suti my needs. I seem to have lost the web page. If anyone could send me that link, it would be great. thanks Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From Ambrogio.DeLorenzo at edison.it Thu Jan 9 20:01:57 2003 From: Ambrogio.DeLorenzo at edison.it (De Lorenzo, Ambrogio) Date: Thu, 9 Jan 2003 20:01:57 +0100 Subject: information about check_nt Message-ID: <428DF7CE6762D511982100805FF705E50261A4B6@excmi-mbx-01> I read some post on the list about check_nt. I would know 2 things in particular. 1) why I don't find check_nt in the tar of plugins beta 2? 2) It is necessary that I install NSClient on the Windows machines to be able to read some informations? tanx in advance Ambrogio De Lorenzo ------------------------------------------------------- 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 Jan 9 20:06:24 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 11:06:24 -0800 (PST) Subject: RESOLVED: Change Service Warning text to differnet color in Tac.cgi???... In-Reply-To: <3E1DBC56.5060100@lehigh.edu> References: <3E1DBC56.5060100@lehigh.edu> Message-ID: <20030109190624.41551.qmail@web21501.mail.yahoo.com> I'm not sure what you're asking, the default behavior is any services that are in a Critical, Warning, Unknown state on the TAC web page have a red background. With either black text, or with white text(acknowleged) or both. The changes I've made allow you to change the background colors for the Warning/unknown sections(Yellow for warnings, Brown for unknown). The text still changes color depending on whether the service has been acknowledged....I've also changed some of the title colors, so the Red/yellow/brown catch your eye... :) Wayne Mery wrote:Jon, via this change, does your background color change with the highest warning level? Or are you only changing some text? Thanks Wayne 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) === message truncated === --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jboulter at yahoo-inc.com Thu Jan 9 20:51:59 2003 From: jboulter at yahoo-inc.com (Jeff Boulter) Date: Thu, 9 Jan 2003 11:51:59 -0800 Subject: Setting up service dependencies In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24E1@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24E1@PKDWB03C.ad.sprint.com> Message-ID: <00b501c2b818$923fdd20$24ea7ecf@JBOULTER> yeah, I'm willing to deal with the fact that the host may not be really down if I'm checking HTTP. Your example is similar to what I tried. But almost all my services use hostgroup_name rather than host_name to keep things manageable. Otherwise I would have over 500 service objects to manage. servicedependency doesn't seem to work right when you substitute hostgroup_name for host_name like it works for all other object definitions. I would have to create thousands of service dependecies if I were to do everything on a host basis rather than hostgroup. Oh well, but here's a vote for XML config files which would make automatic generation of these files easier. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 09, 2003 7:29 AM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies It's not A Bad Thing per se; given the example of a host behind a firewall with a hole at port 80 poked through it, it would certainly have merit. But in the case where your webserver fails but, say, sshd is still up, can the host be said to be down? Just to say that I gave you a servicedependency example, here it is: define service{ host_name itdmll01 use icmp service_description NRPE check contact_groups linux-admins check_command check_nrpe!check_nrpe_status } define service{ host_name itdmll01 use icmp service_description Total Users contact_groups linux-admins check_command check_nrpe!check_users } define servicedependency{ dependent_host_name itdmll01 dependent_service_description Total Users host_name itdmll01 service_description NRPE check execution_failure_criteria w,u,c notification_failure_criteria w,u,c } Explanation: "NRPE check" is the basic 'is NRPE up' check. "Total Users" actually kicks off a plugin on the remote host. "Total Users" is dependent on "NRPE check". If "Total Users" fails, it checks to make sure that "NRPE check" is up/down. If the latter is down, that's all I get alerted on. If it's still up, then I get alerted on the former. Does this help? jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 7:53 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I think I found a workaround for this. For some servers, like webservers most of the services are some form of HTTP request, so I changed the check_command on the host to do a simple http request. If that fails, then the host is considered 'down' rather than just using the standard ping check. If this is 'bad' for some reason, please let me know. second question: is it possible to pass arbitrary ssh parameters to check_ssh, like "-1" for ssh v1? Doesn't appear so, but maybe there's a trick? Jeff -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 10:12 AM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Setting up service dependencies I've looked at the examples that come with nagios and they don't seem to address the problem of using hostgroups versus hosts. I'm not using NPRE, but if you have examples using hostgroups, I'd love to see them. Jeff -----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: Tuesday, January 07, 2003 1:47 PM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From vseerror at Lehigh.EDU Thu Jan 9 21:07:56 2003 From: vseerror at Lehigh.EDU (Wayne Mery) Date: Thu, 09 Jan 2003 15:07:56 -0500 Subject: RESOLVED: Change Service Warning text to differnet color in Tac.cgi???... In-Reply-To: <20030109190624.41551.qmail@web21501.mail.yahoo.com> References: <20030109190624.41551.qmail@web21501.mail.yahoo.com> Message-ID: <3E1DD69C.1050602@lehigh.edu> Jon Lyons wrote: > I'm not sure what you're asking, the default behavior is any services that are in a Critical, Warning, Unknown state on the TAC web page have a red background. With either black text, or with white text(acknowleged) or both. I'm looking to have the entire page's background color changed when something goes "critical" so that the entire screen 'lights up', not just the service or host involved. -- Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA 610-758-3983 ** http://www.lehigh.edu/~wsm0 ** Save a Life - Sign an Organ Donor card ** http://www.transweb.org for more information ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nickbernstein at sbcglobal.net Thu Jan 9 21:28:56 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Thu, 9 Jan 2003 12:28:56 -0800 Subject: Problems setting up icons Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79E62@officesrv.docmagic.com> Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_name DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | nickbernstein at inbox.lv | +--------------------------------------------------------------------------- --------+ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From pkrzystofiak at endeavors.com Thu Jan 9 21:31:39 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Thu, 9 Jan 2003 12:31:39 -0800 Subject: CHECK_FPING WARNING Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63B3@mail.endeavorstech.com> Hello all, this works... ./check_fping -H yahoo.com -b 1024 FPING OK - yahoo.com (loss=0.000000%, rta=69.100000 ms) --------------------------------------------------------------- The problem is that in the nagios web view monitor page ===>WARNING 01-09-2003 12:33:51 0d 0h 2m 10s 1/3 FPING WARNING - yahoo.com Why do I get a "FPING WARNING - yahoo.com" error? --------------------------------------------------------------- define command { command_name check_fping command_line $USER1$/check_fping -H $HOSTADDRESS$ -b $ARG1$ } --------------------------------------------------------------- define service { use generic-service host_name yahoo service_description FPING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 3 contact_groups flcd-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_fping!1024 } --------------------------------------------------------------- Your input is appreciated, Peter pkrzystofiak at endeavors.com ------------------------------------------------------- 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 Jan 9 21:44:46 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 12:44:46 -0800 (PST) Subject: RESOLVED: Change Service Warning text to differnet color in Tac.cgi???... In-Reply-To: <3E1DD69C.1050602@lehigh.edu> References: <3E1DD69C.1050602@lehigh.edu> Message-ID: <20030109204446.21748.qmail@web21507.mail.yahoo.com> Ahhh........ It's possible, you would probably have to add some sort of if then statement. I'd look at the sections I've modified and "barrow" some of the variables and code and hack it into where the background html tag is created... I can't write C, or other code, but I can hack things together.. :) Wayne Mery wrote:Jon Lyons wrote: > I'm not sure what you're asking, the default behavior is any services that are in a Critical, Warning, Unknown state on the TAC web page have a red background. With either black text, or with white text(acknowleged) or both. I'm looking to have the entire page's background color changed when something goes "critical" so that the entire screen 'lights up', not just the service or host involved. -- Thanks Wayne ________________________________________________________________________ Wayne S. Mery | Systems Programmer | Lehigh University | Bethlehem, PA 610-758-3983 ** http://www.lehigh.edu/~wsm0 ** Save a Life - Sign an Organ Donor card ** http://www.transweb.org for more information --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Jan 9 21:46:44 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 12:46:44 -0800 (PST) Subject: Problems setting up icons In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79E62@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79E62@officesrv.docmagic.com> Message-ID: <20030109204644.6257.qmail@web21512.mail.yahoo.com> Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote:Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_name DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Jan 9 21:51:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 14:51:30 -0600 Subject: Setting up service dependencies Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E5@PKDWB03C.ad.sprint.com> Agreed, creating these dependencies is slow and painful (made less painful with the help of a sample block of code that I add after each service that I want to set up a dependency for, then run through each host's config file to replace this and that). I've barely shown you much of a single config file for a given host. Make no mistake, I'm monitoring some 1100+ services, and a large chunk of those (ie, the majority) are NRPE-related. I'm *still* working on building out the dependencies, and expect to be adding quite a few more NRPE services (say, 5-10 NRPE services per host for another ~60 hosts) before too long. (I could possibly write a Perl script to add the missing dependencies, but I like your XML suggestion for easing the pain.) The only other suggestion/wish list item I would have, would be to be able to create a system template which would encompass an integrated host-and-multiple-services definition, something which would make subsequent definitions relatively brief. :) Perhaps someday, but I'm keen to see if there are other areas of Nagios which would reap greater rewards in a shorter time with less effort, given the time/effort. Jeff, I'm not sure if this should be moved over to the nagios-devel mailing list (which I should think about subscribing to), but if you would care to constructively hash out an approach/design which could be integrated without too much grief, then check into it. :) jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Thursday, January 09, 2003 1:52 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies yeah, I'm willing to deal with the fact that the host may not be really down if I'm checking HTTP. Your example is similar to what I tried. But almost all my services use hostgroup_name rather than host_name to keep things manageable. Otherwise I would have over 500 service objects to manage. servicedependency doesn't seem to work right when you substitute hostgroup_name for host_name like it works for all other object definitions. I would have to create thousands of service dependecies if I were to do everything on a host basis rather than hostgroup. Oh well, but here's a vote for XML config files which would make automatic generation of these files easier. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 09, 2003 7:29 AM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies It's not A Bad Thing per se; given the example of a host behind a firewall with a hole at port 80 poked through it, it would certainly have merit. But in the case where your webserver fails but, say, sshd is still up, can the host be said to be down? Just to say that I gave you a servicedependency example, here it is: define service{ host_name itdmll01 use icmp service_description NRPE check contact_groups linux-admins check_command check_nrpe!check_nrpe_status } define service{ host_name itdmll01 use icmp service_description Total Users contact_groups linux-admins check_command check_nrpe!check_users } define servicedependency{ dependent_host_name itdmll01 dependent_service_description Total Users host_name itdmll01 service_description NRPE check execution_failure_criteria w,u,c notification_failure_criteria w,u,c } Explanation: "NRPE check" is the basic 'is NRPE up' check. "Total Users" actually kicks off a plugin on the remote host. "Total Users" is dependent on "NRPE check". If "Total Users" fails, it checks to make sure that "NRPE check" is up/down. If the latter is down, that's all I get alerted on. If it's still up, then I get alerted on the former. Does this help? jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 7:53 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I think I found a workaround for this. For some servers, like webservers most of the services are some form of HTTP request, so I changed the check_command on the host to do a simple http request. If that fails, then the host is considered 'down' rather than just using the standard ping check. If this is 'bad' for some reason, please let me know. second question: is it possible to pass arbitrary ssh parameters to check_ssh, like "-1" for ssh v1? Doesn't appear so, but maybe there's a trick? Jeff -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Wednesday, January 08, 2003 10:12 AM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Setting up service dependencies I've looked at the examples that come with nagios and they don't seem to address the problem of using hostgroups versus hosts. I'm not using NPRE, but if you have examples using hostgroups, I'd love to see them. Jeff -----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: Tuesday, January 07, 2003 1:47 PM To: 'Jeff Boulter'; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's different. You'll want to set up a service dependency, of course. Er... do you absolutely need to check for static HTML? I mean, if the PHP fails because the webserver is down.... Oh, unless you just want to be informed that there's a PHP problem but that the server itself it still up. Okay, I can see that. I've set up various NRPE dependencies at our site, so if you need a trivial example, I can post one to the list. Let me know. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Tuesday, January 07, 2003 1:05 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies That's good to know. I still have this issue though because I have some tests that aren't going work if simpler tests fail. For example, a simple test to see if a webserver can serve a static HTML can fail, and if that's the case then checking to see if the webserver will return a PHP page is obviously not going to work. Jeff -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 07, 2003 10:41 AM To: Jeff Boulter; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Setting up service dependencies I'm not sure why you're taking this approach. Out of the box, Nagios will behave as you wish it to. If a service check fails, then a host check is made. If the host check fails, it's flagged as down and, depending on your particular configuration, you'll receive the notification for the host being down, not for the N services you're monitoring on that host. If the host check passes, then you'll get an alert on the service. jc -----Original Message----- From: Jeff Boulter [mailto:jboulter at yahoo-inc.com] Sent: Monday, January 06, 2003 6:37 PM To: Nagios-users at lists.sourceforge.net Subject: [Nagios-users] Setting up service dependencies Hello all, I'm trying to set up service dependencies in Nagios. For example, I don't want alerts about an HTTP service being down on a host if the host isn't pingable. So far, the only way I've found to do this is to set it up for each host individually. That would be difficult with the hundreds of hosts that my nagios is currently monitoring. I tried creating a servicedependency object with a hostgroup_name and a dependent_hostgroup_name. This seems to make each host in hostgroup_name dependent on EVERY host in dependent_hostgroup_name. For example, if my hostgroup has 7 hosts in it, it seems it's making each of those 7 hosts dependent on each other, making 7x7=49 dependencies. (Stragely, Nagios reports 98 dependencies. Why 2x?) Any suggestions on how to make a service dependencies local to each host and not a group of hosts without lots and lots of dependency objects? Jeff -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Jan 9 22:17:02 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 13:17:02 -0800 (PST) Subject: Problems setting up icons In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79E63@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79E63@officesrv.docmagic.com> Message-ID: <20030109211702.31951.qmail@web21505.mail.yahoo.com> Tail the http-access and http-error logs, make sure the images are being found and the permissions are correct.. Did you restart nagios? "Nicholas P. Bernstein" wrote: I changed it to the full path, but unfortunately it seems to have made no difference. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 12:47 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems setting up icons Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote: Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_name DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 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: From tim at mintoskatingclub.com Thu Jan 9 22:29:37 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Thu, 9 Jan 2003 16:29:37 -0500 (EST) Subject: NT Counter problem with NSClient Message-ID: <200301092129.h09LTbb9025825@webmail1.magma.ca> All: I have the check_nt client running on my system (Solaris 2.7) and it works on all the nt checks except the perf counters. For example, I get the following: check_nt -H myhost -p 1248 -v COUNTER -l "\\Paging File(_Total)\\% Usage","Paging file usage is %.2f %%" -w 80 -c 90 Paging file usage is 0.00 No matter what counter I try and get, I always get 0.00 as the result. Is there something else I need to do? Any help would be greatly appreciated, Tim Shouldice ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Thu Jan 9 22:19:00 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Thu, 9 Jan 2003 16:19:00 -0500 Subject: HELP Message-ID: <5593DA408212D511B0910002A513501F01D28893@phsexch20.mgh.harvard.edu> The server has two network jacks attached to it. One jack is on a 192.168.1.0 network while the other is on a 132.183.12.0 net. I am still getting the Network server bind failure (98: Address already in use) error message. Because I am trying to use xinetd.d, is there a line that would tell nrpe to bind to the 132 network? I am grasping at straws here, but I can't think of anything else at this time. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nickbernstein at sbcglobal.net Thu Jan 9 23:19:18 2003 From: nickbernstein at sbcglobal.net (Nicholas P. Bernstein) Date: Thu, 9 Jan 2003 14:19:18 -0800 Subject: Problems setting up icons In-Reply-To: <20030109211702.31951.qmail@web21505.mail.yahoo.com> References: <20030109211702.31951.qmail@web21505.mail.yahoo.com> Message-ID: <3F1AB17F38AFD31190840060975EC2DB01A79E65@officesrv.docmagic.com> I didn't see any in the logs, but that makes sense to me, since nagios isn't failing to display *any* icon, it just won't display the ones I specified. It works fine displaying the "?" icon and the "NAGIOS" icons, so I wouldn't expect the error to be in apache. BTW, yes, I restarted. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 1:17 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Tail the http-access and http-error logs, make sure the images are being found and the permissions are correct.. Did you restart nagios? "Nicholas P. Bernstein" wrote: I changed it to the full path, but unfortunately it seems to have made no difference. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 12:47 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems setting up icons Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote: Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_name DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 Jan 9 23:48:59 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 14:48:59 -0800 (PST) Subject: Problems setting up icons In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79E65@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79E65@officesrv.docmagic.com> Message-ID: <20030109224859.50682.qmail@web21505.mail.yahoo.com> Does the image info "Red Hat Linux Server" appear when you mouse over host DA? Is this an underscore? statusmap_ redhat.jpg ? Sould be a space ...Try; define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image redhat.jpg vrml_image redhat.jpg icon_image_alt Red Hat Linux Server notes_url http://www.biteme.com 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } "Nicholas P. Bernstein" wrote: I didn't see any in the logs, but that makes sense to me, since nagios isn't failing to display *any* icon, it just won't display the ones I specified. It works fine displaying the "?" icon and the "NAGIOS" icons, so I wouldn't expect the error to be in apache. BTW, yes, I restarted. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 1:17 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Tail the http-access and http-error logs, make sure the images are being found and the permissions are correct.. Did you restart nagios? "Nicholas P. Bernstein" wrote: I changed it to the full path, but unfortunately it seems to have made no difference. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 12:47 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems setting up icons Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote: Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_name DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 russell at quadrix.com Thu Jan 9 23:53:47 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 09 Jan 2003 17:53:47 -0500 Subject: New Plugin: check_status References: <1040122036.15711.57.camel@fr3nd> <3DFF8D94.3040201@quadrix.com> <1041318313.3e1141a924248@webmail.blandsite.org> Message-ID: <3E1DFD7B.4010409@quadrix.com> Here is that plugin that I mentioned a while back. It is run locally on a box to parse the status.log for HARD service or host problems and return an exit code and output depending on the # of problems found and the arguments provided. There are a lot of arguments, and my concern is that people might not understand some of what the plugin is doing. I tried to explain most of it in the --help output, but if there are any questions, please email me (russell at quadrix.com). If this could be added to the contrib section of the nagiosplug tree (assuming you think its ok), I'd appreciate it. Thanks. Russell Scibetti Brandon Knitter wrote: >Please submit it to the project, and to the mailing list. If it takes a while >to be intergrated, I'd be very interested in making use of this for a command >line interface. > >Thanks, > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_status.pl URL: From jcarro10 at sprintspectrum.com Fri Jan 10 00:24:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 9 Jan 2003 17:24:24 -0600 Subject: HELP Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E6@PKDWB03C.ad.sprint.com> I'm tempted to say that there's already something listening on that port. I would also say that while the nrpe daemon will bind to a port, I don't believe you can get it to bind to a specific socket. I'm not aware of any way to get xinetd to force nrpe to bind to a specific socket, either. Is it possible you have the daemon running standalone while you're also trying to get xinetd to manage it? Is it possible you have two files in your /etc/xinetd.d/ directory, one named nrpe, one named something else? I helped someone else a month or two ago, and he was suffering much the same way, and it was stumping both of us. In the end, he discovered a file in /etc/xinetd.d/ named something like "-i" or perhaps ":". He wasn't really looking for it, so it went unnoticed for quite a while. You might want to try changing to the /etc/xinetd.d/ directory, then do a "grep -l nrpe `ls -a`" and see what all pops up. In case I haven't been clear, it really does seem like something else has already grabbed that port, and that shouldn't be the case. That would agree with the strace output you sent me. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Thursday, January 09, 2003 3:19 PM > To: Carroll, Jim P [Contractor] > Cc: Nagios-users at lists.sourceforge.net > Subject: HELP > > > The server has two network jacks attached to it. One jack is on a > 192.168.1.0 network while the other is on > a 132.183.12.0 net. I am still getting the Network server > bind failure (98: > Address already in use) error > message. Because I am trying to use xinetd.d, is there a line > that would > tell nrpe to bind to the 132 network? > I am grasping at straws here, but I can't think of anything > else at this > time. > ------------------------------------------------------- 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 Jan 10 00:24:36 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 15:24:36 -0800 (PST) Subject: Symantec's Security Central uses Nagios... In-Reply-To: <3E1DFD7B.4010409@quadrix.com> References: <3E1DFD7B.4010409@quadrix.com> Message-ID: <20030109232436.48841.qmail@web21507.mail.yahoo.com> Checkout the picture of the NOC on the left side... :) Looks like they need to acknowledge somthing! http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From nfoggi at depaul.edu Fri Jan 10 00:20:56 2003 From: nfoggi at depaul.edu (Nicola Foggi) Date: Thu, 09 Jan 2003 17:20:56 -0600 Subject: Nagios/Netsaint @ Symantec Security Center Message-ID: Hmm.... Look carefully at the picture of the control room of Symantec Security Center... http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html Notice anything familiar running on one of the big monitors? Nicola Foggi Networks and Telecom DePaul University ------------------------------------------------------- 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 Jan 10 00:33:36 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 15:33:36 -0800 (PST) Subject: Symantec's Security Central uses Nagios/netsaint... In-Reply-To: <3E1DFD7B.4010409@quadrix.com> References: <3E1DFD7B.4010409@quadrix.com> Message-ID: <20030109233336.19086.qmail@web21506.mail.yahoo.com> Correction, Right side.. >>>>>Checkout the picture of the NOC on the left side... :) Looks like they need to acknowledge something! http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Fri Jan 10 00:43:02 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 9 Jan 2003 17:43:02 -0600 Subject: CHECK_FPING WARNING Message-ID: Are you able to run check_fping as the user nagios. You typically need to setuid to root on the fping binary. By default fping cannot be run as a regular user since it could be used in a DoS attack. Richard -----Original Message----- From: Peter Krzystofiak [mailto:pkrzystofiak at endeavors.com] Sent: Thursday, January 09, 2003 2:32 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] CHECK_FPING WARNING Hello all, this works... ./check_fping -H yahoo.com -b 1024 FPING OK - yahoo.com (loss=0.000000%, rta=69.100000 ms) --------------------------------------------------------------- The problem is that in the nagios web view monitor page ===>WARNING 01-09-2003 12:33:51 0d 0h 2m 10s 1/3 FPING WARNING - yahoo.com Why do I get a "FPING WARNING - yahoo.com" error? --------------------------------------------------------------- define command { command_name check_fping command_line $USER1$/check_fping -H $HOSTADDRESS$ -b $ARG1$ } --------------------------------------------------------------- define service { use generic-service host_name yahoo service_description FPING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 3 contact_groups flcd-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_fping!1024 } --------------------------------------------------------------- Your input is appreciated, Peter pkrzystofiak at endeavors.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 fisher at osiriscomm.com Fri Jan 10 00:51:21 2003 From: fisher at osiriscomm.com (Eric Fisher) Date: Thu, 9 Jan 2003 15:51:21 -0800 (PST) Subject: (no subject) Message-ID: Hello. I'm not sure if this has been previously addressed, as I can't find it in the archives. I am having problems with setting up volatile services in Nagios 1.0. While alerts are logged in Nagios, it is not sending notifications for subsequent non-ok messages. Example order of events: - Service is OK. - Passive failure is received and sets alert status to critical and notifies contacts. - Second passive failure occurs and sets alert, but does not send notification. - Service receives a passive OK update and logs the state change. - Passive failure is received and sets alert status to critical and notifies contacts. So, what I am missing is why the notification on the second critical event doesn't happen. Here is my service definition: # Service definition define service{ use generic-service host_name system1 service_description PassiveCheck is_volatile 1 check_period 24x7 passive_checks_enabled 1 active_checks_enabled 0 max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 contact_groups on-call notification_interval 0 notification_period 24x7 notification_options u,c,w check_command check_none } Is there something I am missing or is this a possible bug in the is_volatile code. Thanks a bunch, -Eric Fisher ------------------------------------------------------- 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 Jan 10 01:00:25 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 16:00:25 -0800 (PST) Subject: Problems setting up icons In-Reply-To: <3F1AB17F38AFD31190840060975EC2DB01A79E66@officesrv.docmagic.com> References: <3F1AB17F38AFD31190840060975EC2DB01A79E66@officesrv.docmagic.com> Message-ID: <20030110000025.23603.qmail@web21506.mail.yahoo.com> Did you use my example? Make sure the redhat.jpg exsists. If you use my example do you get the mouse overs, or the url links to http://www.biteme.com (upper right corner)? If not, check the permissions of the hostextinfo.cfg, what version of nagios? "Nicholas P. Bernstein" wrote:I changed the statusmap_ to statusmap with no results (unfortunately). Also, no I do not get any alt message. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 2:49 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Does the image info "Red Hat Linux Server" appear when you mouse over host DA? Is this an underscore? statusmap_ redhat.jpg ? Sould be a space ...Try; define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image redhat.jpg vrml_image redhat.jpg icon_image_alt Red Hat Linux Server notes_url http://www.biteme.com 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } "Nicholas P. Bernstein" wrote: I didn't see any in the logs, but that makes sense to me, since nagios isn't failing to display *any* icon, it just won't display the ones I specified. It works fine displaying the "?" icon and the "NAGIOS" icons, so I wouldn't expect the error to be in apache. BTW, yes, I restarted. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 1:17 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Tail the http-access and http-error logs, make sure the images are being found and the permissions are correct.. Did you restart nagios? "Nicholas P. Bernstein" wrote: I changed it to the full path, but unfortunately it seems to have made no difference. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 12:47 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems setting up icons Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote: Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_n! ame DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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: From jkinred at tycoint.com.au Fri Jan 10 01:01:56 2003 From: jkinred at tycoint.com.au (Jon Kinred) Date: Fri, 10 Jan 2003 11:01:56 +1100 Subject: Sample nrpe.cfg with nrpe-1.7 Message-ID: <3E1E0D74.8080601@tycoint.com.au> Just so you don't get caught out like i almost did. The sample check_disk lines specify -w 20 -c 10, which checks for the thresholds in kilobytes not percentage, as one would assume. Perhaps it was a sinister mistake so people would read the docs properly? Jon ------------------------------------------------------- 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 Fri Jan 10 01:28:15 2003 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 10 Jan 2003 00:28:15 -0000 Subject: squarbox In-Reply-To: <012501c2b810$52f01b10$0e38cf81@fucko> References: <012501c2b810$52f01b10$0e38cf81@fucko> Message-ID: <002f01c2b83f$2a81df40$0400a8c0@squarebox.com> Hi Justin The link is off the www.nagios.org site, Click on demo and you?ll find both off our squareBOX sites. Alternatively the link for the demo site is http://nagios.square-box.com username/password both guest Link for the config files pages are http://demo.square-box.com Hope this helps Tom Welsh Chief Technical Officer 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 Justin Sent: 09 January 2003 18:52 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] squarbox I unserstand that squarebox technologies has their config's online to look at. A freind once showed me these configs and I could copy them right off the page and edit the to suti my needs. I seem to have lost the web page. If anyone could send me that link, it would be great. thanks Justin -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Fri Jan 10 01:48:18 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 16:48:18 -0800 (PST) Subject: Problems setting up icons In-Reply-To: <20030110000025.23603.qmail@web21506.mail.yahoo.com> References: <20030110000025.23603.qmail@web21506.mail.yahoo.com> Message-ID: <20030110004818.44563.qmail@web21512.mail.yahoo.com> Are you getting any icons, or just not in the statusmap.cgi? http://nagios.square-box.com/nagios/cgi-bin/extinfo.cgi?type=1&host=alpha Jon Lyons wrote: Did you use my example? Make sure the redhat.jpg exsists. If you use my example do you get the mouse overs, or the url links to http://www.biteme.com (upper right corner)? If not, check the permissions of the hostextinfo.cfg, what version of nagios? "Nicholas P. Bernstein" wrote: I changed the statusmap_ to statusmap with no results (unfortunately). Also, no I do not get any alt message. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 2:49 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Does the image info "Red Hat Linux Server" appear when you mouse over host DA? Is this an underscore? statusmap_ redhat.jpg ? Sould be a space ...Try; define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image redhat.jpg vrml_image redhat.jpg icon_image_alt Red Hat Linux Server notes_url http://www.biteme.com 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } "Nicholas P. Bernstein" wrote: I didn't see any in the logs, but that makes sense to me, since nagios isn't failing to display *any* icon, it just won't display the ones I specified. It works fine displaying the "?" icon and the "NAGIOS" icons, so I wouldn't expect the error to be in apache. BTW, yes, I restarted. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 1:17 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problems setting up icons Tail the http-access and http-error logs, make sure the images are being found and the permissions are correct.. Did you restart nagios? "Nicholas P. Bernstein" wrote: I changed it to the full path, but unfortunately it seems to have made no difference. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 09, 2003 12:47 PM To: Nicholas P. Bernstein; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Problems setting up icons Path? xedtemplate_config_file=/usr/something/nagios/etc/hostextinfo.cfg "Nicholas P. Bernstein" wrote: Any thoughts/help/etc. would be appreciated: I think I'm doing this pretty much by the book, but am obviously missing something. The icons are living in /usr/local/nagios/share/images/logos and I edited the config files as such: I added the line: xedtemplate_config_file=hostextinfo.cfg to cgi.cfg and: [nick at da3 etc]# cat hostextinfo.cfg # # THIS IS THE Extended Information Configuration File # Basically, you say what Icons you want to use here. :) # define hostextinfo{ host_name DA icon_image redhat.jpg statusmap_image: redhat.png icon_image_alt "Red Hat Linux Server" vrml_image redhat.png statusmap_ redhat.jpg 2d_coords 100,250 3d_coords 100.0,50.0,75.0 } and my hosts.cfg: define host{ use generic-host ; Name of host template to use host_n! ame DA alias DA address 192.168.210.12 check_command check-host-alive max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } -- +--------------------------------------------------------------------------- --------+ | Nicholas Bernstein | Work: | Home: | | UNIX Systems Administrator | nick at docmagic.com | nickbernstein at sbcglobal.net | | Document Systems Inc. | www.docmagic.com | 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 Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Fri Jan 10 02:23:51 2003 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 10 Jan 2003 01:23:51 -0000 Subject: squarbox In-Reply-To: References: Message-ID: <000201c2b846$eedbd100$0400a8c0@squarebox.com> Hi Stefan, Im sorry but I don?t speak Norwegian. Any chance you could send me this in English? Or anyone else on the list that understands Norwegian. The Norwegian to English translation software on the Net stinks Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: Postmaster at baerum.kommune.no [mailto:Postmaster at baerum.kommune.no] On Behalf Of Stefan Hanssen Sent: 10 January 2003 01:02 To: twelsh at square-box.com Subject: Ang: RE: [Nagios-users] squarbox Er ikke p? jobb grunnet sykdom. ------------------------------------------------------- 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 Jan 10 02:39:45 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 17:39:45 -0800 (PST) Subject: squarbox In-Reply-To: <000201c2b846$eedbd100$0400a8c0@squarebox.com> References: <000201c2b846$eedbd100$0400a8c0@squarebox.com> Message-ID: <20030110013945.80089.qmail@web21505.mail.yahoo.com> Hehehe..... Probably something like "I'm a loser, and I'm out of the office" Tom Welsh wrote:Hi Stefan, Im sorry but I don?t speak Norwegian. Any chance you could send me this in English? Or anyone else on the list that understands Norwegian. The Norwegian to English translation software on the Net stinks Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: Postmaster at baerum.kommune.no [mailto:Postmaster at baerum.kommune.no] On Behalf Of Stefan Hanssen Sent: 10 January 2003 01:02 To: twelsh at square-box.com Subject: Ang: RE: [Nagios-users] squarbox Er ikke p? jobb grunnet sykdom. ------------------------------------------------------- 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 olivier at accoladegroup.net Fri Jan 10 03:53:42 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Thu, 9 Jan 2003 21:53:42 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Message-ID: <001301c2b853$7cf2d2c0$0401a8c0@moscow> Whelp, I'm stumped. I can't figure out why I can't do things like add comments, disable service checks, schedule downtime etc. I've set myself up as nagiosadmin, right out of the box. I can see and do everything else... Just for fun, I've set up other hosts, with different contact names and then setup different usernames (doing basic auth, using Apache)... and that works as documented. What's the trick? I've already read: nagios/docs/commandfile.html. Thanks, Olivier PS. I've noticed that when I login, it says logged in as 'nagiosadmin' (which is correct). But, when I hit "commit" to disable a service check, for example, the "Sorry" page indicates logged in as ?. [obeauche at mrtg var]# ls -la total 904 drwxrwxr-x 4 nagios nagios 4096 Jan 9 21:47 . drwxrwxr-x 8 nagios nagios 4096 Jan 7 01:52 .. drwxrwxr-x 2 nagios nagios 4096 Jan 8 00:00 archives -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 comment.log -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 downtime.log -rw-r--r-- 1 root root 5 Jan 9 18:04 nagios.lock -rw-r--r-- 1 nagios nagios 822693 Jan 9 21:23 nagios.log drwxrwsr-x 2 nagios nagiocmd 4096 Jan 9 21:33 rw -rw-rw-r-- 1 nagios nagios 42078 Jan 9 21:47 status.log -rw-rw-r-- 1 nagios nagios 31332 Jan 9 20:53 status.sav and ... [obeauche at mrtg var]# cat /etc/group | grep nagio apache:x:48:otrs,nagios,nagiocmd nagios:x:503:apache nagiocmd:x:505:nagios,apache and ... command_file=/usr/local/nagios/var/rw/nagios.cmd check_external_commands=1 log_external_commands=1 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jnichols at pbp.net Fri Jan 10 03:59:08 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Thu, 9 Jan 2003 18:59:08 -0800 (PST) Subject: list b0rked? Message-ID: Hey guys - Anybody else seeing stuff like this: [ The following text is in the "iso-8859-1" character set. ] [ Your display is set for the "US-ASCII" character set. ] [ Some characters may be displayed incorrectly. ] [Error: Formatting error: Non-hexadecimal character in QP encoding] ....recently? I'm using pine. Other users on other sourceforge lists have seen this as well. Anybody know what it could be? -Jonathan ------------------------------------------------------- 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 Jan 10 04:21:06 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 19:21:06 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <001301c2b853$7cf2d2c0$0401a8c0@moscow> References: <001301c2b853$7cf2d2c0$0401a8c0@moscow> Message-ID: <20030110032106.2633.qmail@web21502.mail.yahoo.com> Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory... "Olivier Beauchemin (Accolade Group)" wrote:Whelp, I'm stumped. I can't figure out why I can't do things like add comments, disable service checks, schedule downtime etc. I've set myself up as nagiosadmin, right out of the box. I can see and do everything else... Just for fun, I've set up other hosts, with different contact names and then setup different usernames (doing basic auth, using Apache)... and that works as documented. What's the trick? I've already read: nagios/docs/commandfile.html. Thanks, Olivier PS. I've noticed that when I login, it says logged in as 'nagiosadmin' (which is correct). But, when I hit "commit" to disable a service check, for example, the "Sorry" page indicates logged in as ?. [obeauche at mrtg var]# ls -la total 904 drwxrwxr-x 4 nagios nagios 4096 Jan 9 21:47 . drwxrwxr-x 8 nagios nagios 4096 Jan 7 01:52 .. drwxrwxr-x 2 nagios nagios 4096 Jan 8 00:00 archives -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 comment.log -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 downtime.log -rw-r--r-- 1 root root 5 Jan 9 18:04 nagios.lock -rw-r--r-- 1 nagios nagios 822693 Jan 9 21:23 nagios.log drwxrwsr-x 2 nagios nagiocmd 4096 Jan 9 21:33 rw -rw-rw-r-- 1 nagios nagios 42078 Jan 9 21:47 status.log -rw-rw-r-- 1 nagios nagios 31332 Jan 9 20:53 status.sav and ... [obeauche at mrtg var]# cat /etc/group | grep nagio apache:x:48:otrs,nagios,nagiocmd nagios:x:503:apache nagiocmd:x:505:nagios,apache and ... command_file=/usr/local/nagios/var/rw/nagios.cmd check_external_commands=1 log_external_commands=1 ------------------------------------------------------- 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 olivier at accoladegroup.net Fri Jan 10 04:55:25 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Thu, 9 Jan 2003 22:55:25 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110032106.2633.qmail@web21502.mail.yahoo.com> Message-ID: <006301c2b85c$1c474510$0401a8c0@moscow> Nope, I don't think that's it. The .htaccess files are already there and working fine. If I login as X, I see Y and Z hosts/services. If I login as A, I see B and C hosts/services. That tells me that the basic auth is working. If I login as a user who does not have privs to see process info, it works: I don't get access to the process info. The reverse is true if I login with a user that has privs. So, I'm making the assumption that I've got things configured properly. As far as I can tell, I've got the privs for the users to hosts/services config'd properly. I also went line-by-line on the External Command File Permissions doc, and the privs match the doc, and nagios creates the right file on a restart. I also restarted httpd, which runs as apache. So, it seems like something I'm seriously missing, or something out of my control? Olivier ----- Original Message ----- From: Jon Lyons To: Olivier Beauchemin (Accolade Group) ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 10:21 PM Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory... -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at nagios.org Fri Jan 10 05:02:07 2003 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 09 Jan 2003 22:02:07 -0600 Subject: Nagios/Netsaint @ Symantec Security Center In-Reply-To: References: Message-ID: <3E1DF15F.20111.235189@localhost> Nice. :-) The associated video shows a closeup clip of the Tac CGI for a second or so too. On 9 Jan 2003 at 17:20, Nicola Foggi wrote: > Hmm.... > > Look carefully at the picture of the control room of Symantec Security > Center... > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > Notice anything familiar running on one of the big monitors? > > Nicola Foggi > Networks and Telecom > DePaul University > > > > ------------------------------------------------------- > 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 jlyons30 at yahoo.com Fri Jan 10 05:15:26 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 20:15:26 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <006301c2b85c$1c474510$0401a8c0@moscow> References: <006301c2b85c$1c474510$0401a8c0@moscow> Message-ID: <20030110041526.88116.qmail@web21507.mail.yahoo.com> Just as a test, chnage the permissions on the nagios.cmd file to 777, and see if it's a permissions problem... "Olivier Beauchemin (Accolade Group)" wrote:Nope, I don't think that's it. The .htaccess files are already there and working fine. If I login as X, I see Y and Z hosts/services. If I login as A, I see B and C hosts/services. That tells me that the basic auth is working. If I login as a user who does not have privs to see process info, it works: I don't get access to the process info. The reverse is true if I login with a user that has privs. So, I'm making the assumption that I've got things configured properly. As far as I can tell, I've got the privs for the users to hosts/services config'd properly. I also went line-by-line on the External Command File Permissions doc, and the privs match the doc, and nagios creates the right file on a restart. I also restarted httpd, which runs as apache. So, it seems like something I'm seriously missing, or something out of my control? Olivier----- Original Message ----- From: Jon Lyons To: Olivier Beauchemin (Accolade Group) ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 10:21 PMSubject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Fri Jan 10 05:17:15 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 20:17:15 -0800 (PST) Subject: Nagios/Netsaint @ Symantec Security Center In-Reply-To: <3E1DF15F.20111.235189@localhost> References: <3E1DF15F.20111.235189@localhost> Message-ID: <20030110041715.88260.qmail@web21507.mail.yahoo.com> I tried to edit the image in photoshop to see how hosts they're monitoring, but no luck, maybe someone with better skills?... :) Ethan Galstad wrote:Nice. :-) The associated video shows a closeup clip of the Tac CGI for a second or so too. On 9 Jan 2003 at 17:20, Nicola Foggi wrote: > Hmm.... > > Look carefully at the picture of the control room of Symantec Security > Center... > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > Notice anything familiar running on one of the big monitors? > > Nicola Foggi > Networks and Telecom > DePaul University > > > > ------------------------------------------------------- > 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 _______________________________________________ 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 olivier at accoladegroup.net Fri Jan 10 05:24:29 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Thu, 9 Jan 2003 23:24:29 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110032106.2633.qmail@web21502.mail.yahoo.com> <006301c2b85c$1c474510$0401a8c0@moscow> Message-ID: <007e01c2b860$2c2d1b40$0401a8c0@moscow> Err, I might also point out that I'm running RedHat 8.0. Olivier ----- Original Message ----- From: Olivier Beauchemin (Accolade Group) To: Jon Lyons ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 10:55 PM Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Nope, I don't think that's it. The .htaccess files are already there and working fine. If I login as X, I see Y and Z hosts/services. If I login as A, I see B and C hosts/services. That tells me that the basic auth is working. If I login as a user who does not have privs to see process info, it works: I don't get access to the process info. The reverse is true if I login with a user that has privs. So, I'm making the assumption that I've got things configured properly. As far as I can tell, I've got the privs for the users to hosts/services config'd properly. I also went line-by-line on the External Command File Permissions doc, and the privs match the doc, and nagios creates the right file on a restart. I also restarted httpd, which runs as apache. So, it seems like something I'm seriously missing, or something out of my control? Olivier ----- Original Message ----- From: Jon Lyons To: Olivier Beauchemin (Accolade Group) ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 10:21 PM Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory... ------------------------------------------------------- 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 Jan 10 05:24:20 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 20:24:20 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <001301c2b853$7cf2d2c0$0401a8c0@moscow> References: <001301c2b853$7cf2d2c0$0401a8c0@moscow> Message-ID: <20030110042420.26071.qmail@web21501.mail.yahoo.com> Umm....Did you edit the cfg.cgi file and give nagiosadmin permission? Sorry the drugs have kicked in so my brain is messed... :) authorized_for_system_commands=nagiosadmin "Olivier Beauchemin (Accolade Group)" wrote:Whelp, I'm stumped. I can't figure out why I can't do things like add comments, disable service checks, schedule downtime etc. I've set myself up as nagiosadmin, right out of the box. I can see and do everything else... Just for fun, I've set up other hosts, with different contact names and then setup different usernames (doing basic auth, using Apache)... and that works as documented. What's the trick? I've already read: nagios/docs/commandfile.html. Thanks, Olivier PS. I've noticed that when I login, it says logged in as 'nagiosadmin' (which is correct). But, when I hit "commit" to disable a service check, for example, the "Sorry" page indicates logged in as ?. [obeauche at mrtg var]# ls -la total 904 drwxrwxr-x 4 nagios nagios 4096 Jan 9 21:47 . drwxrwxr-x 8 nagios nagios 4096 Jan 7 01:52 .. drwxrwxr-x 2 nagios nagios 4096 Jan 8 00:00 archives -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 comment.log -rw-rw-r-- 1 nagios nagios 0 Jan 9 20:53 downtime.log -rw-r--r-- 1 root root 5 Jan 9 18:04 nagios.lock -rw-r--r-- 1 nagios nagios 822693 Jan 9 21:23 nagios.log drwxrwsr-x 2 nagios nagiocmd 4096 Jan 9 21:33 rw -rw-rw-r-- 1 nagios nagios 42078 Jan 9 21:47 status.log -rw-rw-r-- 1 nagios nagios 31332 Jan 9 20:53 status.sav and ... [obeauche at mrtg var]# cat /etc/group | grep nagio apache:x:48:otrs,nagios,nagiocmd nagios:x:503:apache nagiocmd:x:505:nagios,apache and ... command_file=/usr/local/nagios/var/rw/nagios.cmd check_external_commands=1 log_external_commands=1 ------------------------------------------------------- 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 nagios at nagios.org Fri Jan 10 05:28:38 2003 From: nagios at nagios.org (Ethan Galstad) Date: Thu, 09 Jan 2003 22:28:38 -0600 Subject: Nagios/Netsaint @ Symantec Security Center In-Reply-To: <20030110041715.88260.qmail@web21507.mail.yahoo.com> References: <3E1DF15F.20111.235189@localhost> Message-ID: <3E1DF796.6724.3B960A@localhost> I was able to pause the video at the right moment. The services summary portion of the screen only showed a total of about 1200 services or so. On 9 Jan 2003 at 20:17, Jon Lyons wrote: > > I tried to edit the image in photoshop to see how hosts they're > monitoring, but no luck, maybe someone with better skills?... :) > Ethan Galstad wrote: > Nice. :-) The associated video shows a closeup clip of the Tac CGI > for a second or so too. > > > On 9 Jan 2003 at 17:20, Nicola Foggi wrote: > > > Hmm.... > > > > Look carefully at the picture of the control room of Symantec > Security > > Center... > > > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > > > Notice anything familiar running on one of the big monitors? > > > > Nicola Foggi > > Networks and Telecom > > DePaul University > > > > > > > > ------------------------------------------------------- > > 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. Yahoo! Mail Plus - Powerful. Affordable. > Sign up now 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 olivier at accoladegroup.net Fri Jan 10 05:31:45 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Thu, 9 Jan 2003 23:31:45 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110041526.88116.qmail@web21507.mail.yahoo.com> Message-ID: <009101c2b861$2f67de70$0401a8c0@moscow> Did that just now, didn't work. Also, on the cgi.cfg question... authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin ... if I tell the cgi's to NOT use auth, I get a message that tell's me I have to do something to take off the safety etc, etc, etc. So, I don't know. I'm frustrated. Any ideas, anyone? Olivier ----- Original Message ----- From: "Jon Lyons" > Just as a test, chnage the permissions on the nagios.cmd file to 777, and see if it's a permissions problem... ------------------------------------------------------- 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 Jan 10 05:40:40 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 20:40:40 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <009101c2b861$2f67de70$0401a8c0@moscow> References: <009101c2b861$2f67de70$0401a8c0@moscow> Message-ID: <20030110044040.98131.qmail@web21511.mail.yahoo.com> When you try and commit a command, what user are you logged in as? Nagiosadmin or "?" ? If you close your browser and try to open the page; http://yourservers.com/nagios/cgi-bin/cmd.cgi?cmd_typ=1 Does it ask for a username? "Olivier Beauchemin (Accolade Group)" wrote:Did that just now, didn't work. Also, on the cgi.cfg question... authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadmin authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin authorized_for_all_hosts=nagiosadmin authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin ... if I tell the cgi's to NOT use auth, I get a message that tell's me I have to do something to take off the safety etc, etc, etc. So, I don't know. I'm frustrated. Any ideas, anyone? Olivier ----- Original Message ----- From: "Jon Lyons" > Just as a test, chnage the permissions on the nagios.cmd file to 777, and see if it's a permissions problem... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at accoladegroup.net Fri Jan 10 05:46:45 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Thu, 9 Jan 2003 23:46:45 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110044040.98131.qmail@web21511.mail.yahoo.com> Message-ID: <00ba01c2b863$478a3c30$0401a8c0@moscow> It asks for a username, I login it says I am logged in as the correct username, and when I enter in the data to add a comment to the host, and click commit, "Sorry, you are not authorized..." and now I am logged in as ? Olivier ----- Original Message ----- From: "Jon Lyons" > When you try and commit a command, what user are you logged in as? Nagiosadmin or "?" ? If you close your browser and try to open the page; > http://yourservers.com/nagios/cgi-bin/cmd.cgi?cmd_typ=1 Does it ask for a username? ------------------------------------------------------- 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 Jan 10 05:47:14 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 20:47:14 -0800 (PST) Subject: Nagios/Netsaint @ Symantec Security Center In-Reply-To: <3E1DF796.6724.3B960A@localhost> References: <3E1DF796.6724.3B960A@localhost> Message-ID: <20030110044714.58013.qmail@web21504.mail.yahoo.com> Only 1200 services, but it was on the BIG screen... :) Ethan Galstad wrote:I was able to pause the video at the right moment. The services summary portion of the screen only showed a total of about 1200 services or so. On 9 Jan 2003 at 20:17, Jon Lyons wrote: > > I tried to edit the image in photoshop to see how hosts they're > monitoring, but no luck, maybe someone with better skills?... :) > Ethan Galstad wrote: > Nice. :-) The associated video shows a closeup clip of the Tac CGI > for a second or so too. > > > On 9 Jan 2003 at 17:20, Nicola Foggi wrote: > > > Hmm.... > > > > Look carefully at the picture of the control room of Symantec > Security > > Center... > > > > http://www.washingtonpost.com/wp-dyn/articles/A28625-2003Jan8.html > > > > Notice anything familiar running on one of the big monitors? > > > > Nicola Foggi > > Networks and Telecom > > DePaul University > > > > > > > > ------------------------------------------------------- > > 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. Yahoo! Mail Plus - Powerful. Affordable. > Sign up now 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 _______________________________________________ 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 sysadmin at showkilr.com Fri Jan 10 05:50:54 2003 From: sysadmin at showkilr.com (Showkilr) Date: 09 Jan 2003 22:50:54 -0600 Subject: Sample nrpe.cfg with nrpe-1.7 In-Reply-To: <3E1E0D74.8080601@tycoint.com.au> References: <3E1E0D74.8080601@tycoint.com.au> Message-ID: <1042174254.3934.2.camel@dev.showkilr.com> I would think one would want to set there own thresholds for what there monitoring. 20% of a 200gig drive is large compared to 20% of a 9.1 gig drive.. Showkilr On Thu, 2003-01-09 at 18:01, Jon Kinred wrote: > Just so you don't get caught out like i almost did. The sample > check_disk lines specify -w 20 -c 10, which checks for the thresholds in > kilobytes not percentage, as one would assume. Perhaps it was a sinister > mistake so people would read the docs properly? > > Jon > > > > ------------------------------------------------------- > 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 Jan 10 06:22:02 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 21:22:02 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <00e301c2b867$23788b40$0401a8c0@moscow> References: <00e301c2b867$23788b40$0401a8c0@moscow> Message-ID: <20030110052202.84444.qmail@web21503.mail.yahoo.com> Nope, I'm on the older version! I know there's been a lot of problems with red hat 8.0 lately, not sure if this is one of them. I think you've got everything setup correctly, I don't have access to my setup so I can't help more. I was just suggesting that you get the lastest version of the cmd.c source fromt the CVS archive(website), maybe there's been a change since 1.0...What happends if you replace nagiosadmin with * in the cgi.cfg? "Olivier Beauchemin (Accolade Group)" wrote:Err, did you mean 1.0b6? ... that's got a date which pre-dates the 1.0 version? Or, did I misunderstand? Seems the newer version, labeled 'stable' would be better than the beta version... Olivier > ----- Original Message ----- > From: "Jon Lyons" > > Maybe it's a bug, I'm using 1.06b, try getting a newer version of the cmd.cgi from the CVS and re-compile the cgis..... > "Olivier Beauchemin (Accolade Group)" wrote: > > Nagios 1.0 > > It compiled and installed with no problems. > > ----- Original Message ----- > From: "Jon Lyons" > > > Which version of nagios? I had the same problem on my first setup... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at accoladegroup.net Fri Jan 10 06:14:22 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Fri, 10 Jan 2003 00:14:22 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110050508.76215.qmail@web21512.mail.yahoo.com> Message-ID: <00e301c2b867$23788b40$0401a8c0@moscow> Err, did you mean 1.0b6? ... that's got a date which pre-dates the 1.0 version? Or, did I misunderstand? Seems the newer version, labeled 'stable' would be better than the beta version... Olivier > ----- Original Message ----- > From: "Jon Lyons" > > Maybe it's a bug, I'm using 1.06b, try getting a newer version of the cmd.cgi from the CVS and re-compile the cgis..... > "Olivier Beauchemin (Accolade Group)" wrote: > > Nagios 1.0 > > It compiled and installed with no problems. > > ----- Original Message ----- > From: "Jon Lyons" > > > Which version of nagios? I had the same problem on my first setup... ------------------------------------------------------- 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 Jan 10 06:22:51 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 9 Jan 2003 21:22:51 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <00e301c2b867$23788b40$0401a8c0@moscow> References: <00e301c2b867$23788b40$0401a8c0@moscow> Message-ID: <20030110052251.78917.qmail@web21506.mail.yahoo.com> Also, is apache running as apache? Or nobody? --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at accoladegroup.net Fri Jan 10 06:33:51 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Fri, 10 Jan 2003 00:33:51 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110052251.78917.qmail@web21506.mail.yahoo.com> Message-ID: <001d01c2b869$dc2d5330$0401a8c0@moscow> apache. ----- Original Message ----- From: "Jon Lyons" > Also, is apache running as apache? Or nobody? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin at pvamu.edu Fri Jan 10 06:38:10 2003 From: justin at pvamu.edu (Justin) Date: Thu, 9 Jan 2003 23:38:10 -0600 Subject: NRPE Issue Message-ID: <004801c2b86a$974fd1b0$0e38cf81@fucko> I am stumped on this one. I looked through the archives and could not find a similar problem. I am sure it is a fairly easy fix, something I might be missing. Thanks ./check_nrpe -H 129.208.56.12 -p 5666 -c check_users CHECK_NRPE: Error receiving data from host. Justin Wedeking -------------- next part -------------- An HTML attachment was scrubbed... URL: From olivier at accoladegroup.net Fri Jan 10 06:33:20 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Fri, 10 Jan 2003 00:33:20 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110052202.84444.qmail@web21503.mail.yahoo.com> Message-ID: <001601c2b869$ca9aba90$0401a8c0@moscow> * doesn't work either. I get the same thing. ... unfortunately, I don't know how to deal with the .c file. If you could point me in the right direction, I'd like to try that route though. Thanks, Olivier ----- Original Message ----- From: "Jon Lyons" > Nope, I'm on the older version! > I know there's been a lot of problems with red hat 8.0 lately, not sure if this is one of them. I think you've got everything setup correctly, I don't have access to my setup so I can't help more. I was just suggesting that you get the lastest version of the cmd.c source fromt the CVS archive(website), maybe there's been a change since 1.0...What happends if you replace nagiosadmin with * in the cgi.cfg? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Fri Jan 10 07:06:17 2003 From: sysadmin at showkilr.com (Showkilr) Date: 10 Jan 2003 00:06:17 -0600 Subject: NRPE Issue In-Reply-To: <004801c2b86a$974fd1b0$0e38cf81@fucko> References: <004801c2b86a$974fd1b0$0e38cf81@fucko> Message-ID: <1042178777.4027.26.camel@dev.showkilr.com> sounds like the allowed_hosts is set to the loopback which is default for security reasons. On the remote machine where nrpe is running look in the config file nrpe.cfg allowed_hosts=127.0.0.1 change to allowed_hosts=127.0.0.1, restart nrpe Showkilr On Thu, 2003-01-09 at 23:38, Justin wrote: > I am stumped on this one. I looked through the archives and could not find a similar problem. I am sure it is a fairly easy fix, something I might be missing. Thanks > > > > ./check_nrpe -H 129.208.56.12 -p 5666 -c check_users > CHECK_NRPE: Error receiving data from host. > > > > Justin Wedeking > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rvelez at sunguruz.com Fri Jan 10 07:01:11 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 10 Jan 2003 01:01:11 -0500 Subject: Service Check commands in Libexec Message-ID: <000201c2b86d$ad6a3500$0300a8c0@sunguruz.com> It seems to me like some of the scripts in libexec are commands for the local machine such as check_users or check_procs, also check_disk. Is their anyway to get these commands to check remote hosts such as a checking space availability on an NT server? Thanks again for all the help! :) Regards, Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From justin at pvamu.edu Fri Jan 10 07:14:02 2003 From: justin at pvamu.edu (Justin) Date: Fri, 10 Jan 2003 00:14:02 -0600 Subject: NRPE Issue References: <004801c2b86a$974fd1b0$0e38cf81@fucko> <1042178777.4027.26.camel@dev.showkilr.com> Message-ID: <005601c2b86f$9aa39e50$0e38cf81@fucko> The config said if I was running under xinetd or inetd it did not matter. But I changed the line anyways and still the same problem.. Justin Wedeking ----- Original Message ----- From: "Showkilr" To: "Justin" Cc: Sent: Friday, January 10, 2003 12:06 AM Subject: Re: [Nagios-users] NRPE Issue > sounds like the allowed_hosts is set to the loopback which is default > for security reasons. > > On the remote machine where nrpe is running look in the config file > nrpe.cfg > > allowed_hosts=127.0.0.1 > > change to > > allowed_hosts=127.0.0.1, > > restart nrpe > > Showkilr > > On Thu, 2003-01-09 at 23:38, Justin wrote: > > I am stumped on this one. I looked through the archives and could not find a similar problem. I am sure it is a fairly easy fix, something I might be missing. Thanks > > > > > > > > ./check_nrpe -H 129.208.56.12 -p 5666 -c check_users > > CHECK_NRPE: Error receiving data from host. > > > > > > > > Justin Wedeking > > > > > > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sysadmin at showkilr.com Fri Jan 10 07:51:07 2003 From: sysadmin at showkilr.com (Showkilr) Date: 10 Jan 2003 00:51:07 -0600 Subject: NRPE Issue In-Reply-To: <005601c2b86f$9aa39e50$0e38cf81@fucko> References: <004801c2b86a$974fd1b0$0e38cf81@fucko> <1042178777.4027.26.camel@dev.showkilr.com> <005601c2b86f$9aa39e50$0e38cf81@fucko> Message-ID: <1042181468.3934.28.camel@dev.showkilr.com> Well are you running it under xinetd or inetd xinetd there is a config simmilar to it Showkilr On Fri, 2003-01-10 at 00:14, Justin wrote: > The config said if I was running under xinetd or inetd it did not matter. > But I changed the line anyways and still the same problem.. > > Justin Wedeking > > ----- Original Message ----- > From: "Showkilr" > To: "Justin" > Cc: > Sent: Friday, January 10, 2003 12:06 AM > Subject: Re: [Nagios-users] NRPE Issue > > > > sounds like the allowed_hosts is set to the loopback which is default > > for security reasons. > > > > On the remote machine where nrpe is running look in the config file > > nrpe.cfg > > > > allowed_hosts=127.0.0.1 > > > > change to > > > > allowed_hosts=127.0.0.1, > > > > restart nrpe > > > > Showkilr > > > > On Thu, 2003-01-09 at 23:38, Justin wrote: > > > I am stumped on this one. I looked through the archives and could not > find a similar problem. I am sure it is a fairly easy fix, something I > might be missing. Thanks > > > > > > > > > > > > ./check_nrpe -H 129.208.56.12 -p 5666 -c check_users > > > CHECK_NRPE: Error receiving data from host. > > > > > > > > > > > > Justin Wedeking > > > > > > > > > > > > > > ------------------------------------------------------- > 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 olivier at accoladegroup.net Fri Jan 10 08:08:13 2003 From: olivier at accoladegroup.net (Olivier Beauchemin (Accolade Group)) Date: Fri, 10 Jan 2003 02:08:13 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Message-ID: <003701c2b877$0b4d9cd0$0401a8c0@moscow> Despite my best efforts, I can't figure it out. Here's all the details, any help is greatly appreciated... I know this is a lot to sift through... but I'm desparate to get this working. Thanks, Olivier #### Environment ------------- Redhat 8.0 Apache (that came with RedHat 8.0) Perl 5.8.0 Only the defaults with ./configure Snippet from hosts.cfg ----------------------- # 'foo host' definition template define host{ name foo-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION! } # 'foo.foo.com host definition define host{ use foo-host ; Name of host template to use host_name foo.foo.com alias foo.foo.com address 63.170.56.34 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } Snippet from services.cfg ------------------------- # 'foo-service' template for accolade group hosts/services define service{ name foo-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (bad idea) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 notification_interval 120 register 0 ; DONT REGISTER THIS DEFINITION! } define service{ use foo-service ; Name of service template to use host_name foo.foo.com service_description FTP contact_groups olivier notification_period 24x7 notification_options w,u,c,r check_command check_ftp!-H 63.170.56.35 } Snippet from contacts.cfg ------------------------- # 'olivier' contact definition define contact{ contact_name olivier alias olivier service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email foo at foo.com } Snippet from contactgroups.cfg ------------------------------ # 'olivier' contact group definition define contactgroup{ contactgroup_name olivier alias Olivier members olivier } Privs on the external command file and rw/ directory ---------------------------------------------------- prw-rw---- 1 nagios nagiocmd 0 Jan 10 01:39 nagios.cmd drwxrwsr-x 2 nagios nagiocmd 4096 Jan 10 01:39 rw {the file nagios.cmd is in the rw/ directory} Snippets from cgi.cfg --------------------- use_authentication=1 authorized_for_system_information=nagiosadmin,olivier authorized_for_configuration_information=nagiosadmin,olivier authorized_for_system_commands=nagiosadmin,olivier authorized_for_all_services=nagiosadmin,olivier authorized_for_all_hosts=nagiosadmin,olivier authorized_for_all_service_commands=nagiosadmin,olivier authorized_for_all_host_commands=nagiosadmin,olivier Snippets from nagios.cfg ------------------------ log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.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 status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives 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 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=1 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=us illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=foo at foo.com admin_pager=foopager at foo.com #### -------------- next part -------------- An HTML attachment was scrubbed... URL: From andreas.baetz at herma.de Fri Jan 10 08:53:11 2003 From: andreas.baetz at herma.de (Andreas Baetz) Date: Fri, 10 Jan 2003 08:53:11 +0100 Subject: [Nagiosplug-help] Service Check commands in Libexec In-Reply-To: <000201c2b86d$ad6a3500$0300a8c0@sunguruz.com> References: <000201c2b86d$ad6a3500$0300a8c0@sunguruz.com> Message-ID: <200301100753.IAA22611@mail.herma.de> On Friday 10 January 2003 07:01, rvelez wrote: > It seems to me like some of the scripts in libexec are commands for the > local machine such as check_users or check_procs, also check_disk. Is > their anyway to get these commands to check remote hosts such as a > checking space availability on an NT server? Thanks again for all the > help! :) You could have a look at check_disk_smb which checks disk space on smb shares. There is also a tool "nsclient", which adds a service at a windows server. This service can be queried from nagios for several things, e.g. disk space on Hard drives. Andreas ********************************************************************** 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 scanned for the presence of computer viruses. ********************************************************************** ------------------------------------------------------- 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 Fri Jan 10 10:19:56 2003 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 10 Jan 2003 09:19:56 -0000 Subject: [Nagiosplug-help] Service Check commands in Libexec In-Reply-To: <000201c2b86d$ad6a3500$0300a8c0@sunguruz.com> References: <000201c2b86d$ad6a3500$0300a8c0@sunguruz.com> Message-ID: <001f01c2b889$70dc20a0$0400a8c0@squarebox.com> Hi Radames Take a look at nrpe, its in the nagios documentation under Nagios addons Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagiosplug-help-admin at lists.sourceforge.net [mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of rvelez Sent: 10 January 2003 06:01 To: nagios-users at lists.sourceforge.net Cc: nagiosplug-help at lists.sourceforge.net Subject: [Nagiosplug-help] Service Check commands in Libexec It seems to me like some of the scripts in libexec are commands for the local machine such as check_users or check_procs, also check_disk. Is their anyway to get these commands to check remote hosts such as a checking space availability on an NT server? Thanks again for all the help! :) Regards, Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From twelsh at square-box.com Fri Jan 10 10:33:20 2003 From: twelsh at square-box.com (Tom Welsh) Date: Fri, 10 Jan 2003 09:33:20 -0000 Subject: Whats up with the Nagios Website Message-ID: <002801c2b88b$500ba2e0$0400a8c0@squarebox.com> Whats up with the Nagios website? Im not getting it displayed just . mercury.powweb.com 63.251.213.19 Are we the vistims of our own success and the site is just going ballistic after the excellent Slashdot interview with Ethan? Cheers Tom Welsh twelsh at square-box.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From j.g.budnichuk at verizon.com Fri Jan 10 13:36:03 2003 From: j.g.budnichuk at verizon.com (j.g.budnichuk at verizon.com) Date: Fri, 10 Jan 2003 07:36:03 -0500 Subject: `make all` error Message-ID: I'm getting the following error when trying to install Nagios: make all cd ./base && make `nagios' is up to date. cd ./cgi && make 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/ccWOs619.o ld: fatal: Symbol referencing errors. No output written to statusmap.cgi collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `statusmap.cgi' Current working directory /usr/local/install/nagios-1.0/cgi *** Error code 1 make: Fatal error: Command failed for target `all' I do have the proper LD path for the GD library: env PATH=/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/ccs/bin:/usr/openwin/bin:/usr/local/bin:. PS1=# PWD=/usr/local/install/nagios-1.0 SHELL=/bin/csh TERM=xterm TZ=US/Eastern MANPATH=/usr/local/man:/usr/openwin/man:/usr/man:/usr/local/man LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/usr/local/lib EDITOR=vi Can anyone help me? Regards, John ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From SchwartzkopffD at Alte-Leipziger.de Fri Jan 10 14:45:12 2003 From: SchwartzkopffD at Alte-Leipziger.de (SchwartzkopffD at Alte-Leipziger.de) Date: Fri, 10 Jan 2003 14:45:12 +0100 Subject: nrpe 1.5 Message-ID: > Hi, > I have got a problem with nrpe 1.5 on HP-UX 11.0 and IBM OS/390 2.10: > I renamed a shell script and I got (as expected) the following message in > the browser: > Status Status Information > UNKNOWN NRPE: Unable to read output > > Now I turned off debugging (debug=0 in nrpe.cfg) and the message looks > like: > Status Status Information > UNKNOWN @ > I can "solve" the problem if I turn off debugging and change the following > line, but > the log is filled with lines with "Running command". > /* if(debug==TRUE) */ > syslog(LOG_DEBUG,"Running command: %s",temp_command->command_line); > > The problem does NOT exist on AIX 4.3.3, Sun Solaris 7 or Red Hat Linux > 2.2.19-7.0.1 > > regards > > Dirk Schwartzkopff > > Alte Leipziger Lebensversicherungsgesellschaft a.G. > IT-Betrieb Zentrale Systeme AL2/U > Tel. (06171) 66-4304, Fax (06171) 66-7500-4304, Mobil (0172-6545829) > mailto:SchwartzkopffD at Alte-Leipziger.de > http://www.Alte-Leipziger.de > > > > ------------------------------------------------------- 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 Jan 10 14:47:39 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Fri, 10 Jan 2003 07:47:39 -0600 (CST) Subject: `make all` error In-Reply-To: References: Message-ID: <1826.192.168.1.9.1042206459.squirrel@xyzzy.homeip.net> John, Did "configure" find the libraries? Did you specify --with-gd-inc and --with-gd-lib? Also, please tell us what platform you are using. Sparc/Solaris 8? - Mike > I'm getting the following error when trying to install Nagios: > > make all > cd ./base && make > `nagios' is up to date. > cd ./cgi && make > 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/ccWOs619.o > ld: fatal: Symbol referencing errors. No output written to statusmap.cgi > collect2: ld returned 1 exit status > *** Error code 1 > make: Fatal error: Command failed for target `statusmap.cgi' > Current working directory /usr/local/install/nagios-1.0/cgi > *** Error code 1 > make: Fatal error: Command failed for target `all' > > > > I do have the proper LD path for the GD library: > > env > > PATH=/bin:/usr/bin:/usr/ucb:/usr/sbin:/etc:/usr/ccs/bin:/usr/openwin/bin:/usr/local/bin:. > PS1=# > PWD=/usr/local/install/nagios-1.0 > SHELL=/bin/csh > TERM=xterm > TZ=US/Eastern > MANPATH=/usr/local/man:/usr/openwin/man:/usr/man:/usr/local/man > LD_LIBRARY_PATH=/usr/lib:/usr/openwin/lib:/usr/local/lib > EDITOR=vi > > Can anyone help me? > > Regards, > > John > > -- 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 scott at urbatsch.com Fri Jan 10 16:24:22 2003 From: scott at urbatsch.com (Scott Urbatsch) Date: Fri, 10 Jan 2003 07:24:22 -0800 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! In-Reply-To: <003701c2b877$0b4d9cd0$0401a8c0@moscow> References: <003701c2b877$0b4d9cd0$0401a8c0@moscow> Message-ID: <5.2.0.9.0.20030110072257.03a525e0@www.urbatsch.com> You need to add apache to the nagioscmd group. Apache is the user that requires the access desired below. At 02:08 AM 1/10/2003 -0500, Olivier Beauchemin (Accolade Group) wrote: >Despite my best efforts, I can't figure it out. Here's all the details, >any help is greatly appreciated... > >I know this is a lot to sift through... but I'm desparate to get this working. > >Thanks, >Olivier > >#### > >Environment >------------- >Redhat 8.0 >Apache (that came with RedHat 8.0) >Perl 5.8.0 >Only the defaults with ./configure > > >Snippet from hosts.cfg >----------------------- ># 'foo host' definition template >define host{ > name foo-host ; The name of this > host template > notifications_enabled 1 ; Host notifications are > enabled > event_handler_enabled 1 ; Host 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 across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > register 0 ; DONT REGISTER THIS > DEFINITION! > } > ># 'foo.foo.com host definition >define host{ > use foo-host ; Name of host > template to use > host_name foo.foo.com > alias foo.foo.com > address 63.170.56.34 > check_command check-host-alive > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > >Snippet from services.cfg >------------------------- ># 'foo-service' template for accolade group hosts/services >define service{ > name foo-service ; The 'name' of this > service template > active_checks_enabled 1 ; Active service checks > are enabled > passive_checks_enabled 1 ; Passive service checks > are enabled/accepted > parallelize_check 1 ; Active service checks > should be parallelized (bad idea) > obsess_over_service 1 ; We should obsess over > this service (if 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 across program restarts > retain_nonstatus_information 1 ; Retain non-status > information across program restarts > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > notification_interval 120 > register 0 ; DONT REGISTER THIS > DEFINITION! > } > >define service{ > use foo-service ; Name > of service template to use > host_name foo.foo.com > service_description FTP > contact_groups olivier > notification_period 24x7 > notification_options w,u,c,r > check_command check_ftp!-H 63.170.56.35 > } > > >Snippet from contacts.cfg >------------------------- ># 'olivier' contact definition >define contact{ > contact_name olivier > alias olivier > service_notification_period 24x7 > host_notification_period 24x7 > service_notification_options c,r > host_notification_options d,r > service_notification_commands notify-by-email > host_notification_commands host-notify-by-email > email foo at foo.com > } > > >Snippet from contactgroups.cfg >------------------------------ ># 'olivier' contact group definition >define contactgroup{ > contactgroup_name olivier > alias Olivier > members olivier > } > > >Privs on the external command file and rw/ directory >---------------------------------------------------- >prw-rw---- 1 nagios nagiocmd 0 Jan 10 01:39 nagios.cmd >drwxrwsr-x 2 nagios nagiocmd 4096 Jan 10 01:39 rw >{the file nagios.cmd is in the rw/ directory} > > >Snippets from cgi.cfg >--------------------- >use_authentication=1 >authorized_for_system_information=nagiosadmin,olivier >authorized_for_configuration_information=nagiosadmin,olivier >authorized_for_system_commands=nagiosadmin,olivier >authorized_for_all_services=nagiosadmin,olivier >authorized_for_all_hosts=nagiosadmin,olivier >authorized_for_all_service_commands=nagiosadmin,olivier >authorized_for_all_host_commands=nagiosadmin,olivier > > >Snippets from nagios.cfg >------------------------ >log_file=/usr/local/nagios/var/nagios.log >cfg_file=/usr/local/nagios/etc/checkcommands.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 >status_file=/usr/local/nagios/var/status.log >nagios_user=nagios >nagios_group=nagios >check_external_commands=1 >command_check_interval=-1 >command_file=/usr/local/nagios/var/rw/nagios.cmd >comment_file=/usr/local/nagios/var/comment.log >downtime_file=/usr/local/nagios/var/downtime.log >lock_file=/usr/local/nagios/var/nagios.lock >temp_file=/usr/local/nagios/var/nagios.tmp >log_rotation_method=d >log_archive_path=/usr/local/nagios/var/archives >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 >inter_check_delay_method=s >service_interleave_factor=s >max_concurrent_checks=0 >service_reaper_frequency=10 >sleep_time=1 >service_check_timeout=60 >host_check_timeout=30 >event_handler_timeout=30 >notification_timeout=30 >ocsp_timeout=5 >perfdata_timeout=5 >retain_state_information=1 >state_retention_file=/usr/local/nagios/var/status.sav >retention_update_interval=60 >use_retained_program_state=0 >interval_length=60 >use_agressive_host_checking=0 >execute_service_checks=1 >accept_passive_service_checks=1 >enable_notifications=1 >enable_event_handlers=1 >process_performance_data=1 >obsess_over_services=0 >check_for_orphaned_services=0 >check_service_freshness=1 >freshness_check_interval=60 >aggregate_status_updates=1 >status_update_interval=15 >enable_flap_detection=1 >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=us >illegal_object_name_chars=`~!$%^&*|'"<>?,()= >illegal_macro_output_chars=`~$&|'"<> >admin_email=foo at foo.com >admin_pager=foopager at foo.com > >#### ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Fri Jan 10 16:32:51 2003 From: donavan at 4wx.net (donavan nelson) Date: Fri, 10 Jan 2003 09:32:51 -0600 Subject: Sample nrpe.cfg with nrpe-1.7 In-Reply-To: <1042174254.3934.2.camel@dev.showkilr.com> References: <3E1E0D74.8080601@tycoint.com.au> <1042174254.3934.2.camel@dev.showkilr.com> Message-ID: <20030110153251.M96335@4wx.net> If you make appropriately sized partitions to begin with, using percentages is perfectly acceptable. I warn at 85% (full) and go critical at 94%. If any of my 160G partitions gets to 94%, I'd better start looking into the situation...NOW. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Showkilr To: nagios-users at lists.sourceforge.net Sent: 09 Jan 2003 22:50:54 -0600 Subject: Re: [Nagios-users] Sample nrpe.cfg with nrpe-1.7 > I would think one would want to set there own thresholds for what there > monitoring. 20% of a 200gig drive is large compared to 20% of a 9.1 > gig drive.. > > Showkilr > > On Thu, 2003-01-09 at 18:01, Jon Kinred wrote: > > Just so you don't get caught out like i almost did. The sample > > check_disk lines specify -w 20 -c 10, which checks for the thresholds in > > kilobytes not percentage, as one would assume. Perhaps it was a sinister > > mistake so people would read the docs properly? > > > > Jon > > > > > > > > ------------------------------------------------------- > > 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 ------- End of Original Message ------- ------------------------------------------------------- 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 Jan 10 16:36:13 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 09:36:13 -0600 Subject: squarbox Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E128B@PKDWB03C.ad.sprint.com> I suspect that Stefan has enabled some sort of out-of-office autoresponder. I've already seen quite a few of these from his computer. Sadly, it's not intelligent enough to recognize that it's already seen my e-mail address once before. jc > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Thursday, January 09, 2003 7:24 PM > To: Stefan.Hanssen at baerum.kommune.no > Cc: Nagios Users > Subject: RE: RE: [Nagios-users] squarbox > > > Hi Stefan, > > Im sorry but I don't speak Norwegian. Any chance you could > send me this > in English? Or anyone else on the list that understands Norwegian. The > Norwegian to English translation software on the Net stinks > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: Postmaster at baerum.kommune.no > [mailto:Postmaster at baerum.kommune.no] > On Behalf Of Stefan Hanssen > Sent: 10 January 2003 01:02 > To: twelsh at square-box.com > Subject: Ang: RE: [Nagios-users] squarbox > > Er ikke p? jobb grunnet sykdom. > > > > > ------------------------------------------------------- > 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 Jan 10 16:42:01 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 09:42:01 -0600 Subject: nagios.cmd ... "Sorry, you are not authorized ..." -- Argh! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E128C@PKDWB03C.ad.sprint.com> Not sure this helps you, but make sure your cgi.cfg has these values set correctly (or as appropriate; these values work for me): authorized_for_system_information=* authorized_for_configuration_information=* authorized_for_system_commands=nagiosadmin authorized_for_all_services=nagiosadmin,guest authorized_for_all_hosts=nagiosadmin,guest authorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadmin jc -----Original Message----- From: Olivier Beauchemin (Accolade Group) [mailto:olivier at accoladegroup.net] Sent: Thursday, January 09, 2003 9:55 PM To: Jon Lyons; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Nope, I don't think that's it. The .htaccess files are already there and working fine. If I login as X, I see Y and Z hosts/services. If I login as A, I see B and C hosts/services. That tells me that the basic auth is working. If I login as a user who does not have privs to see process info, it works: I don't get access to the process info. The reverse is true if I login with a user that has privs. So, I'm making the assumption that I've got things configured properly. As far as I can tell, I've got the privs for the users to hosts/services config'd properly. I also went line-by-line on the External Command File Permissions doc, and the privs match the doc, and nagios creates the right file on a restart. I also restarted httpd, which runs as apache. So, it seems like something I'm seriously missing, or something out of my control? Olivier ----- Original Message ----- From: Jon Lyons To: Olivier Beauchemin (Accolade Group) ; nagios-users at lists.sourceforge.net Sent: Thursday, January 09, 2003 10:21 PM Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Probably need to re-read the web interface setup, try coping your .htaccess file to the cgi-bin directory... -------------- next part -------------- An HTML attachment was scrubbed... URL: From don_schultz at panvera.com Fri Jan 10 16:43:38 2003 From: don_schultz at panvera.com (Don Schultz) Date: Fri, 10 Jan 2003 09:43:38 -0600 Subject: Whats up with the Nagios Website Message-ID: <72CF2973A7532D478D85271D40F608FCC3F5BB@mercury.panvera.com> probably, heh, I'd be willing to bet all the "trendy" sysadmins are jumping on the bandwagon now, watch this list just explode with questions like "how do i instal;" lol -don -----Original Message----- From: Tom Welsh [mailto:twelsh at square-box.com] Sent: Friday, January 10, 2003 3:33 AM To: nagios at nagios.org; nagios-users at lists.sourceforge.net Subject: [Nagios-users] Whats up with the Nagios Website Whats up with the Nagios website? Im not getting it displayed just.... mercury.powweb.com 63.251.213.19 Are we the vistims of our own success and the site is just going ballistic after the excellent Slashdot interview with Ethan? Cheers Tom Welsh twelsh at square-box.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 10 16:47:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 09:47:25 -0600 Subject: Sample nrpe.cfg with nrpe-1.7 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E128D@PKDWB03C.ad.sprint.com> Depending on what slice/partition/volume/[insert name here] I'm monitoring, I'll use one over the other (%age vs. KB). But I'm definitely using both approaches. jc > -----Original Message----- > From: Showkilr [mailto:sysadmin at showkilr.com] > Sent: Thursday, January 09, 2003 10:51 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Sample nrpe.cfg with nrpe-1.7 > > > I would think one would want to set there own thresholds for > what there > monitoring. 20% of a 200gig drive is large compared to 20% > of a 9.1 gig > drive.. > > Showkilr > > On Thu, 2003-01-09 at 18:01, Jon Kinred wrote: > > Just so you don't get caught out like i almost did. The sample > > check_disk lines specify -w 20 -c 10, which checks for the > thresholds in > > kilobytes not percentage, as one would assume. Perhaps it > was a sinister > > mistake so people would read the docs properly? > > > > Jon > > > > > > > > ------------------------------------------------------- > > 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 emann at questinc.org Fri Jan 10 17:10:58 2003 From: emann at questinc.org (Evan Mann) Date: Fri, 10 Jan 2003 11:10:58 -0500 Subject: escalation's not working Message-ID: This particular escalation does not work. I have a feeling it's because first/last is 3. This escalation sends TAP message to nextel as well as continuation of e-mail alerts. If I do first 3 and last 4, will it send me only 1 alert or 2? define hostgroupescalation{ hostgroup_name all first_notification 3 last_notification 3 contact_groups it-group,nextel-group notification_interval 60 } Evan Mann IT Specialist - Quest, Inc. w: 407-889-4530 f: 407-889-5710 c: 407-448-6547 emann at questinc.org Quest inspires and empowers Central Floridians with disabilities by offering choices and opportunities. Quest has responded to community needs for over 40 years. Through Quest services children and adults imagine and achieve their full capabilities ------------------------------------------------------- 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 Jan 10 17:05:31 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 10:05:31 -0600 Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E128F@PKDWB03C.ad.sprint.com> And you've got .htaccess in these directories? /usr/local/nagios/sbin /usr/local/nagios/share And does .htaccess contain the following? AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user And of course nagiosadmin is defined in htpasswd.users? jc -----Original Message----- From: Olivier Beauchemin (Accolade Group) [mailto:olivier at accoladegroup.net] Sent: Friday, January 10, 2003 1:08 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios.cmd ... "Sorry, you are not authorized..." -- Argh! Despite my best efforts, I can't figure it out. Here's all the details, any help is greatly appreciated... I know this is a lot to sift through... but I'm desparate to get this working. Thanks, Olivier #### Environment ------------- Redhat 8.0 Apache (that came with RedHat 8.0) Perl 5.8.0 Only the defaults with ./configure Snippet from hosts.cfg ----------------------- # 'foo host' definition template define host{ name foo-host ; The name of this host template notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION! } # 'foo.foo.com host definition define host{ use foo-host ; Name of host template to use host_name foo.foo.com alias foo.foo.com address 63.170.56.34 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } Snippet from services.cfg ------------------------- # 'foo-service' template for accolade group hosts/services define service{ name foo-service ; The 'name' of this service template active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (bad idea) obsess_over_service 1 ; We should obsess over this service (if 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 notification_interval 120 register 0 ; DONT REGISTER THIS DEFINITION! } define service{ use foo-service ; Name of service template to use host_name foo.foo.com service_description FTP contact_groups olivier notification_period 24x7 notification_options w,u,c,r check_command check_ftp!-H 63.170.56.35 } Snippet from contacts.cfg ------------------------- # 'olivier' contact definition define contact{ contact_name olivier alias olivier service_notification_period 24x7 host_notification_period 24x7 service_notification_options c,r host_notification_options d,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email foo at foo.com } Snippet from contactgroups.cfg ------------------------------ # 'olivier' contact group definition define contactgroup{ contactgroup_name olivier alias Olivier members olivier } Privs on the external command file and rw/ directory ---------------------------------------------------- prw-rw---- 1 nagios nagiocmd 0 Jan 10 01:39 nagios.cmd drwxrwsr-x 2 nagios nagiocmd 4096 Jan 10 01:39 rw {the file nagios.cmd is in the rw/ directory} Snippets from cgi.cfg --------------------- use_authentication=1 authorized_for_system_information=nagiosadmin,olivier authorized_for_configuration_information=nagiosadmin,olivier authorized_for_system_commands=nagiosadmin,olivier authorized_for_all_services=nagiosadmin,olivier authorized_for_all_hosts=nagiosadmin,olivier authorized_for_all_service_commands=nagiosadmin,olivier authorized_for_all_host_commands=nagiosadmin,olivier Snippets from nagios.cfg ------------------------ log_file=/usr/local/nagios/var/nagios.log cfg_file=/usr/local/nagios/etc/checkcommands.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 status_file=/usr/local/nagios/var/status.log nagios_user=nagios nagios_group=nagios check_external_commands=1 command_check_interval=-1 command_file=/usr/local/nagios/var/rw/nagios.cmd comment_file=/usr/local/nagios/var/comment.log downtime_file=/usr/local/nagios/var/downtime.log lock_file=/usr/local/nagios/var/nagios.lock temp_file=/usr/local/nagios/var/nagios.tmp log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives 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 inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=10 sleep_time=1 service_check_timeout=60 host_check_timeout=30 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 perfdata_timeout=5 retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 use_retained_program_state=0 interval_length=60 use_agressive_host_checking=0 execute_service_checks=1 accept_passive_service_checks=1 enable_notifications=1 enable_event_handlers=1 process_performance_data=1 obsess_over_services=0 check_for_orphaned_services=0 check_service_freshness=1 freshness_check_interval=60 aggregate_status_updates=1 status_update_interval=15 enable_flap_detection=1 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=us illegal_object_name_chars=`~!$%^&*|'"<>?,()= illegal_macro_output_chars=`~$&|'"<> admin_email=foo at foo.com admin_pager=foopager at foo.com #### -------------- next part -------------- An HTML attachment was scrubbed... URL: From Darren.Gamble at sjrb.ca Fri Jan 10 17:28:11 2003 From: Darren.Gamble at sjrb.ca (Darren Gamble) Date: Fri, 10 Jan 2003 09:28:11 -0700 Subject: nagios.cmd ... "Sorry, you are not authorized ..." -- Argh! Message-ID: <078EC26E265CD411BD9100508BDFFC861BCBB6DE@shawmail02> Good day, > PS. > I've noticed that when I login, it says logged in as > 'nagiosadmin' (which is > correct). But, when I hit "commit" to disable a service > check, for example, > the "Sorry" page indicates logged in as ?. The "logged in" value shows what Apache thinks your http user is. If this is set for some pages but not for other pages, the problem is almost certainly that you haven't properly configured HTTP authentication for those directories. Get the URLs for the pages that don't show a logged-in user, and those that are. Compare those to the directories that you have configured for access in your Apache config. If you are still stuck after doing this, post your Apache access configs and the URLs for the pages which do show a user, and those that do not. ============================ 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 jcarro10 at sprintspectrum.com Fri Jan 10 17:20:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 10:20:18 -0600 Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1290@PKDWB03C.ad.sprint.com> Minor quibble: it's the 'nagiocmd' group. But I don't think that's what's plaguing him. Had that been the case, he wouldn't have been able to have problem-free access with the various other Nagios accounts he's set up. jc > -----Original Message----- > From: Scott Urbatsch [mailto:scott at urbatsch.com] > Sent: Friday, January 10, 2003 9:24 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not > authorized..." -- Argh! > > > You need to add apache to the nagioscmd group. Apache is the > user that > requires the access desired below. > > At 02:08 AM 1/10/2003 -0500, Olivier Beauchemin (Accolade > Group) wrote: > >Despite my best efforts, I can't figure it out. Here's all > the details, > >any help is greatly appreciated... > > > >I know this is a lot to sift through... but I'm desparate to > get this working. > > > >Thanks, > >Olivier > > > >#### > > > >Environment > >------------- > >Redhat 8.0 > >Apache (that came with RedHat 8.0) > >Perl 5.8.0 > >Only the defaults with ./configure > > > > > >Snippet from hosts.cfg > >----------------------- > ># 'foo host' definition template > >define host{ > > name foo-host ; The > name of this > > host template > > notifications_enabled 1 ; Host > notifications are > > enabled > > event_handler_enabled 1 ; Host > 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 across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > register 0 ; DONT > REGISTER THIS > > DEFINITION! > > } > > > ># 'foo.foo.com host definition > >define host{ > > use foo-host ; Name of host > > template to use > > host_name foo.foo.com > > alias foo.foo.com > > address 63.170.56.34 > > check_command check-host-alive > > max_check_attempts 10 > > notification_interval 120 > > notification_period 24x7 > > notification_options d,u,r > > } > > > > > >Snippet from services.cfg > >------------------------- > ># 'foo-service' template for accolade group hosts/services > >define service{ > > name foo-service ; The > 'name' of this > > service template > > active_checks_enabled 1 ; Active > service checks > > are enabled > > passive_checks_enabled 1 ; Passive > service checks > > are enabled/accepted > > parallelize_check 1 ; Active > service checks > > should be parallelized (bad idea) > > obsess_over_service 1 ; We should > obsess over > > this service (if 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 across program restarts > > retain_nonstatus_information 1 ; Retain non-status > > information across program restarts > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > notification_interval 120 > > register 0 ; DONT > REGISTER THIS > > DEFINITION! > > } > > > >define service{ > > use foo-service > ; Name > > of service template to use > > host_name foo.foo.com > > service_description FTP > > contact_groups olivier > > notification_period 24x7 > > notification_options w,u,c,r > > check_command check_ftp!-H 63.170.56.35 > > } > > > > > >Snippet from contacts.cfg > >------------------------- > ># 'olivier' contact definition > >define contact{ > > contact_name olivier > > alias olivier > > service_notification_period 24x7 > > host_notification_period 24x7 > > service_notification_options c,r > > host_notification_options d,r > > service_notification_commands notify-by-email > > host_notification_commands host-notify-by-email > > email > foo at foo.com > > } > > > > > >Snippet from contactgroups.cfg > >------------------------------ > ># 'olivier' contact group definition > >define contactgroup{ > > contactgroup_name olivier > > alias Olivier > > members olivier > > } > > > > > >Privs on the external command file and rw/ directory > >---------------------------------------------------- > >prw-rw---- 1 nagios nagiocmd 0 Jan 10 01:39 nagios.cmd > >drwxrwsr-x 2 nagios nagiocmd 4096 Jan 10 01:39 rw > >{the file nagios.cmd is in the rw/ directory} > > > > > >Snippets from cgi.cfg > >--------------------- > >use_authentication=1 > >authorized_for_system_information=nagiosadmin,olivier > >authorized_for_configuration_information=nagiosadmin,olivier > >authorized_for_system_commands=nagiosadmin,olivier > >authorized_for_all_services=nagiosadmin,olivier > >authorized_for_all_hosts=nagiosadmin,olivier > >authorized_for_all_service_commands=nagiosadmin,olivier > >authorized_for_all_host_commands=nagiosadmin,olivier > > > > > >Snippets from nagios.cfg > >------------------------ > >log_file=/usr/local/nagios/var/nagios.log > >cfg_file=/usr/local/nagios/etc/checkcommands.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 > >status_file=/usr/local/nagios/var/status.log > >nagios_user=nagios > >nagios_group=nagios > >check_external_commands=1 > >command_check_interval=-1 > >command_file=/usr/local/nagios/var/rw/nagios.cmd > >comment_file=/usr/local/nagios/var/comment.log > >downtime_file=/usr/local/nagios/var/downtime.log > >lock_file=/usr/local/nagios/var/nagios.lock > >temp_file=/usr/local/nagios/var/nagios.tmp > >log_rotation_method=d > >log_archive_path=/usr/local/nagios/var/archives > >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 > >inter_check_delay_method=s > >service_interleave_factor=s > >max_concurrent_checks=0 > >service_reaper_frequency=10 > >sleep_time=1 > >service_check_timeout=60 > >host_check_timeout=30 > >event_handler_timeout=30 > >notification_timeout=30 > >ocsp_timeout=5 > >perfdata_timeout=5 > >retain_state_information=1 > >state_retention_file=/usr/local/nagios/var/status.sav > >retention_update_interval=60 > >use_retained_program_state=0 > >interval_length=60 > >use_agressive_host_checking=0 > >execute_service_checks=1 > >accept_passive_service_checks=1 > >enable_notifications=1 > >enable_event_handlers=1 > >process_performance_data=1 > >obsess_over_services=0 > >check_for_orphaned_services=0 > >check_service_freshness=1 > >freshness_check_interval=60 > >aggregate_status_updates=1 > >status_update_interval=15 > >enable_flap_detection=1 > >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=us > >illegal_object_name_chars=`~!$%^&*|'"<>?,()= > >illegal_macro_output_chars=`~$&|'"<> > >admin_email=foo at foo.com > >admin_pager=foopager at foo.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 anders at dira.no Fri Jan 10 17:24:44 2003 From: anders at dira.no (Anders Grue Nerheim) Date: Fri, 10 Jan 2003 17:24:44 +0100 Subject: squarbox References: <74D428BDBFD5D04CB54E84499ECA29DB014E128B@PKDWB03C.ad.sprint.com> Message-ID: <006c01c2b8c4$d8961350$8303a8c0@ANDETSTP> it translates to 'I'm not at work due to illness' for thoose who cared to wonder.. still not cool to autorespond to mailinglists ;) ----- Original Message ----- From: "Carroll, Jim P [Contractor]" To: "'Tom Welsh'" ; Cc: "Nagios Users" Sent: Friday, January 10, 2003 4:36 PM Subject: RE: RE: [Nagios-users] squarbox I suspect that Stefan has enabled some sort of out-of-office autoresponder. I've already seen quite a few of these from his computer. Sadly, it's not intelligent enough to recognize that it's already seen my e-mail address once before. jc > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Thursday, January 09, 2003 7:24 PM > To: Stefan.Hanssen at baerum.kommune.no > Cc: Nagios Users > Subject: RE: RE: [Nagios-users] squarbox > > > Hi Stefan, > > Im sorry but I don't speak Norwegian. Any chance you could > send me this > in English? Or anyone else on the list that understands Norwegian. The > Norwegian to English translation software on the Net stinks > > Cheers > > Tom Welsh > twelsh at square-box.com > > -----Original Message----- > From: Postmaster at baerum.kommune.no > [mailto:Postmaster at baerum.kommune.no] > On Behalf Of Stefan Hanssen > Sent: 10 January 2003 01:02 > To: twelsh at square-box.com > Subject: Ang: RE: [Nagios-users] squarbox > > Er ikke p? jobb grunnet sykdom. > > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 Jan 10 17:31:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 10:31:25 -0600 Subject: Sample nrpe.cfg with nrpe-1.7 Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24E7@PKDWB03C.ad.sprint.com> Not always. Oracle enjoys using filesystems (eg, /db001) to the extent that the DBA wishes to use it. If the DBA decides to create a .dbf file which uses 99% of one of those filesystems, then there's no realistic way of setting a percentage threshold where 99% is 'green' and some value greater than 99% is 'red'. I prefer, in this case, to have finer granularity than that. Why do I even bother to monitor such filesystems? I suppose it's to facilitate at-a-glance 'warm fuzzies' of a given database server. It gives the casual observer (eg, management) a ballpark feeling of how little or how much a given host is being used by Oracle (among other things). Just my tuppence. jc > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net] > Sent: Friday, January 10, 2003 9:33 AM > To: Showkilr; nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Sample nrpe.cfg with nrpe-1.7 > > > If you make appropriately sized partitions to begin with, > using percentages is > perfectly acceptable. I warn at 85% (full) and go critical > at 94%. If any of > my 160G partitions gets to 94%, I'd better start looking into > the situation...NOW. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Showkilr > To: nagios-users at lists.sourceforge.net > Sent: 09 Jan 2003 22:50:54 -0600 > Subject: Re: [Nagios-users] Sample nrpe.cfg with nrpe-1.7 > > > I would think one would want to set there own thresholds > for what there > > monitoring. 20% of a 200gig drive is large compared to 20% > of a 9.1 > > gig drive.. > > > > Showkilr > > > > On Thu, 2003-01-09 at 18:01, Jon Kinred wrote: > > > Just so you don't get caught out like i almost did. The sample > > > check_disk lines specify -w 20 -c 10, which checks for > the thresholds in > > > kilobytes not percentage, as one would assume. Perhaps it > was a sinister > > > mistake so people would read the docs properly? > > > > > > Jon > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > ------- End of Original 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 scott at urbatsch.com Fri Jan 10 17:43:47 2003 From: scott at urbatsch.com (Scott Urbatsch) Date: Fri, 10 Jan 2003 08:43:47 -0800 Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1290@PKDWB03C.ad.sprin t.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1290@PKDWB03C.ad.sprin t.com> Message-ID: <5.2.0.9.0.20030110083456.03a3ba08@www.urbatsch.com> I was having the same issue with the external commands. Where I could do all, but what has been mentioned. Doing the following to the groups fixed it for me. In a similarly configured RedHat 7.3 setup I was not having this problem, but with RedHat 8.0 (Apache 2.0) I did. This is my /etc/group file nagios:x:500:nobody,nagios,apache nagiocmd:x:502:nagios,nobody,apache drwxrwxr-x 2 nagios nagios 4096 Jan 10 00:00 archives -rw-rw-r-- 1 nagios nagios 1372 Jan 7 23:33 comment.log -rw-rw-r-- 1 nagios nagios 0 Jan 7 23:33 downtime.log -rw-r--r-- 1 root root 6 Jan 7 23:33 nagios.lock -rw-rw-r-- 1 nagios nagios 6051 Jan 10 08:33 nagios.log drwxrwsr-x 2 nagios nagiocmd 4096 Jan 7 23:33 rw -rw-rw-r-- 1 nagios nagios 20265 Jan 10 08:50 status.log -rw-rw-r-- 1 nagios nagios 14736 Jan 10 08:33 status.sav I also had to change the php.ini register_global = on but I believe that was to resolve APAN issues. At 10:20 AM 1/10/2003 -0600, Carroll, Jim P [Contractor] wrote: >Minor quibble: it's the 'nagiocmd' group. > >But I don't think that's what's plaguing him. Had that been the case, he >wouldn't have been able to have problem-free access with the various other >Nagios accounts he's set up. > >jc > > > -----Original Message----- > > From: Scott Urbatsch [mailto:scott at urbatsch.com] > > Sent: Friday, January 10, 2003 9:24 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] nagios.cmd ... "Sorry, you are not > > authorized..." -- Argh! > > > > > > You need to add apache to the nagioscmd group. Apache is the > > user that > > requires the access desired below. > > > > At 02:08 AM 1/10/2003 -0500, Olivier Beauchemin (Accolade > > Group) wrote: > > >Despite my best efforts, I can't figure it out. Here's all > > the details, > > >any help is greatly appreciated... > > > > > >I know this is a lot to sift through... but I'm desparate to > > get this working. > > > > > >Thanks, > > >Olivier > > > > > >#### > > > > > >Environment > > >------------- > > >Redhat 8.0 > > >Apache (that came with RedHat 8.0) > > >Perl 5.8.0 > > >Only the defaults with ./configure > > > > > > > > >Snippet from hosts.cfg > > >----------------------- > > ># 'foo host' definition template > > >define host{ > > > name foo-host ; The > > name of this > > > host template > > > notifications_enabled 1 ; Host > > notifications are > > > enabled > > > event_handler_enabled 1 ; Host > > 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 across program restarts > > > retain_nonstatus_information 1 ; Retain non-status > > > information across program restarts > > > register 0 ; DONT > > REGISTER THIS > > > DEFINITION! > > > } > > > > > ># 'foo.foo.com host definition > > >define host{ > > > use foo-host ; Name of host > > > template to use > > > host_name foo.foo.com > > > alias foo.foo.com > > > address 63.170.56.34 > > > check_command check-host-alive > > > max_check_attempts 10 > > > notification_interval 120 > > > notification_period 24x7 > > > notification_options d,u,r > > > } > > > > > > > > >Snippet from services.cfg > > >------------------------- > > ># 'foo-service' template for accolade group hosts/services > > >define service{ > > > name foo-service ; The > > 'name' of this > > > service template > > > active_checks_enabled 1 ; Active > > service checks > > > are enabled > > > passive_checks_enabled 1 ; Passive > > service checks > > > are enabled/accepted > > > parallelize_check 1 ; Active > > service checks > > > should be parallelized (bad idea) > > > obsess_over_service 1 ; We should > > obsess over > > > this service (if 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 across program restarts > > > retain_nonstatus_information 1 ; Retain non-status > > > information across program restarts > > > is_volatile 0 > > > check_period 24x7 > > > max_check_attempts 3 > > > normal_check_interval 5 > > > retry_check_interval 1 > > > notification_interval 120 > > > register 0 ; DONT > > REGISTER THIS > > > DEFINITION! > > > } > > > > > >define service{ > > > use foo-service > > ; Name > > > of service template to use > > > host_name foo.foo.com > > > service_description FTP > > > contact_groups olivier > > > notification_period 24x7 > > > notification_options w,u,c,r > > > check_command check_ftp!-H 63.170.56.35 > > > } > > > > > > > > >Snippet from contacts.cfg > > >------------------------- > > ># 'olivier' contact definition > > >define contact{ > > > contact_name olivier > > > alias olivier > > > service_notification_period 24x7 > > > host_notification_period 24x7 > > > service_notification_options c,r > > > host_notification_options d,r > > > service_notification_commands notify-by-email > > > host_notification_commands host-notify-by-email > > > email > > foo at foo.com > > > } > > > > > > > > >Snippet from contactgroups.cfg > > >------------------------------ > > ># 'olivier' contact group definition > > >define contactgroup{ > > > contactgroup_name olivier > > > alias Olivier > > > members olivier > > > } > > > > > > > > >Privs on the external command file and rw/ directory > > >---------------------------------------------------- > > >prw-rw---- 1 nagios nagiocmd 0 Jan 10 01:39 nagios.cmd > > >drwxrwsr-x 2 nagios nagiocmd 4096 Jan 10 01:39 rw > > >{the file nagios.cmd is in the rw/ directory} > > > > > > > > >Snippets from cgi.cfg > > >--------------------- > > >use_authentication=1 > > >authorized_for_system_information=nagiosadmin,olivier > > >authorized_for_configuration_information=nagiosadmin,olivier > > >authorized_for_system_commands=nagiosadmin,olivier > > >authorized_for_all_services=nagiosadmin,olivier > > >authorized_for_all_hosts=nagiosadmin,olivier > > >authorized_for_all_service_commands=nagiosadmin,olivier > > >authorized_for_all_host_commands=nagiosadmin,olivier > > > > > > > > >Snippets from nagios.cfg > > >------------------------ > > >log_file=/usr/local/nagios/var/nagios.log > > >cfg_file=/usr/local/nagios/etc/checkcommands.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 > > >status_file=/usr/local/nagios/var/status.log > > >nagios_user=nagios > > >nagios_group=nagios > > >check_external_commands=1 > > >command_check_interval=-1 > > >command_file=/usr/local/nagios/var/rw/nagios.cmd > > >comment_file=/usr/local/nagios/var/comment.log > > >downtime_file=/usr/local/nagios/var/downtime.log > > >lock_file=/usr/local/nagios/var/nagios.lock > > >temp_file=/usr/local/nagios/var/nagios.tmp > > >log_rotation_method=d > > >log_archive_path=/usr/local/nagios/var/archives > > >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 > > >inter_check_delay_method=s > > >service_interleave_factor=s > > >max_concurrent_checks=0 > > >service_reaper_frequency=10 > > >sleep_time=1 > > >service_check_timeout=60 > > >host_check_timeout=30 > > >event_handler_timeout=30 > > >notification_timeout=30 > > >ocsp_timeout=5 > > >perfdata_timeout=5 > > >retain_state_information=1 > > >state_retention_file=/usr/local/nagios/var/status.sav > > >retention_update_interval=60 > > >use_retained_program_state=0 > > >interval_length=60 > > >use_agressive_host_checking=0 > > >execute_service_checks=1 > > >accept_passive_service_checks=1 > > >enable_notifications=1 > > >enable_event_handlers=1 > > >process_performance_data=1 > > >obsess_over_services=0 > > >check_for_orphaned_services=0 > > >check_service_freshness=1 > > >freshness_check_interval=60 > > >aggregate_status_updates=1 > > >status_update_interval=15 > > >enable_flap_detection=1 > > >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=us > > >illegal_object_name_chars=`~!$%^&*|'"<>?,()= > > >illegal_macro_output_chars=`~$&|'"<> > > >admin_email=foo at foo.com > > >admin_pager=foopager at foo.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 Stanley.G.Martin at mail.sprint.com Fri Jan 10 17:53:28 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Fri, 10 Jan 2003 10:53:28 -0600 Subject: Monitoring Oracle Instances Message-ID: I currently have a standalone Perl script that runs as a daemon that monitors about 25 Oracle instances. It basically just tries to log in with an ID that only needs session privileges and if it fails, pages out using Qpage the error returned from the DBI connection attempt. I would like to incorporate this into Nagios. The plugin part doesn't concern me, I can tweak my script to work with Nagios. My question is about grouping these. For the most part, I'm either not monitoring anything else on the server that the instance is on, or I'm running Nagios_statd on a few to watch disk space. I'm not the Sysadmin on any of these boxes, so I have to be careful what we monitor. I'd like to group these database monitors separately so I can view them all together without being a part of the server they reside on. Can this be done? 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 russell at quadrix.com Fri Jan 10 17:55:50 2003 From: russell at quadrix.com (Russell Scibetti) Date: Fri, 10 Jan 2003 11:55:50 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <20030110052202.84444.qmail@web21503.mail.yahoo.com> <001601c2b869$ca9aba90$0401a8c0@moscow> Message-ID: <3E1EFB16.2040201@quadrix.com> I caught the tail end of this discussion, so I'm just going to offer up a set of items to double check: cgi.cfg: - use_authenticaion is turned on - the user that you log into Nagios as (say, nagiosadmin) is given on the authorized_for_host and authorized_for_service_commands lines - make sure the main_config_file line is pointed to the right nagios.cfg nagios.cmd: - Set the owner/group for the rw directory and nagios.cmd to whoever owns the Nagios process (in my case, its owner nagios, group nagios, although some people have a separate nagioscmd user for the pipe). - Set the permission to 660 (the command pipe should NEVER be 777 - you don't want anyone writing arbitrary commands to nagios) - double checks the perms /etc/group: - Whatever group the command pipe is set to (say nagios), make sure that the apache user is added to that group nagios.cfg: - Check the path for the command_file line to make sure it goes to the right place Now stop nagios, make sure there are no nagios processes running, and restart nagios. Double check to make sure nagios.cmd was created in the right place and with the right permission (the one's I gave above should be the default). I believe I covered everything that needs to be set for this to work. If I think of anything else, I'll send another email. Sorry if this is all repetitive, just trying to cover all bases. Russell Scibetti Quadrix Solutions Olivier Beauchemin (Accolade Group) wrote: >* doesn't work either. I get the same thing. > >... unfortunately, I don't know how to deal with the .c file. If you could >point me in the right direction, I'd like to try that route though. > >Thanks, >Olivier > >----- Original Message ----- >From: "Jon Lyons" > >>Nope, I'm on the older version! >>I know there's been a lot of problems with red hat 8.0 lately, not sure if >> >this is one of them. I think you've got everything setup correctly, I don't >have access to my setup so I can't help more. I was just suggesting that you >get the lastest version of the cmd.c source fromt the CVS archive(website), >maybe there's been a change since 1.0...What happends if you replace >nagiosadmin with * in the cgi.cfg? > > > >------------------------------------------------------- >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 eric at guardiandigital.com Fri Jan 10 18:31:53 2003 From: eric at guardiandigital.com (Eric B. Lubow) Date: Fri, 10 Jan 2003 12:31:53 -0500 (EST) Subject: Getting hostextinfo to work Message-ID: <20030110173153.D9FD311D327@juggernaut.guardiandigital.com> Hello all, I am trying to get the extended information parts of nagios to work. However, I have run into a brick wall. I am running nagios on EnGarde 1.2 and everything works except the beautification stuff. Therefore I can live if it doesn't work, but it would be nice to have. I attempted to add a hostextinfo definition to the [custom] hostextinfo.cfg configuration file (which is defined in nagios.cfg). Since this doesn't work for me, (and I am not sure why it doesn't since it is in the documentation) I scrapped this idea and went with the template style. However, I still get the unknown icon when it displays the statusmap. I did the build with the '--with-template-extinfo' option to configure. I have all the necessary libraries installed (png, jpeg, etc). The image file is the correct place. Nagios doesn't complain about the definitions in cgi.cfg. I even tried enabling xedtemplate_config_file (which I know is only for database enabled nagios). I am using the text based configuartion of nagios. I don't understand why it isn't working. Please let me know if you need more information to help me solve this problem. Thanks. -- hostextinfo[mastermind]=;engarde.gif;;mastermind;;;; hostextinfo[outpost]=;engarde.gif;engarde.gif;;outpost;100,50;3.5,2.0,5.5 xedtemplate_config_file=/etc/nagios/hostextinfo.cfg -- [root at mastermind logos]# ls -l -rw-r--r-- 1 root webd 1373 Dec 13 19:29 engarde.gif -- Error: Invalid object definition type 'hostextinfo' in file '/etc/nagios/hostextinfo.cfg' on line 20. ***> One or more problems was encountered while processing the config files... -- define hostextinfo{ host_name mastermind notes_url mastermind.html icon_image engarde.gif icon_image_alt EnGarde 1.2 2d_coords 100,250 } -- Eric Lubow Guardian Digital Inc. http://www.guardiandigital.com/ ------------------------------------------------------- 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 Jan 10 18:27:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 11:27:10 -0600 Subject: alternatives to NSClient Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24EA@PKDWB03C.ad.sprint.com> Is anyone aware of any alternatives to NSClient? Has anyone tried their hand at crafting something in Perl for Windows and running it as a service using FireDaemon? jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ofb at budget-tech.com Fri Jan 10 18:54:55 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 12:54:55 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <74D428BDBFD5D04CB54E84499ECA29DB014E128F@PKDWB03C.ad.sprint.com> Message-ID: <009601c2b8d1$6331d100$0201a8c0@boston> ...been this way the entire time... and, seems to work for everything else, like restricting which services/hosts are viewable depending on who I've logged in as, so auth config doens't seem like a problem, but I could be wrong. /usr/local/nagios/sbin/ -rw-r--r-- 1 root root 124 Jan 9 05:55 .htaccess [obeauche at mrtg sbin]# cat .htaccess AuthType Basic AuthName "NAGIOS" AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user [obeauche at mrtg sbin]# cat /usr/local/nagios/etc/htpasswd.users nagiosadmin:xxx olivier:xxx auth in the /usr/local/nagios/share is optional, right? Olivier ----- Original Message ----- From: "Carroll, Jim P [Contractor]" > And you've got .htaccess in these directories? > > /usr/local/nagios/sbin > /usr/local/nagios/share > > And does .htaccess contain the following? > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > > And of course nagiosadmin is defined in htpasswd.users? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From swhitney at journyx.com Fri Jan 10 18:54:19 2003 From: swhitney at journyx.com (Scott Whitney) Date: Fri, 10 Jan 2003 11:54:19 -0600 Subject: Not *exactly* a nagios question... Message-ID: <074f01c2b8d1$4cfa4160$aa64a8c0@whitneys> But I figure SOMEONE on this list is doing this. I want my nagios-list stuff to go to a nagios folder via procmail. Now...I have qmail....so: here's my .qmail file: |preline /usr/bin/procmail -p -m ~/.procmailrc /var/mail/spool/swhitney If I put in the preline procmailrc line, it processes the procmailrc. I then take out the /var/mail/spool/swhitney line to make it run through procmail, right, and not to return to qmail. Well, my .procmailrc is: :0 H * ^Subject:.*[Nagios-users]* /var/mail/folders/scott/Nagios That's all. If I implement this, I get NO MAIL. At all. It "hangs." Then, when I remove this .procmailrc, it all comes through. Sincere apologies for posting this "off-topic." I know it's not Nagios-related, but it is related to this list, and I figure one of y'all has to be doing this. Please flame directly to me, if you must, not to the list. Thanks, folks. Scott -------------- next part -------------- An HTML attachment was scrubbed... URL: From ofb at budget-tech.com Fri Jan 10 18:45:07 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 12:45:07 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <5.2.0.9.0.20030110072257.03a525e0@www.urbatsch.com> Message-ID: <007c01c2b8d0$044dc870$0201a8c0@boston> It's been that way... [obeauche at mrtg ~]# cat /etc/group | grep nagio apache:x:48:nagios,nagiocmd nagios:x:503:apache nagiocmd:x:505:nagios,apache ----- Original Message ----- From: "Scott Urbatsch" > You need to add apache to the nagioscmd group. Apache is the user that > requires the access desired below. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ofb at budget-tech.com Fri Jan 10 18:48:27 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 12:48:27 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized..." -- Argh! References: <74D428BDBFD5D04CB54E84499ECA29DB014E128C@PKDWB03C.ad.sprint.com> Message-ID: <008b01c2b8d0$7c2827f0$0201a8c0@boston> I'm not sure that config really serves my ultimate purposes, but when testing I've tried * on, well, * (everything)... and it didn't work. In fact, I got a nice little message when I even tried telling the cgi's NOT to use auth... I guess an idiots trigger lock, lock, lock... anyone know how to disable that one while I'm at it? Olivier ----- Original Message ----- From: "Carroll, Jim P [Contractor]" > Not sure this helps you, but make sure your cgi.cfg has these values set > correctly (or as appropriate; these values work for me): > > authorized_for_system_information=* > authorized_for_configuration_information=* > authorized_for_system_commands=nagiosadmin > authorized_for_all_services=nagiosadmin,guest > authorized_for_all_hosts=nagiosadmin,guest > authorized_for_all_service_commands=nagiosadmin > authorized_for_all_host_commands=nagiosadmin ------------------------------------------------------- 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 Jan 10 18:42:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 11:42:51 -0600 Subject: Monitoring Oracle Instances Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E129A@PKDWB03C.ad.sprint.com> Not sure if this is what you're looking for, but you could create a new contact group just for those services, create a new contact in Nagios and in htpasswd.users, and assuming you have the appropriate authorized_for_* settings set up, logging in as that user will give a view of just those services. jc > -----Original Message----- > From: Martin, Stanley G > Sent: Friday, January 10, 2003 10:53 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring Oracle Instances > > > I currently have a standalone Perl script that runs as a daemon that > monitors about 25 Oracle instances. It basically just tries to log in > with an ID that only needs session privileges and if it > fails, pages out > using Qpage the error returned from the DBI connection > attempt. I would > like to incorporate this into Nagios. The plugin part doesn't concern > me, I can tweak my script to work with Nagios. My question is about > grouping these. For the most part, I'm either not monitoring anything > else on the server that the instance is on, or I'm running > Nagios_statd > on a few to watch disk space. I'm not the Sysadmin on any of these > boxes, so I have to be careful what we monitor. I'd like to > group these > database monitors separately so I can view them all together without > being a part of the server they reside on. Can this be done? > > 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 Stanley.G.Martin at mail.sprint.com Fri Jan 10 19:05:22 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Fri, 10 Jan 2003 12:05:22 -0600 Subject: Monitoring Oracle Instances Message-ID: I was planning on doing that anyway, so that I can set up the Production Support people to be able to admin these services. Nagios just allows me more flexibility as to when these instances will monitored and when notifications are sent. I'll go this route for now and maybe something better will come out of this. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: Carroll, Jim P. Sent: Friday, January 10, 2003 11:43 AM To: Stanley.G.Martin; nagios-users Subject: RE: [Nagios-users] Monitoring Oracle Instances Not sure if this is what you're looking for, but you could create a new contact group just for those services, create a new contact in Nagios and in htpasswd.users, and assuming you have the appropriate authorized_for_* settings set up, logging in as that user will give a view of just those services. jc > -----Original Message----- > From: Martin, Stanley G > Sent: Friday, January 10, 2003 10:53 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring Oracle Instances > > > I currently have a standalone Perl script that runs as a daemon that > monitors about 25 Oracle instances. It basically just tries to log in > with an ID that only needs session privileges and if it > fails, pages out > using Qpage the error returned from the DBI connection > attempt. I would > like to incorporate this into Nagios. The plugin part doesn't concern > me, I can tweak my script to work with Nagios. My question is about > grouping these. For the most part, I'm either not monitoring anything > else on the server that the instance is on, or I'm running > Nagios_statd > on a few to watch disk space. I'm not the Sysadmin on any of these > boxes, so I have to be careful what we monitor. I'd like to > group these > database monitors separately so I can view them all together without > being a part of the server they reside on. Can this be done? > > 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 ofb at budget-tech.com Fri Jan 10 19:11:50 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 13:11:50 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized ..." -- Argh! References: <078EC26E265CD411BD9100508BDFFC861BCBB6DE@shawmail02> Message-ID: <009e01c2b8d3$c060e120$0201a8c0@boston> Ok, auth on the share directory is optional. I don't use it. The sbin dir is all that I've protected. See an earlier, yet recent post that shows my .htaccess and htpasswd.users config. Here's where I have a problem.. 1. I log in, and can everything just fine. Nagios works great! Really, it does. 2. Then I want to do something like, disable notification, schedule downtime or somesuch. Here, I am logged in as olivier (this user has the same privs as nagiosadmin): http://mrtg/nagios/cgi-bin/cmd.cgi?cmd_typ=6&host=foo%2Ebar%2Enet&service=FT P On this page, there is a commit button that posts to cmd.cgi, as soon as I click commit I get this: http://mrtg/nagios/cgi-bin/cmd.cgi "Sorry, but you are not authorized to commit the specified command." "Read the section of the documentation that deals with authentication and authorization in the CGIs for more information." I get the same thing for these other types of things (when I say I'm fine, it means I am recognized as user olivier or user nagiosadmin ... whatever I chose to login as): I'm fine here, but when I add in the comment and click commit... "Sorry, you are not ..." http://mrtg/nagios/cgi-bin/cmd.cgi?cmd_typ=1 I'm fine here, scheduling downtime... but when I click commit... "Sorry, you are not ..." http://mrtg/nagios/cgi-bin/cmd.cgi?cmd_typ=55 I'm fine here, trying to restart the nagios process... and then, you guessed it. http://mrtg/nagios/cgi-bin/cmd.cgi?cmd_typ=13 ... I am sure there are tons of these. ----- Original Message ----- From: "Darren Gamble" > Good day, > > > PS. > > I've noticed that when I login, it says logged in as > > 'nagiosadmin' (which is > > correct). But, when I hit "commit" to disable a service > > check, for example, > > the "Sorry" page indicates logged in as ?. > > The "logged in" value shows what Apache thinks your http user is. If this > is set for some pages but not for other pages, the problem is almost > certainly that you haven't properly configured HTTP authentication for those > directories. > > Get the URLs for the pages that don't show a logged-in user, and those that > are. Compare those to the directories that you have configured for access > in your Apache config. > > If you are still stuck after doing this, post your Apache access configs and > the URLs for the pages which do show a user, and those that do not. ------------------------------------------------------- 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 Jan 10 19:21:16 2003 From: Darren.Gamble at sjrb.ca (Darren Gamble) Date: Fri, 10 Jan 2003 11:21:16 -0700 Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! Message-ID: <078EC26E265CD411BD9100508BDFFC861BCBB6E0@shawmail02> Good day, > [obeauche at mrtg sbin]# cat .htaccess > AuthType Basic > AuthName "NAGIOS" > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > > Require valid-user > I'm not sure why you have the statement here, but, I believe this will prevent your POST data from being subject to your access restrictions. Is there documentation that actually says to do this? Remove the statement and try again (you need the "Require valid-user" statement still, of course). ============================ 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 ofb at budget-tech.com Fri Jan 10 19:31:55 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 13:31:55 -0500 Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! References: <078EC26E265CD411BD9100508BDFFC861BCBB6E0@shawmail02> Message-ID: <00c801c2b8d6$8e5459c0$0201a8c0@boston> Holy S***! As soon as I read it I knew... That seems to have done the trick. :-) Thank you! Olivier ----- Original Message ----- From: "Darren Gamble" > > [obeauche at mrtg sbin]# cat .htaccess > > AuthType Basic > > AuthName "NAGIOS" > > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > > > > > Require valid-user > > > > I'm not sure why you have the statement here, but, I believe this > will prevent your POST data from being subject to your access restrictions. > Is there documentation that actually says to do this? > > Remove the statement and try again (you need the "Require > valid-user" statement still, of course). ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From russell at quadrix.com Fri Jan 10 19:43:30 2003 From: russell at quadrix.com (Russell Scibetti) Date: Fri, 10 Jan 2003 13:43:30 -0500 Subject: TAC and hostgroups Message-ID: <3E1F1452.4010000@quadrix.com> I know that most CGI's you can pass a hostgroup= in the URL and only see information for a particular hostgroup. Is there any way this can also be done for tac.cgi? I'm trying to set up different views on Nagios based on the hostgroup, and the Tactical Overview is the only thing that's not working for me. Thanks. -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 Stanley.G.Martin at mail.sprint.com Fri Jan 10 19:47:38 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Fri, 10 Jan 2003 12:47:38 -0600 Subject: PHP Book Message-ID: About a week or so ago, someone on this list recommended a good starting book for learning PHP. I'm a long time Perler and thought I'd better get started. Stanley G. Martin Sprint - EIS? Customer Care 913.315.4576 913.226.3090 PCS 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 nathan at sysadminsith.org Fri Jan 10 19:51:07 2003 From: nathan at sysadminsith.org (nathan) Date: Fri, 10 Jan 2003 10:51:07 -0800 Subject: Not *exactly* a nagios question... In-Reply-To: <074f01c2b8d1$4cfa4160$aa64a8c0@whitneys>; from swhitney@journyx.com on Fri, Jan 10, 2003 at 11:54:19AM -0600 References: <074f01c2b8d1$4cfa4160$aa64a8c0@whitneys> Message-ID: <20030110105106.A81903@sysadminsith.org> I use this in my .procmailrc: :0: * ^TO_nagios-users at lists.sourceforge.net /usr/home/nathan/mail/Lists/nagios-users.lists.sourceforge.net On Fri, Jan 10, 2003 at 11:54:19AM -0600, Scott Whitney wrote: > But I figure SOMEONE on this list is doing this. > > I want my nagios-list stuff to go to a nagios folder via procmail. > > Now...I have qmail....so: > > here's my .qmail file: > > |preline /usr/bin/procmail -p -m ~/.procmailrc > /var/mail/spool/swhitney > > If I put in the preline procmailrc line, it processes the procmailrc. I then take out the /var/mail/spool/swhitney line to make it run through procmail, right, and not to return to qmail. > > Well, my .procmailrc is: > > :0 H > * ^Subject:.*[Nagios-users]* > /var/mail/folders/scott/Nagios > > That's all. > > If I implement this, I get NO MAIL. At all. It "hangs." Then, when I remove this .procmailrc, it all comes through. > > Sincere apologies for posting this "off-topic." I know it's not Nagios-related, but it is related to this list, and I figure one of y'all has to be doing this. > > Please flame directly to me, if you must, not to the list. > > Thanks, folks. > > Scott -- Nathan the human ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jsm at inpro.net Fri Jan 10 20:05:46 2003 From: jsm at inpro.net (Jeff McKeon) Date: 10 Jan 2003 14:05:46 -0500 Subject: web authentication Message-ID: <1042225547.12553.23.camel@rh80-jsm.telaurus.net> hey all, I've had nagios up and running without web authentication for a while. All is running fine (thanks to several people on this list) but today I decided to get the authentication working... I followed the instructions but something is FUBAR somewhere because when i try to open nagios with my browser I get this... ********************************************************************* Server error! The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. If you think this is a server error, please contact the webmaster Error 500 ********************************************************************** Any ideas where I may have screwed the pooch on this one? Thanks, jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Fri Jan 10 19:58:24 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 10 Jan 2003 13:58:24 -0500 (EST) Subject: alternatives to NSClient In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24EA@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24EA@PKDWB03C.ad.sprint.com> Message-ID: Have been playing with Perl version - not functional as yet. Looking at PerlSvc (part of ActiveState's PerlDev) to create binaries Windows releases.. -sg On Fri, 10 Jan 2003, Carroll, Jim P [Contractor] wrote: > Is anyone aware of any alternatives to NSClient? > > Has anyone tried their hand at crafting something in Perl for Windows and > running it as a service using FireDaemon? > > 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 mpowell at ena.com Fri Jan 10 20:16:18 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 10 Jan 2003 13:16:18 -0600 Subject: web authentication Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED05F@mismail.ena.com> What do your http server error logs say? What configuration changes did you make exactly to enable authentication? The error message below is very generic and without significantly more detail it's very difficult to even guess what's going wrong. -- Marc > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Friday, January 10, 2003 1:06 PM > To: Nagios List > Subject: [Nagios-users] web authentication > > hey all, > > I've had nagios up and running without web authentication for a while. > All is running fine (thanks to several people on this list) but today I > decided to get the authentication working... I followed the instructions > but something is FUBAR somewhere because when i try to open nagios with > my browser I get this... > > ********************************************************************* > > Server error! > > The server encountered an internal error and was unable to complete your > request. Either the server is overloaded or there was an error in a CGI > script. > > If you think this is a server error, please contact the webmaster > > Error 500 > > ********************************************************************** > > Any ideas where I may have screwed the pooch on this one? > > 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 jsm at inpro.net Fri Jan 10 20:31:00 2003 From: jsm at inpro.net (Jeff McKeon) Date: 10 Jan 2003 14:31:00 -0500 Subject: web authentication In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED05F@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED05F@mismail.ena.com> Message-ID: <1042227060.12554.29.camel@rh80-jsm.telaurus.net> Marc, Thanks for the bump on the head I needed... Found the answer in the httpd error log.. had a misspelled word in the .htaccess file. thanks! Jeff On Fri, 2003-01-10 at 14:16, Marc Powell wrote: > What do your http server error logs say? What configuration changes did > you make exactly to enable authentication? The error message below is > very generic and without significantly more detail it's very difficult > to even guess what's going wrong. > > -- > Marc > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Friday, January 10, 2003 1:06 PM > > To: Nagios List > > Subject: [Nagios-users] web authentication > > > > hey all, > > > > I've had nagios up and running without web authentication for a while. > > All is running fine (thanks to several people on this list) but today > I > > decided to get the authentication working... I followed the > instructions > > but something is FUBAR somewhere because when i try to open nagios > with > > my browser I get this... > > > > ********************************************************************* > > > > Server error! > > > > The server encountered an internal error and was unable to complete > your > > request. Either the server is overloaded or there was an error in a > CGI > > script. > > > > If you think this is a server error, please contact the webmaster > > > > Error 500 > > > > ********************************************************************** > > > > Any ideas where I may have screwed the pooch on this one? > > > > 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 pkrzystofiak at endeavors.com Fri Jan 10 20:27:52 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Fri, 10 Jan 2003 11:27:52 -0800 Subject: check_fping works at command line, but not in the nagios web client Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63BD@mail.endeavorstech.com> this works... ./check_fping -H yahoo.com FPING OK - yahoo.com (loss=0.000000%, rta=69.100000 ms) --------------------------------------------------------------- The problem is that in the nagios web view monitor page WARNING 01-09-2003 12:33:51 0d 0h 2m 10s 1/3 FPING WARNING - yahoo.com Why do I get a "FPING WARNING - yahoo.com" error? --------------------------------------------------------------- define command { command_name check_fping command_line $USER1$/check_fping -H $HOSTADDRESS$ -b $ARG1$ } --------------------------------------------------------------- define service { use generic-service host_name 3.1_services service_description FPING is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 3 contact_groups flcd-admins notification_interval 120 notification_period 24x7 notification_options c,r check_command check_fping!1024 } --------------------------------------------------------------- ------------------------------------------------------- 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 Jan 10 20:24:00 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 10 Jan 2003 11:24:00 -0800 (PST) Subject: nagios.cmd ... "Sorry, you are not authorized. .." -- Argh! In-Reply-To: <00c801c2b8d6$8e5459c0$0201a8c0@boston> References: <00c801c2b8d6$8e5459c0$0201a8c0@boston> Message-ID: <20030110192400.37813.qmail@web21511.mail.yahoo.com> Ding Ding Ding, we have a winner! "Olivier F. Beauchemin (Budget-Tech IT Consulting)" wrote:Holy S***! As soon as I read it I knew... That seems to have done the trick. :-) Thank you! Olivier ----- Original Message ----- From: "Darren Gamble" > > [obeauche at mrtg sbin]# cat .htaccess > > AuthType Basic > > AuthName "NAGIOS" > > AuthUserFile /usr/local/nagios/etc/htpasswd.users > > > > > > Require valid-user > > > > I'm not sure why you have the statement here, but, I believe this > will prevent your POST data from being subject to your access restrictions. > Is there documentation that actually says to do this? > > Remove the statement and try again (you need the "Require > valid-user" statement still, of course). ------------------------------------------------------- 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 jsm at inpro.net Fri Jan 10 20:55:26 2003 From: jsm at inpro.net (Jeff McKeon) Date: 10 Jan 2003 14:55:26 -0500 Subject: web auth questions Message-ID: <1042228526.12554.41.camel@rh80-jsm.telaurus.net> Ok, got web auth working (thanks to Marc pointing out what should have been obvious to me). Now I have some questions. The way it works now, only people listed in contact's can log in and then they only can view the systems/services that are part of the contactgroups they belong to. These users then have access to interact with nagios for their sys/serv and do things like turn off notifications etc.... Q: is there a way to have a user that can view everything but not interact with anything. For instance I want my CEO to be able to see status but (for the love of God) I don't want him to be able to change anything. Also when a user opens the website, they get one auth request for the left side menu and another of the TAC (I changed the default main page to be the TAC) Q: Is this because I've changed the default main window page? how can I get this down to just one login? Thanks! Jeff ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Fri Jan 10 21:02:46 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 10 Jan 2003 15:02:46 -0500 (EST) Subject: check_fping works at command line, but not in the nagios web client In-Reply-To: <53109A46D4F58F458B18D009EAEEDC830E63BD@mail.endeavorstech.com> References: <53109A46D4F58F458B18D009EAEEDC830E63BD@mail.endeavorstech.com> Message-ID: Assuming you are running the command line as the nagios user???? Looks like there is an error on stderr which is causing the WARNING level... -sg On Fri, 10 Jan 2003, Peter Krzystofiak wrote: > this works... > > ./check_fping -H yahoo.com > FPING OK - yahoo.com (loss=0.000000%, rta=69.100000 ms) > > --------------------------------------------------------------- > The problem is that in the nagios web view monitor page > > WARNING 01-09-2003 12:33:51 0d 0h 2m 10s 1/3 FPING WARNING - yahoo.com > > Why do I get a "FPING WARNING - yahoo.com" error? > --------------------------------------------------------------- > define command { > command_name check_fping > command_line $USER1$/check_fping -H $HOSTADDRESS$ -b $ARG1$ > } > > --------------------------------------------------------------- > > define service { > use generic-service > host_name 3.1_services > service_description FPING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 3 > contact_groups flcd-admins > notification_interval 120 > notification_period 24x7 > notification_options c,r > check_command check_fping!1024 > } > > --------------------------------------------------------------- > > > ------------------------------------------------------- > 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 jcarro10 at sprintspectrum.com Fri Jan 10 21:42:36 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 10 Jan 2003 14:42:36 -0600 Subject: web auth questions Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E129E@PKDWB03C.ad.sprint.com> I'll be able to answer your first question, but not your second. Yes, there's a way. Set them up with guest access. In cgi.cfg: authorized_for_all_services=guest authorized_for_all_hosts=guest Don't forget to set guest's password to something like 'guest'. ;) If you don't feel it's appropriate for your CEO to login as 'guest', then change all references above from 'guest' to 'ceo' or whatever you feel is appropriate. jc > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Friday, January 10, 2003 1:55 PM > To: Nagios List > Subject: [Nagios-users] web auth questions > > > Ok, got web auth working (thanks to Marc pointing out what should have > been obvious to me). > > Now I have some questions. The way it works now, only people > listed in > contact's can log in and then they only can view the systems/services > that are part of the contactgroups they belong to. These users then > have access to interact with nagios for their sys/serv and do things > like turn off notifications etc.... > > Q: is there a way to have a user that can view everything but not > interact with anything. For instance I want my CEO to be able to see > status but (for the love of God) I don't want him to be able to change > anything. > > > Also when a user opens the website, they get one auth request for the > left side menu and another of the TAC (I changed the default main page > to be the TAC) > > Q: Is this because I've changed the default main window page? > how can I > get this down to just one login? > > 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 ofb at budget-tech.com Fri Jan 10 23:07:15 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 17:07:15 -0500 Subject: negate command Message-ID: <003301c2b8f4$a3567b00$0201a8c0@boston> Would someone be so kind as to e-mail an example of the negate command in use? I'd like to use it to negate a negative check_ping. In otherwords: no response is good, get a response bad. Thanks, Olivier PS. The sourceforge archive isn't available for some reason. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rvelez at sunguruz.com Fri Jan 10 23:46:58 2003 From: rvelez at sunguruz.com (rvelez) Date: Fri, 10 Jan 2003 17:46:58 -0500 Subject: [Nagiosplug-help] Service Check commands in Libexec In-Reply-To: <001f01c2b889$70dc20a0$0400a8c0@squarebox.com> References: <001f01c2b889$70dc20a0$0400a8c0@squarebox.com> Message-ID: <000001c2b8fa$2e95a8d0$0300a8c0@sunguruz.com> Thanks for your help, and quick response. :) I will be looking over the documentation and let you know how it comes out. Regards, Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Tom Welsh Sent: Friday, January 10, 2003 4:20 AM To: 'rvelez'; nagios-users at lists.sourceforge.net Cc: nagiosplug-help at lists.sourceforge.net Subject: [Nagios-users] RE: [Nagiosplug-help] Service Check commands in Libexec Hi Radames Take a look at nrpe, its in the nagios documentation under Nagios addons Cheers Tom Welsh twelsh at square-box.com -----Original Message----- From: nagiosplug-help-admin at lists.sourceforge.net [mailto:nagiosplug-help-admin at lists.sourceforge.net] On Behalf Of rvelez Sent: 10 January 2003 06:01 To: nagios-users at lists.sourceforge.net Cc: nagiosplug-help at lists.sourceforge.net Subject: [Nagiosplug-help] Service Check commands in Libexec It seems to me like some of the scripts in libexec are commands for the local machine such as check_users or check_procs, also check_disk. Is their anyway to get these commands to check remote hosts such as a checking space availability on an NT server? Thanks again for all the help! :) Regards, Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Fri Jan 10 23:53:58 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 10 Jan 2003 17:53:58 -0500 (EST) Subject: negate command In-Reply-To: <003301c2b8f4$a3567b00$0201a8c0@boston> References: <003301c2b8f4$a3567b00$0201a8c0@boston> Message-ID: On Fri, 10 Jan 2003, Olivier F. Beauchemin (Budget-Tech IT Consulting) wrote: > Would someone be so kind as to e-mail an example of the negate command in > use? I'd like to use it to negate a negative check_ping. > > In otherwords: no response is good, get a response bad. > > Thanks, > Olivier > > PS. > The sourceforge archive isn't available for some reason. > > $USER1$/negate "/path/to/check_ping -H $HOSTADDRESS -w xx -c yy" Note - the output string on the command is going to be exactly the same as the output string of the actual plugin. Negate will only change the return code of the plugin to trigger tha approriate warning. Negate will swap CRITICAL and OK, and pass WARNING and UNKNOWN. Negate will also return a WARNING is there was any output on the plugin's stderr (there should be none) -- -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 Fri Jan 10 23:56:27 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 10 Jan 2003 17:56:27 -0500 (EST) Subject: check_nagios + MySQL = Nagios possible not running? In-Reply-To: <3E1D8497.3080400@sietec.de> References: <3E1D8497.3080400@sietec.de> Message-ID: Depends on how nagios was configures for status. in the plugins - contrib/check_nagios_db.pl for a MySQL based status -sg On Thu, 9 Jan 2003, Alex Kuehne wrote: > > -----Original Message----- > > From: Steven L. Kohrs [mailto:steve at dtnspeed.net] > > Sent: Wednesday, January 08, 2003 12:31 AM > > To: Nagios Mailing List > > Subject: [Nagios-users] check_nagios + MySQL = Nagios possible not > > running? > > > > > > In researching why I too was receiving the "Nagios process may not be > > running" message, I came across a question. If I'm using > > MySQL to store > > my status information, will status.log ever get written to? > > I have all my stuff in a MySQL database and status.log gets written, at > least one time per hour. > > > The check_nagios script compares the last timestamp from within this > > file to determining whether Nagios is running, correct? Hence, I'll > > always receive the warning that the status log was updated too far in > > the past. > > Make sure the nagios process have write permission to its logfile. Also > test whether your check_nagios command is set up properly. > > Best Regards > Alex Kuehne > > -- > Network Manager, SAG, Berlin, Germany > > > > > ------------------------------------------------------- > 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 kobyj at purdue.edu Sat Jan 11 00:26:04 2003 From: kobyj at purdue.edu (Justin Koby) Date: Fri, 10 Jan 2003 18:26:04 -0500 Subject: Problem displaying images in StatusMap Message-ID: <000e01c2b8ff$a8b10560$69010a0a@sw132.hopto.org> I am having a problem getting my icons to display in the statusmap. All of the icons appear as the default question mark. When you move the mouse over a device, the correct image appears in the pop-up as well as on the host detail page. I did put the hostextinfo.cfg line into my cgi.cfg. My hostextinfo file contains the following lines: define hostextinfo{ host_name techOfficePrinter,b005Printer icon_image printer.gif icon_image_alt printer.gif vrml_image printer.gif statusmap_image printer.gif } The images are in images/logos. I don't think it is a rights issue since the images appear in the popups. Any help will be greatly appreciated. Justin Koby New Castle Community Schools ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From securityguy at ikano.com Sat Jan 11 01:11:34 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Fri, 10 Jan 2003 17:11:34 -0700 Subject: Problem displaying images in StatusMap - !!Feature Request!! In-Reply-To: <000f01c2b905$3024d350$69010a0a@sw132.hopto.org> References: <000f01c2b905$3024d350$69010a0a@sw132.hopto.org> Message-ID: <003601c2b906$00415860$fcd0d0cd@PENDLETON> Sorry, I guess I should have been more specific. You cannot specify multiple hosts in the host_name definition in this file. That feature is only available in these files: Services Service Escalation Service Dependencies Host Escalations Host Dependencies Hostgroups Hostgroup Escalations 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 -----Original Message----- From: Justin Koby [mailto:kobyj at purdue.edu] Sent: Friday, January 10, 2003 5:06 PM To: 'Robert S. Galloway' Subject: RE: [Nagios-users] Problem displaying images in StatusMap - !!Feature Request!! Robert, Since I can't define it in the extended information file, do you know where I would define it? Justin -----Original Message----- From: Robert S. Galloway [mailto:securityguy at ikano.com] Sent: Friday, January 10, 2003 7:05 PM To: kobyj at purdue.edu; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem displaying images in StatusMap - !!Feature Request!! Hi Justin, According to the documentation, you cannot use this shortcut in the host extended information file. I know I sure wish it was available, but as of now it does not work. 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 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin Koby Sent: Friday, January 10, 2003 4:26 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem displaying images in StatusMap I am having a problem getting my icons to display in the statusmap. All of the icons appear as the default question mark. When you move the mouse over a device, the correct image appears in the pop-up as well as on the host detail page. I did put the hostextinfo.cfg line into my cgi.cfg. My hostextinfo file contains the following lines: define hostextinfo{ host_name techOfficePrinter,b005Printer icon_image printer.gif icon_image_alt printer.gif vrml_image printer.gif statusmap_image printer.gif } The images are in images/logos. I don't think it is a rights issue since the images appear in the popups. Any help will be greatly appreciated. Justin Koby New Castle Community Schools ------------------------------------------------------- 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 securityguy at ikano.com Sat Jan 11 01:05:14 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Fri, 10 Jan 2003 17:05:14 -0700 Subject: Problem displaying images in StatusMap - !!Feature Request!! In-Reply-To: <000e01c2b8ff$a8b10560$69010a0a@sw132.hopto.org> References: <000e01c2b8ff$a8b10560$69010a0a@sw132.hopto.org> Message-ID: <003501c2b905$1dea3ae0$fcd0d0cd@PENDLETON> Hi Justin, According to the documentation, you cannot use this shortcut in the host extended information file. I know I sure wish it was available, but as of now it does not work. 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 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin Koby Sent: Friday, January 10, 2003 4:26 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem displaying images in StatusMap I am having a problem getting my icons to display in the statusmap. All of the icons appear as the default question mark. When you move the mouse over a device, the correct image appears in the pop-up as well as on the host detail page. I did put the hostextinfo.cfg line into my cgi.cfg. My hostextinfo file contains the following lines: define hostextinfo{ host_name techOfficePrinter,b005Printer icon_image printer.gif icon_image_alt printer.gif vrml_image printer.gif statusmap_image printer.gif } The images are in images/logos. I don't think it is a rights issue since the images appear in the popups. Any help will be greatly appreciated. Justin Koby New Castle Community Schools ------------------------------------------------------- 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 kobyj at purdue.edu Sat Jan 11 01:17:09 2003 From: kobyj at purdue.edu (Justin Koby) Date: Fri, 10 Jan 2003 19:17:09 -0500 Subject: Problem displaying images in StatusMap - !!Feature Request!! In-Reply-To: <003601c2b906$00415860$fcd0d0cd@PENDLETON> References: <003601c2b906$00415860$fcd0d0cd@PENDLETON> Message-ID: <001101c2b906$cb27a2f0$69010a0a@sw132.hopto.org> Robert, The shortcut of putting two hosts in the same host_name definiation works for everything except the status map image. Both the techOfficePrinter and the b005Printer have the images on the detail pages and the popups. I did discover that you can not setup a "template" for many hosts in one definition and then add a different "notes_url" to each host individually. I agree, that would be a nice feature. I hope this makes sense. Justin -----Original Message----- From: Robert S. Galloway [mailto:securityguy at ikano.com] Sent: Friday, January 10, 2003 7:12 PM To: kobyj at purdue.edu Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem displaying images in StatusMap - !!Feature Request!! Sorry, I guess I should have been more specific. You cannot specify multiple hosts in the host_name definition in this file. That feature is only available in these files: Services Service Escalation Service Dependencies Host Escalations Host Dependencies Hostgroups Hostgroup Escalations 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 -----Original Message----- From: Justin Koby [mailto:kobyj at purdue.edu] Sent: Friday, January 10, 2003 5:06 PM To: 'Robert S. Galloway' Subject: RE: [Nagios-users] Problem displaying images in StatusMap - !!Feature Request!! Robert, Since I can't define it in the extended information file, do you know where I would define it? Justin -----Original Message----- From: Robert S. Galloway [mailto:securityguy at ikano.com] Sent: Friday, January 10, 2003 7:05 PM To: kobyj at purdue.edu; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem displaying images in StatusMap - !!Feature Request!! Hi Justin, According to the documentation, you cannot use this shortcut in the host extended information file. I know I sure wish it was available, but as of now it does not work. 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 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Justin Koby Sent: Friday, January 10, 2003 4:26 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem displaying images in StatusMap I am having a problem getting my icons to display in the statusmap. All of the icons appear as the default question mark. When you move the mouse over a device, the correct image appears in the pop-up as well as on the host detail page. I did put the hostextinfo.cfg line into my cgi.cfg. My hostextinfo file contains the following lines: define hostextinfo{ host_name techOfficePrinter,b005Printer icon_image printer.gif icon_image_alt printer.gif vrml_image printer.gif statusmap_image printer.gif } The images are in images/logos. I don't think it is a rights issue since the images appear in the popups. Any help will be greatly appreciated. Justin Koby New Castle Community Schools ------------------------------------------------------- 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 justin at pvamu.edu Sat Jan 11 01:31:17 2003 From: justin at pvamu.edu (Justin) Date: Fri, 10 Jan 2003 18:31:17 -0600 Subject: Same status Message-ID: <00fa01c2b908$e2cb33c0$0e38cf81@fucko> I basically have my services file set up like this define service{ use generic-service ; Name of service template to use host_name mail service_description PING is_volatile 0 check_period 24x7 contact_groups mail-servers notification_options w,u,c,r check_command check_ping } I have the same set up for check_users, check_disk, etc. Well my problem is, I get the stats, but all the stats for the services are the same. After further inspection I learned that all host where returning the stats for the server nagios is actually running on. I have read the manual and I seem to be doing everything correctly. I am assuming the check_* commands are being run, but as it it were checking that machine, and not looking out to the machines I want to monitor. Any information would be helpfull. Thanks Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From ofb at budget-tech.com Sat Jan 11 01:46:02 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 19:46:02 -0500 Subject: negate command References: Message-ID: <007001c2b90a$d22707e0$0201a8c0@boston> Thanks for the direction. I had a bad copy of negate, so that was my first problem. Now that that's fixed... NOTE: ----- I want to keep track of my non-allocated IP space. In this case it's good to have an IP not respond, so I want to reverse the output of ping. Also, I needed to use a bogus hostname so I could nest all the unused IPs beneath the one host. It also makes hostgroups.cfg much more manageable. This means I don't use $HOSTNAME$, I need to use check_pings -H argument and call it $ARG1$. Below is the pertinent config. Snippet from checkcommands.cfg ------------------------------ # 'check_if_unused' command definition define command{ command_name check_if_unused command_line $USER1$/negate "/usr/local/nagios/libexec/check_ping -H $ARG1$ -w $ARG2$ -c $ARG3$ -p 1" } Snippet from services.cfg ------------------------- # 'check another unused ip' command definition define service{ use generic-service ; Name of service template to use host_name UNUSED_IP service_description x.x.x.x contact_groups olivier is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups madriveraccess notification_interval 240 notification_period 24x7 notification_options c,r check_command check_if_unused!x.x.x.x!100.0,20%!500.0,60% } This works on the command line, which looks like this: ------------------------------------------------------ [obeauche at mrtg etc]# /usr/local/nagios/libexec/negate "/usr/local/nagios/libexec/check_ping -H x.x.x.x -w 100.0,20% -c 500.0,60% -p 1" PING OK - Packet loss = 0%, RTA = 0.58 ms As I understand it, negate should then swap this OK, and return a CRITICAL, correct? Instead, it's passing the following: ------------------------------------ [1042244095] SERVICE;UNUSED_IP;x.x.x.x;UNKNOWN;3/3;HARD;1042241954;1042244572;ACTIVE;1;1; 1;1042241955;0;UNKNOWN;0;40224;0;7964;0;0;1;0;0;1;0;0.00;0;1;1;1;negate: Unknown argument - H So, I stuffed the -H into $ARG1$ too, and now, I'm not getting the "Unknown argument' error. However, I was expecting (and please pardon the cliche), things to go from Red to Green. That didn't happen... they did go from Yellow to Red, and I now get "CRITICAL - Plugin timed out after 10 seconds". I think it's working, but not really as I expected. Thoughts? Olivier ----- Original Message ----- From: "Subhendu Ghosh" > $USER1$/negate "/path/to/check_ping -H $HOSTADDRESS -w xx -c yy" > > Note - the output string on the command is going to be exactly the same as > the output string of the actual plugin. Negate will only change the > return code of the plugin to trigger tha approriate warning. > > Negate will swap CRITICAL and OK, and pass WARNING and UNKNOWN. > > Negate will also return a WARNING is there was any output on the plugin's > stderr (there should be none) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at nagios.org Sat Jan 11 02:03:09 2003 From: nagios at nagios.org (Ethan Galstad) Date: Fri, 10 Jan 2003 19:03:09 -0600 Subject: Whats up with the Nagios Website In-Reply-To: <002801c2b88b$500ba2e0$0400a8c0@squarebox.com> References: <002801c2b88b$500ba2e0$0400a8c0@squarebox.com> Message-ID: <3E1F18ED.16957.1A8C25E@localhost> Seems the Slashdot article generated enough traffic to exceed my daily 2 GB limit. :-) On 10 Jan 2003 at 9:33, Tom Welsh wrote: > > Whats up with the Nagios website? Im not getting it displayed just?. > > mercury.powweb.com > 63.251.213.19 > > Are we the vistims of our own success and the site is just going > ballistic after the excellent Slashdot interview with Ethan? > > Cheers > > Tom Welsh > twelsh at square-box.com > > 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 ofb at budget-tech.com Sat Jan 11 02:17:24 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Fri, 10 Jan 2003 20:17:24 -0500 Subject: negate command References: <007001c2b90a$d22707e0$0201a8c0@boston> Message-ID: <008b01c2b90f$338a12d0$0201a8c0@boston> Duh, I feel dumb. Now I'm answering my own questions. It's working now. Putting -H into $ARG1$ worked. I'll shut-up now. ;-) Olivier ----- Original Message ----- From: "Olivier F. Beauchemin (Budget-Tech IT Consulting)" > So, I stuffed the -H into $ARG1$ too, and now, I'm not getting the "Unknown > argument' error. However, I was expecting (and please pardon the cliche), > things to go from Red to Green. That didn't happen... they did go from > Yellow to Red, and I now get "CRITICAL - Plugin timed out after 10 seconds". ------------------------------------------------------- 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 Jan 11 02:29:11 2003 From: Tong at keen.com (Tong Young) Date: Fri, 10 Jan 2003 17:29:11 -0800 Subject: help with nsclient and clustered services Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FD20@keenx02.keencorp.keen.com> I have been trying to pass the following argument in Nagios using NSClient. It works fine at the command line, but does not work within Nagios. Check_nt -H sqlserver01 -p 1248 -v SERVICESTATE -l MSSQL\$SQLSERVER01 The registry shows this service as MSSQL$SQLSERVER01 I had to put the "\" so the $ would be recognized. I am not sure how to code this command within the services.cfg file so that the $ sign will be preserved. I have tried using quotations but it still failed. Thanks for any help. The checkcommands entry for this is: # 'check_nt_service' command definition define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$ } ------------------------------------------------------- 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 Jan 11 02:56:57 2003 From: Tong at keen.com (Tong Young) Date: Fri, 10 Jan 2003 17:56:57 -0800 Subject: help with nsclient and clustered services Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FD23@keenx02.keencorp.keen.com> Nevermind. Typo on my part. But in case anyone ever wants to query a clustered service you should precede the $ with a \. -----Original Message----- From: Tong Young [mailto:Tong at keen.com] Sent: Friday, January 10, 2003 5:29 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] help with nsclient and clustered services I have been trying to pass the following argument in Nagios using NSClient. It works fine at the command line, but does not work within Nagios. Check_nt -H sqlserver01 -p 1248 -v SERVICESTATE -l MSSQL\$SQLSERVER01 The registry shows this service as MSSQL$SQLSERVER01 I had to put the "\" so the $ would be recognized. I am not sure how to code this command within the services.cfg file so that the $ sign will be preserved. I have tried using quotations but it still failed. Thanks for any help. The checkcommands entry for this is: # 'check_nt_service' command definition define command{ command_name check_nt_service command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v SERVICESTATE -d SHOWALL -l $ARG1$ } ------------------------------------------------------- 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 atulsh at hclinsys.com Sat Jan 11 06:56:43 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Sat, 11 Jan 2003 11:26:43 +0530 Subject: check_snmp file not found in libexec directory Message-ID: <001701c2b936$37d00f30$5f7b0297@atul> Hello All, In my libexec directory, there is no file check_snmp Can you tell me why it is not there. I have also find this file in the whole harddisk but it is not there. 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 jragle at unm.edu Sat Jan 11 19:48:15 2003 From: jragle at unm.edu (Jamin) Date: Sat, 11 Jan 2003 11:48:15 -0700 (MST) Subject: Executing custom/misc commands problem Message-ID: Hello fellow nagios users, I'm trying to integrate nagios into our paging and problem management software right now but am having problems getting nagios to execute the perl script that initiates the pages and tickets. In the etc/misccommands.cfg file I am trying to do something similar to the notify-by-epager command but instead of using printf and mail, I am trying to execute the command which contacts the problem management software. Here is a simplified command where the 'hello' part is actually the second argument which describes the problem. # Test 'host-notify-by-CIRTpager' command definition define command{ command_name host-notify-by-CIRTpager command_line /nfs/e1/oper/PAGER/scauto/linuxevprob.pl HostDown hello } I added some lines in the perl file which appends the 2nd argument to a file in /tmp, just so I know if the file is being executed, but apparently, it is never executed by nagios because the file is empty. The permissions on the file are good, and it executes normally when done by hand. It just seems to not work in nagios. I checked the notification history, and nagios seems to think it was executed, but there is never anything in the /tmp file when nagios tries to run the command. Anyone have any suggestions? I would appreciate any help. Thanks, -Jamin Ragle SA for CIRT ______________________________________________________________________ Multi-Slacking - "I can only do one thing at a time, but I can avoid doing many things simultaneously." -- Unknown ______________________________________________________________________ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stan at live2think.com Sat Jan 11 20:25:03 2003 From: stan at live2think.com (Stan Tichomirov) Date: Sat, 11 Jan 2003 11:25:03 -0800 Subject: PHP Book References: Message-ID: <3E206F8E.EB0F3DAC@live2think.com> check out http://www.thickbook.com/, she's got a few books to start out with, like "PHP Fast and Easy". they won't teach you to write clean code, but you'll be writing dynamic pages in about 4 hours. Stan Tichomirov UNIX Systems Administrator Stanley.G.Martin at mail.sprint.com wrote: > About a week or so ago, someone on this list recommended a good starting > book for learning PHP. I'm a long time Perler and thought I'd better > get started. > > Stanley G. Martin > Sprint - EIS? Customer Care > 913.315.4576 > 913.226.3090 PCS > Stanley.G.Martin at mail.sprint.com > > ------------------------------------------------------- > 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 stan at live2think.com Sat Jan 11 20:23:51 2003 From: stan at live2think.com (Stan Tichomirov) Date: Sat, 11 Jan 2003 11:23:51 -0800 Subject: PHP Book References: Message-ID: <3E206F47.30D2CE19@live2think.com> check out http://www.thickbook.com/, she's got a few books to start out with, like "PHP Fast and Easy". they won't teach you to write clean code, but you'll be writing dynamic pages in about 4 hours. Stan Tichomirov UNIX Systems Administrator Stanley.G.Martin at mail.sprint.com wrote: > About a week or so ago, someone on this list recommended a good starting > book for learning PHP. I'm a long time Perler and thought I'd better > get started. > > Stanley G. Martin > Sprint - EIS? Customer Care > 913.315.4576 > 913.226.3090 PCS > Stanley.G.Martin at mail.sprint.com > > ------------------------------------------------------- > 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 stan at live2think.com Sat Jan 11 20:29:51 2003 From: stan at live2think.com (Stan Tichomirov) Date: Sat, 11 Jan 2003 11:29:51 -0800 Subject: check_snmp file not found in libexec directory References: <001701c2b936$37d00f30$5f7b0297@atul> Message-ID: <3E2070AF.195895D5@live2think.com> Install snmp package before compiling plugins, then it'll get detected during ./configure http://net-snmp.sourceforge.net/ Stan Tichomirov UNIX Systems Administrator Atul Shrivastava wrote: > Hello All, In my libexec directory, there is no file check_snmpCan you > tell me why it is not there. I have also find this file in the whole > harddisk but it is not there. 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 From chris at in-motion.net Sun Jan 12 00:00:39 2003 From: chris at in-motion.net (Chris Brown) Date: Sat, 11 Jan 2003 18:00:39 -0500 Subject: Startup with Checks AND DHCP installation Message-ID: <5.1.0.14.2.20030111175534.00bcdfe0@pop3.in-motion.net> Good day all. I am converting my Netsaint application to Nagios and trying to expand the monitoring capabilities as well. I have 2 questions/problems. 1) Inside the nagios.cfg file.... When I change the 'check external commands = 0' to 1 and restarted Nagios, the application wouldn't run.... although it runs fine when set to 0. Can anybody suggest something? 2) The check_dhcp instructions on the FAQ say something about installing it via suid root. Can someon explain that detail? As root, I compiled it and copied it into the libexec... as well as put it into the templates to be used. My host says 'could not BIND to dhcp socket'. (DHCP is running on this physical machine too). I'm sure that's probably the problem but I didn't know the details to complete the installation properly I'm sure. Thanks! Chris Brown chris at in-motion.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Sun Jan 12 00:45:06 2003 From: donavan at 4wx.net (donavan nelson) Date: Sat, 11 Jan 2003 17:45:06 -0600 Subject: Whats up with the Nagios Website In-Reply-To: <3E1F18ED.16957.1A8C25E@localhost> References: <002801c2b88b$500ba2e0$0400a8c0@squarebox.com> <3E1F18ED.16957.1A8C25E@localhost> Message-ID: <20030111234506.M12545@4wx.net> It's called getting /.'d. I prefer to call it the slashdot effect...the effect /. has on about 1/2 of the websites mentioned it the same..... .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Ethan Galstad" To: nagios-users Sent: Fri, 10 Jan 2003 19:03:09 -0600 Subject: [Nagios-users] Re: Whats up with the Nagios Website > Seems the Slashdot article generated enough traffic to exceed my > daily 2 GB limit. :-) > > On 10 Jan 2003 at 9:33, Tom Welsh wrote: > > > > > Whats up with the Nagios website? Im not getting it displayed just?. > > > > mercury.powweb.com > > 63.251.213.19 > > > > Are we the vistims of our own success and the site is just going > > ballistic after the excellent Slashdot interview with Ethan? > > > > Cheers > > > > Tom Welsh > > twelsh at square-box.com > > > > > > 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 > _______________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stan at live2think.com Sun Jan 12 01:35:15 2003 From: stan at live2think.com (Stan Tichomirov) Date: Sat, 11 Jan 2003 16:35:15 -0800 Subject: Thank You Ethan Message-ID: <3E20B843.9D20C647@live2think.com> don't mean to pollute the list.. Ethan, just wanted to say Thank You for creating a great piece of software, I'm doing my best to prove to people how good it is (it's not that hard, acually). Got management to switch 2 of our datacenters to Nagios, and using it in sideprojects. Keep up the great work. here it is again: Nagios rocks. -- Stan Tichomirov UNIX Systems Administrator ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From aj.mckee at nmtbmedia.com Sun Jan 12 06:57:37 2003 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Sun, 12 Jan 2003 05:57:37 -0000 Subject: Excluding Hosts from group Service Checks and 3D Status Map Dependency Message-ID: <001901c2b9ff$827a3000$0501a8c0@nmtbmedia> Hi all, I was wondering if there is any way I can exclude a host from a service check but still use the same host group that includes that host. For example, we would have many servers some have common services and some not. Now I want the hostgroup "london" to check for ping, http, ftp, smtp and mysql. However not all of the host group "london" have all of these services on them. Some may have them all though. A typical config would then look like; define service{ use generic-service hostgroup_name london service_description SMTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups noc-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_smtp } Is it possible to have an exclude_hosts directive here so that the app knows not to check smtp on particular servers? E.g. exclude_hosts_from_hostgroup alpha,tango,chilly I suppose I could define loads of different host groups, but does that not defeat the purpose? Also I have a slight problem with the 3d status map. I read the docs yes but there is not that much info there (perhaps I can help there) But I am having problems getting it to display the dependencies. Is this normal issue (Yes I have defined a dependency as one group of servers who are dependant on a firewall being up which is in turn dependant on a gateway being up) Sorry if these have been asked before but SF was not search through the mail list. Thanks in advance Yours AJ P.S. Nagios does rock ------------------------------------------------------- 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 Sun Jan 12 11:55:53 2003 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Sun, 12 Jan 2003 18:55:53 +0800 Subject: problem with nagios Message-ID: <200301121855.59110.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all, I seem to be having a lot of problems with nagios and need some advise on setting me the right path again. Problem 1 : I have enabled freshness checking on my main central server. Whenever services are down, my main central server seems to be doing active checking on those hosts that are supposed to be passive. It is not supposed to do it at all. These host status are supposed to be reported back by distributed monitoring servers. And, I realised that the problem lies in the default check-host-alive which is configured to be check_ping. However, by removing the whole host check_command it means that the host is always assume to be up. Which I dont want that, because I stll want to be able to know if passive hosts are down. So what should I do? Problem 2: [ In reference to Dennis Cannell's post to nagios-users mail on setting Initial state of passive services] How do you schedule passive services to be on 'no-time-periods' to work around the "disabled" indicator in TAC overview? I have configured under each passive services definition in the check_period to be set to 'none' . Is this how you do it? - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+IUm9NgvTa7Hj2AURAi7rAJ9vyS7dbvR97HK6pf6Onm3QYd0fxACgm0FX 9PV1SlOUZ/fPly+D+YgF9nc= =BZdt -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From SJCJonker at SJC.nl Sun Jan 12 16:32:42 2003 From: SJCJonker at SJC.nl (Stijn Jonker) Date: Sun, 12 Jan 2003 16:32:42 +0100 (CET) Subject: Minor issues with nrpe & Nagios Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello, I have recently upgraded to nagios with nrpe from netsaint with nrpep, and i must say it has gotten a lot better, only one annoyance is still present in both programs. The annoyance is the following, when i start or restart either nagios or nrpe while logged in with ssh the session will hang when i try to logout. I believe this is due to the fact that both programs keeps one of stdout, stdin or stderr open when it is daemonizing. The way to fix this is to close the 3 file handles when daemonizing, and to my knowledge it is possible to open them later agian. If this is done then you can cleanly exit from the ssh sessions without doing ~. (the ssh disconnect sequence) to disconnect. I wonder if this is possible to change in both programs. Thanks in advance. - -- Met Vriendelijke groet/Yours Sincerely Stijn Jonker -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+IYqcjU9r45tKnOARAhAbAJwIkwWDTSJf+Hz2Jq4DMUoKKsP8tACffYWA 1Ke5dNvGTak1g+ldpx9LwAg= =v/pM -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jouh8664 at ss1000.ms.mff.cuni.cz Sun Jan 12 18:04:00 2003 From: jouh8664 at ss1000.ms.mff.cuni.cz (Jakub Ouhrabka) Date: Sun, 12 Jan 2003 18:04:00 +0100 (CET) Subject: nagios.log - newbie Message-ID: Hi, I just installed Nagios and got it work. I like it very much. But there is one basic thing I can't get working: logging information into nagios.log for reporting. My nagios.log file contains only messages from startup, eg: [1042389088] Nagios 1.0 starting... (PID=6479) [1042389088] Warning: Contact 'misak' is not a member of any contact groups! That's all. I tried to enable use_syslog=1 in nagios.cfg. Then all messages I expected in nagios.log were in syslog. This is an excerpt: Jan 12 17:15:50 server nagios: SERVICE NOTIFICATION: nagios;zaloha;postgres;CRITICAL;notify-by-epager;PGSQL: CRITICAL - no con nection to kuba (could not connect to server: Connection refused I really would like to have these messages in my nagios.log file and to be able to view notification history etc through web. How can be this done? I must be missing something obvious... I'm using nagios from debian package nagios-text 1.0-4. Thanks, kuba ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jlyons30 at yahoo.com Sun Jan 12 18:52:53 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Sun, 12 Jan 2003 09:52:53 -0800 (PST) Subject: Excluding Hosts from group Service Checks and 3D Status Map Dependency In-Reply-To: <001901c2b9ff$827a3000$0501a8c0@nmtbmedia> References: <001901c2b9ff$827a3000$0501a8c0@nmtbmedia> Message-ID: <20030112175253.54104.qmail@web21504.mail.yahoo.com> For the 3d maps, try using the parents option in you hosts.cfg. http://nagios.square-box.com/nagios/cgi-bin/cmd.cgi?cmd_typ=1 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. AJ McKee wrote:Hi all, I was wondering if there is any way I can exclude a host from a service check but still use the same host group that includes that host. For example, we would have many servers some have common services and some not. Now I want the hostgroup "london" to check for ping, http, ftp, smtp and mysql. However not all of the host group "london" have all of these services on them. Some may have them all though. A typical config would then look like; define service{ use generic-service hostgroup_name london service_description SMTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups noc-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_smtp } Is it possible to have an exclude_hosts directive here so that the app knows not to check smtp on particular servers? E.g. exclude_hosts_from_hostgroup alpha,tango,chilly I suppose I could define loads of different host groups, but does that not defeat the purpose? Also I have a slight problem with the 3d status map. I read the docs yes but there is not that much info there (perhaps I can help there) But I am having problems getting it to display the dependencies. Is this normal issue (Yes I have defined a dependency as one group of servers who are dependant on a firewall being up which is in turn dependant on a gateway being up) Sorry if these have been asked before but SF was not search through the mail list. Thanks in advance Yours AJ P.S. Nagios does rock ------------------------------------------------------- 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 rplewe at ess.nec.de Sun Jan 12 19:48:08 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Sun, 12 Jan 2003 19:48:08 +0100 Subject: Minor issues with nrpe & Nagios In-Reply-To: ; from SJCJonker@SJC.nl on Sun, Jan 12, 2003 at 04:32:42PM +0100 References: Message-ID: <20030112194808.E1517@ess.nec.de> Hello, On Sun, Jan 12, 2003 at 04:32:42PM +0100, Stijn Jonker wrote: > > I have recently upgraded to nagios with nrpe from netsaint with nrpep, and > i must say it has gotten a lot better, only one annoyance is still present > in both programs. The annoyance is the following, when i start or restart > either nagios or nrpe while logged in with ssh the session will hang when > i try to logout. try using the init script for starting, stopping and restarting Nagios. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bjdean at unimelb.edu.au Sun Jan 12 23:45:13 2003 From: bjdean at unimelb.edu.au (Bradley Dean) Date: Mon, 13 Jan 2003 09:45:13 +1100 Subject: nagios.cmd In-Reply-To: ; from ambrose@illuminatedtechnologies.com on Thu, Jan 02, 2003 at 10:39:47AM -0800 References: Message-ID: <20030113094513.H1246@unimelb.edu.au> On Thu, Jan 02, 2003 at 10:39:47AM -0800, Ambrose wrote: > Be sure to restart both the apache and nagios daemons after setting the > correct permissions. > > Also be sure to chmod nagios.nagios /usr/local/nagios/var/rw If the file is not writable nagios will fire off this sort of error. Instead of chmod nagios.nagios /usr/local/nagios/var/rw Ambrose might have meant: chown nagios:nagios /usr/local/nagios/var/rw To set write permissions use: chmod 660 /usr/local/nagios/var/rw or equivalently: chmod u+rw,g=rw,o= /usr/local/nagios/var/rw I've found that this file gets clobbered and recreated with the wrong permissions every now and then (despite umasks) and as I've been too lazy to track it down I have a line like "chmod 660 /usr/local/nagios/var/rw" in my crontab running fairly regularly. (Though this way I'm never likely to know if I've fixed the problem. :) Cheerio, Brad -- Melbourne University ITSAD SDI - Campus Wide Info Systems Group (CWIS) Email: bjdean at unimelb.edu.au Phone: +61-3-83443997 Mobile: +61-413014395 Australian Intervarsity Choral Societies Association - Secretary Email: secretary at aicsa.org.au Web: http://www.aicsa.org.au ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bjdean at unimelb.edu.au Sun Jan 12 23:49:17 2003 From: bjdean at unimelb.edu.au (Bradley Dean) Date: Mon, 13 Jan 2003 09:49:17 +1100 Subject: nagios.cmd In-Reply-To: ; from ambrose@illuminatedtechnologies.com on Thu, Jan 02, 2003 at 10:39:47AM -0800 References: Message-ID: <20030113094917.I1246@unimelb.edu.au> And to follow-up on that last post... In later versions of NAgios (later than at least nagios-1-0b5) it would appear that you can run: make install-mode to fix up your file permissions as well... Cheerio, Brad -- Melbourne University ITSAD SDI - Campus Wide Info Systems Group (CWIS) Email: bjdean at unimelb.edu.au Phone: +61-3-83443997 Mobile: +61-413014395 Australian Intervarsity Choral Societies Association - Secretary Email: secretary at aicsa.org.au Web: http://www.aicsa.org.au ------------------------------------------------------- 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 Jan 13 00:04:52 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 13 Jan 2003 10:04:52 +1100 Subject: Startup with Checks AND DHCP installation In-Reply-To: <5.1.0.14.2.20030111175534.00bcdfe0@pop3.in-motion.net>; from chris@in-motion.net on Sat, Jan 11, 2003 at 06:00:39PM -0500 References: <5.1.0.14.2.20030111175534.00bcdfe0@pop3.in-motion.net> Message-ID: <20030113100446.C89491@IPAustralia.Gov.AU> Dear Sir, I suggest that having only one question per letter makes life easier to search the archives for others with the same question and also avoids the problem here of one having an answer to one qustion but not the other. On Sat, Jan 11, 2003 at 06:00:39PM -0500, Chris Brown wrote: > Good day all. > > I am converting my Netsaint application to Nagios > and trying to expand the monitoring capabilities as well. > > I have 2 questions/problems. > > 1) Inside the nagios.cfg file.... > When I change the 'check external commands = 0' to 1 and restarted > Nagios, > the application wouldn't run.... although it runs fine when set to 0. > Can anybody suggest something? > > 2) The check_dhcp instructions on the FAQ say something about installing > it via suid root. > Can someon explain that detail? > As root, I compiled it and copied it into the libexec... as well > as put it into the templates to be used. > My host says 'could not BIND to dhcp socket'. (DHCP is running on > this physical machine too). DHCP clients broadcast DHCPDISCOVER messages on the DHCP client port. Therefore they need root priviledges to be able to set the SO_BROADCAST socket option (have a look in check_dhcp.c). The only way to do this with a program run by a non-root user (the nagios user) is to make the program suid root ie chown root check_dhcp chmod 4755 check_dhcp This isn't done because this plugin is not part of the standard plugin dist (although it looks like a great plugin, it won't compile under FreeBSD and probably other non Linux platforms). The plugins in /contrib require you to do this sort of thing. If it still raises a BIND error I can't help. 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 tim at mintoskatingclub.com Mon Jan 13 02:28:57 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Sun, 12 Jan 2003 20:28:57 -0500 Subject: NRPE enhancement References: <3E1A15B0.8106.16A4A9E@localhost> Message-ID: <002601c2baa3$24cc4e80$6401a8c0@notebook> To me, one of Nagios' main strengths is its ability to be deployed in many different types of configurations. A central server configuration with one Nagios agent polling information from other servers via NRPE is extremely powerful because of the centralized view the single agent gives via the web interface. Adding parameter support to NRPE would represent a significant step forwards for Nagios because its current implementation prevents central configuration. I believe the security implications raised by Ethan would be adequately addressed by his proposal. Overall in terms of priorities with Nagios, I would rank this fairly high. I would suggest that strong consideration also be given to creating a port of this next version of NRPE to the NT/WIN2K/XP platforms. It seems that NSClient has been orphaned and a single model for remote checking of all servers would ease installation, configuration and on-going maintenance of a Nagios monitoring environment. Plugins would also of course have to follow for these platforms but I believe users would be quick to develop them. While I probably have as many issues with the NT/WIN2K/XP platforms as other users of Nagios I still have to deal with the presence of these platforms in my environment and need to monitor them. What issues would be involved in such a port, are there any real show-stoppers (technical) and has this been discussed in the past? Tim Shouldice ----- Original Message ----- From: Ethan Galstad To: nagios-users Sent: Tuesday, January 07, 2003 12:48 AM Subject: RE: [Nagios-users] NRPE enhancement I've thought about this for a while now and have decided that I will allow arguments to be passed to plugins in future versions of NRPE. I've gotten a lot of requests for this feature and I understand that it makes configuring things on the central server much easier. However, because of the security implications this will have, I will also be doing the following: 1. Incorporate encryption similar to NSCA that gives the NRPE daemon some assurance of a trust level with the client 2. Strip all potentially dangerous shell metacharacters from the arguments before they're passed to the plugin for exection Incorporating crypto into NRPE will affect performance a bit, but it will still probably scale better than check_by_ssh. If the user decides to disable native crypto support (and tunnel traffic through stunnel, etc. instead), the NRPE daemon will refuse to accept arguments for plugins unless the user specifically supplies a --dont- blame-nrpe option to the configure script before compiling. If the daemon gets compiled with this option, it will loudly complain in the logs and elsewhere that is running in an insecure mode. Does this approach sound reasonable to people? On 30 Dec 2002 at 16:43, Carroll, Jim P [Contractor] wrote: > If you have 500 machines, and among those machines there are no two disks > alike, then I can only imagine the grief ahead of you. To take a page out > of www.infrastructures.org, it's desireable to maintain a convergence, not > divergence, among the various systems. Homogeneity is A Good Thing ?. > > Having said that, rather than maintaining 500 config files, why not maintain > a single config file containing all the similar and dissimilar config > particulars? Edit that one file, and either push it out from a trusted host > ("gold server", in Infrastructures.org parlance). Better still, set up an > rsync server (or some other server that you can live with, and set up a cron > job to pull down the latest nrpe.cfg file. (As has been emphasized on their > list, pull, never push. But take your pick. :) > > In our location, I maintain a single nrpe.cfg file, complete with all the > unique disk definitions. I'm not sure if it matters to you, but for the > most part, I've elected to use the percentage option of check_disk. 5% free > on the root partition of an 18GB disk isn't going to be a whole lot > different from 5% free on root of a 36GB disk. Sure, mathematically they're > different, so if exacting differences is critical in your environment, > create unique definitions for the different root partitions. (I'm also > specifying mount points, not device filenames.) On a related note, we have > partitions on our database servers which follow a fairly straightforward > naming scheme for the mount points, and since I don't expect those > partitions to change, I can either exclude them, or I can set a trivial > threshold for each of the warning and critical, but in those cases I specify > kbytes. (I do the latter; this lets anyone with the appropriate permissions > at the web interface view all the defined partitions.) > > [Sidebar: I noticed at one point that there's a limit to the length of the > command token in nrpe.cfg. As a result, I simplified all the names. Lesson > learned: Be economical with the keystrokes.] > > If you like, I can send you the nrpe.cfg file that I install on all our > hosts. > > You might find that instead of one master nrpe.cfg file, that you'd rather > manage a handful of dissimilar files. Might still want to use the > gold/config server, as above. > > Food for thought. > > jc > > > -----Original Message----- > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > Sent: Monday, December 30, 2002 2:43 PM > > To: Carroll, Jim P [Contractor]; 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > Ok, so check_by_ssh doesn't scale well, and nrpe is scalable > > cpu-wise, but > > has problems configuration-wise. (Imagine 500 machines all > > of which have 5 > > disks, and different check_disk arguments for each. That's 2500 > > configuration lines that need to be maintained over 500 > > machines in 500 > > files.) > > > > Perhaps there is room for something more secure than the > > current nrpe, but > > more scalable than check_by_ssh. Does that seem reasonable? > > If so, does > > anyone have suggestions for low cost security implementations > > that could > > enhance the security of nrpe without the cost of ssh? > > > > dave > > > > > > -----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: Monday, December 30, 2002 10:49 AM > > To: 'nagios-users' > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > The general consensus is that check_by_ssh isn't a solution > > which will scale > > well, due to the nature of the number-crunching crypto beast. > > This is where > > NRPE has the advantage. > > > > check_by_ssh has the advantage when it comes to punching > > through a firewall, > > assuming that an appropriate port is open. Sure, you could > > open port 5666 > > for NRPE, but has has been discussed, that doesn't quite > > leave the same warm > > fuzzies. > > > > HTH. > > > > jc > > > > > -----Original Message----- > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > Sent: Monday, December 30, 2002 12:14 PM > > > To: 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > Let me ask a second question that might help me understand > > > more clearly the > > > situation. Check_by_ssh allows for the passing of arbitrary > > > arguments to > > > arbitrary command from the centralized Nagios server to any > > > remote machine > > > which has sshd running. NRPE allows for executing a specific > > > command with > > > specific arguments on any remote machine which has nrpe running. > > > > > > As someone setting up monitoring, when should I use > > > check_by_ssh and when > > > should I use nrpe? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > Dave Viner > > > Sent: Monday, December 30, 2002 9:07 AM > > > To: Tom Welsh; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > I don't think that my enhancement allows an arbitrary command to be > > > executed. I think the code that I wrote will only allow one > > > of the commands > > > already listed in the nrpe.cfg file to be executed. The > > > arguments passed > > > are arbitrary, but not the command. (The code even checks to > > > ensure that the > > > command requested, without any arguments, exists before > > > executing it to > > > prevent malicious usage of arguments.) > > > > > > dave > > > > > > > > > > > > -----Original Message----- > > > From: Tom Welsh [mailto:twelsh at square-box.com] > > > Sent: Saturday, December 28, 2002 5:02 PM > > > To: 'Dave Viner'; 'Ethan Galstad'; 'nagios-users' > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > In my humble opinion an option that allows an arbitary command to be > > > executed and which by "default" is switched off is an > > accident waiting > > > to happen. > > > > > > It only takes 1 security breach via a plugin to completely > > destroy the > > > good name Nagios and its associated plugins have. > > > > > > There is a good truism that states "good news travels fast, > > > but bad news > > > travels even faster" > > > > > > I for one would not be too happy having a command available on my > > > network, trusted or not that would allow commands to be executed > > > remotely pon a box. For one. It's the kind of thing im > > always looking > > > for when im "playing on my " networks. > > > > > > Well that's my two cents worth > > > > > > Cheers > > > > > > 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 Dave > > > Viner > > > Sent: 28 December 2002 21:46 > > > To: Ethan Galstad; nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > These are excellent arguments for not incorporating the > > > enhancement I am > > > suggesting. However, I suspect that there are lots of > > > installations of > > > Nagios and NRPE that run on completely trusted network. (Or > > > the risk of > > > network intrusion through NRPE is worth the benefit of reduced > > > configuration > > > management.) > > > > > > What do you think about incorporating this enhancement but have it > > > turned > > > off by default, and enabled only at configure time? > > > > > > dave > > > > > > > > > -----Original Message----- > > > From: nagios-users-admin at lists.sourceforge.net > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Ethan > > > Galstad > > > Sent: Friday, December 27, 2002 7:38 PM > > > To: nagios-users > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > There are several reasons why I have not added support for arguments > > > to checks in NRPE. Most have been touched on in the past on the > > > list, but I'll reiterate them here. The main issue is not > > overruning > > > the 2K packet that the check_nrpe plugin and NRPE daemon pass back > > > and forth - that can be easily avoided... > > > > > > 1. > > > Users connecting to the NRPE are not authenticated. Sure, you can > > > restrict connection based on IP address using TCP wrappers, but they > > > are still not authenticated. Also, I am not too familiar with IP > > > spoofing, but I'm sure its possible for someone to fake the > > > originating address of the connection and get the NRPE daemon to > > > accept the packet and execute the necessary plugin without too much > > > trouble. > > > > > > 2. > > > Some plugins (like check_dhcp) may (have to) be installed suid root. > > > Regardless of what user the NRPE daemon is running as, these plugins > > > will be executed with higher privs. > > > > > > 3. > > > Plugins can be made to segfault under the right conditions. > > Sure, we > > > can try and eliminate this possibility, but it will probably always > > > exist to some extent since many plugins call system commands to get > > > their data. > > > > > > --- > > > > > > Most remote exploits rely on buffer overflows/segfaults to get their > > > work done, so allowing unauthenticated users to pass arbitrary > > > arguments/data to plugins that might be running suid commands is a > > > very bad idea indeed. > > > > > > Stunnel would provide some security, but there is no guarantee that > > > everyone would use it. There would undoubtably be many people that > > > would put off implementing it until they finished "testing" > > NRPE. In > > > the worst case, they might never get around to implementing stunnel > > > at all. In the likely best case scenario, there is at > > least a window > > > of opportunity. I just don't want to be responsible for > > the possible > > > carnage that happens at that point. :-) > > > > > > Also, incorporating native encryption into NRPE involves reinventing > > > the wheel called "check_by_ssh", so I'm really interested in doing > > > that. > > > > > > > > > > > > On 27 Dec 2002 at 13:46, Carroll, Jim P [Contractor] wrote: > > > > > > > I'm not a C programmer by profession, so I defer your > > query to those > > > who > > > > have a strong background, both in C code and system/network > > > security. > > > It > > > > does presume that every other link in the chain is bulletproof. > > > [Insert > > > > ObRef to Bugtraq here.] > > > > > > > > At any rate, I'm curious to hear why Ethan didn't choose > > > that approach > > > to > > > > begin with. > > > > > > > > jc > > > > > > > > > -----Original Message----- > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > Sent: Friday, December 27, 2002 12:49 PM > > > > > To: Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > This sounds interesting, but I have a question about the > > > > > security implications of this code. I'm not a security > > > > > expert, so please excuse the somewhat basic question. The > > > > > struct packet as defined in common/common.h has an argv > > > > > member which is a character array of length 2048. I believe > > > > > this means that if the incoming packet has an argv member > > > > > whose length is greater than 2048 chars, then the > > > > > rc=recvall(sock,(char > > > > > *)&receive_packet,&bytes_to_recv,socket_timeout); > > > > > should fail, should it not? > > > > > > > > > > However, I think your suggestions regarding stunnel, and > > > > > encryption are good ones, regardless of the inclusion of > > > this code. > > > > > > > > > > thanks > > > > > > > > > > dave > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Carroll, Jim P [Contractor] > > > [mailto:jcarro10 at sprintspectrum.com] > > > > > Sent: Friday, December 27, 2002 10:20 AM > > > > > To: 'Dave Viner'; Nagios-users at lists.sourceforge.net > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > I think it's a good idea, but with the following provisions: > > > > > > > > > > - This should not be enabled by default. > > > > > > > > > > - The configure script, the Makefile and any/all NRPE docs > > > > > should explicitly > > > > > state the security risks in forcing the non-default > > > (added feature) > > > > > behaviour. > > > > > > > > > > - If the daemon is compiled with this option, anytime the > > > > > daemon starts, it > > > > > should briefly mention that it has been compiled for this > > > > > behaviour, and a > > > > > quick remark about the increased risks. (Sent to stderr if > > > > > standalone, else > > > > > sent to syslog if running under (x)inetd). It should scream > > > > > loud and clear > > > > > if it's started under root; preferably it would simply not > > > > > run as root, full > > > > > stop. > > > > > > > > > > - Perhaps a reference to implementing NRPE with stunnel (and > > > > > only permitting > > > > > connections from localhost, as defined in nrpe.cfg) would be > > > > > desireable. > > > > > > > > > > I'm not a security guru, but it seems to me that facilitating > > > > > this feature > > > > > would open oneself up to a buffer overflow attack. If you're > > > > > on a trusted > > > > > network, it's a non-issue. > > > > > > > > > > On a related note, I'd be much more comfy with this feature > > > > > if there were a > > > > > facility to enforce some level of native encryption, such as > > > > > what NSCA uses. > > > > > If you don't have the keys to the house, you get dropped on > > > > > the floor. (I > > > > > have a similar wish for NSClient.) > > > > > > > > > > Food for thought. > > > > > > > > > > jc > > > > > > > > > > > -----Original Message----- > > > > > > From: Dave Viner [mailto:dviner at yahoo-inc.com] > > > > > > Sent: Friday, December 27, 2002 11:48 AM > > > > > > To: Nagios-users at lists.sourceforge.net > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > In order to clarify the idea that I'm proposing, I've made a > > > > > > patch to the nrpe source that implements what I'm describing. > > > > > > This patch is made against the nrpe-1.5.tar.gz from > > > sourceforge. > > > > > > > > > > > > Essentially, these changes allow us to specify in the > > > > > > nrpe.cfg file lines like this: > > > > > > command[check_disk_gen]=/usr/local/libexec/nagios/check_disk > > > > > > > > > > > > Then when invoking check_nrpe, you can invoke it like this: > > > > > > ./check_nrpe 127.0.0.1 -V 2 -c check_disk_gen -a "-w 50000 > > > > > > -c 10000 -p /dev/ad0s1e" > > > > > > > > > > > > And the effect is that /usr/local/libexec/nagios/check_disk > > > > > > is invoked with the -w 50000 -c 10000 -p /dev/ad0s1e as the > > > > > > argument string. For example: > > > > > > > > > > > > ~/nagios/nrpe-1.5.new/src>./check_nrpe 127.0.0.1 -V 2 -c > > > > > > check_disk_gen -a "-w 50000 -c 10000 -p /dev/ad0s1e" > > > > > > DISK OK - [1484108 kB (9%) free on /dev/ad0s1e] > > > > > > ~/nagios/nrpe-1.5.new/src> > > > > > > > > > > > > I think this is really useful and would greatly reduce the > > > > > > size of the nrpe.cfg and, more importantly, would reduce the > > > > > > number of times you'd need to modify that configuration file. > > > > > > Instead the modifications would occur on the centralized > > > > > > Nagios server's configuration file. > > > > > > > > > > > > What does everyone think? Should we add this to the main > > > > > > source for NRPE-1.6? > > > > > > > > > > > > dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Dave Viner > > > > > > Sent: Monday, December 23, 2002 8:51 AM > > > > > > To: Naios Users > > > > > > Subject: RE: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > Hi Rue, > > > > > > Security is a great reason for limiting the commands > > > > > > that NRPE is able to execute. But my suggested enhancement > > > > > > wouldn't allow NRPE to execute any command that isn't listed > > > > > > in the cfg file. That is, the NRPE would still need to find > > > > > > the path to the executable in the nrpe.cfg file, then use any > > > > > > remaining information as arguments passed to the executable. > > > > > > It is true that this is less secure that forcing the entire > > > > > > command line (executable and arguments) in the config file. > > > > > > But, so long as the executables are well authored and handle > > > > > > unexpected arguments well, I think this enhancement would not > > > > > > significantly decrease security. Do you think that > > > > > > specifying arguments would make NRPE significantly > > less secure? > > > > > > > > > > > > > > > > > > Dave > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: nagios-users-admin at lists.sourceforge.net > > > > > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > > > > > Rue Turner > > > > > > Sent: Friday, December 20, 2002 1:33 PM > > > > > > To: Naios Users > > > > > > Subject: Re: [Nagios-users] NRPE enhancement > > > > > > > > > > > > > > > > > > dave, > > > > > > > > > > > > I think the reson for this choice of configuration is > > > > > security. If the > > > > > > nrpe was allowed to run whatever it was asked it would > > > be easy to > > > > > > compromise your machines. This way although your configs are > > > > > > hefty (mine > > > > > > have almost a hundred lines in) you can only ask it to run > > > > > > commands from > > > > > > this library. > > > > > > > > > > > > rue > > > > > > > > > > > > > > > > > > On Fri, 2002-12-20 at 17:35, Dave Viner wrote: > > > > > > > Hi, > > > > > > > I'd like to suggest an enhancement to NRPE, and if > > > > > > people think this is a > > > > > > > good idea, I'll try to make a patch to support my > > > > > > suggestion. Currently the > > > > > > > nrpe.cfg file specifies all the commands in this fashion: > > > > > > > > > > > > > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 > > > > > > 95 /dev/hda1 > > > > > > > As result of this design is that if you want to check > > > > > something like > > > > > > > /dev/hda1 and /dev/hdb1, you need two seperate lines in the > > > > > > nrpe.cfg file. > > > > > > > So, I'd like to propose that we extend NRPE to allow > > > > > > for the arguments to a > > > > > > > command to be specified by the central Nagios server > > > > > > instead of in the > > > > > > > nrpe.cfg. The idea is that the nrpe.cfg would have one > > > > > > command line which > > > > > > > maps a key, 'check_disk', to a local executable, > > > > > > > '/usr/local/nagios/libexec/check_disk'. The rest would be > > > > > > specified from > > > > > > > the central Nagios server in some manner. > > > > > > > I think this would great simplify the nrpe.cfg files, > > > > > > and reduce a lot of > > > > > > > redundant command definitions that differ only in the > > > > > arguments they > > > > > > > require. Also, it would mean that you'd need to update > > > > > > your nrpe.cfg very > > > > > > > rarely. In fact, you'd only need to update it when you add > > > > > > a new plugin. > > > > > > > I don't have a concrete suggestion for implementing > > > > > > this yet, because I > > > > > > > want to see if the community is interested in this idea > > > > > > first. Has this > > > > > > > idea been suggested previously? Is anyone currently > > > > > > interested in the idea > > > > > > > or would I be the only consumer of such a service? > > > > > > > > > > > > > > thanks > > > > > > > dave > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > This SF.NET email is sponsored by: The Best Geek > > > Holiday Gifts! > > > > > > > Time is running out! Thinkgeek.com has the coolest > > gifts for > > > > > > > your favorite geek. Let your fingers do the > > typing. Visit > > > Now. > > > > > > > T H I N K G E E K . C O M > > http://www.thinkgeek.com/sf/ > > > > > > > _______________________________________________ > > > > > > > Nagios-users mailing list > > > > > > > Nagios-users at lists.sourceforge.net > > > > > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > > > > > > > > > > > > r u e t u r n e r > > > > > > ?? t ?? h ?? i ?? n ?? l ?? a ?? y ?? e ?? r ?? > > > > > > > > > > > > -- index, n.: Alphabetical list of words of no possible > > > > > interest where > > > > > > an alphabetical list of subjects with references ought to be. > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.NET email is sponsored by: The Best Geek > > Holiday Gifts! > > > > > > Time is running out! Thinkgeek.com has the coolest gifts for > > > > > > your favorite geek. Let your fingers do the typing. > > > Visit Now. > > > > > > T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ > > > > > > _______________________________________________ > > > > > > 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: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 > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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 > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > 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 > > > > > > > > > > > > > > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > ------------------------------------------------------- > 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 > 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 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 karl at debisschop.net Mon Jan 13 05:15:37 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 12 Jan 2003 23:15:37 -0500 Subject: Sample nrpe.cfg with nrpe-1.7 In-Reply-To: <20030110153251.M96335@4wx.net> References: <3E1E0D74.8080601@tycoint.com.au> <1042174254.3934.2.camel@dev.showkilr.com> <20030110153251.M96335@4wx.net> Message-ID: <1042431337.2037.8.camel@localhost.localdomain> Before going off the deep end, there's no sinister plan. Original only did bytes, percentages were added later. But if we did not do the systax as we did, it would not have been backward compatible. I typically use percent, but it's just a matter of the situation that you are trying to monitor. -- Karl On Fri, 2003-01-10 at 10:32, donavan nelson wrote: > If you make appropriately sized partitions to begin with, using percentages is > perfectly acceptable. I warn at 85% (full) and go critical at 94%. If any of > my 160G partitions gets to 94%, I'd better start looking into the situation...NOW. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Showkilr > To: nagios-users at lists.sourceforge.net > Sent: 09 Jan 2003 22:50:54 -0600 > Subject: Re: [Nagios-users] Sample nrpe.cfg with nrpe-1.7 > > > I would think one would want to set there own thresholds for what there > > monitoring. 20% of a 200gig drive is large compared to 20% of a 9.1 > > gig drive.. > > > > Showkilr > > > > On Thu, 2003-01-09 at 18:01, Jon Kinred wrote: > > > Just so you don't get caught out like i almost did. The sample > > > check_disk lines specify -w 20 -c 10, which checks for the thresholds in > > > kilobytes not percentage, as one would assume. Perhaps it was a sinister > > > mistake so people would read the docs properly? > > > > > > Jon > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > ------- End of Original 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 tdeblend at gcc.dhl.com Mon Jan 13 08:39:01 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Mon, 13 Jan 2003 08:39:01 +0100 Subject: help with nsclient and clustered services References: <96F2907F6F5F494DA70289DE3B15B11F2810FD23@keenx02.keencorp.keen.com> Message-ID: <3E226D15.82BB1C0D@gcc.dhl.com> Or you put it between single quotes... Check_nt -H sqlserver01 -p 1248 -v SERVICESTATE -l 'MSSQL$SQLSERVER01' Tong Young wrote: > > Nevermind. Typo on my part. > > But in case anyone ever wants to query a clustered service you should > precede the $ with a \. > > -----Original Message----- > From: Tong Young [mailto:Tong at keen.com] > Sent: Friday, January 10, 2003 5:29 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] help with nsclient and clustered services > > I have been trying to pass the following argument in Nagios using > NSClient. It works fine at the command line, but does not work within > Nagios. > > Check_nt -H sqlserver01 -p 1248 -v SERVICESTATE -l MSSQL\$SQLSERVER01 > > The registry shows this service as MSSQL$SQLSERVER01 > > I had to put the "\" so the $ would be recognized. I am not sure how to > code this command within the services.cfg file so that the $ sign will > be preserved. > > I have tried using quotations but it still failed. Thanks for any help. > > The checkcommands entry for this is: > > # 'check_nt_service' command definition > define command{ > command_name check_nt_service > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v > SERVICESTATE -d SHOWALL -l $ARG1$ > } > > ------------------------------------------------------- > 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 hrishys at yahoo.co.uk Mon Jan 13 10:01:48 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Mon, 13 Jan 2003 09:01:48 +0000 (GMT) Subject: cpu and memory status In-Reply-To: <3E1C0CA5.FF93B8C@gcc.dhl.com> References: <3E1C0CA5.FF93B8C@gcc.dhl.com> Message-ID: <20030113090148.94727.qmail@web12608.mail.yahoo.com> Hi All How do i see the status of CPU and memory on all machines using nagios.. I would like to see the fwolloing for CPU 1)CPU on the host which are up somthing like psrinfo 2)CPU idle or being used soemthin like vmstat 3)Amount of memory available 4)Amount of memory being used 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jasmine.chua at securecirt.com Mon Jan 13 14:10:30 2003 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Mon, 13 Jan 2003 21:10:30 +0800 Subject: cpu and memory status In-Reply-To: <20030113090148.94727.qmail@web12608.mail.yahoo.com> References: <20030113090148.94727.qmail@web12608.mail.yahoo.com> Message-ID: <200301132110.36374.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi you can try using ./check_procs On Monday 13 January 2003 17:01, hrishy wrote: > Hi All > > How do i see the status of CPU and memory on all > machines using nagios.. > > I would like to see the fwolloing for CPU > > 1)CPU on the host which are up somthing like psrinfo > 2)CPU idle or being used soemthin like vmstat > > 3)Amount of memory available > 4)Amount of memory being used > > 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: > 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 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+IrrLNgvTa7Hj2AURAmlWAJwIddGJ5/LXH0SpAzrJWYLUCNR0VQCfU+7E zdF4/7BnOrIZeUxxC9xFSiA= =J2YQ -----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 From justin at pvamu.edu Mon Jan 13 14:47:19 2003 From: justin at pvamu.edu (Justin) Date: Mon, 13 Jan 2003 07:47:19 -0600 Subject: Same status Message-ID: <021d01c2bb0a$6ca47720$0e38cf81@fucko> I basically have my services file set up like this define service{ use generic-service ; Name of service template to use host_name mail service_description PING is_volatile 0 check_period 24x7 contact_groups mail-servers notification_options w,u,c,r check_command check_ping } I have the same set up for check_users, check_disk, etc. Well my problem is, I get the stats, but all the stats for the services are the same. After further inspection I learned that all host where returning the stats for the server nagios is actually running on. I have read the manual and I seem to be doing everything correctly. I am assuming the check_* commands are being run, but as it it were checking that machine, and not looking out to the machines I want to monitor. I do doing the config as the Documentation has instructed. Any information would be helpfull. Thanks Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Mon Jan 13 14:51:35 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 13 Jan 2003 08:51:35 -0500 Subject: Setting Up Parent and Child Hosts Message-ID: <5593DA408212D511B0910002A513501F01D28899@phsexch20.mgh.harvard.edu> Hi there, What is the methodology for setting up parent and child hosts on the status maps? Thanks. ------------------------------------------------------- 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 From chris.stankaitis at datawire.net Mon Jan 13 15:02:21 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Mon, 13 Jan 2003 09:02:21 -0500 Subject: Same status In-Reply-To: <00fa01c2b908$e2cb33c0$0e38cf81@fucko> References: <00fa01c2b908$e2cb33c0$0e38cf81@fucko> Message-ID: <3E22C6ED.9040107@datawire.net> This is an active vs. passive check thing... An Active check is one that is started on the nagios server.... some of these can handle remote hosts, ping, ssh, smtp, pop, http, time etc... those you can run from nagios and everything will be happy for all your different hosts. Things like current user, load, disk space, processes, can't be run from the nagios server with regards to collecting this information from remote hosts by default. to do this you need to set up passive checks, and somehow get the information from the client to the host (nagios server) this can be acomplished by mutiple ways... 1) NRPE - open connection runs on each clent, nagios connects to the port and gets the info you want 2) NSCA - open connection runs on NAGIOS server and clients send information to the nagios server encrypted 3) check_by_ssh using the SSH's ability to execute commands to run commands on the client and pulls back results *** Personal View Disclaimer*** After setting this all up I personally thing option 2 the NSCA is the superior option though it's a little tricky to get everything working, Check_by_ssh is good and easy if your not monitoring a lot of hosts and a lot of servers, if your running a lot checks on a lot of hosts you'll get your syslog spammed by nagios checks unless you turn down the logging which is NOT a good idea, NRPE is a good choice and from what I see on the list the most popular but I don't want to have any un-necessary ports open on my clients so I decided against this.. NRPE is a pull in that each client has to have a daemon up and nagios connects to that and gets the info. NSCA is pushed from the clients and uses the mcrypt libs to provide a bunch of encryption choice including blowfish and 2fish... it requires only a daemon on the nagios server. for my needs this was the best choice.. Justin wrote: > I basically have my services file set up like this > > define service{ > use generic-service ; Name of service template to use > host_name mail > service_description PING > is_volatile 0 > check_period 24x7 > contact_groups mail-servers > notification_options w,u,c,r > check_command check_ping > } > > I have the same set up for check_users, check_disk, etc. Well my > problem is, I get the stats, but all the stats for the services are the > same. After further inspection I learned that all host where returning > the stats for the server nagios is actually running on. I have read the > manual and I seem to be doing everything correctly. I am assuming the > check_* commands are being run, but as it it were checking that machine, > and not looking out to the machines I want to monitor. Any information > would be helpfull. Thanks > > Justin Wedeking > Info Tech -- Chris Stankaitis Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- 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 From chris.stankaitis at datawire.net Mon Jan 13 15:08:24 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Mon, 13 Jan 2003 09:08:24 -0500 Subject: problem with nagios In-Reply-To: <200301121855.59110.jasmine.chua@securecirt.com> References: <200301121855.59110.jasmine.chua@securecirt.com> Message-ID: <3E22C858.5000500@datawire.net> What you want to do is write a little 3 line shell script... I call my "notfresh.sh" and then set up a command to run that shell script when your freshness check happen... it's pretty much right in the Nagios Docs, I have mine go into an unknown state rather then a crit... #!/bin/sh echo "UNKNOWN: Have not received an update from server in quite some time!" exit 3 What will happen is when it does a fresh check it will run the above script and put the service into an UNKNOWN state, you can change the state to whatever you want from the exit code. - Chris Jasmine Chua wrote: > Hi all, I seem to be having a lot of problems with nagios and need some advise > on setting me the right path again. > > Problem 1 : > > I have enabled freshness checking on my main central server. > Whenever services are down, my main central server seems to be doing active > checking on those hosts that are supposed to be passive. It is not supposed > to do it at all. These host status are supposed to be reported back by > distributed monitoring servers. And, I realised that the problem lies in the > default check-host-alive which is configured to be check_ping. However, by > removing the whole host check_command it means that the host is always assume > to be up. Which I dont want that, because I stll want to be able to know if > passive hosts are down. So what should I do? > > Problem 2: [ In reference to Dennis Cannell's post to nagios-users mail on > setting Initial state of passive services] > > How do you schedule passive services to be on 'no-time-periods' to work around > the "disabled" indicator in TAC overview? I have configured under each > passive services definition in the check_period to be set to 'none' > . Is this how you do it? > > ------------------------------------------------------- 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 -- Chris Stankaitis Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- 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 From mmcclure at pneservices.com Mon Jan 13 15:34:20 2003 From: mmcclure at pneservices.com (Mike McClure) Date: Mon, 13 Jan 2003 08:34:20 -0600 (CST) Subject: Setting Up Parent and Child Hosts In-Reply-To: <5593DA408212D511B0910002A513501F01D28899@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D28899@phsexch20.mgh.harvard.edu> Message-ID: <4371.192.168.1.9.1042468460.squirrel@xyzzy.homeip.net> define host { host_name foo parents bar } > Hi there, > > What is the methodology for setting up parent and child hosts on the status > maps? Thanks. > -- 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: 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 From donavan at 4wx.net Mon Jan 13 16:32:30 2003 From: donavan at 4wx.net (donavan nelson) Date: Mon, 13 Jan 2003 09:32:30 -0600 Subject: Minor issues with nrpe & Nagios In-Reply-To: References: Message-ID: <20030113153230.M17883@4wx.net> I second this request. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Stijn Jonker To: nagios-users at lists.sourceforge.net Sent: Sun, 12 Jan 2003 16:32:42 +0100 (CET) Subject: [Nagios-users] Minor issues with nrpe & Nagios > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello, > > I have recently upgraded to nagios with nrpe from netsaint with > nrpep, and i must say it has gotten a lot better, only one annoyance > is still present in both programs. The annoyance is the following, > when i start or restart either nagios or nrpe while logged in with > ssh the session will hang when i try to logout. > > I believe this is due to the fact that both programs keeps one of > stdout, stdin or stderr open when it is daemonizing. The way to fix > this is to close the 3 file handles when daemonizing, and to my > knowledge it is possible to open them later agian. > > If this is done then you can cleanly exit from the ssh sessions > without doing ~. (the ssh disconnect sequence) to > disconnect. I wonder if this is possible to change in both programs. > > Thanks in advance. > > - -- > Met Vriendelijke groet/Yours Sincerely > Stijn Jonker > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE+IYqcjU9r45tKnOARAhAbAJwIkwWDTSJf+Hz2Jq4DMUoKKsP8tACffYWA > 1Ke5dNvGTak1g+ldpx9LwAg= > =v/pM > -----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 ------- End of Original Message ------- ------------------------------------------------------- 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 From donavan at 4wx.net Mon Jan 13 16:34:44 2003 From: donavan at 4wx.net (donavan nelson) Date: Mon, 13 Jan 2003 09:34:44 -0600 Subject: Minor issues with nrpe & Nagios In-Reply-To: <20030112194808.E1517@ess.nec.de> References: <20030112194808.E1517@ess.nec.de> Message-ID: <20030113153444.M28753@4wx.net> I always use the init scripts and still have this problem. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Rasmus Plewe To: Nagios users list Sent: Sun, 12 Jan 2003 19:48:08 +0100 Subject: Re: [Nagios-users] Minor issues with nrpe & Nagios > Hello, > > On Sun, Jan 12, 2003 at 04:32:42PM +0100, Stijn Jonker wrote: > > > > I have recently upgraded to nagios with nrpe from netsaint with nrpep, and > > i must say it has gotten a lot better, only one annoyance is still present > > in both programs. The annoyance is the following, when i start or restart > > either nagios or nrpe while logged in with ssh the session will hang when > > i try to logout. > > try using the init script for starting, stopping and restarting > Nagios. > > 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 ------- End of Original Message ------- ------------------------------------------------------- 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 From jgking at packetstorm.org Mon Jan 13 16:50:30 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 13 Jan 2003 09:50:30 -0600 (CST) Subject: check-ssh bug causes core Message-ID: Just fyi that when i issued the following the program cores. It may be the same with others in the libexec area for Nagios [nagiosdude at portal libexec]# ./check_by_ssh -v Segmentation fault DIdnt see a email for submitting just bugs so I am using the list to let ya know. But i needed to subscribe anyhoo :) Im working on making a postnuke block that yank the status information. ------------------------------------------------------- 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 From jgking at packetstorm.org Mon Jan 13 16:54:08 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 13 Jan 2003 09:54:08 -0600 (CST) Subject: some important info in my prev post i forgot Message-ID: gah i hate it when i get interrupted at work, i go all tangenty. The issue i reported occured on: RedHat Linux 8 with all the latest rpm patches The install isnt a stoc RH install though. Its a custom load i made using Kickstart so i dunno if that could be a factor ------------------------------------------------------- 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 From russell at quadrix.com Mon Jan 13 17:03:08 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 13 Jan 2003 11:03:08 -0500 Subject: nagios.cmd References: <20030113094917.I1246@unimelb.edu.au> Message-ID: <3E22E33C.4000701@quadrix.com> It's actually make install-commandmode (not make install-mode) I also called it the wrong thing previously. Russell Bradley Dean wrote: >And to follow-up on that last post... > >In later versions of NAgios (later than at least nagios-1-0b5) it would >appear that you can run: > >make install-mode > >to fix up your file permissions as well... > >Cheerio, > > Brad > -- 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 From slebrun at muskoka.com Mon Jan 13 17:40:42 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Mon, 13 Jan 2003 11:40:42 -0500 Subject: use alias instead of host_name in status map? Message-ID: Folks, I've probably just missed it, but is there any way to convince the status map that it should use the pretty alias instead of the short'n'ugly host_name when it's rendering? Thanks! Shayne Lebrun IT Manager and Sysadmin 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: 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 From jcarro10 at sprintspectrum.com Mon Jan 13 17:09:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 13 Jan 2003 10:09:03 -0600 Subject: nagios.cmd Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12A5@PKDWB03C.ad.sprint.com> The proper approach to this is: 1) create the group 'nagiocmd' (note that it's not 'nagioscmd') 2) add nagios to the group nagiocmd 3) add your webserver to the group nagiocmd 4) "chown nagios.nagiocmd /usr/local/nagios/var" 5) "chmod 2770 /usr/local/nagios/var" 6) restart nagios You'll never have to manually set the permissions of rw again. :) jc > -----Original Message----- > From: Bradley Dean [mailto:bjdean at unimelb.edu.au] > Sent: Sunday, January 12, 2003 4:45 PM > To: nagios > Subject: Re: [Nagios-users] nagios.cmd > > > On Thu, Jan 02, 2003 at 10:39:47AM -0800, Ambrose wrote: > > Be sure to restart both the apache and nagios daemons after > setting the > > correct permissions. > > > > Also be sure to chmod nagios.nagios /usr/local/nagios/var/rw > > If the file is not writable nagios will fire off this sort of error. > > Instead of chmod nagios.nagios /usr/local/nagios/var/rw > Ambrose might have > meant: chown nagios:nagios /usr/local/nagios/var/rw > > To set write permissions use: > > chmod 660 /usr/local/nagios/var/rw > or equivalently: > chmod u+rw,g=rw,o= /usr/local/nagios/var/rw > > I've found that this file gets clobbered and recreated with the wrong > permissions every now and then (despite umasks) and as I've > been too lazy > to track it down I have a line like "chmod 660 > /usr/local/nagios/var/rw" in > my crontab running fairly regularly. (Though this way I'm > never likely to > know if I've fixed the problem. :) > > Cheerio, > > Brad > > -- > Melbourne University ITSAD SDI - Campus Wide Info Systems Group (CWIS) > Email: bjdean at unimelb.edu.au Phone: +61-3-83443997 Mobile: > +61-413014395 > > Australian Intervarsity Choral Societies Association - Secretary > Email: secretary at aicsa.org.au Web: http://www.aicsa.org.au > > > ------------------------------------------------------- > 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: 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 From jsm at inpro.net Mon Jan 13 17:56:10 2003 From: jsm at inpro.net (Jeff McKeon) Date: 13 Jan 2003 11:56:10 -0500 Subject: statusmap and trends Message-ID: <1042476975.9187.11.camel@rh80-jsm.telaurus.net> I've just gotten statusmap and trends.cgi working, sort of. Both web pages come up but neither produces an image correctly. The image map is there and if I move the mouse around on it I get the popups but the map graphic itself isn't there. I just see the default icon you get when an image is missing on a web page. here is the httpd. error log [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] Premature end of script headers: statusmap.cgi, referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] /usr/local/nagios/sbin/statusmap.cgi: relocation error: /usr/local/nagios/sbin/statusmap.cgi: undefined symbol: gdImagePng, referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all thanks, Jeff ------------------------------------------------------- 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 From twelsh at square-box.com Mon Jan 13 18:13:00 2003 From: twelsh at square-box.com (Tom Welsh) Date: Mon, 13 Jan 2003 17:13:00 -0000 Subject: statusmap and trends In-Reply-To: <1042476975.9187.11.camel@rh80-jsm.telaurus.net> References: <1042476975.9187.11.camel@rh80-jsm.telaurus.net> Message-ID: <000701c2bb27$06839300$0400a8c0@squarebox.com> Do you have libgd installed and libpng? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jeff McKeon Sent: 13 January 2003 16:56 To: Nagios List Subject: [Nagios-users] statusmap and trends I've just gotten statusmap and trends.cgi working, sort of. Both web pages come up but neither produces an image correctly. The image map is there and if I move the mouse around on it I get the popups but the map graphic itself isn't there. I just see the default icon you get when an image is missing on a web page. here is the httpd. error log [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] Premature end of script headers: statusmap.cgi, referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] /usr/local/nagios/sbin/statusmap.cgi: relocation error: /usr/local/nagios/sbin/statusmap.cgi: undefined symbol: gdImagePng, referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all thanks, Jeff ------------------------------------------------------- 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 ------------------------------------------------------- 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 From rabramson_98 at yahoo.com Mon Jan 13 18:08:11 2003 From: rabramson_98 at yahoo.com (Ronen Abramson) Date: Mon, 13 Jan 2003 09:08:11 -0800 (PST) Subject: Install Message-ID: <20030113170811.1831.qmail@web12307.mail.yahoo.com> A friend of mine told me about Nagios for monitoring server. I was just wondering in there a way to install the software on Windows NT or Windows 2000. Thank You __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.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 From SJCJonker at SJC.nl Mon Jan 13 18:16:24 2003 From: SJCJonker at SJC.nl (Stijn Jonker) Date: Mon, 13 Jan 2003 18:16:24 +0100 (CET) Subject: Minor issues with nrpe & Nagios In-Reply-To: <20030113153444.M28753@4wx.net> References: <20030113153444.M28753@4wx.net> Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Sorry for missing the initial email, But i always use the init scripts for nagios & nrpe, that doesn't matter. fyi, I had the same issue with mailscanner, and when i raised the question on the mailinglist there it was indeed an issue a lot of users learned to live with, but it's fixable, so why shouldn't it been fixed, at least that's how julian field of MS thought of it. On Mon, 13 Jan 2003, donavan nelson wrote: > I always use the init scripts and still have this problem. > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Rasmus Plewe > To: Nagios users list > Sent: Sun, 12 Jan 2003 19:48:08 +0100 > Subject: Re: [Nagios-users] Minor issues with nrpe & Nagios > > > Hello, > > > > On Sun, Jan 12, 2003 at 04:32:42PM +0100, Stijn Jonker wrote: > > > > > > I have recently upgraded to nagios with nrpe from netsaint with nrpep, and > > > i must say it has gotten a lot better, only one annoyance is still present > > > in both programs. The annoyance is the following, when i start or restart > > > either nagios or nrpe while logged in with ssh the session will hang when > > > i try to logout. > > > > try using the init script for starting, stopping and restarting > > Nagios. > > > > 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 > ------- End of Original Message ------- > > > > ------------------------------------------------------- > 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 > - -- Met Vriendelijke groet/Yours Sincerely Stijn Jonker -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+IvRqjU9r45tKnOARAnX6AJ9OfOZOqIE2mtmDOfbKnK+xIZvzMACg3EWR MG3FaUxfuqtk3XSjGF5UhLE= =lndo -----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 From GPotter at MarathonOil.com Mon Jan 13 18:23:28 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 11:23:28 -0600 Subject: statusmap and trends Message-ID: Is your LD_LIBRARY_PATH variable set in the httpd.conf file? Mine looks like this: SetENV LD_LIBRARY_PATH /usr/local/lib Greg > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Monday, January 13, 2003 10:56 AM > To: Nagios List > Subject: [Nagios-users] statusmap and trends > > > I've just gotten statusmap and trends.cgi working, sort of. > > Both web pages come up but neither produces an image correctly. The > image map is there and if I move the mouse around on it I get > the popups > but the map graphic itself isn't there. I just see the > default icon you > get when an image is missing on a web page. > > here is the httpd. error log > > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] Premature end of > script headers: statusmap.cgi, referer: > http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] > /usr/local/nagios/sbin/statusmap.cgi: relocation error: > /usr/local/nagios/sbin/statusmap.cgi: undefined symbol: gdImagePng, > referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > > thanks, > > Jeff > > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From jsm at inpro.net Mon Jan 13 19:10:00 2003 From: jsm at inpro.net (Jeff McKeon) Date: 13 Jan 2003 13:10:00 -0500 Subject: statusmap and trends In-Reply-To: References: Message-ID: <1042481405.8229.54.camel@rh80-jsm.telaurus.net> Greg, You may be on to something there... I don't see anything like that in the httpd.conf file. what section should it be in? On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > Mine looks like this: > > SetENV LD_LIBRARY_PATH /usr/local/lib > > Greg > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Monday, January 13, 2003 10:56 AM > > To: Nagios List > > Subject: [Nagios-users] statusmap and trends > > > > > > I've just gotten statusmap and trends.cgi working, sort of. > > > > Both web pages come up but neither produces an image correctly. The > > image map is there and if I move the mouse around on it I get > > the popups > > but the map graphic itself isn't there. I just see the > > default icon you > > get when an image is missing on a web page. > > > > here is the httpd. error log > > > > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] Premature end of > > script headers: statusmap.cgi, referer: > > http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] > > /usr/local/nagios/sbin/statusmap.cgi: relocation error: > > /usr/local/nagios/sbin/statusmap.cgi: undefined symbol: gdImagePng, > > referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > > > > thanks, > > > > Jeff > > > > > > > > > > > > ------------------------------------------------------- > > 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 > > ------------------------------------------------------- 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 From russell at quadrix.com Mon Jan 13 18:54:04 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 13 Jan 2003 12:54:04 -0500 Subject: Install References: <20030113170811.1831.qmail@web12307.mail.yahoo.com> Message-ID: <3E22FD3C.7090809@quadrix.com> From what I know, there is currently no way of installing Nagios on a Windows machine. It has not been ported to Windows, and I believe there are no plans to. However, if you have a non-Windows box you can run Nagios on (Linux, Solaris, BSD, etc), you can still monitor Windows machines through NSClient. It's a daemon that runs on a Windows box and there's plugin called check_nt that is called from your monitoring servet to talk to it and get status information. Russell Scibetti Ronen Abramson wrote: >A friend of mine told me about Nagios for monitoring >server. I was just wondering in there a way to >install the software on Windows NT or Windows 2000. > >Thank You > >__________________________________________________ >Do you Yahoo!? >Yahoo! Mail Plus - Powerful. Affordable. Sign up now. >http://mailplus.yahoo.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 > > -- 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 From jsm at inpro.net Mon Jan 13 19:13:12 2003 From: jsm at inpro.net (Jeff McKeon) Date: 13 Jan 2003 13:13:12 -0500 Subject: statusmap and trends In-Reply-To: <000701c2bb27$06839300$0400a8c0@squarebox.com> References: <000701c2bb27$06839300$0400a8c0@squarebox.com> Message-ID: <1042481598.8229.60.camel@rh80-jsm.telaurus.net> I'm pretty sure I do.... root at rh80-jsm sbin]# ldd statusmap.cgi libgd.so.2 => /usr/lib/libgd.so.2 (0x40020000) libz.so.1 => /usr/lib/libz.so.1 (0x40053000) libm.so.6 => /lib/i686/libm.so.6 (0x40061000) libpng12.so.0 => /usr/lib/libpng12.so.0 (0x40083000) libjpeg.so.62 => /usr/lib/libjpeg.so.62 (0x400a6000) libc.so.6 => /lib/i686/libc.so.6 (0x42000000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000) [root at rh80-jsm sbin]# [root at rh80-jsm sbin]# rpm -qa | grep gd- gd-devel-1.8.4-9 gd-1.8.4-9 sysklogd-1.4.1-10 [root at rh80-jsm sbin]# rpm -qa | grep png libpng10-1.0.13-5 libpng-1.2.2-8 libpng-devel-1.2.2-8 [root at rh80-jsm sbin]# On Mon, 2003-01-13 at 12:13, Tom Welsh wrote: > Do you have libgd installed and libpng? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Jeff > McKeon > Sent: 13 January 2003 16:56 > To: Nagios List > Subject: [Nagios-users] statusmap and trends > > I've just gotten statusmap and trends.cgi working, sort of. > > Both web pages come up but neither produces an image correctly. The > image map is there and if I move the mouse around on it I get the popups > but the map graphic itself isn't there. I just see the default icon you > get when an image is missing on a web page. > > here is the httpd. error log > > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] Premature end of > script headers: statusmap.cgi, referer: > http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > [Mon Jan 13 11:55:14 2003] [error] [client 127.0.0.1] > /usr/local/nagios/sbin/statusmap.cgi: relocation error: > /usr/local/nagios/sbin/statusmap.cgi: undefined symbol: gdImagePng, > referer: http://localhost/nagios/cgi-bin/statusmap.cgi?host=all > > thanks, > > Jeff > > > > > > ------------------------------------------------------- > 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 > > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 From GPotter at MarathonOil.com Mon Jan 13 19:06:18 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 12:06:18 -0600 Subject: statusmap and trends Message-ID: Mine is on the last line of the file. I don't think it matters though. Greg > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Monday, January 13, 2003 12:10 PM > To: Potter, G M (Greg) > Cc: Nagios List > Subject: RE: [Nagios-users] statusmap and trends > > > Greg, > > You may be on to something there... I don't see anything like that in > the httpd.conf file. what section should it be in? > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > Mine looks like this: > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > Greg > ------------------------------------------------------- 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 From jsm at inpro.net Mon Jan 13 19:18:30 2003 From: jsm at inpro.net (Jeff McKeon) Date: 13 Jan 2003 13:18:30 -0500 Subject: statusmap and trends In-Reply-To: References: Message-ID: <1042481916.9187.68.camel@rh80-jsm.telaurus.net> That did it!!! Thanks Greg. The next question I have is what did I do wrong during the install to cause that line to not be there? Did I miss something in the install instructions? Jeff On Mon, 2003-01-13 at 13:06, Potter, G M (Greg) wrote: > Mine is on the last line of the file. I don't think it matters though. > > Greg > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Monday, January 13, 2003 12:10 PM > > To: Potter, G M (Greg) > > Cc: Nagios List > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > Greg, > > > > You may be on to something there... I don't see anything like that in > > the httpd.conf file. what section should it be in? > > > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > > > Mine looks like this: > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > Greg > > ------------------------------------------------------- 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 From brampling at methanex.com Mon Jan 13 19:20:56 2003 From: brampling at methanex.com (Blair Rampling) Date: Mon, 13 Jan 2003 10:20:56 -0800 Subject: SUMMARY: Still having check_by_ssh problems Message-ID: The problem with check_by_ssh not passing exit codes was not caused by the plugin itself. The version of SSH included with Solaris 9 (Sun SSH 1.0) has a bug where exit codes are either passed as 0 or 255. By removing the stock Solaris 9 SSH and adding OpenSSH 3.5v1 it works properly. OpenSSH 3.4 is also verified to work properly. - -- Blair Rampling >>> "Blair Rampling" 01/06/03 12:46pm >>> It seems check_by_ssh isn't passing the exit codes. Remote: bash-2.05$ /usr/local/nagios/libexec/check_by_ssh -f -l sysadmin -H vanapps3 -C '~/plugins/check_psproc.pl fin84prd 48' CRITICAL Incorrect number of processes ( 63) bash-2.05$ echo $? 0 bash-2.05$ Local: bash-2.03$ plugins/check_psproc.pl fin84prd 48 CRITICAL Incorrect number of processes ( 63) bash-2.03$ echo $? 2 - -- Blair Rampling >>> 01/06/03 08:07am >>> This is what I get when I execute from the Nagios host as nagios user a remote check_disk: $ ./libexec13b2/check_by_ssh -H w.x.y.z -l nagios -i /usr/local/nagios/.ssh/id_rsa -C /usr/local/nagios/libexec/check_disk -w 80% -c 70% -m -p /export/home DISK CRITICAL - [10421765 kB (64%) free on /export/home] $ echo $? 2 What is the result when you call your checks as nagios user from your nagios host from the command line? Can you send an example? -vol > -----Original Message----- > From: Blair Rampling [mailto:brampling at methanex.com] > Sent: Friday, January 03, 2003 10:40 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Still having check_by_ssh problems > > > I am still having the problem described below. The plugin is > returining an exit code of 2 when it is run locally, but > check_by_ssh is returning an exit code of 0. Does nobody else > have this problem? Perhaps I am overlooking something obvious. > > > I have a number of things monitored by check_by_ssh. Even > when the remote plugin exits with an error code other than 0, > nagios shows OK leading me to believe that check_by_ssh is > returning error code 0 regardless. I am using 1.3 beta 2 of > the plugins and nagios 1.0. Why is this happening and how do > I fix it? Thanks. > > Here are two examples of checks that are returning OK when > they shouldn't: > > # 'check_remote_mem' command definition > define command{ > command_name check_remote_mem > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_mem.pl -u -w $ARG1$ -c $ARG2$" > } > > # 'check_remote_ps_proc' command definition > define command{ > command_name check_remote_ps_proc > command_line $USER1$/check_by_ssh -f -l sysadmin > -H $HOSTADDRESS$ -C "~/plugins/check_psproc.pl $ARG1$ $ARG2$" > } > > > - -- > Blair Rampling > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- 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 From GPotter at MarathonOil.com Mon Jan 13 19:19:46 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 12:19:46 -0600 Subject: statusmap and trends Message-ID: I've never seen anything about it in any instructions. I had the same problem with a different application and found that I could not affect the environment by setting variables when I started Apache. In digging through the documentation I found this setting. Greg > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Monday, January 13, 2003 12:19 PM > To: Potter, G M (Greg) > Cc: Nagios List > Subject: RE: [Nagios-users] statusmap and trends > > > That did it!!! Thanks Greg. > > The next question I have is what did I do wrong during the install to > cause that line to not be there? Did I miss something in the install > instructions? > > Jeff > > On Mon, 2003-01-13 at 13:06, Potter, G M (Greg) wrote: > > Mine is on the last line of the file. I don't think it > matters though. > > > > Greg > > > > > -----Original Message----- > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > Sent: Monday, January 13, 2003 12:10 PM > > > To: Potter, G M (Greg) > > > Cc: Nagios List > > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > > > > Greg, > > > > > > You may be on to something there... I don't see anything > like that in > > > the httpd.conf file. what section should it be in? > > > > > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > > > > > Mine looks like this: > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > Greg > > > > > > ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Mon Jan 13 18:50:16 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 13 Jan 2003 11:50:16 -0600 Subject: Install Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12AC@PKDWB03C.ad.sprint.com> Not the main monitoring piece, but there is a way to install a monitoring client, called NSClient: http://nsclient.ready2run.nl kc > -----Original Message----- > From: Ronen Abramson [mailto:rabramson_98 at yahoo.com] > Sent: Monday, January 13, 2003 11:08 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Install > > > A friend of mine told me about Nagios for monitoring > server. I was just wondering in there a way to > install the software on Windows NT or Windows 2000. > > Thank You > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.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 > ------------------------------------------------------- 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 From naman.latif at inamed.com Mon Jan 13 19:35:48 2003 From: naman.latif at inamed.com (Naman Latif) Date: Mon, 13 Jan 2003 10:35:48 -0800 Subject: NAGIOS on SunFire Message-ID: <1EB353E9CD23AA4EA92AC21C8681C05A01316750@delta.inamed.com> Hi, I am planning to install NAGIOS on one of our new SunFires V100. I am trying to decide about the OS 1. Should I install it on the existing OS (Solaris 8) ? 2. Should I install Linux (for Ultra-SPARC processor) ? If yes, then which flavor of Linux I should choose from ? Are there any advantages between using any of the above-mentioned paths ? The SunFire would only be used for NAGIOS and MRTG applications. Regards \\ Naman ------------------------------------------------------- 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 From p.miquet at hafiba.fr Mon Jan 13 19:39:55 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 13 Jan 2003 19:39:55 +0100 Subject: Install In-Reply-To: <20030113170811.1831.qmail@web12307.mail.yahoo.com> References: <20030113170811.1831.qmail@web12307.mail.yahoo.com> Message-ID: <1042483195.4903.42.camel@moishe> You may run third party software like VMWare to run Linux on your Windows system, and there be able to run nagios on your favorite linux box under VMWare. Regards Le lun 13/01/2003 ? 18:08, Ronen Abramson a ?crit : > A friend of mine told me about Nagios for monitoring > server. I was just wondering in there a way to > install the software on Windows NT or Windows 2000. > > Thank You > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.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 ------------------------------------------------------- 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 From p.miquet at hafiba.fr Mon Jan 13 19:47:33 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 13 Jan 2003 19:47:33 +0100 Subject: Executing custom/misc commands problem In-Reply-To: References: Message-ID: <1042483654.11538.44.camel@moishe> I would suggest to check if the execution of the nagios user is allowed. Also take a look if the nfs file is exported ? Regards P.Miquet Le sam 11/01/2003 ? 19:48, Jamin a ?crit : > Hello fellow nagios users, > I'm trying to integrate nagios into our paging and problem > management software right now but am having problems getting nagios to > execute the perl script that initiates the pages and tickets. > > In the etc/misccommands.cfg file I am trying to do something similar to > the notify-by-epager command but instead of using printf and mail, I am > trying to execute the command which contacts the problem management > software. > > Here is a simplified command where the 'hello' part is actually the second > argument which describes the problem. > > # Test 'host-notify-by-CIRTpager' command definition > define command{ > command_name host-notify-by-CIRTpager > command_line /nfs/e1/oper/PAGER/scauto/linuxevprob.pl HostDown hello > } > > I added some lines in the perl file which appends the 2nd argument to a > file in /tmp, just so I know if the file is being executed, but > apparently, it is never executed by nagios because the file is empty. > > The permissions on the file are good, and it executes normally when done > by hand. It just seems to not work in nagios. I checked the notification > history, and nagios seems to think it was executed, but there is never > anything in the /tmp file when nagios tries to run the command. > > Anyone have any suggestions? I would appreciate any help. > Thanks, > -Jamin Ragle > SA for CIRT > ______________________________________________________________________ > Multi-Slacking - "I can only do one thing at a time, but I can avoid > doing many things simultaneously." -- Unknown > ______________________________________________________________________ > > > > ------------------------------------------------------- > 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: 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 From slebrun at muskoka.com Mon Jan 13 19:53:40 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Mon, 13 Jan 2003 13:53:40 -0500 Subject: statusmap and trends In-Reply-To: References: Message-ID: What does your /etc/ld.so.conf file look like? -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Potter, G M (Greg) Sent: Monday, January 13, 2003 1:20 PM To: Jeff McKeon Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] statusmap and trends I've never seen anything about it in any instructions. I had the same problem with a different application and found that I could not affect the environment by setting variables when I started Apache. In digging through the documentation I found this setting. Greg > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Monday, January 13, 2003 12:19 PM > To: Potter, G M (Greg) > Cc: Nagios List > Subject: RE: [Nagios-users] statusmap and trends > > > That did it!!! Thanks Greg. > > The next question I have is what did I do wrong during the install to > cause that line to not be there? Did I miss something in the install > instructions? > > Jeff > > On Mon, 2003-01-13 at 13:06, Potter, G M (Greg) wrote: > > Mine is on the last line of the file. I don't think it > matters though. > > > > Greg > > > > > -----Original Message----- > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > Sent: Monday, January 13, 2003 12:10 PM > > > To: Potter, G M (Greg) > > > Cc: Nagios List > > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > > > > Greg, > > > > > > You may be on to something there... I don't see anything > like that in > > > the httpd.conf file. what section should it be in? > > > > > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > > > > > Mine looks like this: > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > Greg > > > > > > ------------------------------------------------------- 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 ------------------------------------------------------- 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 From p.miquet at hafiba.fr Mon Jan 13 19:49:02 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 13 Jan 2003 19:49:02 +0100 Subject: check_snmp file not found in libexec directory In-Reply-To: <001701c2b936$37d00f30$5f7b0297@atul> References: <001701c2b936$37d00f30$5f7b0297@atul> Message-ID: <1042483742.4945.47.camel@moishe> During the ./configure into nagios plugins take a look at the history, because you should install some added software for some plugins, like snmp, flexlm, ... HTH Regards Le sam 11/01/2003 ? 06:56, Atul Shrivastava a ?crit : > Hello All, > > In my libexec directory, there is no file check_snmp > Can you tell me why it is not there. I have also find this file in the whole harddisk but it is not there. 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: 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 From slebrun at muskoka.com Mon Jan 13 20:04:47 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Mon, 13 Jan 2003 14:04:47 -0500 Subject: NAGIOS on SunFire In-Reply-To: <1EB353E9CD23AA4EA92AC21C8681C05A01316750@delta.inamed.com> References: <1EB353E9CD23AA4EA92AC21C8681C05A01316750@delta.inamed.com> Message-ID: Stick with solaris and install the third-party packages as required, would be my vote. When in Rome, speak Latin; when on Sun equipment, run Solaris. :-) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Naman Latif Sent: Monday, January 13, 2003 1:36 PM To: Nagios List Subject: [Nagios-users] NAGIOS on SunFire Hi, I am planning to install NAGIOS on one of our new SunFires V100. I am trying to decide about the OS 1. Should I install it on the existing OS (Solaris 8) ? 2. Should I install Linux (for Ultra-SPARC processor) ? If yes, then which flavor of Linux I should choose from ? Are there any advantages between using any of the above-mentioned paths ? The SunFire would only be used for NAGIOS and MRTG applications. Regards \\ Naman ------------------------------------------------------- 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 ------------------------------------------------------- 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 From GPotter at MarathonOil.com Mon Jan 13 20:28:56 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 13:28:56 -0600 Subject: statusmap and trends Message-ID: My Nagios host is a Sun Ultra 5 running Solaris 7, Nagios 1.0, Apache 1.3.27, libgd 2.0.4 % /usr/local/apache/bin/httpd -V Server version: Apache/1.3.27 (Unix) Server built: Dec 3 2002 13:32:44 Server's Module Magic Number: 19990320:13 Server compiled with.... -D HAVE_MMAP -D USE_MMAP_SCOREBOARD -D USE_MMAP_FILES -D HAVE_FCNTL_SERIALIZED_ACCEPT -D HAVE_SYSVSEM_SERIALIZED_ACCEPT -D HAVE_PTHREAD_SERIALIZED_ACCEPT -D HARD_SERVER_LIMIT=256 -D HTTPD_ROOT="/usr/local/apache" -D SUEXEC_BIN="/usr/local/apache/bin/suexec" -D DEFAULT_PIDLOG="logs/httpd.pid" -D DEFAULT_SCOREBOARD="logs/httpd.scoreboard" -D DEFAULT_LOCKFILE="logs/httpd.lock" -D DEFAULT_ERRORLOG="logs/error_log" -D TYPES_CONFIG_FILE="conf/mime.types" -D SERVER_CONFIG_FILE="conf/httpd.conf" -D ACCESS_CONFIG_FILE="conf/access.conf" -D RESOURCE_CONFIG_FILE="conf/srm.conf" Greg > -----Original Message----- > From: Tom Welsh [mailto:twelsh at square-box.com] > Sent: Monday, January 13, 2003 12:51 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] statusmap and trends > > > That's quiter intresting, I just checked through my 4 linux boxes and > none have that set. Im running apache 1.3.27 on debian, mind > saying what > your running on Greg > > Might be worth submitting it as a possible faq > ------------------------------------------------------- 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 From GPotter at MarathonOil.com Mon Jan 13 20:31:23 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 13:31:23 -0600 Subject: statusmap and trends Message-ID: I don't have a /etc/ld.so.conf file. Is that a Linux file, my OS is Solaris 7. Greg > -----Original Message----- > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > Sent: Monday, January 13, 2003 12:54 PM > To: Nagios-users (E-mail) > Subject: RE: [Nagios-users] statusmap and trends > > > What does your /etc/ld.so.conf file look like? > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > Potter, G > M (Greg) > Sent: Monday, January 13, 2003 1:20 PM > To: Jeff McKeon > Cc: Nagios-users (E-mail) > Subject: RE: [Nagios-users] statusmap and trends > > > I've never seen anything about it in any instructions. I had the same > problem with a different application and found that I could > not affect the > environment by setting variables when I started Apache. In > digging through > the documentation I found this setting. > > Greg > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Monday, January 13, 2003 12:19 PM > > To: Potter, G M (Greg) > > Cc: Nagios List > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > That did it!!! Thanks Greg. > > > > The next question I have is what did I do wrong during the > install to > > cause that line to not be there? Did I miss something in > the install > > instructions? > > > > Jeff > > > > On Mon, 2003-01-13 at 13:06, Potter, G M (Greg) wrote: > > > Mine is on the last line of the file. I don't think it > > matters though. > > > > > > Greg > > > > > > > -----Original Message----- > > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > > Sent: Monday, January 13, 2003 12:10 PM > > > > To: Potter, G M (Greg) > > > > Cc: Nagios List > > > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > > > > > > > Greg, > > > > > > > > You may be on to something there... I don't see anything > > like that in > > > > the httpd.conf file. what section should it be in? > > > > > > > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > > > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > > > > > > > Mine looks like this: > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > Greg > > > > > > > > > > > > > ------------------------------------------------------- > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From Steve.Rossen at Parago.Com Mon Jan 13 20:35:35 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Mon, 13 Jan 2003 13:35:35 -0600 Subject: Trends on Solaris 8 Message-ID: <870BC6C69F20D4118ECC009027FC776104DF08FD@copexc01.parago.com> Ok, I can't find the answer to this so here it goes. I have Nagios 1.0 installed and running but I can not get trends or status map to work. Now I know your saying "Hey, just do -with-gd-inc= etc." well I did and Nagios found GD just find and did not spit back no GD error. I think its something to do with Apache. I am running 2.0.43. I get a 500 internal server error when I click trends, statusmap, etc. I have this working just fine on Linux with these versions but for the life of me I can not get it to work on Solaris 8. Anyone have the gd stuff working on Solaris 8 that can give me some ideas? ----------------------------------------- Steve Rossen Parago, Inc UNIX Systems Administrator Desk: 972-538-3951 Mobile: 469-585-0568 steve.rossen at parago.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan at live2think.com Mon Jan 13 20:34:11 2003 From: stan at live2think.com (Stan Tichomirov) Date: Mon, 13 Jan 2003 11:34:11 -0800 Subject: NAGIOS on SunFire References: <1EB353E9CD23AA4EA92AC21C8681C05A01316750@delta.inamed.com> Message-ID: <3E2314B3.5152A016@live2think.com> i'm a linux guy myself, but have administered sunboxes for a few years. i like the shortcuts and beauty of linux, but my thinking is -- if you have SUN hardware, run Solaris on it. i've tried running redhat, slackware, and netbsd on my ultra5, but still go back to Solaris in the end. besides, running a 64bit O/S on a RISC processor makes more sence than running a 32bit one. we have a few Nagios servers at work, most are linux boxes, one is running Solaris 8. you will run into a few problems compiling and building things, but it's a good learning experience :-) we built some Nagios Solaris packages if you really get stuck. Naman Latif wrote: > Hi, > I am planning to install NAGIOS on one of our new SunFires V100. I am > trying to decide about the OS > > 1. Should I install it on the existing OS (Solaris 8) ? > 2. Should I install Linux (for Ultra-SPARC processor) ? If yes, then > which flavor of Linux I should choose from ? > > Are there any advantages between using any of the above-mentioned paths > ? > > The SunFire would only be used for NAGIOS and MRTG applications. > > Regards \\ Naman > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 From gustave at 3web.net Mon Jan 13 20:31:39 2003 From: gustave at 3web.net (Gustave Eiffel) Date: Mon, 13 Jan 2003 12:31:39 -0700 Subject: Path issue on install. Small issue Message-ID: <1042486299.3e23141b8b34b@wmail.cybersurf.com> I have just a small issue. I am just starting to install and have the web interface running but have a path issue on the cgi's For instance, if I click on Tactical Overview, the link is: http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi So I have an extra nagios in the URL. Is there a config file to control this? Thanks much. Mark ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Mon Jan 13 20:03:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 13 Jan 2003 13:03:46 -0600 Subject: Install Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12B3@PKDWB03C.ad.sprint.com> Might be an interesting exercise to try and make this work under Cygwin. Food for thought. jc > -----Original Message----- > From: Pascal Miquet [mailto:p.miquet at hafiba.fr] > Sent: Monday, January 13, 2003 12:40 PM > To: Ronen Abramson > Cc: Nagios users > Subject: Re: [Nagios-users] Install > > > You may run third party software like VMWare to run Linux on your > Windows system, and there be able to run nagios on your favorite linux > box under VMWare. > > Regards > > Le lun 13/01/2003 ? 18:08, Ronen Abramson a ?crit : > > A friend of mine told me about Nagios for monitoring > > server. I was just wondering in there a way to > > install the software on Windows NT or Windows 2000. > > > > Thank You > > > > __________________________________________________ > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > > http://mailplus.yahoo.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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From listuser at square-box.com Mon Jan 13 20:45:33 2003 From: listuser at square-box.com (listuser at square-box.com) Date: Mon, 13 Jan 2003 11:45:33 -0800 Subject: WORK Message-ID: confirm 460581 ------------------------------------------------------- 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 From listuser at square-box.com Mon Jan 13 20:47:25 2003 From: listuser at square-box.com (listuser at square-box.com) Date: Mon, 13 Jan 2003 11:47:25 -0800 Subject: WORK Message-ID: confirm 460581 ------------------------------------------------------- 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 From GPotter at MarathonOil.com Mon Jan 13 20:45:19 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 13:45:19 -0600 Subject: statusmap and trends Message-ID: I originally tried setting (and exporting) LD_LIBRARY_PATH in the Apache script that starts the web server, but the error persisted. I am not an Apache expert but I think that the SetENV parameter is a requirement if your shared libraries are not in the standard location. > -----Original Message----- > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > Sent: Monday, January 13, 2003 1:39 PM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] statusmap and trends > > > Ah, Solaris. So-ka. > > In that case, make sure that the environment of the shell of > the user the > web server is running as, has the environment variable > LDD_LIBRARY_PATH set, > and that said path includes all the directories that have the > libraries in > question, as well as any other libraries that might be needed. > > The afore mentioned Apache directive makes that happen, so > all is well in > the world. > > > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Monday, January 13, 2003 2:31 PM > To: Shayne Lebrun; Nagios-users (E-mail) > Subject: RE: [Nagios-users] statusmap and trends > > > I don't have a /etc/ld.so.conf file. Is that a Linux file, > my OS is Solaris > 7. > > Greg > > > -----Original Message----- > > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > > Sent: Monday, January 13, 2003 12:54 PM > > To: Nagios-users (E-mail) > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > What does your /etc/ld.so.conf file look like? > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of > > Potter, G > > M (Greg) > > Sent: Monday, January 13, 2003 1:20 PM > > To: Jeff McKeon > > Cc: Nagios-users (E-mail) > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > I've never seen anything about it in any instructions. I > had the same > > problem with a different application and found that I could > > not affect the > > environment by setting variables when I started Apache. In > > digging through > > the documentation I found this setting. > > > > Greg > > > > > -----Original Message----- > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > Sent: Monday, January 13, 2003 12:19 PM > > > To: Potter, G M (Greg) > > > Cc: Nagios List > > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > > > > That did it!!! Thanks Greg. > > > > > > The next question I have is what did I do wrong during the > > install to > > > cause that line to not be there? Did I miss something in > > the install > > > instructions? > > > > > > Jeff > > > > > > On Mon, 2003-01-13 at 13:06, Potter, G M (Greg) wrote: > > > > Mine is on the last line of the file. I don't think it > > > matters though. > > > > > > > > Greg > > > > > > > > > -----Original Message----- > > > > > From: Jeff McKeon [mailto:jsm at inpro.net] > > > > > Sent: Monday, January 13, 2003 12:10 PM > > > > > To: Potter, G M (Greg) > > > > > Cc: Nagios List > > > > > Subject: RE: [Nagios-users] statusmap and trends > > > > > > > > > > > > > > > Greg, > > > > > > > > > > You may be on to something there... I don't see anything > > > like that in > > > > > the httpd.conf file. what section should it be in? > > > > > > > > > > On Mon, 2003-01-13 at 12:23, Potter, G M (Greg) wrote: > > > > > > Is your LD_LIBRARY_PATH variable set in the httpd.conf file? > > > > > > > > > > > > Mine looks like this: > > > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > > > Greg > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- 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 From russell at quadrix.com Mon Jan 13 20:54:28 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 13 Jan 2003 14:54:28 -0500 Subject: Path issue on install. Small issue References: <1042486299.3e23141b8b34b@wmail.cybersurf.com> Message-ID: <3E231974.5020607@quadrix.com> Yes...check your cgi.cfg. It has the path to the CGI and static content. If that doesn't help, double check your httpd.conf for how your aliases are defined, but most likely its a cgi.cfg problem. Russell Scibetti. Gustave Eiffel wrote: >I have just a small issue. > >I am just starting to install and have the web interface running but have a path >issue on the cgi's > >For instance, if I click on Tactical Overview, the link is: > >http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi > >but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi > >So I have an extra nagios in the URL. > >Is there a config file to control this? > >Thanks much. > >Mark > > >------------------------------------------------------- >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 > > -- 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 From listuser at square-box.com Mon Jan 13 20:49:17 2003 From: listuser at square-box.com (listuser at square-box.com) Date: Mon, 13 Jan 2003 11:49:17 -0800 Subject: WORK Message-ID: confirm 460581 ------------------------------------------------------- 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 From russell at quadrix.com Mon Jan 13 20:56:54 2003 From: russell at quadrix.com (Russell Scibetti) Date: Mon, 13 Jan 2003 14:56:54 -0500 Subject: Trends on Solaris 8 References: <870BC6C69F20D4118ECC009027FC776104DF08FD@copexc01.parago.com> Message-ID: <3E231A06.5060301@quadrix.com> It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti Steve Rossen wrote: > Ok, I can 't find the answer to this so here it goes. > > I have Nagios 1.0 installed and running but I can not get trends or > status map to work. Now I know your saying "Hey, just do -with-gd-inc= > etc." well I did and Nagios found GD just find and did not spit back > no GD error. I think its something to do with Apache. I am running > 2.0.43. I get a 500 internal server error when I click trends, > statusmap, etc. I have this working just fine on Linux with these > versions but for the life of me I can not get it to work on Solaris 8. > Any one have the gd stuff working on Solaris 8 that can give me some > ideas? > > ----------------------------------------- > > Steve Rossen > Parago, Inc > UNIX Systems Administrator > Desk: 972-538-3951 > > Mobile: 469-585-0568 > steve.rossen at parago.com > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Mon Jan 13 20:58:39 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 13 Jan 2003 11:58:39 -0800 (PST) Subject: check_nt returns (null) In-Reply-To: <870BC6C69F20D4118ECC009027FC776104DF08FD@copexc01.parago.com> References: <870BC6C69F20D4118ECC009027FC776104DF08FD@copexc01.parago.com> Message-ID: <20030113195839.76389.qmail@web21502.mail.yahoo.com> Am I missing something with this plugin? I'm trying to get a listing from the nsclient machine, ./check_nt -H 10.10.10.2 -d SHOWALL, but all I get is (null)..I get null not matter what options I use on the command line.... --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From stan at live2think.com Mon Jan 13 21:01:49 2003 From: stan at live2think.com (Stan Tichomirov) Date: Mon, 13 Jan 2003 12:01:49 -0800 Subject: Path issue on install. Small issue References: <1042486299.3e23141b8b34b@wmail.cybersurf.com> Message-ID: <3E231B2C.D569FF85@live2think.com> does typing out the correct URL bring you to the correct page? if so, then check your /usr/local/nagios/share/side.html and fix the URLs there. else, httpd.conf may not be correctly set up. Gustave Eiffel wrote: > I have just a small issue. > > I am just starting to install and have the web interface running but have a path > issue on the cgi's > > For instance, if I click on Tactical Overview, the link is: > > http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi > > but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi > > So I have an extra nagios in the URL. > > Is there a config file to control this? > > Thanks much. > > Mark > > ------------------------------------------------------- > 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 -- Stan Tichomirov UNIX Systems Administrator ------------------------------------------------------- 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 From Steve.Rossen at Parago.Com Mon Jan 13 21:11:22 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Mon, 13 Jan 2003 14:11:22 -0600 Subject: Trends on Solaris 8 Message-ID: <870BC6C69F20D4118ECC009027FC776104DF08FE@copexc01.parago.com> Well that fixed it. Had one in the wrong dir. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Monday, January 13, 2003 1:57 PM To: Steve Rossen Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Trends on Solaris 8 It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti Steve Rossen wrote: Ok, I can 't find the answer to this so here it goes. I have Nagios 1.0 installed and running but I can not get trends or status map to work. Now I know your saying "Hey, just do -with-gd-inc= etc." well I did and Nagios found GD just find and did not spit back no GD error. I think its something to do with Apache. I am running 2.0.43. I get a 500 internal server error when I click trends, statusmap, etc. I have this working just fine on Linux with these versions but for the life of me I can not get it to work on Solaris 8. Any one have the gd stuff working on Solaris 8 that can give me some ideas? ----------------------------------------- Steve Rossen Parago, Inc UNIX Systems Administrator Desk: 972-538-3951 Mobile: 469-585-0568 steve.rossen at parago.com -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From gustave at 3web.net Mon Jan 13 21:15:21 2003 From: gustave at 3web.net (Gustave Eiffel) Date: Mon, 13 Jan 2003 13:15:21 -0700 Subject: Path issue on install. Small issue In-Reply-To: <3E231B2C.D569FF85@live2think.com> References: <1042486299.3e23141b8b34b@wmail.cybersurf.com> <3E231B2C.D569FF85@live2think.com> Message-ID: <1042488920.3e231e59027ca@wmail.cybersurf.com> I could change every link in my side.html Here is my config of httpd.conf This look OK to you? It is at the very end of my httpd.conf file. ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Quoting Stan Tichomirov : > does typing out the correct URL bring you to the correct page? if so, then > check > your /usr/local/nagios/share/side.html and fix the URLs there. else, > httpd.conf may > not be correctly set up. > > Gustave Eiffel wrote: > > > I have just a small issue. > > > > I am just starting to install and have the web interface running but have a > path > > issue on the cgi's > > > > For instance, if I click on Tactical Overview, the link is: > > > > http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi > > > > but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi > > > > So I have an extra nagios in the URL. > > > > Is there a config file to control this? > > > > Thanks much. > > > > Mark > > > > ------------------------------------------------------- > > 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 > > -- > Stan Tichomirov > UNIX Systems Administrator > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From atonns at mail.ivillage.com Mon Jan 13 21:32:00 2003 From: atonns at mail.ivillage.com (atonns at mail.ivillage.com) Date: Mon, 13 Jan 2003 15:32:00 -0500 Subject: ePN and memory leaks Message-ID: Has anyone else done an in-depth investigation of memory leaks in ePN and/or custom checks written for ePN? > -----Original Message----- > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > Sent: Monday, December 30, 2002 10:31 PM > To: atonns at mail.ivillage.com > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] ePN and memory leaks > > > Are there any suggestions for finding memory leaks in ePN? > (I'm going to be > > looking at Apache::Leak and Devel::Leak, but there might be > other debug > > options in nagios I'm not aware of). > > > > Not that I am aware of. It sounds like you are on the right track > though. Well, I've run several tests with both Apache::Leak and Devel::Leak and have found that it's not my code that's leaking, but either p1.pl or mini_epn. The number of SVs before and after executing my code stays the same (or decreases!). BUT the number of SVs between invocations when called by mini_epn increases. Below is an example where I use Devel::Leak and have changed the output of my service check to be the ENTER and LEAVE values returned by NoteSV and CheckSV (note that the first invocation increases dramatically because of DynaLoaded modules) $ ./mini_epn 2>/dev/null Enter file name: check_remote_interfaces-leak_test embedded perl plugin output was -12820724,ENTER: 32488 LEAVE:32674 Enter file name: check_remote_interfaces-leak_test embedded perl plugin output was -12820724,ENTER: 32686 LEAVE:32686 Enter file name: check_remote_interfaces-leak_test embedded perl plugin output was -12820724,ENTER: 32694 LEAVE:32693 Enter file name: check_remote_interfaces-leak_test embedded perl plugin output was -12820724,ENTER: 32701 LEAVE:32700 Enter file name: check_remote_interfaces-leak_test embedded perl plugin output was -12820724,ENTER: 32708 LEAVE:32707 > You could also run any suggestions past the ePN author (noted in the > source). I couldn't find this person's info (is it not Ethan Galstad?). I don't want to bother who are no longer involved in the project. -- "Computer science is as much about computers as astronomy is about telescopes" -- Edsger Dijkstra --------------------------------------------------------- Anthony Tonns, UNIX Administrator - atonns at mail.ivillage.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Jan 13 21:25:11 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 14:25:11 -0600 Subject: Trends on Solaris 8 Message-ID: What is the error you are seeing? Does the page partially display with questions marks in place of icons? are there any error messages in your apache log file? Does the compile fail or just not work correctly when you run it? I haven't tried Apache 2.0.43, but it is working on Apache 1.3.27 for me. Have you tried setting LD_LIBRARY_PATH variable with: SetENV LD_LIBRARY_PATH /usr/local/lib in the httpd.conf file? Greg -----Original Message----- From: Steve Rossen [mailto:Steve.Rossen at Parago.Com] Sent: Monday, January 13, 2003 1:36 PM To: 'Nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Trends on Solaris 8 Ok, I can't find the answer to this so here it goes. I have Nagios 1.0 installed and running but I can not get trends or status map to work. Now I know your saying "Hey, just do -with-gd-inc= etc." well I did and Nagios found GD just find and did not spit back no GD error. I think its something to do with Apache. I am running 2.0.43. I get a 500 internal server error when I click trends, statusmap, etc. I have this working just fine on Linux with these versions but for the life of me I can not get it to work on Solaris 8. Anyone have the gd stuff working on Solaris 8 that can give me some ideas? ----------------------------------------- Steve Rossen Parago, Inc UNIX Systems Administrator Desk: 972-538-3951 Mobile: 469-585-0568 steve.rossen at parago.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Mon Jan 13 21:39:46 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Mon, 13 Jan 2003 15:39:46 -0500 Subject: Trends on Solaris 8 In-Reply-To: <3E231A06.5060301@quadrix.com> References: <3E231A06.5060301@quadrix.com> Message-ID: Trends on Solaris 8Note that that should be done as the user-account of the web server. On solaris, you need to set your LDD_LIBRARY_PATH for your web server user; you're having the same general problem as Greg Potter, me thinks. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Russell Scibetti Sent: Monday, January 13, 2003 2:57 PM To: Steve Rossen Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Trends on Solaris 8 It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti Steve Rossen wrote: Ok, I can 't find the answer to this so here it goes. I have Nagios 1.0 installed and running but I can not get trends or status map to work. Now I know your saying "Hey, just do -with-gd-inc= etc." well I did and Nagios found GD just find and did not spit back no GD error. I think its something to do with Apache. I am running 2.0.43. I get a 500 internal server error when I click trends, statusmap, etc. I have this working just fine on Linux with these versions but for the life of me I can not get it to work on Solaris 8. Any one have the gd stuff working on Solaris 8 that can give me some ideas? ----------------------------------------- Steve Rossen Parago, Inc UNIX Systems Administrator Desk: 972-538-3951 Mobile: 469-585-0568 steve.rossen at parago.com -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Jan 13 21:42:12 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 14:42:12 -0600 Subject: Trends on Solaris 8 Message-ID: Steve, Which one was in the wrong directory, where was it and where did you move it to. That info could be helpful for others having the same problem. That is if the SF search ever starts working again. Greg -----Original Message----- From: Steve Rossen [mailto:Steve.Rossen at Parago.Com] Sent: Monday, January 13, 2003 2:11 PM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Trends on Solaris 8 Well that fixed it. Had one in the wrong dir. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Monday, January 13, 2003 1:57 PM To: Steve Rossen Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Trends on Solaris 8 It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Mon Jan 13 22:11:02 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 14 Jan 2003 08:11:02 +1100 Subject: OT. Anyone monitoring a CIFS NetApp filer (Can't connect with public SMB code) ? Message-ID: <20030114081058.D214@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to ask if anyone is monitoring a NetApp filer running CIFS only (no NFS please) ? If so, would you let me know how you are doing so, and the details of the filer (ours is an 810 bought in the last 6 months. I don't even know what code is on it). All the public SMB code base I have tried (Samba head, Samba-TNG, smbfs in FreeBSD 4.x) fails with a sesssion_setup rejected for a variety of domain users (the same code happily connects to the same users shares on NT servers). My employer has opened a fault with NetApp about this but I would very grateful for the experience of others. 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: 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 From Steve.Rossen at Parago.Com Mon Jan 13 22:16:38 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Mon, 13 Jan 2003 15:16:38 -0600 Subject: Trends on Solaris 8 Message-ID: <870BC6C69F20D4118ECC009027FC776104DF08FF@copexc01.parago.com> Good point. I found after running "ldd statusmap.cgi" that libpng12.so.0 could not be found in /usr/lib. I did a find and found it /usr/local/lib. I simply copied the file to /usr/lib, restarted httpd and it worked. I did run ldd again first to verify that it was found properly. Reference: http://www.nagios.org/faqs/viewfaq.php?faq_id=119 By Russell Scibetti -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Monday, January 13, 2003 2:42 PM To: Steve Rossen Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] Trends on Solaris 8 Steve, Which one was in the wrong directory, where was it and where did you move it to. That info could be helpful for others having the same problem. That is if the SF search ever starts working again. Greg -----Original Message----- From: Steve Rossen [mailto:Steve.Rossen at Parago.Com] Sent: Monday, January 13, 2003 2:11 PM To: 'Nagios-users at lists.sourceforge.net' Subject: RE: [Nagios-users] Trends on Solaris 8 Well that fixed it. Had one in the wrong dir. Thanks. -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Monday, January 13, 2003 1:57 PM To: Steve Rossen Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Trends on Solaris 8 It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Mon Jan 13 22:20:26 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 13 Jan 2003 15:20:26 -0600 Subject: testing modem for qpage Message-ID: Does anyone have a plugin for testing a modem. I have an external dial-out modem connected to my Nagios host (Sun Ultra 5). I use the modem to send text pages using qpage through a service escalation. So far the modem has only been used in testing (luckily we haven't had any failures in off hours where the notifications would have escalated to paging. But rather than manually testing the modem occasionally I would like to have Nagios test the modem for me. I have been doing some preliminary testing using qpage, but it looks like qpage returns a status of 0 regardless of the page going through or not. My initial thought was to set up the pager as a host and have the check interval set to one week. I can live with one page a week for the knowledge that the pager is still functional. But It seems like it would be better to check more frequently, if possible without actually sending the page. I suppose one could write a script to open the port and use expect/send to communicate with the modem to verify it was still "alive". Has anyone looked at this and come up with a solution? Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~ Greg Potter~^~^~^~^ ~^~^~ / 9255 ) ~^ Oklahoma City, OK^~^ ~^~^_/____|____) ^~^~^~^~^~^~^~^~^~^~^~^ ~^~^ \_________/ ^~^~^~^~^~^~^~^~^~^~^ ~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~^~ -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Mon Jan 13 22:27:43 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Mon, 13 Jan 2003 16:27:43 -0500 Subject: Trends on Solaris 8 In-Reply-To: References: Message-ID: Trends on Solaris 8LDD_LIBRARY_PATH? No no. LD_LIBRARY_PATH. Yes, I'm having one of those days. /me slinks back to his hole. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Shayne Lebrun Sent: Monday, January 13, 2003 3:40 PM To: Nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Trends on Solaris 8 Note that that should be done as the user-account of the web server. On solaris, you need to set your LDD_LIBRARY_PATH for your web server user; you're having the same general problem as Greg Potter, me thinks. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Russell Scibetti Sent: Monday, January 13, 2003 2:57 PM To: Steve Rossen Cc: 'Nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Trends on Solaris 8 It probably is a library issue. I got server error when I had wrong versions of some libs. Check out this FAQ I submitted. I could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti Steve Rossen wrote: Ok, I can 't find the answer to this so here it goes. I have Nagios 1.0 installed and running but I can not get trends or status map to work. Now I know your saying "Hey, just do -with-gd-inc= etc." well I did and Nagios found GD just find and did not spit back no GD error. I think its something to do with Apache. I am running 2.0.43. I get a 500 internal server error when I click trends, statusmap, etc. I have this working just fine on Linux with these versions but for the life of me I can not get it to work on Solaris 8. Any one have the gd stuff working on Solaris 8 that can give me some ideas? ----------------------------------------- Steve Rossen Parago, Inc UNIX Systems Administrator Desk: 972-538-3951 Mobile: 469-585-0568 steve.rossen at parago.com -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sean.mcavoy at megawheels.com Mon Jan 13 22:40:52 2003 From: sean.mcavoy at megawheels.com (Sean McAvoy) Date: 13 Jan 2003 16:40:52 -0500 Subject: Trends on Solaris 8 In-Reply-To: <870BC6C69F20D4118ECC009027FC776104DF08FF@copexc01.parago.com> References: <870BC6C69F20D4118ECC009027FC776104DF08FF@copexc01.parago.com> Message-ID: <1042494052.17302.36.camel@tech03.toronto.drive-megawheels.net> Just one point about copying files into /usr/lib. Usually /usr/lib is used for files that belong to packages, not user compiled packages. This doesn't break things at all. But it can save troubles in the future (i.e. remembering what was copied into /usr/lib, what version, any other related files, etc.) if you leave the file in /usr/local/lib and add the path to /etc/ld.so.conf, then run `ldconfig`. This tells the linker to search /usr/local/lib for libraries to link to when the app starts. This can also help you in the future, in that if you compile a lib that defaults to /usr/local/lib (which most do) you won't have to copy files around. just my $0.02 (CDN) -Sean On Mon, 2003-01-13 at 16:16, Steve Rossen wrote: > Good point. > > > > I found after running "ldd statusmap.cgi" that libpng12.so.0 could not > be found in /usr/lib. I did a find and found it /usr/local/lib. I > simply copied the file to /usr/lib, restarted httpd and it worked. I > did run ldd again first to verify that it was found properly. > > > > Reference: http://www.nagios.org/faqs/viewfaq.php?faq_id=119 By > Russell Scibetti > > > > > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Monday, January 13, 2003 2:42 PM > To: Steve Rossen > Cc: Nagios-users (E-mail) > Subject: RE: [Nagios-users] Trends on Solaris 8 > > > > Steve, > > > > > > Which one was in the wrong directory, where was it and where did you > move it to. That info could be helpful for others having the same > problem. That is if the SF search ever starts working again. > > > > > > Greg > > > -----Original Message----- > From: Steve Rossen [mailto:Steve.Rossen at Parago.Com] > Sent: Monday, January 13, 2003 2:11 PM > To: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Trends on Solaris 8 > > Well that fixed it. Had one in the wrong dir. Thanks. > > > > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Monday, January 13, 2003 1:57 PM > To: Steve Rossen > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Trends on Solaris 8 > > > > It probably is a library issue. I got server error when I had > wrong versions of some libs. Check out this FAQ I submitted. > I could help find the problem. > > http://www.nagios.org/faqs/viewfaq.php?faq_id=119 > > Russell Scibetti > > ------------------------------------------------------- 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 From chocklehot at clan-union.com Mon Jan 13 22:43:02 2003 From: chocklehot at clan-union.com (Charles) Date: Mon, 13 Jan 2003 16:43:02 -0500 Subject: Qmail with Nagios Message-ID: Ok, Here is the situation: I am Under linux (Rh 8.0). I have a cell phone that can receive email( Subject has a max char (20) and body has a max char = (130) Now I wanna config nagios with qmail, I use /var/qmail/bin/qmail-inject Could someone tell me what my misccommands.cfg should be???? Keep in mind of epager: In the subject area: I want something Like warning And in body a brieve description... Ty Chock Msn: chocklehot at hotmail.com icq: 64296956 ------------------------------------------------------- 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 From steve at sliderule.demon.co.uk Mon Jan 13 23:21:36 2003 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Mon, 13 Jan 2003 22:21:36 +0000 Subject: SNMP Working .......... References: <001001c2b330$03b2b240$5f7b0297@atul> Message-ID: <3E233BF0.C29FFC38@sliderule.demon.co.uk> Atul, for SNMP extensions and general information for WinNT/2k try: http://www.wtcs.org/snmp4tpc/default.htm Steve. > Atul Shrivastava wrote: > > Hello All, > > I want to know that what all are the settings that are required while > configuring the SNMP service in Win NT & Win 2K machines. > I think that on the Nagios side only check_snmp is configured in the > checkcommands.cfg > > Can anyone give me a way out. > > 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 -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- 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 From Nathan.Hand at defence.gov.au Mon Jan 13 23:47:07 2003 From: Nathan.Hand at defence.gov.au (Hand, Nathan) Date: Tue, 14 Jan 2003 09:47:07 +1100 Subject: UNCLASS: Trends on Solaris 8 Message-ID: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D73@c1clex02.cbr.defence.gov.au> I'm not sure that Solaris uses /etc/ld.so.conf or ldconfig. I certainly can't find either on my Solaris 8 or Solaris 9 boxes. There is a /var/ld/ld.config file but it is not human readable. I believe the way to do what you want on Solaris is with the crle command. $ crle Configuration file: /var/ld/ld.config Default Library Path (ELF): /usr/lib $ crle -l /usr/lib:/usr/local/lib $ crle Configuration file: /var/ld/ld.config Default Library Path (ELF): /usr/lib:/usr/local/lib -----Original Message----- From: Sean McAvoy [mailto:sean.mcavoy at megawheels.com] Sent: Tuesday, 14 January 2003 8:41 To: Steve Rossen Cc: Nagios-users (E-mail) Subject: RE: [Nagios-users] Trends on Solaris 8 Just one point about copying files into /usr/lib. Usually /usr/lib is used for files that belong to packages, not user compiled packages. This doesn't break things at all. But it can save troubles in the future (i.e. remembering what was copied into /usr/lib, what version, any other related files, etc.) if you leave the file in /usr/local/lib and add the path to /etc/ld.so.conf, then run `ldconfig`. This tells the linker to search /usr/local/lib for libraries to link to when the app starts. This can also help you in the future, in that if you compile a lib that defaults to /usr/local/lib (which most do) you won't have to copy files around. just my $0.02 (CDN) -Sean On Mon, 2003-01-13 at 16:16, Steve Rossen wrote: > Good point. > > > > I found after running "ldd statusmap.cgi" that libpng12.so.0 could not > be found in /usr/lib. I did a find and found it /usr/local/lib. I > simply copied the file to /usr/lib, restarted httpd and it worked. I > did run ldd again first to verify that it was found properly. > > > > Reference: http://www.nagios.org/faqs/viewfaq.php?faq_id=119 By > Russell Scibetti > > > > > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Monday, January 13, 2003 2:42 PM > To: Steve Rossen > Cc: Nagios-users (E-mail) > Subject: RE: [Nagios-users] Trends on Solaris 8 > > > > Steve, > > > > > > Which one was in the wrong directory, where was it and where did you > move it to. That info could be helpful for others having the same > problem. That is if the SF search ever starts working again. > > > > > > Greg > > > -----Original Message----- > From: Steve Rossen [mailto:Steve.Rossen at Parago.Com] > Sent: Monday, January 13, 2003 2:11 PM > To: 'Nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Trends on Solaris 8 > > Well that fixed it. Had one in the wrong dir. Thanks. > > > > -----Original Message----- > From: Russell Scibetti [mailto:russell at quadrix.com] > Sent: Monday, January 13, 2003 1:57 PM > To: Steve Rossen > Cc: 'Nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] Trends on Solaris 8 > > > > It probably is a library issue. I got server error when I had > wrong versions of some libs. Check out this FAQ I submitted. > I could help find the problem. > > http://www.nagios.org/faqs/viewfaq.php?faq_id=119 > > Russell Scibetti > > ------------------------------------------------------- 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 ------------------------------------------------------- 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 From Nathan.Hand at defence.gov.au Mon Jan 13 23:56:44 2003 From: Nathan.Hand at defence.gov.au (Hand, Nathan) Date: Tue, 14 Jan 2003 09:56:44 +1100 Subject: UNCLASS: NAGIOS on SunFire Message-ID: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D74@c1clex02.cbr.defence.gov.au> Just FYI, Linux (the kernel) on Ultrasparc is 64-bit. See... http://www.debian.org/ports/sparc/ Admittedly Linux/Sparc userspace is 32-bit, but lots of Solaris 8 userspace is 32-bit too. If you already knew this then I apologise in advance. -----Original Message----- From: Stan Tichomirov [mailto:stan at live2think.com] Sent: Tuesday, 14 January 2003 6:34 To: Naman Latif; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NAGIOS on SunFire i'm a linux guy myself, but have administered sunboxes for a few years. i like the shortcuts and beauty of linux, but my thinking is -- if you have SUN hardware, run Solaris on it. i've tried running redhat, slackware, and netbsd on my ultra5, but still go back to Solaris in the end. besides, running a 64bit O/S on a RISC processor makes more sence than running a 32bit one. we have a few Nagios servers at work, most are linux boxes, one is running Solaris 8. you will run into a few problems compiling and building things, but it's a good learning experience :-) we built some Nagios Solaris packages if you really get stuck. Naman Latif wrote: > Hi, > I am planning to install NAGIOS on one of our new SunFires V100. I am > trying to decide about the OS > > 1. Should I install it on the existing OS (Solaris 8) ? > 2. Should I install Linux (for Ultra-SPARC processor) ? If yes, then > which flavor of Linux I should choose from ? > > Are there any advantages between using any of the above-mentioned paths > ? > > The SunFire would only be used for NAGIOS and MRTG applications. > > Regards \\ Naman > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 ------------------------------------------------------- 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 From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 14 00:24:48 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 14 Jan 2003 10:24:48 +1100 Subject: ePN and memory leaks In-Reply-To: ; from atonns@mail.ivillage.com on Mon, Jan 13, 2003 at 03:32:00PM -0500 References: Message-ID: <20030114102443.B3899@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your helpful letter and say, On Mon, Jan 13, 2003 at 03:32:00PM -0500, atonns at mail.ivillage.com wrote: > Has anyone else done an in-depth investigation of memory leaks in ePN and/or > custom checks written for ePN? > > -----Original Message----- > > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > > Sent: Monday, December 30, 2002 10:31 PM > > To: atonns at mail.ivillage.com > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] ePN and memory leaks > > > > > Are there any suggestions for finding memory leaks in ePN? > > (I'm going to be > > > looking at Apache::Leak and Devel::Leak, but there might be > > other debug > > > options in nagios I'm not aware of). > > > > > > > Not that I am aware of. It sounds like you are on the right track > > though. > > Well, I've run several tests with both Apache::Leak and Devel::Leak and have > found that it's not my code that's leaking, but either p1.pl or mini_epn. > The number of SVs before and after executing my code stays the same (or > decreases!). BUT the number of SVs between invocations when called by > mini_epn increases. Below is an example where I use Devel::Leak and have > changed the output of my service check to be the ENTER and LEAVE values > returned by NoteSV and CheckSV (note that the first invocation increases > dramatically because of DynaLoaded modules) > I am the author of mini_epn and am too aware (now that I have started trying to code XS's) of how ignorantly it was coded. Bear in mind that mini_epn is only a means of assessing whether or not a plugin will __run__ under an ePN (if it fails mini_epn, it will certainly fail ePN. If it passes however, it may still fail to run under ePN. There exist modules for example that will run once in mini_epn but not more than once). I will try and re-examine it and see if there are any faults that I can see. However, if there are faults in mini_epn, there are almost certainly faults in ePN since mini_epn is the guts of ePN (from base/checks.c) stuck in a loop. Please fix them and it as best you may. The ePN stuff is _all_ contributed. The developer, Stephen Davies, (I will write you offline with his address) is acknowledged in the code (eg common/config.h.in) and in the docs. Although Mr Galstad says he only includes contributions that he understands and meet a need, this one may have slipped by. > $ ./mini_epn 2>/dev/null > Enter file name: check_remote_interfaces-leak_test > embedded perl plugin output was -12820724,ENTER: 32488 LEAVE:32674 > > Enter file name: check_remote_interfaces-leak_test > embedded perl plugin output was -12820724,ENTER: 32686 LEAVE:32686 > > Enter file name: check_remote_interfaces-leak_test > embedded perl plugin output was -12820724,ENTER: 32694 LEAVE:32693 > > Enter file name: check_remote_interfaces-leak_test > embedded perl plugin output was -12820724,ENTER: 32701 LEAVE:32700 > > Enter file name: check_remote_interfaces-leak_test > embedded perl plugin output was -12820724,ENTER: 32708 LEAVE:32707 > > > You could also run any suggestions past the ePN author (noted in the > > source). > > I couldn't find this person's info (is it not Ethan Galstad?). > I don't want to bother who are no longer involved in the project. > He can choose whether he wants to reply or not. As you are aobviously interested and able to contribute to this stuff, I am sure he will welcome 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 From gustave at 3web.net Tue Jan 14 00:33:36 2003 From: gustave at 3web.net (Gustave Eiffel) Date: Mon, 13 Jan 2003 16:33:36 -0700 Subject: Working good. Quick question though... Message-ID: <1042500816.3e234cd08da57@wmail.cybersurf.com> I have nagios running fine and have set up a couple of RedHat 8.0 boxes to test. On the clients, I have installed the nagios-plugins and nagios-plugins-extras by RPM. I have a ping, user, and process check working, but the disk free space check gets unable to read output on both. Do I have to setup any authentication between client and server or do anything other than RPM in the clients? Thanks all. Mark ------------------------------------------------------- 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 From Gopinath_Pulyankote at affymetrix.com Tue Jan 14 00:40:51 2003 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Mon, 13 Jan 2003 15:40:51 -0800 Subject: Which takes precedence ? Contact_groups in hostgroups.cfg or serv ices.cfg ? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636EA35@ntex04.affymetrix.com> Nagios Gurus, Which takes precedence ? Contact_groups in hostgroups.cfg or services.cfg ? Thanks Gopinath -------------- next part -------------- An HTML attachment was scrubbed... URL: From Nathan.Hand at defence.gov.au Tue Jan 14 00:47:47 2003 From: Nathan.Hand at defence.gov.au (Hand, Nathan) Date: Tue, 14 Jan 2003 10:47:47 +1100 Subject: UNCLASS: Excluding Hosts from group Service C hecks and 3D Status Map Dependency Message-ID: <8923E6BD9093244F9BBE37DF2B8CAB3ADE9D76@c1clex02.cbr.defence.gov.au> If this is a feature request, then I'd personally prefer a syntax like this hostgroup_name london, !alpha, !tango, !chilly Easier to read, IMO. -----Original Message----- From: AJ McKee [mailto:aj.mckee at nmtbmedia.com] Sent: Sunday, 12 January 2003 16:58 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Excluding Hosts from group Service Checks and 3D Status Map Dependency Hi all, I was wondering if there is any way I can exclude a host from a service check but still use the same host group that includes that host. For example, we would have many servers some have common services and some not. Now I want the hostgroup "london" to check for ping, http, ftp, smtp and mysql. However not all of the host group "london" have all of these services on them. Some may have them all though. A typical config would then look like; define service{ use generic-service hostgroup_name london service_description SMTP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups noc-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_smtp } Is it possible to have an exclude_hosts directive here so that the app knows not to check smtp on particular servers? E.g. exclude_hosts_from_hostgroup alpha,tango,chilly I suppose I could define loads of different host groups, but does that not defeat the purpose? Also I have a slight problem with the 3d status map. I read the docs yes but there is not that much info there (perhaps I can help there) But I am having problems getting it to display the dependencies. Is this normal issue (Yes I have defined a dependency as one group of servers who are dependant on a firewall being up which is in turn dependant on a gateway being up) Sorry if these have been asked before but SF was not search through the mail list. Thanks in advance Yours AJ P.S. Nagios does rock ------------------------------------------------------- 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: 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 From nagios at nagios.org Tue Jan 14 03:09:03 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 13 Jan 2003 20:09:03 -0600 Subject: ePN and memory leaks In-Reply-To: <20030114102443.B3899@IPAustralia.Gov.AU> References: ; from atonns@mail.ivillage.com on Mon, Jan 13, 2003 at 03:32:00PM -0500 Message-ID: <3E231CDF.27454.91D884@localhost> I think they memory leaks may actually be occurring in the embedded interpreter itself, although I can't say for sure. Nagios 2.0 will have an option to reload the interpreter after a predefined number of calls. Hopefully this will "fix" the memory leak problem, even if it is a bit of a hackish thing to do. On 14 Jan 2003 at 10:24, Stanley Hopcroft wrote: > Dear Sir, > > I am writing to thank you for your helpful letter and say, > > On Mon, Jan 13, 2003 at 03:32:00PM -0500, atonns at mail.ivillage.com wrote: > > Has anyone else done an in-depth investigation of memory leaks in ePN and/or > > custom checks written for ePN? > > > > -----Original Message----- > > > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > > > Sent: Monday, December 30, 2002 10:31 PM > > > To: atonns at mail.ivillage.com > > > Cc: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] ePN and memory leaks > > > > > > > Are there any suggestions for finding memory leaks in ePN? > > > (I'm going to be > > > > looking at Apache::Leak and Devel::Leak, but there might be > > > other debug > > > > options in nagios I'm not aware of). > > > > > > > > > > Not that I am aware of. It sounds like you are on the right track > > > though. > > > > Well, I've run several tests with both Apache::Leak and Devel::Leak and have > > found that it's not my code that's leaking, but either p1.pl or mini_epn. > > The number of SVs before and after executing my code stays the same (or > > decreases!). BUT the number of SVs between invocations when called by > > mini_epn increases. Below is an example where I use Devel::Leak and have > > changed the output of my service check to be the ENTER and LEAVE values > > returned by NoteSV and CheckSV (note that the first invocation increases > > dramatically because of DynaLoaded modules) > > > > I am the author of mini_epn and am too aware (now that I have started > trying to code XS's) of how ignorantly it was coded. > > Bear in mind that mini_epn is only a means of assessing whether or not a > plugin will __run__ under an ePN (if it fails mini_epn, it will > certainly fail ePN. If it passes however, it may still fail to run under > ePN. There exist modules for example that will run once in mini_epn but > not more than once). > > I will try and re-examine it and see if there are any faults that I can > see. > > However, if there are faults in mini_epn, there are almost certainly > faults in ePN since mini_epn is the guts of ePN (from base/checks.c) > stuck in a loop. > > Please fix them and it as best you may. > > The ePN stuff is _all_ contributed. The developer, Stephen Davies, (I > will write you offline with his address) is acknowledged in the code (eg > common/config.h.in) and in the docs. > > Although Mr Galstad says he only includes contributions that he > understands and meet a need, this one may have slipped by. > > > $ ./mini_epn 2>/dev/null > > Enter file name: check_remote_interfaces-leak_test > > embedded perl plugin output was -12820724,ENTER: 32488 LEAVE:32674 > > > > Enter file name: check_remote_interfaces-leak_test > > embedded perl plugin output was -12820724,ENTER: 32686 LEAVE:32686 > > > > Enter file name: check_remote_interfaces-leak_test > > embedded perl plugin output was -12820724,ENTER: 32694 LEAVE:32693 > > > > Enter file name: check_remote_interfaces-leak_test > > embedded perl plugin output was -12820724,ENTER: 32701 LEAVE:32700 > > > > Enter file name: check_remote_interfaces-leak_test > > embedded perl plugin output was -12820724,ENTER: 32708 LEAVE:32707 > > > > > You could also run any suggestions past the ePN author (noted in the > > > source). > > > > I couldn't find this person's info (is it not Ethan Galstad?). > > I don't want to bother who are no longer involved in the project. > > > > He can choose whether he wants to reply or not. As you are aobviously > interested and able to contribute to this stuff, I am sure he will > welcome 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 > Ethan Galstad, Nagios Developer --- Email: nagios at nagios.org Website: http://www.nagios.org ------------------------------------------------------- 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 From joe at westnet.net.au Tue Jan 14 03:34:01 2003 From: joe at westnet.net.au (Joe Wooller) Date: Tue, 14 Jan 2003 10:34:01 +0800 Subject: NSCA host checks Message-ID: <024c01c2bb75$708c5d10$fa05a8c0@slampt> Hi, I have setup my distributed server as described in the docco's but have 2 issues, 1) submit_check_result doesn't send the external coomands, it works if I do it manually but nagios wont do it for me any ideas? and 2) trying to do host checks and usingf send_nsca to send the host check to the central server works but.. the central server says this : Warning: Unrecognized external command -> PROCESS_HOST_CHECK_RESULT Any ideas would be great. Thanx Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From karl at debisschop.net Tue Jan 14 03:37:19 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 13 Jan 2003 21:37:19 -0500 Subject: Same status In-Reply-To: <3E22C6ED.9040107@datawire.net> References: <00fa01c2b908$e2cb33c0$0e38cf81@fucko> <3E22C6ED.9040107@datawire.net> Message-ID: <1042511838.4593.3.camel@localhost.localdomain> On Mon, 2003-01-13 at 09:02, Chris Stankaitis wrote: > This is an active vs. passive check thing... An Active check is one that > is started on the nagios server.... some of these can handle remote > hosts, ping, ssh, smtp, pop, http, time etc... those you can run from > nagios and everything will be happy for all your different hosts. > > Things like current user, load, disk space, processes, can't be run > from the nagios server with regards to collecting this information from > remote hosts by default. to do this you need to set up passive checks, > and somehow get the information from the client to the host (nagios > server) this can be acomplished by mutiple ways... > > 1) NRPE - open connection runs on each clent, nagios connects to the > port and gets the info you want > 2) NSCA - open connection runs on NAGIOS server and clients send > information to the nagios server encrypted > 3) check_by_ssh using the SSH's ability to execute commands to run > commands on the client and pulls back results If you are in an isolated LAN (i.e., you have a failrly decent firewall and you put ACLs on your servers) there is also check_snmp. It's my personal favorite becuase it has great funtionality, near zero setup in my RH73 servers, and very low overhead. Justin's options are fine too - just missed one (I'm sure there are more too). -- Karl ------------------------------------------------------- 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 From rcolley at cardaccess.com.au Tue Jan 14 04:44:15 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Tue, 14 Jan 2003 14:44:15 +1100 Subject: Multiple inheritance Message-ID: Is it possible to use multiple inheritance in service configuration files (template based)? i.e. can you have multiple 'use' commands in a single service definition? I tried doing this, and I nagios -v didn't complain about the multiple 'use' but it didn't work either. Sorry if this is answered before ... The archive search on sf.net seems broken. Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/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 From hrishys at yahoo.co.uk Tue Jan 14 05:19:41 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 14 Jan 2003 04:19:41 +0000 (GMT) Subject: cpu and memory status In-Reply-To: <200301132110.36374.jasmine.chua@securecirt.com> References: <200301132110.36374.jasmine.chua@securecirt.com> Message-ID: <20030114041941.81198.qmail@web12602.mail.yahoo.com> Hi Jasmine Could you please elaborate ..how check_procs can be sued for this kind of activity ?what does the outputr of check_procs reveal ? regards Hrishy --- Jasmine Chua wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hi you can try using ./check_procs > > On Monday 13 January 2003 17:01, hrishy wrote: > > Hi All > > > > How do i see the status of CPU and memory on all > > machines using nagios.. > > > > I would like to see the fwolloing for CPU > > > > 1)CPU on the host which are up somthing like > psrinfo > > 2)CPU idle or being used soemthin like vmstat > > > > 3)Amount of memory available > > 4)Amount of memory being used > > > > 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: > > 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 > > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte > Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE+IrrLNgvTa7Hj2AURAmlWAJwIddGJ5/LXH0SpAzrJWYLUCNR0VQCfU+7E > zdF4/7BnOrIZeUxxC9xFSiA= > =J2YQ > -----END PGP SIGNATURE----- > __________________________________________________ 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: 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 From john at twinengines.com Tue Jan 14 05:31:02 2003 From: john at twinengines.com (John P. Scarborough) Date: Mon, 13 Jan 2003 23:31:02 -0500 Subject: Statusmap libpng compile problems Message-ID: <3FB7F0E2C9BB434187CA34D262A0E91D0E7B64@calvin.twinengines.com> VGhpcyBvbmUgc2hvdWxkIGJlIG9idmlvdXMuICBJIHJlY2lldmUgdGhlIGZvbGxvd2luZyBlcnJv cnMgaW4gdGhlDQphcGFjaGUgbG9nczoNCiANCioqKioqKioqKioNCltNb24gSmFuIDEzIDIzOjI2 OjE5IDIwMDNdIFtlcnJvcl0gW2NsaWVudCA2Ny4zMy4xMTguMzVdIFByZW1hdHVyZSBlbmQNCm9m IHNjcmlwdCBoZWFkZXJzOiAvdXNyL2xvY2FsL25hZ2lvcy9zYmluL3N0YXR1c21hcC5jZ2kNCmxp YnBuZyB3YXJuaW5nOiBBcHBsaWNhdGlvbiB3YXMgY29tcGlsZWQgd2l0aCBwbmcuaCBmcm9tIGxp YnBuZy0xLjAuMTINCmxpYnBuZyB3YXJuaW5nOiBBcHBsaWNhdGlvbiAgaXMgIHJ1bm5pbmcgd2l0 aCBwbmcuYyBmcm9tIGxpYnBuZy0xLjIuNQ0KZ2QtcG5nOiAgZmF0YWwgbGlicG5nIGVycm9yOiBJ bmNvbXBhdGlibGUgbGlicG5nIHZlcnNpb24gaW4gYXBwbGljYXRpb24NCmFuZCBsaWJyYXJ5DQoq KioqKioqKioqDQogDQpDYW4gc29tZSBoZWxwIGluIGd1aWRpbmcgbWUgdG8gd2hhdCBmaWxlcyBJ IG5lZWQgdG8gdHdlZWsgdG8gZ2V0IHRoZW0NCmxvb2tpbmcgaW4gdGhlIHJpZ2h0IHBsYWNlPw0K IA0K ------------------------------------------------------- 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 From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 14 06:45:17 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 14 Jan 2003 16:45:17 +1100 Subject: ePN and memory leaks In-Reply-To: <3E231CDF.27454.91D884@localhost>; from nagios@nagios.org on Mon, Jan 13, 2003 at 08:09:03PM -0600 References: ; <20030114102443.B3899@IPAustralia.Gov.AU> <3E231CDF.27454.91D884@localhost> Message-ID: <20030114164511.M3899@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Mon, Jan 13, 2003 at 08:09:03PM -0600, Ethan Galstad wrote: > I think they memory leaks may actually be occurring in the embedded > interpreter itself, although I can't say for sure. Given that there is still artefact code in the Perl core (eg the NewX() family of platform independent malloc() calls; the NEWSV() macro, " .... id is an integer id between 0 and 1299 (used to identify leaks). SV* NEWSV (int id, STRLEN len) ") to deal with memory leaks, and the pretty 'equivocal' advice in the Couzins and Jenness book about embedding, this sounds pretty reasonable to me. It is really unfortunate if this is a practical issue because the API is so slick, including among other things SV 'strings' with properties like Perl scalar variables instead of C strings; AVs that are Perl arrays with macros including av_pop, av_push, av_fetch, av_store, av_unshift, av_shift. HVs that are Perl hashes. No need to use linked lists. and allowing the C coder to call Perl for pattern matching or for list operations (grep and map), or simply to call an arbitrary Perl subroutine - this last function alone is the basis of embedded Perl Nag/Netsaint. In other words, all the speed and elegance of C with the power of Perl. However, despite the caveats there are some pretty big applications that do this quie happily. Surely mod_perl, gnumeric, and other applications would have gone away if embedding was such a mixed 'success'. If I can ever get the ideas/and or inspiration I would like to try and code the Nag core to use HVs instead of linked lists. > Nagios 2.0 will > have an option to reload the interpreter after a predefined number of > calls. > Hopefully this will "fix" the memory leak problem, even if it > is a bit of a hackish thing to do. As a not very famous man (but a very clever one) once said, "Welcome to my world". > > 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 From benny at bennyvision.com Tue Jan 14 06:59:53 2003 From: benny at bennyvision.com (C. Bensend) Date: Mon, 13 Jan 2003 23:59:53 -0600 Subject: testing modem for qpage In-Reply-To: ; from GPotter@MarathonOil.com on Mon, Jan 13, 2003 at 03:20:26PM -0600 References: Message-ID: <20030113235953.B27919@bennyvision.com> On Mon, Jan 13, 2003 at 03:20:26PM -0600, Potter, G M (Greg) wrote: > > I have been doing some preliminary testing using qpage, but it looks like qpage returns a status of 0 regardless of the page going through or not. My initial thought was to set up the pager as a host and have the check interval set to one week. I can live with one page a week for the knowledge that the pager is still functional. But It seems like it would be better to check more frequently, if possible without actually sending the page. I suppose one could write a script to open the port and use expect/send to communicate with the modem to verify it was still "alive". Has anyone looked at this and come up with a solution? Wow, please wrap your lines. ;) While this would be a hack, you might set up a local test that checks the qpage _queue_, looking for any failure messages. That, I think, would be easier than trying to poke deeper into qpage. Hopefully, that would be sufficient for you. 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: 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 From jasmine.chua at securecirt.com Tue Jan 14 07:07:11 2003 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Tue, 14 Jan 2003 14:07:11 +0800 Subject: cpu and memory status In-Reply-To: <20030114041941.81198.qmail@web12602.mail.yahoo.com> References: <20030114041941.81198.qmail@web12602.mail.yahoo.com> Message-ID: <200301141407.18088.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 sorry its ./check_procl.sh --help On Tuesday 14 January 2003 12:19, hrishy wrote: > Hi Jasmine > > Could you please elaborate ..how check_procs can be > sued for this kind of activity ?what does the outputr > of check_procs reveal ? > > regards > Hrishy > > --- Jasmine Chua wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi you can try using ./check_procs > > > > On Monday 13 January 2003 17:01, hrishy wrote: > > > Hi All > > > > > > How do i see the status of CPU and memory on all > > > machines using nagios.. > > > > > > I would like to see the fwolloing for CPU > > > > > > 1)CPU on the host which are up somthing like > > > > psrinfo > > > > > 2)CPU idle or being used soemthin like vmstat > > > > > > 3)Amount of memory available > > > 4)Amount of memory being used > > > > > > 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: > > > 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 > > > - -- > > Jasmine Chua > > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte > > Ltd) > > http://www.securecirt.com > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.6 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > iD8DBQE+IrrLNgvTa7Hj2AURAmlWAJwIddGJ5/LXH0SpAzrJWYLUCNR0VQCfU+7E > > > zdF4/7BnOrIZeUxxC9xFSiA= > > =J2YQ > > -----END PGP SIGNATURE----- > > __________________________________________________ > 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: 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 - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+I6kUNgvTa7Hj2AURAiv4AKCTBVfn5dzZEGCsOzGDlpNKvs2HqACfbmdh SWq3rX0NaUvJ1u9i28q5GFg= =SZ4a -----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 From hrishys at yahoo.co.uk Tue Jan 14 07:53:36 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 14 Jan 2003 06:53:36 +0000 (GMT) Subject: cpu and memory status In-Reply-To: <200301141407.18088.jasmine.chua@securecirt.com> References: <200301141407.18088.jasmine.chua@securecirt.com> Message-ID: <20030114065336.66060.qmail@web12606.mail.yahoo.com> Hi Jasmine Well i am not able to loacte thsi plugin check_procl.sh where do i download thsi plugin from ...i guess if it is a shell script that you have written how do i integrate thsi with nagios regards Hrishy --- Jasmine Chua wrote: > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > sorry its ./check_procl.sh --help > > On Tuesday 14 January 2003 12:19, hrishy wrote: > > Hi Jasmine > > > > Could you please elaborate ..how check_procs can > be > > sued for this kind of activity ?what does the > outputr > > of check_procs reveal ? > > > > regards > > Hrishy > > > > --- Jasmine Chua > wrote: > > > -----BEGIN PGP SIGNED MESSAGE----- > > > Hash: SHA1 > > > > > > Hi you can try using ./check_procs > > > > > > On Monday 13 January 2003 17:01, hrishy wrote: > > > > Hi All > > > > > > > > How do i see the status of CPU and memory on > all > > > > machines using nagios.. > > > > > > > > I would like to see the fwolloing for CPU > > > > > > > > 1)CPU on the host which are up somthing like > > > > > > psrinfo > > > > > > > 2)CPU idle or being used soemthin like vmstat > > > > > > > > 3)Amount of memory available > > > > 4)Amount of memory being used > > > > > > > > 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: > > > > 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 > > > > > - -- > > > Jasmine Chua > > > Security Engineer, SecureCiRT (A SBU of Z-Vance > Pte > > > Ltd) > > > http://www.securecirt.com > > > -----BEGIN PGP SIGNATURE----- > > > Version: GnuPG v1.0.6 (GNU/Linux) > > > Comment: For info see http://www.gnupg.org > > > > > iD8DBQE+IrrLNgvTa7Hj2AURAmlWAJwIddGJ5/LXH0SpAzrJWYLUCNR0VQCfU+7E > > > > > zdF4/7BnOrIZeUxxC9xFSiA= > > > =J2YQ > > > -----END PGP SIGNATURE----- > > > > __________________________________________________ > > 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: 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 > > - -- > Jasmine Chua > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte > Ltd) > http://www.securecirt.com > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.6 (GNU/Linux) > Comment: For info see http://www.gnupg.org > > iD8DBQE+I6kUNgvTa7Hj2AURAiv4AKCTBVfn5dzZEGCsOzGDlpNKvs2HqACfbmdh > SWq3rX0NaUvJ1u9i28q5GFg= > =SZ4a > -----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 __________________________________________________ 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: 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 From tdeblend at gcc.dhl.com Tue Jan 14 09:03:08 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 14 Jan 2003 09:03:08 +0100 Subject: check_nt returns (null) References: <20030113195839.76389.qmail@web21502.mail.yahoo.com> Message-ID: <3E23C43C.5B0E3EE1@gcc.dhl.com> Dear, What exactly where you expecting to get as a result? Please read the readme.html that comes with the NSClient distribution. It is actually quite helpful: "-d SHOWALL can be specified if you want to see all tested services including started ones." The -d SHOWALL switch is only used when checking service and process states. Kind regards, Tom Jon Lyons wrote: > > Am I missing something with this plugin? I'm trying to get a listing > from the nsclient machine, ./check_nt -H 10.10.10.2 -d SHOWALL, but > all I get is (null)..I get null not matter what options I use on the > command line.... > > -------------------------------------------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 From tdeblend at gcc.dhl.com Tue Jan 14 09:44:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 14 Jan 2003 09:44:41 +0100 Subject: Parents Message-ID: <3E23CDF9.8E8C2146@gcc.dhl.com> A small question on the "parents" host directive. I have a host that is situated behind a router. No problem, I just add that router as a parent for my host. However, what do I do when I have a dual homed host with one IP in the 172.20 and one in the 10. range? Where the 172.20 just connects to a Cisco Catalyst and the 10. range to a router? What parent do I use in the parents directive, the router or the switch? Both interfaces are being used for service checks as one network is a private gigabit backbone and the other is open to the LAN. Is there any use in adding them both as parent, and what consequences will this have? The NetSaint box is on both networks. ------------------------------------------------------- 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 From atulsh at hclinsys.com Tue Jan 14 05:28:19 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Tue, 14 Jan 2003 09:58:19 +0530 Subject: PHP 4.3 Installation Error Message-ID: <002301c2bb85$5e232040$5f7b0297@atul> Hello All, When I install the PHP version 4.3 in my redhat linux 7.3 then the installation has aborted and has given the following error: The following lib* files are required: libcrypto.so.0.9.6 libc.so.6 libdb-3.2.so libgcc-5.so.1 libsnmp-0.4.2.6.so libssl.so.0.9.6 libstdc++.so.5 libzzip-0.so.10 So can anyone give me any idea so that I can install php. 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 Fabian.Pehla at Dregis.com Tue Jan 14 11:36:23 2003 From: Fabian.Pehla at Dregis.com (Pehla, Fabian) Date: Tue, 14 Jan 2003 11:36:23 +0100 Subject: NSCA host checks Message-ID: <640A7EC6DCCAD511A5250008C75D52BD0280163C@ffz00zm2.ffz00e.mail.dresdner.net> Hi, I suppose you are using NSCA 2.2 together with NAGIOS 1.0? NSCA 2.2 introduced support for passive host checks but the Changelog reads as follows: - Added support for passive host checks (supported only in Nagios 2.x and later) So Nagios itself does not yet support passive host checks. Though Ethan may be working on that right now... BTW: How did you make Nagios automatically submit host check results? Using eventhandlers? Fabian -----Original Message----- From: Joe Wooller [mailto:joe at westnet.net.au] Sent: Tuesday, January 14, 2003 3:34 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NSCA host checks Hi, I have setup my distributed server as described in the docco's but have 2 issues, 1) submit_check_result doesn't send the external coomands, it works if I do it manually but nagios wont do it for me any ideas? and 2) trying to do host checks and usingf send_nsca to send the host check to the central server works but.. the central server says this : Warning: Unrecognized external command -> PROCESS_HOST_CHECK_RESULT Any ideas would be great. Thanx Joe ------------------------------------------------------- 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 From jwgreene at megalink.net Tue Jan 14 12:04:30 2003 From: jwgreene at megalink.net (Jim Greene) Date: 14 Jan 2003 06:04:30 -0500 Subject: nrpe error message. In-Reply-To: <640A7EC6DCCAD511A5250008C75D52BD0280163C@ffz00zm2.ffz00e.mail.dresdner.net> References: <640A7EC6DCCAD511A5250008C75D52BD0280163C@ffz00zm2.ffz00e.mail.dresdner.net> Message-ID: <1042542270.1920.7.camel@calcutta.megalink.net> Hello, I am trying to use nagios with nrpe and am having some issues. I have the following in the checkcommands.cfg: define command{ command_name check_nrpe command_line /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } And I have the following in services.cfg: define service{ use generic-service host_name pos.megalink.net service_description /dev/hda1 Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups linux-admins notification_interval 240 notification_period 24x7 notification_options c,r check_command check_nrpe!/usr/local/nagios/libexec/che ck_disk -w 20 -c 10 -p /dev/hda1 } I get the following error in nagios: Incorrect command line arguments supplied Any idea what I have set wrong? Any help would be great.. Thanks... Jim G ------------------------------------------------------- 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 From Ton.Voon at egg.com Tue Jan 14 12:49:58 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 14 Jan 2003 11:49:58 -0000 Subject: nrpe error message. Message-ID: <53104E20A25CD411B556009027E50636064D50F8@pnnemp02.pn.egg.com> The -c parameter to check_nrpe specifies a command defined in nrpe.cfg on the agent end. Your parameters of "-w 20 -c 10 -p /dev/hda1" should be nrpe.cfg. There are plans to allow passing of parameters to the agent, but at the moment you have to define each remote command you want to run. > -----Original Message----- > From: Jim Greene [SMTP:jwgreene at megalink.net] > Sent: Tuesday, January 14, 2003 11:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] nrpe error message. > > Hello, > I am trying to use nagios with nrpe and am having some issues. > I have the following in the checkcommands.cfg: > define command{ > command_name check_nrpe > command_line /usr/local/nagios/libexec/check_nrpe -H > $HOSTADDRESS$ -c > $ARG1$ > } > > And I have the following in services.cfg: > define service{ > use generic-service > host_name pos.megalink.net > service_description /dev/hda1 Free Space > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups linux-admins > notification_interval 240 > notification_period 24x7 > notification_options c,r > check_command > check_nrpe!/usr/local/nagios/libexec/che > ck_disk -w 20 -c 10 -p /dev/hda1 > } > > I get the following error in nagios: > Incorrect command line arguments supplied > Any idea what I have set wrong? Any help would be great.. Thanks... > Jim G > > > > ------------------------------------------------------- > 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 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: 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 From hrishys at yahoo.co.uk Tue Jan 14 13:44:28 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 14 Jan 2003 12:44:28 +0000 (GMT) Subject: nrpe as inetd service In-Reply-To: <53104E20A25CD411B556009027E50636064D50F8@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D50F8@pnnemp02.pn.egg.com> Message-ID: <20030114124428.64917.qmail@web12608.mail.yahoo.com> Hi I am unable to start the nrpe as a service in inetd.My sun solaris machine has the following entry nrpe stream tcp nowait nagios /usr/nagios/nrpe -c /usr/nagios/etc/nrpe.cfg note /usr/sbin does not contain tcpd.. but starting nrpe as a standalone deamon suceeds..anybody can help 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: 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 From John.Jolet at misyshealthcare.com Tue Jan 14 13:47:10 2003 From: John.Jolet at misyshealthcare.com (Jolet, John) Date: Tue, 14 Jan 2003 07:47:10 -0500 Subject: testing modem for qpage Message-ID: I don't think that would work, unless it was also in conjunction with a check_proc for the qpage process itself. The problem i'm having is not so much on the not sending the page, but on qpage itself dying. If qpage can't send the page for a configurable period of time, i think it sends a mail to root, or postmaster or something, doesn't it? -----Original Message----- From: C. Bensend [mailto:benny at bennyvision.com] Sent: Tuesday, January 14, 2003 12:00 AM To: Nagios-users (E-mail) Subject: Re: [Nagios-users] testing modem for qpage On Mon, Jan 13, 2003 at 03:20:26PM -0600, Potter, G M (Greg) wrote: > > I have been doing some preliminary testing using qpage, but it looks like qpage returns a status of 0 regardless of the page going through or not. My initial thought was to set up the pager as a host and have the check interval set to one week. I can live with one page a week for the knowledge that the pager is still functional. But It seems like it would be better to check more frequently, if possible without actually sending the page. I suppose one could write a script to open the port and use expect/send to communicate with the modem to verify it was still "alive". Has anyone looked at this and come up with a solution? Wow, please wrap your lines. ;) While this would be a hack, you might set up a local test that checks the qpage _queue_, looking for any failure messages. That, I think, would be easier than trying to poke deeper into qpage. Hopefully, that would be sufficient for you. 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: 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 ------------------------------------------------------- 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 From Pete.Shelfo at itron.com Tue Jan 14 14:40:39 2003 From: Pete.Shelfo at itron.com (Shelfo, Pete) Date: Tue, 14 Jan 2003 08:40:39 -0500 Subject: Template Structure is Better??? Message-ID: <5038D89BA36AB94F8025722996882EE70106389A@raleigh-mx1.eis.itron.com> I have been using Netsaint 7.0 for a long time and have built up quite a large number of non-standard check_snmp statements that require individual configuration per server. With the new template based format for Nagios 1.0 my services.cfg file is going to be huge since each service statement is now about 10 lines instead of one line condensed. This is going to make maintenance very difficult since I will have to browse tons of pages to find a service. I don't want to go back to the old "default" method since I am completely transferring my system into the new format and don't want to be outdated on the offset. Is there a way to manage custom statements like check_snmp and NSClient Windows service check so that they are not out of control? I see the benefit for template's but that seems to be limited to environments that all the hosts in a network have similar settings. If one server in a group does not follow a guideline then you have to expand the group to individual hosts. Can you do hostgroup exemptions in a service check? Can you issue multiple check_commands in one service statement? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jwgreene at megalink.net Tue Jan 14 14:48:01 2003 From: jwgreene at megalink.net (Jim Greene) Date: 14 Jan 2003 08:48:01 -0500 Subject: Creating plugin for Radius Check Message-ID: <1042552081.1617.3.camel@calcutta.megalink.net> Not sure if it has been asked before, but does nayone have a plugin to check radius ? Jim G ------------------------------------------------------- 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 From tdeblend at gcc.dhl.com Tue Jan 14 15:10:41 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 14 Jan 2003 15:10:41 +0100 Subject: Creating plugin for Radius Check References: <1042552081.1617.3.camel@calcutta.megalink.net> Message-ID: <3E241A61.77A86720@gcc.dhl.com> check_radius in the main plugin distribution. Jim Greene wrote: > > Not sure if it has been asked before, but does nayone have a plugin to > check radius ? > Jim G > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 From tdeblend at gcc.dhl.com Tue Jan 14 15:09:13 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 14 Jan 2003 15:09:13 +0100 Subject: Template Structure is Better??? References: <5038D89BA36AB94F8025722996882EE70106389A@raleigh-mx1.eis.itron.com> Message-ID: <3E241A09.88115F6F@gcc.dhl.com> Hi Pete, > "Shelfo, Pete" wrote: > > I have been using Netsaint 7.0 for a long time and have built up > quite a large number of non-standard check_snmp statements that > require individual configuration per server. With the new template > based format for Nagios 1.0 my services.cfg file is going to be huge > since each service statement is now about 10 lines instead of one > line condensed. I just moved from NetSaint 0.0.7 to Nagios as well. You have a point that the one line per service was easier to overview. However, don't let this scare you. Templates are really fun to play with! > This is going to make maintenance very difficult > since I will have to browse tons of pages to find a service. Well, you can always use the search funtion in vi... > I don?t want to go back to the old ?default? method since I am > completely transferring my system into the new format and don?t want > to be outdated on the offset. That was one of my motivations as well.> > Is there a way to manage custom statements like check_snmp and > NSClient Windows service check so that they are not out of control? > I see the benefit for template?s but that seems to be limited to > environments that all the hosts in a network have similar settings. > If one server in a group does not follow a guideline then you have > to expand the group to individual hosts. Can you do hostgroup > exemptions in a service check? Can you issue multiple > check_commands in one service statement? See it like this: directives for a specific host or service take precedence over template settings. And that is a true blessing! One example: I monitor a lot of SQL servers, so I have a SQL service template like this: # SQL Process definition template define service{ name SQL service_description SQL active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information 1 is_volatile 0 max_check_attempts 3 normal_check_interval 1 retry_check_interval 1 contact_groups nt-admins notification_interval 600 notification_period 24x7 check_period 24x7 notification_options u,c,r check_command check_nt_service!MSSQLServer,SQLServerAgent register 0 } One avarage SQL service definition will look like this: # Service definition define service{ use SQL host_name server1 } However, when monitoring a clustered SQL server, I have the following: # Service definition define service{ use SQL host_name cluster1 check_command check_nt_service!'MSSQLServer$cluster1','SQLServerAgent$cluster1' } So you see I can use everything from the template, and still change that one directive that does not fit in, in this case the check_command. In my opinion the new template format beats the "Old Way". You just have to learn the little tricks and not just run the convert tool and leave it to that. Using that tool is a start that will save you a lot of typing work, but you should then try to exploit everyting that templates have to offer. And as far as the size is concerned... that's about the only setback I can see and was a bit my concern as well... Kind regards, Tom ------------------------------------------------------- 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 From cjs at cjs226.com Tue Jan 14 15:44:03 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Tue, 14 Jan 2003 08:44:03 -0600 Subject: db2 Message-ID: <3E242233.9030906@cjs226.com> Is anyone monitoring db2? If so, how? Thanks, Clif ------------------------------------------------------- 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 From d.pavani at cineca.it Tue Jan 14 16:13:42 2003 From: d.pavani at cineca.it (Denis Pavani) Date: Tue, 14 Jan 2003 16:13:42 +0100 Subject: Creating plugin for Radius Check References: <1042552081.1617.3.camel@calcutta.megalink.net> <3E241A61.77A86720@gcc.dhl.com> Message-ID: <3E242926.4020405@cineca.it> IMHO, the plugin you find in the contribs section is way better. It does not need any directory or config file. But you've just to make a choice. Bye Denis Tom DE BLENDE wrote: > check_radius in the main plugin distribution. > > Jim Greene wrote: > >>Not sure if it has been asked before, but does nayone have a plugin to >>check radius ? >>Jim G >> >>------------------------------------------------------- >>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 > > > > ------------------------------------------------------- > 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 -- ************************************************************************ Denis Pavani CINECA - Comunicazioni e Sistemi Distribuiti NOC - Network Operation Center phone:+39 0516171953 / fax:+39 0516132198 http://www.cineca.it ************************************************************************ "Siamo pagati per adattarci, improvvisare e raggiungere lo scopo" -- Gunny Highway ------------------------------------------------------- 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 From jlyons30 at yahoo.com Tue Jan 14 16:36:45 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 07:36:45 -0800 (PST) Subject: check_nt returns (null) In-Reply-To: <3E23C43C.5B0E3EE1@gcc.dhl.com> References: <3E23C43C.5B0E3EE1@gcc.dhl.com> Message-ID: <20030114153645.23828.qmail@web21503.mail.yahoo.com> When I read this the first time, I thought it would display all variables that available on the remote machine...I was just looking for a list of available performance counters from the remote machine.... >>>> The -d SHOWALL switch is only used when checking service and process states. --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 14 16:36:32 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 09:36:32 -0600 Subject: Same status Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> I've been pondering SNMP as an alternative to NRPE. If I were to take this approach, I presume I need the following: - the SNMP software components need to be installed on the Nagios server as well as for any client I wish to monitor (should be obvious, but I didn't want to skip over this ;) - proper config of SNMP so that it's functioning client/server - the check_snmp plugin should be built properly - I'm guessing I need a MIB for whatever aspect I'm trying to monitor...? E.g., o/s, hardware, specific application - the biggest gap is w.r.t. what a service definition would look like; if you could post a couple examples (eg, memory, disk) that would be most excellent, sir :) For further reference, it would be great if you could take me through the creation of a single definition, from the "gee, I'd like to monitor service XYZ on host xyzygy" to looking up the MIB details (or snmpwalk or whatever's required), that'd be great! TIA, jc > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Monday, January 13, 2003 8:37 PM > To: Chris Stankaitis > Cc: Justin; Nagios Users > Subject: Re: [Nagios-users] Same status > > > On Mon, 2003-01-13 at 09:02, Chris Stankaitis wrote: > > This is an active vs. passive check thing... An Active > check is one that > > is started on the nagios server.... some of these can handle remote > > hosts, ping, ssh, smtp, pop, http, time etc... those you > can run from > > nagios and everything will be happy for all your different hosts. > > > > Things like current user, load, disk space, processes, > can't be run > > from the nagios server with regards to collecting this > information from > > remote hosts by default. to do this you need to set up > passive checks, > > and somehow get the information from the client to the host (nagios > > server) this can be acomplished by mutiple ways... > > > > 1) NRPE - open connection runs on each clent, nagios > connects to the > > port and gets the info you want > > 2) NSCA - open connection runs on NAGIOS server and clients send > > information to the nagios server encrypted > > 3) check_by_ssh using the SSH's ability to execute commands to run > > commands on the client and pulls back results > > If you are in an isolated LAN (i.e., you have a failrly > decent firewall > and you put ACLs on your servers) there is also check_snmp. It's my > personal favorite becuase it has great funtionality, near > zero setup in > my RH73 servers, and very low overhead. > > Justin's options are fine too - just missed one (I'm sure > there are more > too). > > -- > Karl > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From jlyons30 at yahoo.com Tue Jan 14 16:39:44 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 07:39:44 -0800 (PST) Subject: Parents In-Reply-To: <3E23CDF9.8E8C2146@gcc.dhl.com> References: <3E23CDF9.8E8C2146@gcc.dhl.com> Message-ID: <20030114153944.39832.qmail@web21512.mail.yahoo.com> Add them both as "parents router,switch" Make sure router and switch are defined in the hosts.cfg file before your dual homed host. Tom DE BLENDE wrote:A small question on the "parents" host directive. I have a host that is situated behind a router. No problem, I just add that router as a parent for my host. However, what do I do when I have a dual homed host with one IP in the 172.20 and one in the 10. range? Where the 172.20 just connects to a Cisco Catalyst and the 10. range to a router? What parent do I use in the parents directive, the router or the switch? Both interfaces are being used for service checks as one network is a private gigabit backbone and the other is open to the LAN. Is there any use in adding them both as parent, and what consequences will this have? The NetSaint box is on both networks. ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Tue Jan 14 16:33:23 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 14 Jan 2003 09:33:23 -0600 Subject: PHP 4.3 Installation Error Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED0BB@mismail.ena.com> Use http://www.rpmfind.net to locate and install the necessary rpm's for these files and try again. Any further issues would be better directed to one or more of the php-users mailing lists instead of this list as it is significantly off topic. -- Marc -----Original Message----- From: Atul Shrivastava [mailto:atulsh at hclinsys.com] Sent: Monday, January 13, 2003 10:28 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] PHP 4.3 Installation Error Hello All, When I install the PHP version 4.3 in my redhat linux 7.3 then the installation has aborted and has given the following error: The following lib* files are required: libcrypto.so.0.9.6 libc.so.6 libdb-3.2.so libgcc-5.so.1 libsnmp-0.4.2.6.so libssl.so.0.9.6 libstdc++.so.5 libzzip-0.so.10 So can anyone give me any idea so that I can install php. 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 russell at quadrix.com Tue Jan 14 16:31:55 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 14 Jan 2003 10:31:55 -0500 Subject: Path issue on install. Small issue References: <1042486299.3e23141b8b34b@wmail.cybersurf.com> <3E231B2C.D569FF85@live2think.com> <1042488920.3e231e59027ca@wmail.cybersurf.com> Message-ID: <3E242D6B.5010701@quadrix.com> The httpd.conf loooks good...what about the paths from your cgi.cfg? Russell Scibetti Gustave Eiffel wrote: >I could change every link in my side.html > >Here is my config of httpd.conf This look OK to you? It is at the very end of >my httpd.conf file. > >ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ > > AllowOverride AuthConfig > Options ExecCGI > Order allow,deny > Allow from all > > > >Alias /nagios/ /usr/local/nagios/share/ > > Options None > AllowOverride AuthConfig > Order allow,deny > Allow from all > > >Quoting Stan Tichomirov : > >>does typing out the correct URL bring you to the correct page? if so, then >>check >>your /usr/local/nagios/share/side.html and fix the URLs there. else, >>httpd.conf may >>not be correctly set up. >> >>Gustave Eiffel wrote: >> >>>I have just a small issue. >>> >>>I am just starting to install and have the web interface running but have a >>> >>path >> >>>issue on the cgi's >>> >>>For instance, if I click on Tactical Overview, the link is: >>> >>>http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi >>> >>>but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi >>> >>>So I have an extra nagios in the URL. >>> >>>Is there a config file to control this? >>> >>>Thanks much. >>> >>>Mark >>> >>>------------------------------------------------------- >>>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 >>> >>-- >>Stan Tichomirov >>UNIX Systems Administrator >> >> >> >> >>------------------------------------------------------- >>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 >> > > > > >------------------------------------------------------- >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 > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Tue Jan 14 16:47:19 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 14 Jan 2003 10:47:19 -0500 Subject: Using check_dummy for organizing the status maps Message-ID: <5593DA408212D511B0910002A513501F01D2889F@phsexch20.mgh.harvard.edu> Hi there, I wanted to better organize the icons on the status map screens and I had an idea on how I could do it. The idea is to create a "dummy" parent node for each grouping of icons. For example, nodes on one floor would be the children of a system that does not actually exist, but is listed exclusively for organizational purposes. To achieve this end I would create a pseudo node account within Nagios via the hostextinfo, hosts, and hostgroups configuration files. To monitor the node I would use the ./check_dummy daemon and configure it as such in the services.cfg file. I would then add the appropriate parents line to the configuration settings of those systems that I want subordinated to the newly created parent. Would this be the correct way to do this? Thanks. ------------------------------------------------------- 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 From bnelson at rightnow.com Tue Jan 14 16:50:28 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Tue, 14 Jan 2003 08:50:28 -0700 Subject: nrpe as inetd service Message-ID: You may need to add an entry to /etc/services. Something like: nrpe 5666/tcp # NRPE --Ben -----Original Message----- From: hrishy [mailto:hrishys at yahoo.co.uk] Sent: Tuesday, January 14, 2003 5:44 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nrpe as inetd service Hi I am unable to start the nrpe as a service in inetd.My sun solaris machine has the following entry nrpe stream tcp nowait nagios /usr/nagios/nrpe -c /usr/nagios/etc/nrpe.cfg note /usr/sbin does not contain tcpd.. but starting nrpe as a standalone deamon suceeds..anybody can help 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: 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 sghosh at sghosh.org Tue Jan 14 16:58:58 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 14 Jan 2003 10:58:58 -0500 (EST) Subject: OT. Anyone monitoring a CIFS NetApp filer (Can't connect with public SMB code) ? In-Reply-To: <20030114081058.D214@IPAustralia.Gov.AU> References: <20030114081058.D214@IPAustralia.Gov.AU> Message-ID: Hi Stanley There is a contrib/check_netapp.pl - snmp checks for the hardware and nfsops. May be able to extend it to suport CIFS if there is some snmp support. -sg On Tue, 14 Jan 2003, Stanley Hopcroft wrote: > Dear Ladies and Gentlemen, > > I am writing to ask if anyone is monitoring a NetApp filer running CIFS > only (no NFS please) ? > > If so, would you let me know how you are doing so, and the details of > the filer (ours is an 810 bought in the last 6 months. I don't even know > what code is on it). > > All the public SMB code base I have tried (Samba head, Samba-TNG, smbfs > in FreeBSD 4.x) fails with a sesssion_setup rejected for a variety of > domain users (the same code happily connects to the same users shares on > NT servers). > > My employer has opened a fault with NetApp about this but I would very > grateful for the experience of others. > > Thank you, > > Yours sincerely. > > -- > ------------------------------------------------------------------------ > Stanley Hopcroft > ------------------------------------------------------------------------ -- ------------------------------------------------------- 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 From jlyons30 at yahoo.com Tue Jan 14 17:02:22 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 08:02:22 -0800 (PST) Subject: Using check_dummy for organizing the status maps In-Reply-To: <5593DA408212D511B0910002A513501F01D2889F@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D2889F@phsexch20.mgh.harvard.edu> Message-ID: <20030114160222.7278.qmail@web21501.mail.yahoo.com> Currently thats how I'm doing it, but instead I use ping and set the IP address to the loopback 127.0.0.1, keep in mind that this object will allways be "OK", even if it's parents are down.... "Kaplan, Andrew H." wrote:Hi there, I wanted to better organize the icons on the status map screens and I had an idea on how I could do it. The idea is to create a "dummy" parent node for each grouping of icons. For example, nodes on one floor would be the children of a system that does not actually exist, but is listed exclusively for organizational purposes. To achieve this end I would create a pseudo node account within Nagios via the hostextinfo, hosts, and hostgroups configuration files. To monitor the node I would use the ./check_dummy daemon and configure it as such in the services.cfg file. I would then add the appropriate parents line to the configuration settings of those systems that I want subordinated to the newly created parent. Would this be the correct way to do this? Thanks. ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Tue Jan 14 17:12:33 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 14 Jan 2003 10:12:33 -0600 Subject: testing modem for qpage Message-ID: Sorry about the line wrap. I use exchange and sometimes (often?) forget to insert returns. Looking at the queue is a good idea, it actually tells me more about what I am interested in, mainly that pages are not going out. Rather than just that the modem is not working. There could be more reasons than a faulty modem, i.e. that the cellular service no longer accepts TAP/IXO messages, etc... I think two services for the pager would be best, using John Jolet's suggestion for monitoring the process with check_proc. Thanks for the tips! Greg > -----Original Message----- > From: C. Bensend [mailto:benny at bennyvision.com] > Sent: Tuesday, January 14, 2003 12:00 AM > To: Nagios-users (E-mail) > Subject: Re: [Nagios-users] testing modem for qpage > > > On Mon, Jan 13, 2003 at 03:20:26PM -0600, Potter, G M (Greg) wrote: > > > > I have been doing some preliminary testing using qpage, but > it looks like qpage returns a status of 0 regardless of the > page going through or not. My initial thought was to set up > the pager as a host and have the check interval set to one > week. I can live with one page a week for the knowledge that > the pager is still functional. But It seems like it would be > better to check more frequently, if possible without actually > sending the page. I suppose one could write a script to open > the port and use expect/send to communicate with the modem to > verify it was still "alive". Has anyone looked at this and > come up with a solution? > > Wow, please wrap your lines. ;) > > While this would be a hack, you might set up a local test that checks > the qpage _queue_, looking for any failure messages. That, I think, > would be easier than trying to poke deeper into qpage. Hopefully, > that would be sufficient for you. > > 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: 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 > ------------------------------------------------------- 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 From Mark.Mead at gamer.tv Tue Jan 14 17:05:06 2003 From: Mark.Mead at gamer.tv (Mead, Mark (Gamer.tv)) Date: Tue, 14 Jan 2003 16:05:06 -0000 Subject: Nagios Version 1.0 Message-ID: Good afternoon, I have recently installed Nagios on Red Hat Linux release 7.3 (Valhalla) I am having problems accessing the CGI Scripts via the web browser. Whilst attempting to view them - I receive the following error ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- ----- It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. ---------------------------------------------------------------------------- ------------- I have created a contact and contact group to use for access to the plugin / cgis. HTTP Authentication is also configured and active Can anyone suggest an alternative solution? Many thanks in advance Kind regards Mark Mead NOC Engineer Gamer.TV MGS http://Gamer.tv Xbox Gamertag LancelotM Direct Tel +44 0208 233 6112 Facsimile +44 0208 2336101 Email lancelot at nildram.co.uk Mobile 07903 054845 DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. ------------------------------------------------------- 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 From Marian.ZUREK at cern.ch Tue Jan 14 17:35:07 2003 From: Marian.ZUREK at cern.ch (Marian Zurek) Date: Tue, 14 Jan 2003 17:35:07 +0100 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: Message-ID: <3E243C3B.5060807@cern.ch> An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 14 17:43:22 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 10:43:22 -0600 Subject: Template Structure is Better??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24F8@PKDWB03C.ad.sprint.com> Tom DE BLENDE wrote: > > Hi Pete, > > > "Shelfo, Pete" wrote: > > > > I have been using Netsaint 7.0 for a long time and have built up > > quite a large number of non-standard check_snmp statements that > > require individual configuration per server. With the new template > > based format for Nagios 1.0 my services.cfg file is going to be huge > > since each service statement is now about 10 lines instead of one > > line condensed. > > I just moved from NetSaint 0.0.7 to Nagios as well. You have a point > that the one line per service was easier to overview. However, don't > let this scare you. Templates are really fun to play with! When I first started to sink my teeth into Nagios back in July/02, I glanced at the 'old' method, shuddered quietly, glanced at the 'new' method, pondered a moment, read the note that indicated everything which used the 'old' method would eventually use the 'new' method, and decided I didn't want to be forced to completely redo everything after the 'old' method was dropped. Once I got the knack for seeing opportunities for making templates, the actual keystrokes I needed to do was a major savings. > > This is going to make maintenance very difficult > > since I will have to browse tons of pages to find a service. > > Well, you can always use the search funtion in vi... Do what I do. In nagios.cfg, set: cfg_dir=/usr/local/nagios/etc/configs and in that directory, create a separate .cfg file for each host. That config file will have the host config stanza as well as all the service config stanzas. Makes for a great way to quickly build out new host/service definitions (ie, keep a copy of a 'baseline' config for each architecture you wish to build out quickly, such as a SQL Server for Windows, or an Oracle database server for Solaris -- just make sure you don't leave the boilerplate files in that directory ending in .cfg, as Nagios will examine them on startup). > > I don't want to go back to the old "default" method since I am > > completely transferring my system into the new format and don't want > > to be outdated on the offset. > > That was one of my motivations as well.> *shrug* I just saw it as The Way (tm). ;) > > Is there a way to manage custom statements like check_snmp and > > NSClient Windows service check so that they are not out of control? > > I see the benefit for template's but that seems to be limited to > > environments that all the hosts in a network have similar settings. > > If one server in a group does not follow a guideline then you have > > to expand the group to individual hosts. Can you do hostgroup > > exemptions in a service check? Can you issue multiple > > check_commands in one service statement? > > See it like this: directives for a specific host or service take > precedence over template settings. And that is a true blessing! One > example: > > I monitor a lot of SQL servers, so I have a SQL service template like > this: [snip] > So you see I can use everything from the template, and still change > that one directive that does not fit in, in this case the > check_command. Templates rock! 'Nuff said. :) > In my opinion the new template format beats the "Old Way". You just > have to learn the little tricks and not just run the convert tool and > leave it to that. Using that tool is a start that will save you a lot > of typing work, but you should then try to exploit everyting that > templates have to offer. In a sense, one needs to step back, look at the bigger picture, and recognize opportunities for economizing. In the beginning, I too used hosts.cfg and services.cfg and added multiple definitions where possible. I've all but eliminated that. It's more verbose using my approach, but also affords greater nimbleness during creation, and minimizes the scope of Fat Fingering a config file. I've even given thought to creating separate subdirectories for each hostname, and creating tiny separate files for each host/service definition. In a dream world, there would be some sort of implicit recognition that, since the service definitions are in the same directory as the host definition, they must be referring to that host, and no other. That would make adding new services as simple as copying a tiny .cfg file from a boilerplate directory to the hostname directory. (Dependencies are a whole 'nother kettle of fish.) > And as far as the size is concerned... that's about the only setback I > can see and was a bit my concern as well... Given the choice of verbose/lucid vs. terse/cryptic, I'm all for verbose. ;) > Kind regards, > Tom jc > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From GPotter at MarathonOil.com Tue Jan 14 17:57:54 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 14 Jan 2003 10:57:54 -0600 Subject: testing modem for qpage Message-ID: It looks like qpage -Q will tell me how many messages are in the queue. So my strategy is now this. Have a service check that runs only on Friday morning that sends a page, this should always succeed. Run check_proc on some standard interval (1-12 hours say), run a custom check that calls qpage -Q on a similar interval. That way if I get my page Friday morning I have tested the modem before the weekend, and I get e-mail during the week if check_proc or my custom check fail. Any other thoughts on a modem checking strategy? Greg > -----Original Message----- > From: Potter, G M (Greg) > Sent: Tuesday, January 14, 2003 10:13 AM > To: Nagios-users (E-mail) > Cc: C. Bensend; John.Jolet at misyshealthcare.com > Subject: RE: [Nagios-users] testing modem for qpage > > > Sorry about the line wrap. I use exchange and > sometimes (often?) forget to insert returns. > Looking at the queue is a good idea, it actually > tells me more about what I am interested in, mainly > that pages are not going out. Rather than just that > the modem is not working. There could be more > reasons than a faulty modem, i.e. that the cellular > service no longer accepts TAP/IXO messages, etc... > I think two services for the pager would be best, > using John Jolet's suggestion for monitoring the > process with check_proc. > > Thanks for the tips! > > Greg > > > -----Original Message----- > > From: C. Bensend [mailto:benny at bennyvision.com] > > Sent: Tuesday, January 14, 2003 12:00 AM > > To: Nagios-users (E-mail) > > Subject: Re: [Nagios-users] testing modem for qpage > > > > > > On Mon, Jan 13, 2003 at 03:20:26PM -0600, Potter, G M (Greg) wrote: > > > > > > I have been doing some preliminary testing using qpage, but > > it looks like qpage returns a status of 0 regardless of the > > page going through or not. My initial thought was to set up > > the pager as a host and have the check interval set to one > > week. I can live with one page a week for the knowledge that > > the pager is still functional. But It seems like it would be > > better to check more frequently, if possible without actually > > sending the page. I suppose one could write a script to open > > the port and use expect/send to communicate with the modem to > > verify it was still "alive". Has anyone looked at this and > > come up with a solution? > > > > Wow, please wrap your lines. ;) > > > > While this would be a hack, you might set up a local test > that checks > > the qpage _queue_, looking for any failure messages. That, I think, > > would be easier than trying to poke deeper into qpage. Hopefully, > > that would be sufficient for you. > > > > 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: 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Tue Jan 14 17:49:36 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 10:49:36 -0600 Subject: check_nt returns (null) Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12CD@PKDWB03C.ad.sprint.com> The way to list the available performance counters is to login (as a Windows user) to the Windows box and check which performance counters there are. jc -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Tuesday, January 14, 2003 9:37 AM To: Tom DE BLENDE Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt returns (null) When I read this the first time, I thought it would display all variables that available on the remote machine...I was just looking for a list of available performance counters from the remote machine.... >>>> The -d SHOWALL switch is only used when checking service and process states. _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Volker.Aust at premiere.de Tue Jan 14 18:03:49 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Tue, 14 Jan 2003 18:03:49 +0100 Subject: db2 Message-ID: Hi Clif, I have just started this venture. First I check with SNMP (lan manager mib (NT4) or host resource mib (W2K)) that the service is running. To check a real database connection I have written a java plugin (this is in an experimental or pre-ALPHA state) which connects with JDBC to the database and performs a "select count(*) from syscat.tables" to make something "useful". On AIX you have the possibility to write your custom plugins as shell- or perl-script and use the command line tools of DB2 (and call them through NRPE, check_by_ssh, ...). A support question concerning DB2 and SNMP IBM answered that "... we must tell our V7 customers that SNMP is not available anymore ...", "... we have decided not to support SNMP in our next DB2 version (V8 GA)..." and that "... we intend to reconsider our support statement for SNMP in a post v8 GA release ...". -vol > -----Original Message----- > From: Clif J. Smith [mailto:cjs at cjs226.com] > Sent: Tuesday, January 14, 2003 3:44 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] db2 > > > Is anyone monitoring db2? If so, how? > > Thanks, Clif > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From p.miquet at hafiba.fr Tue Jan 14 18:06:16 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 14 Jan 2003 18:06:16 +0100 Subject: Nagios Version 1.0 In-Reply-To: References: Message-ID: <1042563976.4945.105.camel@moishe> Do you need to get authentication when accessing to the Nagios pages ? This is a first request ... Second, you HAVE to define which user can access to CGi Script. This is done using the cgi.cfg file using authorized_xxx field HTH Regards Pascal Miquet Le mar 14/01/2003 ? 17:05, Mead, Mark (Gamer.tv) a ?crit : > Good afternoon, > > I have recently installed Nagios on Red Hat Linux release 7.3 (Valhalla) > > I am having problems accessing the CGI Scripts via the web browser. > > Whilst attempting to view them - I receive the following error > ---------------------------------------------------------------------------- > ---------------------------------------------------------------------------- > ----- > It appears as though you do not have permission to view information for any > of the services you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > ---------------------------------------------------------------------------- > ------------- > I have created a contact and contact group to use for access to the plugin / > cgis. HTTP Authentication is also configured and active > Can anyone suggest an alternative solution? > Many thanks in advance > > Kind regards > > Mark Mead > NOC Engineer > Gamer.TV > MGS > http://Gamer.tv > Xbox Gamertag LancelotM > Direct Tel +44 0208 233 6112 > Facsimile +44 0208 2336101 > Email lancelot at nildram.co.uk > Mobile 07903 054845 > > > > > DISCLAIMER - The preceding e-mail message (including any attachments) > contains information that may be confidential, may be protected by the > attorney-client or other applicable privileges, or may constitute non-public > information. It is intended to be conveyed only to the designated > recipient(s) named above. If you are not an intended recipient of this > message, please notify the sender by replying to this message and then > delete all copies of it from your computer system. Any use, dissemination, > distribution, or reproduction of this message by unintended recipients is > not authorized and may be unlawful. The contents of this communication do > not necessarily represent the views of this company. > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Tue Jan 14 18:04:12 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 11:04:12 -0600 Subject: NRPE vs. check_by_ssh vs. nagios_statd Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> 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 aj.mckee at nmtbmedia.com Tue Jan 14 18:13:48 2003 From: aj.mckee at nmtbmedia.com (AJ McKee) Date: Tue, 14 Jan 2003 17:13:48 -0000 Subject: Nagios Version 1.0 In-Reply-To: References: Message-ID: <004d01c2bbf0$4d4f4120$0501a8c0@nmtbmedia> -- SNIP > Whilst attempting to view them - I receive the following error -- SNIP http://nagios.sourceforge.net/docs/1_0/cgiauth.html The docs are very good and should be given a full read of before installing /AJ ------------------------------------------------------- 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 From slebrun at muskoka.com Tue Jan 14 18:20:08 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 14 Jan 2003 12:20:08 -0500 Subject: Template Structure is Better??? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24F8@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F8@PKDWB03C.ad.sprint.com> Message-ID: > cfg_dir=/usr/local/nagios/etc/configs Hmmm. I wonder if Nagios is intelligent enough to descend into subdirectories in the directory you set as cfg_dir..if so, that would be Sweet(tm). ------------------------------------------------------- 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 From steve at dtnspeed.net Tue Jan 14 18:30:14 2003 From: steve at dtnspeed.net (Steven L. Kohrs) Date: 14 Jan 2003 11:30:14 -0600 Subject: nsca/tcp server failing (looping or being flooded) Message-ID: <1042565414.1099.135.camel@localhost.localdomain> Has anyone seen this message before? inetd[6487]: nsca/tcp server failing (looping or being flooded), service terminated for 10 min I only have three remote monitoring servers currently deployed and need thirty more. Each remote server monitors three dozen hosts. Should I run nsca as a standalone daemon and utilize iptables instead of using inet? ------------------------------------------------------- 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 From jsm at inpro.net Tue Jan 14 18:51:05 2003 From: jsm at inpro.net (Jeff McKeon) Date: 14 Jan 2003 12:51:05 -0500 Subject: Parents In-Reply-To: <20030114153944.39832.qmail@web21512.mail.yahoo.com> References: <20030114153944.39832.qmail@web21512.mail.yahoo.com> Message-ID: <1042566666.23183.20.camel@rh80-jsm.telaurus.net> Ok, here's a twist. What about in the other direction? I've got a firewall with two inside ports. One goes to a managed switch on the trusted network, the other to a dumb hub which is my DMZ. I'd like to show the dumb hub but because it has no IP address how can I? right now the firewall is a parent to the switch and all systems on the trusted network have the switch as a parent. On the DMZ side though, all systems have the firewall as a parent directly. Could I add a "Fake" host to represent the dumb hub and then set the DMZ systems to use that as a parent? Or would this cause problems? thanks, jeff On Tue, 2003-01-14 at 10:39, Jon Lyons wrote: > > Add them both as "parents router,switch" Make sure router and switch are defined in the hosts.cfg file before your dual homed host. > Tom DE BLENDE wrote:A small question on the "parents" host directive. I have a host that > is situated behind a router. No problem, I just add that router as a > parent for my host. > > However, what do I do when I have a dual homed host with one IP in the > 172.20 and one in the 10. range? Where the 172.20 just connects to a > Cisco Catalyst and the 10. range to a router? > > What parent do I use in the parents directive, the router or the > switch? Both interfaces are being used for service checks as one > network is a private gigabit backbone and the other is open to the > LAN. Is there any use in adding them both as parent, and what > consequences will this have? > > The NetSaint box is on both networks. > > > ------------------------------------------------------- > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Tue Jan 14 18:40:28 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 11:40:28 -0600 Subject: Template Structure is Better??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12D4@PKDWB03C.ad.sprint.com> I should have mentioned that fact. Ethan did mention that it would/will, but I don't recall with which release. It could be that it's there now. A quick test could validate that query. ;) jc > -----Original Message----- > From: Shayne Lebrun [mailto:slebrun at muskoka.com] > Sent: Tuesday, January 14, 2003 11:20 AM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Template Structure is Better??? > > > > cfg_dir=/usr/local/nagios/etc/configs > > Hmmm. I wonder if Nagios is intelligent enough to descend into > subdirectories in the directory you set as cfg_dir..if so, > that would be > Sweet(tm). > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Tue Jan 14 18:42:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 11:42:51 -0600 Subject: new version of NSClient available Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12D5@PKDWB03C.ad.sprint.com> Tom DE BLENDE was the first to mention to me that there's a new version of NSClient (1.0.7.1) which addresses the unwanted messages to the Event Log. http://nsclient.ready2run.nl/whatsnew.htm#sat-January-11_2003 jc ------------------------------------------------------- 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 From jwgreene at megalink.net Tue Jan 14 19:01:00 2003 From: jwgreene at megalink.net (Jim Greene) Date: 14 Jan 2003 13:01:00 -0500 Subject: Question about thresholds and nrpe Message-ID: <1042567260.4385.9.camel@calcutta.megalink.net> Hi All, I did a search and nothing showed up so I guess i will ask the list: I am using nrpe to monitor disk space and load on a few mixes solaris/linux boxes. How do I set the threshholds for these devices ? Thanks in advance... Jim ------------------------------------------------------- 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 From russell at quadrix.com Tue Jan 14 19:11:33 2003 From: russell at quadrix.com (Russell Scibetti) Date: Tue, 14 Jan 2003 13:11:33 -0500 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> Message-ID: <3E2452D5.8030803@quadrix.com> I made an addition to the check_by_ssh code to allow for another argument: -c that you can use to change what type of encryption to use. I did this because we planned on trying to use "-c none" to see if it reduced some of the ssh-induced load. We haven't actually tested its effects yet (we need to rebuild ssh to allow "-c none" first). Does anyone know if this would make a big difference in ssh's scalability? If so, should I contribute this back? Russell Scibetti Carroll, Jim P [Contractor] wrote: > > > - 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 > > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Mark.Mead at gamer.tv Tue Jan 14 19:02:58 2003 From: Mark.Mead at gamer.tv (Mead, Mark (Gamer.tv)) Date: Tue, 14 Jan 2003 18:02:58 -0000 Subject: Nagios Version 1.0 Message-ID: Hi Pascal, Authentication is required to access Nagios pages I have defined a user (nagios) to access cgi's which is a member of a group (nagioscmd) which has sufficient rights to the /etc and /libexec directories Still no joy?????? -----Original Message----- From: Pascal Miquet [mailto:p.miquet at hafiba.fr] Sent: 14 January 2003 17:06 To: Mead, Mark (Gamer.tv) Cc: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] Nagios Version 1.0 Do you need to get authentication when accessing to the Nagios pages ? This is a first request ... Second, you HAVE to define which user can access to CGi Script. This is done using the cgi.cfg file using authorized_xxx field HTH Regards Pascal Miquet Le mar 14/01/2003 ? 17:05, Mead, Mark (Gamer.tv) a ?crit : > Good afternoon, > > I have recently installed Nagios on Red Hat Linux release 7.3 (Valhalla) > > I am having problems accessing the CGI Scripts via the web browser. > > Whilst attempting to view them - I receive the following error > ---------------------------------------------------------------------------- > ---------------------------------------------------------------------------- > ----- > It appears as though you do not have permission to view information for any > of the services you requested... > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI > and check the authorization options in your CGI configuration file. > ---------------------------------------------------------------------------- > ------------- > I have created a contact and contact group to use for access to the plugin / > cgis. HTTP Authentication is also configured and active > Can anyone suggest an alternative solution? > Many thanks in advance > > Kind regards > > Mark Mead > NOC Engineer > Gamer.TV > MGS > http://Gamer.tv > Xbox Gamertag LancelotM > Direct Tel +44 0208 233 6112 > Facsimile +44 0208 2336101 > Email lancelot at nildram.co.uk > Mobile 07903 054845 > > > > > DISCLAIMER - The preceding e-mail message (including any attachments) > contains information that may be confidential, may be protected by the > attorney-client or other applicable privileges, or may constitute non-public > information. It is intended to be conveyed only to the designated > recipient(s) named above. If you are not an intended recipient of this > message, please notify the sender by replying to this message and then > delete all copies of it from your computer system. Any use, dissemination, > distribution, or reproduction of this message by unintended recipients is > not authorized and may be unlawful. The contents of this communication do > not necessarily represent the views of this company. > > > ------------------------------------------------------- > 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 DISCLAIMER - The preceding e-mail message (including any attachments) contains information that may be confidential, may be protected by the attorney-client or other applicable privileges, or may constitute non-public information. It is intended to be conveyed only to the designated recipient(s) named above. If you are not an intended recipient of this message, please notify the sender by replying to this message and then delete all copies of it from your computer system. Any use, dissemination, distribution, or reproduction of this message by unintended recipients is not authorized and may be unlawful. The contents of this communication do not necessarily represent the views of this company. ------------------------------------------------------- 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 From lzxx4x at linux133.powertrain.mpg.gm.com Tue Jan 14 19:50:35 2003 From: lzxx4x at linux133.powertrain.mpg.gm.com (Amar S. Bhatti) Date: 14 Jan 2003 13:50:35 -0500 Subject: question about checking the presence of a file in a directory Message-ID: -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hello folks, I need to monitor the presence of certain files in a directory at all times. I think they are randomly generated by a program that one of our software engineers has developed in microsoft access to check for data integrity. Thanks a lot in advance for your help. - -- Amar -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.7 (GNU/Linux) iD8DBQE+JFv7nyUZXrBbDskRAlO0AJsHOEVkjLSeeXFNgUQcXajZXOxkLQCfTMc3 WB1uFwLWoqx5LzBSxCoLDqw= =c39B -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From donavan at 4wx.net Tue Jan 14 19:54:32 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 14 Jan 2003 12:54:32 -0600 Subject: Multiple inheritance In-Reply-To: References: Message-ID: <20030114185432.M38031@4wx.net> I've answered this before, but I can't find it in the archive....SF is acting up.... .dn ============================ copied from earlier message ===================== I do something similar, but it's a slightly different mind set template A template B, uses A service X, uses template B Same behavior, different method. I don't know if your way even works.... Example # Generic service definition template define service{ name generic-service ; ... } define service{ use generic-service name generic_check_disk is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups 4wx-admin notification_interval 240 notification_period 24x7 notification_options c,r register 0 } define service{ use generic_check_disk service_description / check_command check_nrpe!check_disk_root host_name sparky, cat } define service{ use generic_check_disk service_description /var/log check_command check_nrpe!check_disk_var_log host_name sparky, cat } Hopefully you can find something useful here. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Steven L. Kohrs" To: nagios-users at lists.sourceforge.net Sent: 07 Jan 2003 17:24:08 -0600 Subject: [Nagios-users] Multiple templates in a service definition? > Is it possible to 'use' more than one template in a service definition? > What about multiple hosts? > I need the same PING capabilities on all my hosts. > > Example: > > define service{ > name generic-service > ... > } > > define service{ > name generic-ping > > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups engineers > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ping!100.0,20%!500.0, > 60% } > > define service{ > use generic-service ; Name of service template to > use use generic-ping ; Name of service template > to use > > host_name one,five,seven,eight,nine,www,ns1,ns2 > } -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Richard Colley To: "'nagios-users at lists.sourceforge.net'" Sent: Tue, 14 Jan 2003 14:44:15 +1100 Subject: [Nagios-users] Multiple inheritance > [Nagios-users] Multiple inheritance ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From emann at questinc.org Tue Jan 14 19:53:25 2003 From: emann at questinc.org (Evan Mann) Date: Tue, 14 Jan 2003 13:53:25 -0500 Subject: external command sample configs Message-ID: Can anyone point me to some external command sample configurations. I need to set up the basic things like disable/enable notifcations on a host. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jcarro10 at sprintspectrum.com Tue Jan 14 19:49:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 12:49:59 -0600 Subject: Question about thresholds and nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24FB@PKDWB03C.ad.sprint.com> Not sure what you're asking here. Setting the warning/critical thresholds doesn't have a lot to do with NRPE, other than what you put into the nrpe.cfg file. But let's assume you need an example for each. First, nrpe.cfg on the client: command[check_load]=/home/nagios/libexec/check_load 5 10 15 20 25 30 command[root]=/home/nagios/libexec/check_disk -m 95 98 / Next, services.cfg on Nagios: define service{ host_name itdmln30 use icmp service_description Total Load contact_groups unix-admins check_command check_nrpe!check_load } define service{ host_name itdmln30 use icmp service_description Space on root contact_groups unix-admins check_command check_nrpe!root } I'll assume for the moment that you've already got check_nrpe properly defined in checkcommands.cfg. (Note that you may wish to have another 'use' statement than what I'm using for my environment.) I should also mention that my check_load is based on an example I read somewhere. Now that I've done a "./check_load --help", I may change my approach. HTH. jc > -----Original Message----- > From: Jim Greene [mailto:jwgreene at megalink.net] > Sent: Tuesday, January 14, 2003 12:01 PM > To: Nagios Mailing List > Subject: [Nagios-users] Question about thresholds and nrpe > > > > Hi All, > I did a search and nothing showed up so I guess i will > ask the list: > I am using nrpe to monitor disk space and load on a few mixes > solaris/linux boxes. How do I set the threshholds for these devices ? > Thanks in advance... > Jim > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From bnelson at rightnow.com Tue Jan 14 19:46:41 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Tue, 14 Jan 2003 11:46:41 -0700 Subject: NRPE vs. check_by_ssh vs. nagios_statd Message-ID: Doesn't this defeat the purpose of using ssh in the first place?? --Ben -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Tuesday, January 14, 2003 11:12 AM To: Carroll, Jim P [Contractor] Cc: 'Marian Zurek'; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NRPE vs. check_by_ssh vs. nagios_statd I made an addition to the check_by_ssh code to allow for another argument: -c that you can use to change what type of encryption to use. I did this because we planned on trying to use "-c none" to see if it reduced some of the ssh-induced load. We haven't actually tested its effects yet (we need to rebuild ssh to allow "-c none" first). Does anyone know if this would make a big difference in ssh's scalability? If so, should I contribute this back? Russell Scibetti Carroll, Jim P [Contractor] wrote: - 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 -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Tue Jan 14 20:10:40 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 11:10:40 -0800 (PST) Subject: Parents In-Reply-To: <1042566666.23183.20.camel@rh80-jsm.telaurus.net> References: <1042566666.23183.20.camel@rh80-jsm.telaurus.net> Message-ID: <20030114191040.46460.qmail@web21501.mail.yahoo.com> I'd just create the dumb hub like any other object, but set the IP address to 127.0.0.1, or maybe the outside (hub side)ip address of your firewall.... Jeff McKeon wrote:Ok, here's a twist. What about in the other direction? I've got a firewall with two inside ports. One goes to a managed switch on the trusted network, the other to a dumb hub which is my DMZ. I'd like to show the dumb hub but because it has no IP address how can I? right now the firewall is a parent to the switch and all systems on the trusted network have the switch as a parent. On the DMZ side though, all systems have the firewall as a parent directly. Could I add a "Fake" host to represent the dumb hub and then set the DMZ systems to use that as a parent? Or would this cause problems? thanks, jeff On Tue, 2003-01-14 at 10:39, Jon Lyons wrote: > > Add them both as "parents router,switch" Make sure router and switch are defined in the hosts.cfg file before your dual homed host. > Tom DE BLENDE wrote:A small question on the "parents" host directive. I have a host that > is situated behind a router. No problem, I just add that router as a > parent for my host. > > However, what do I do when I have a dual homed host with one IP in the > 172.20 and one in the 10. range? Where the 172.20 just connects to a > Cisco Catalyst and the 10. range to a router? > > What parent do I use in the parents directive, the router or the > switch? Both interfaces are being used for service checks as one > network is a private gigabit backbone and the other is open to the > LAN. Is there any use in adding them both as parent, and what > consequences will this have? > > The NetSaint box is on both networks. > > > ------------------------------------------------------- > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- 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 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Tue Jan 14 20:05:47 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 11:05:47 -0800 (PST) Subject: check_nt returns (null) In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E12CD@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E12CD@PKDWB03C.ad.sprint.com> Message-ID: <20030114190547.85200.qmail@web21512.mail.yahoo.com> Ick! You mean I'd have to touch a windows box?!@?!?!?@!@.... Thanks! "Carroll, Jim P [Contractor]" wrote:The way to list the available performance counters is to login (as a Windows user) to the Windows box and check which performance counters there are. jc-----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Tuesday, January 14, 2003 9:37 AM To: Tom DE BLENDE Cc: Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_nt returns (null) When I read this the first time, I thought it would display all variables that available on the remote machine...I was just looking for a list of available performance counters from the remote machine.... >>>> The -d SHOWALL switch is only used when checking service and process states. --------------------------------- 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: From donavan at 4wx.net Tue Jan 14 20:07:07 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 14 Jan 2003 13:07:07 -0600 Subject: Same status In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> Message-ID: <20030114190707.M72301@4wx.net> Hi Jim, I started out trying to do everything with SNMP. Just be aware that it can add extra services to your configuration. As an example, for the 1 5 15 minutes CPU load check, it's 3 SNMP services instead of just one. There were other things I couldn't figure out with SNMP, like checking that all processes on a box are less than 25M in size. It's prolly good to know how to do SNMP checks, but I don't think they are the be all to monitoring. I've since backed off SNMP and have gone to letting the nagios plugins do the work where I can. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Carroll, Jim P [Contractor]" To: "'Karl DeBisschop'" Sent: Tue, 14 Jan 2003 09:36:32 -0600 Subject: RE: [Nagios-users] Same status > I've been pondering SNMP as an alternative to NRPE. If I were to > take this approach, I presume I need the following: > > - the SNMP software components need to be installed on the Nagios > server as well as for any client I wish to monitor (should be > obvious, but I didn't want to skip over this ;) - proper config of > SNMP so that it's functioning client/server - the check_snmp plugin > should be built properly - I'm guessing I need a MIB for whatever > aspect I'm trying to monitor...? > E.g., o/s, hardware, specific application - the biggest gap is > w.r.t. what a service definition would look like; if you could post > a couple examples (eg, memory, disk) that would be most excellent, > sir :) > > For further reference, it would be great if you could take me > through the creation of a single definition, from the "gee, I'd like > to monitor service XYZ on host xyzygy" to looking up the MIB details > (or snmpwalk or whatever's required), that'd be great! > > TIA, > > jc > > > -----Original Message----- > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > Sent: Monday, January 13, 2003 8:37 PM > > To: Chris Stankaitis > > Cc: Justin; Nagios Users > > Subject: Re: [Nagios-users] Same status > > > > > > On Mon, 2003-01-13 at 09:02, Chris Stankaitis wrote: > > > This is an active vs. passive check thing... An Active > > check is one that > > > is started on the nagios server.... some of these can handle remote > > > hosts, ping, ssh, smtp, pop, http, time etc... those you > > can run from > > > nagios and everything will be happy for all your different hosts. > > > > > > Things like current user, load, disk space, processes, > > can't be run > > > from the nagios server with regards to collecting this > > information from > > > remote hosts by default. to do this you need to set up > > passive checks, > > > and somehow get the information from the client to the host (nagios > > > server) this can be acomplished by mutiple ways... > > > > > > 1) NRPE - open connection runs on each clent, nagios > > connects to the > > > port and gets the info you want > > > 2) NSCA - open connection runs on NAGIOS server and clients send > > > information to the nagios server encrypted > > > 3) check_by_ssh using the SSH's ability to execute commands to run > > > commands on the client and pulls back results > > > > If you are in an isolated LAN (i.e., you have a failrly > > decent firewall > > and you put ACLs on your servers) there is also check_snmp. It's my > > personal favorite becuase it has great funtionality, near > > zero setup in > > my RH73 servers, and very low overhead. > > > > Justin's options are fine too - just missed one (I'm sure > > there are more > > too). > > > > -- > > Karl > > > > > > > > ------------------------------------------------------- > > 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 > > > > ------------------------------------------------------- > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From p.miquet at hafiba.fr Tue Jan 14 20:23:30 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 14 Jan 2003 20:23:30 +0100 Subject: [Nagios-users] question about checking the presence of a file in a directory In-Reply-To: References: Message-ID: <1042572211.16731.8.camel@moishe> First you must know if files are located on your nagios server ? Otherwise you'll have to deal with a way of communication between servers like NRPE, NSClient, ... And then you may define how your files existences is checked. You may take a look on the nagios site to see the addons, and the plugin developpement informations. HTH Regards Pascal Miquet Le mar 14/01/2003 ? 19:50, Amar S. Bhatti a ?crit : > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello folks, > > I need to monitor the presence of certain files in a directory at all > times. I think they are randomly generated by a program that one of > our software engineers has developed in microsoft access to check for > data integrity. > > Thanks a lot in advance for your help. > > - -- > Amar > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+JFv7nyUZXrBbDskRAlO0AJsHOEVkjLSeeXFNgUQcXajZXOxkLQCfTMc3 > WB1uFwLWoqx5LzBSxCoLDqw= > =c39B > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jsm at inpro.net Tue Jan 14 20:29:17 2003 From: jsm at inpro.net (Jeff McKeon) Date: 14 Jan 2003 14:29:17 -0500 Subject: Parents In-Reply-To: <20030114191040.46460.qmail@web21501.mail.yahoo.com> References: <20030114191040.46460.qmail@web21501.mail.yahoo.com> Message-ID: <1042572557.1369.3.camel@rh80-jsm.telaurus.net> Jon, Thanks, the firewall port is a good idea. Is there any way to move the location of the "Nagios" icon in relation to the other Icons on the status map? My Nagios machine is on one side of a specific firewall and I'd like to show it as such. Right now the "nagios" logo is right in the middle of everything. Thanks, Jeff On Tue, 2003-01-14 at 14:10, Jon Lyons wrote: > > I'd just create the dumb hub like any other object, but set the IP address to 127.0.0.1, or maybe the outside (hub side)ip address of your firewall.... > Jeff McKeon wrote:Ok, here's a twist. What about in the other direction? > > I've got a firewall with two inside ports. One goes to a managed switch > on the trusted network, the other to a dumb hub which is my DMZ. I'd > like to show the dumb hub but because it has no IP address how can I? > > right now the firewall is a parent to the switch and all systems on the > trusted network have the switch as a parent. > > On the DMZ side though, all systems have the firewall as a parent > directly. > > Could I add a "Fake" host to represent the dumb hub and then set the DMZ > systems to use that as a parent? Or would this cause problems? > > thanks, > > jeff > > On Tue, 2003-01-14 at 10:39, Jon Lyons wrote: > > > > Add them both as "parents router,switch" Make sure router and switch are defined in the hosts.cfg file before your dual homed host. > > Tom DE BLENDE wrote:A small question on the "parents" host directive. I have a host that > > is situated behind a router. No problem, I just add that router as a > > parent for my host. > > > > However, what do I do when I have a dual homed host with one IP in the > > 172.20 and one in the 10. range? Where the 172.20 just connects to a > > Cisco Catalyst and the 10. range to a router? > > > > What parent do I use in the parents directive, the router or the > > switch? Both interfaces are being used for service checks as one > > network is a private gigabit backbone and the other is open to the > > LAN. Is there any use in adding them both as parent, and what > > consequences will this have? > > > > The NetSaint box is on both networks. > > > > > > ------------------------------------------------------- > > 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 > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > > ------------------------------------------------------- > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From p.miquet at hafiba.fr Tue Jan 14 20:33:52 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 14 Jan 2003 20:33:52 +0100 Subject: db2 In-Reply-To: References: Message-ID: <1042572832.16673.10.camel@moishe> Does the init script support the status option ? This could help. I was also thinking on a LiNUX OS. Regards Le mar 14/01/2003 ? 18:03, Volker.Aust at premiere.de a ?crit : > Hi Clif, > > I have just started this venture. First I check with SNMP (lan manager mib > (NT4) or host resource mib (W2K)) that the service is running. > > To check a real database connection I have written a java plugin (this is in > an experimental or pre-ALPHA state) which connects with JDBC to the database > and performs a "select count(*) from syscat.tables" to make something > "useful". > > On AIX you have the possibility to write your custom plugins as shell- or > perl-script and use the command line tools of DB2 (and call them through > NRPE, check_by_ssh, ...). > > A support question concerning DB2 and SNMP IBM answered that "... we must > tell our V7 customers that SNMP is not available anymore ...", "... we have > decided not to support SNMP in our next DB2 version (V8 GA)..." and that > "... we intend to reconsider our support statement for SNMP in a post v8 GA > release ...". > > -vol > > > -----Original Message----- > > From: Clif J. Smith [mailto:cjs at cjs226.com] > > Sent: Tuesday, January 14, 2003 3:44 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] db2 > > > > > > Is anyone monitoring db2? If so, how? > > > > Thanks, Clif > > > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From GPotter at MarathonOil.com Tue Jan 14 20:44:10 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 14 Jan 2003 13:44:10 -0600 Subject: testing modem for qpage Message-ID: Not if Nagios owns the spool directory. The pager is currently dedicated to Nagios pages, so I don't mind that account owning the spool directory. Greg > -----Original Message----- > From: Jolet, John [mailto:John.Jolet at misyshealthcare.com] > Sent: Tuesday, January 14, 2003 11:44 AM > To: Potter, G M (Greg) > Subject: RE: [Nagios-users] testing modem for qpage > > > you have to call qpage -Q as root. > > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Tuesday, January 14, 2003 10:58 AM > To: Nagios-users (E-mail) > Subject: RE: [Nagios-users] testing modem for qpage > > > It looks like qpage -Q will tell me how many messages > are in the queue. So my strategy is now this. Have a > service check that runs only on Friday morning that sends > a page, this should always succeed. Run check_proc on > some standard interval (1-12 hours say), run a custom > check that calls qpage -Q on a similar interval. That > way if I get my page Friday morning I have tested the > modem before the weekend, and I get e-mail during the week > if check_proc or my custom check fail. > > Any other thoughts on a modem checking strategy? > > Greg > > > -----Original Message----- > > From: Potter, G M (Greg) > > Sent: Tuesday, January 14, 2003 10:13 AM > > To: Nagios-users (E-mail) > > Cc: C. Bensend; John.Jolet at misyshealthcare.com > > Subject: RE: [Nagios-users] testing modem for qpage > > > > > > Sorry about the line wrap. I use exchange and > > sometimes (often?) forget to insert returns. > > Looking at the queue is a good idea, it actually > > tells me more about what I am interested in, mainly > > that pages are not going out. Rather than just that > > the modem is not working. There could be more > > reasons than a faulty modem, i.e. that the cellular > > service no longer accepts TAP/IXO messages, etc... > > I think two services for the pager would be best, > > using John Jolet's suggestion for monitoring the > > process with check_proc. > > > > Thanks for the tips! > > > > Greg > > > > > -----Original Message----- > > > From: C. Bensend [mailto:benny at bennyvision.com] > > > Sent: Tuesday, January 14, 2003 12:00 AM > > > To: Nagios-users (E-mail) > > > Subject: Re: [Nagios-users] testing modem for qpage > > > > > > > > > On Mon, Jan 13, 2003 at 03:20:26PM -0600, Potter, G M > (Greg) wrote: > > > > > > > > I have been doing some preliminary testing using qpage, but > > > it looks like qpage returns a status of 0 regardless of the > > > page going through or not. My initial thought was to set up > > > the pager as a host and have the check interval set to one > > > week. I can live with one page a week for the knowledge that > > > the pager is still functional. But It seems like it would be > > > better to check more frequently, if possible without actually > > > sending the page. I suppose one could write a script to open > > > the port and use expect/send to communicate with the modem to > > > verify it was still "alive". Has anyone looked at this and > > > come up with a solution? > > > > > > Wow, please wrap your lines. ;) > > > > > > While this would be a hack, you might set up a local test > > that checks > > > the qpage _queue_, looking for any failure messages. > That, I think, > > > would be easier than trying to poke deeper into qpage. Hopefully, > > > that would be sufficient for you. > > > > > > 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: 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 > > > > > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From p.miquet at hafiba.fr Tue Jan 14 20:46:09 2003 From: p.miquet at hafiba.fr (Pascal Miquet) Date: 14 Jan 2003 20:46:09 +0100 Subject: Path issue on install. Small issue In-Reply-To: <1042486299.3e23141b8b34b@wmail.cybersurf.com> References: <1042486299.3e23141b8b34b@wmail.cybersurf.com> Message-ID: <1042573569.16732.20.camel@moishe> I would recommend to read the installation manual. It's well done, and if you follow instructions, all will works fine. Regards Le lun 13/01/2003 ? 20:31, Gustave Eiffel a ?crit : > I have just a small issue. > > I am just starting to install and have the web interface running but have a path > issue on the cgi's > > For instance, if I click on Tactical Overview, the link is: > > http://nagios.mydomain.com/nagios/nagios/cgi-bin/tac.cgi > > but http://nagios.mydomain.com/nagios/cgi-bin/tac.cgi > > So I have an extra nagios in the URL. > > Is there a config file to control this? > > Thanks much. > > Mark > > > ------------------------------------------------------- > 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 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jlyons30 at yahoo.com Tue Jan 14 21:00:12 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 12:00:12 -0800 (PST) Subject: Parents In-Reply-To: <1042572557.1369.3.camel@rh80-jsm.telaurus.net> References: <1042572557.1369.3.camel@rh80-jsm.telaurus.net> Message-ID: <20030114200012.20357.qmail@web21507.mail.yahoo.com> Not sure, but you can create the maps with user_defined cordinates. Or you can try editing the statusmap.c file & recompile. Look for "int nagios_icon_x=0" & "int nagios_icon_y=0" not postive what this does, but it looks like locations.. :) Jeff McKeon wrote:Jon, Thanks, the firewall port is a good idea. Is there any way to move the location of the "Nagios" icon in relation to the other Icons on the status map? My Nagios machine is on one side of a specific firewall and I'd like to show it as such. Right now the "nagios" logo is right in the middle of everything. Thanks, Jeff On Tue, 2003-01-14 at 14:10, Jon Lyons wrote: > > I'd just create the dumb hub like any other object, but set the IP address to 127.0.0.1, or maybe the outside (hub side)ip address of your firewall.... > Jeff McKeon wrote:Ok, here's a twist. What about in the other direction? > > I've got a firewall with two inside ports. One goes to a managed switch > on the trusted network, the other to a dumb hub which is my DMZ. I'd > like to show the dumb hub but because it has no IP address how can I? > > right now the firewall is a parent to the switch and all systems on the > trusted network have the switch as a parent. > > On the DMZ side though, all systems have the firewall as a parent > directly. > > Could I add a "Fake" host to represent the dumb hub and then set the DMZ > systems to use that as a parent? Or would this cause problems? > > thanks, > > jeff > > On Tue, 2003-01-14 at 10:39, Jon Lyons wrote: > > > > Add them both as "parents router,switch" Make sure router and switch are defined in the hosts.cfg file before your dual homed host. > > Tom DE BLENDE wrote:A small question on the "parents" host directive. I have a host that > > is situated behind a router. No problem, I just add that router as a > > parent for my host. > > > > However, what do I do when I have a dual homed host with one IP in the > > 172.20 and one in the 10. range? Where the 172.20 just connects to a > > Cisco Catalyst and the 10. range to a router? > > > > What parent do I use in the parents directive, the router or the > > switch? Both interfaces are being used for service checks as one > > network is a private gigabit backbone and the other is open to the > > LAN. Is there any use in adding them both as parent, and what > > consequences will this have? > > > > The NetSaint box is on both networks. > > > > > > ------------------------------------------------------- > > 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 > > > > > > --------------------------------- > > Do you Yahoo!? > > Yahoo! Mail Plus - Powerful. Affordable. Sign up now > > > > > ------------------------------------------------------- > 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 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 14 21:52:53 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 15 Jan 2003 07:52:53 +1100 Subject: OT. Anyone monitoring a CIFS NetApp filer (Can't connect with public SMB code) ? In-Reply-To: ; from sghosh@sghosh.org on Tue, Jan 14, 2003 at 10:58:58AM -0500 References: <20030114081058.D214@IPAustralia.Gov.AU> Message-ID: <20030115075250.A26211@IPAustralia.Gov.AU> Dear Sir, Thanks for the reply but unfortunately I _don't_ want to monitor it, only have Unix clients (smbclient and friends) use it like a MS/Samba file server. On Tue, Jan 14, 2003 at 10:58:58AM -0500, Subhendu Ghosh wrote: > > Hi Stanley > > There is a contrib/check_netapp.pl - snmp checks for the hardware and > nfsops. May be able to extend it to suport CIFS if there is some snmp > support. > > -sg > There don't seem to be many people accessing NetApp CIFS filers from Unix. 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jcarro10 at sprintspectrum.com Tue Jan 14 22:01:28 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 15:01:28 -0600 Subject: [Nagios-users] question about checking the presence of a file in a directory Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24FC@PKDWB03C.ad.sprint.com> Where do you wish to execute this check? Is it a local drive on a Windows machine? Is it on a Samba share (mounted from a *nix box)? Do you already have Nagios installed anywhere? What version? Do you have the plugins installed on the target machine? What version? Are you using NRPE to get the results from the client machine? NSClient? Do you have a specific filename in mind? Are you trying to alert if it appears? Are you trying to alert if it disappears? Is it merely the number of files in that directory that you want to monitor? Too many? Too few? Is it always the same directory, or are the files sprinkled randomly throughout the filesystem? Is there a race condition that needs to be taken into consideration? Imagine if you will, a world in which nobody can read your mind. jc > -----Original Message----- > From: Amar S. Bhatti [mailto:lzxx4x at linux133.powertrain.mpg.gm.com] > Sent: Tuesday, January 14, 2003 12:51 PM > To: netsaint-users at lists.sourceforge.net > Cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] question about checking the presence of a file > in a directory > > > -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > Hello folks, > > I need to monitor the presence of certain files in a directory at all > times. I think they are randomly generated by a program that one of > our software engineers has developed in microsoft access to check for > data integrity. > > Thanks a lot in advance for your help. > > - -- > Amar > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.0.7 (GNU/Linux) > > iD8DBQE+JFv7nyUZXrBbDskRAlO0AJsHOEVkjLSeeXFNgUQcXajZXOxkLQCfTMc3 > WB1uFwLWoqx5LzBSxCoLDqw= > =c39B > -----END PGP SIGNATURE----- > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step > towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click > here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From AHKAPLAN at PARTNERS.ORG Tue Jan 14 22:11:36 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 14 Jan 2003 16:11:36 -0500 Subject: Correct Syntax for check_snmp Message-ID: <5593DA408212D511B0910002A513501F01D288A2@phsexch20.mgh.harvard.edu> Hi there, I've downloaded the net-snmp package onto my Nagios server and I am ready to configure it to work with check_snmp. My question is, under the checkcommnds.cfg file, what would the correct syntax be for the check_snmp daemon? Thanks. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jragle at unm.edu Tue Jan 14 22:20:54 2003 From: jragle at unm.edu (Jamin) Date: Tue, 14 Jan 2003 14:20:54 -0700 (MST) Subject: Executing custom/misc commands problem In-Reply-To: <1042483654.11538.44.camel@moishe> References: <1042483654.11538.44.camel@moishe> Message-ID: The execution of the nagios user is allowed and the nfs file is exported. ... testing ... Ah ha! I think I narrowed the problem down to the parsing of commands with arguments in nagios. The problem is, the C program I pass off the arguments to parses on semicolons for the different fields. (Yeah, I know. Its bad, but I didn't write the dang thing.) ______________________________________________________________________________ This is the problem here. Example line I want executed:: /nfs/user/j/jragle/bin/testit.pl HostDown "severity:1;title:alert - Host $HOSTNAME$ is $HOSTSTATE$;description:Host $HOSTALIAS$ is $HOSTSTATE$ at $SHORTDATETIME$;" AND Nagios thinks it is this:: (via view config) nfs/user/j/jragle/bin/testit.pl HostDown "severity:1 ______________________________________________________________________________ I tried to 'escape' the semicolon with '\;', but that resulted as the same as above, but with a '\' character tacked on the end of the nagios line. Anyone have any idea how to get the nagios parsing to include the semicolons?? Thanks for the input all! -Jamin On 13 Jan 2003, Pascal Miquet wrote: > I would suggest to check if the execution of the nagios user is allowed. > Also take a look if the nfs file is exported ? > > Regards > P.Miquet > > Le sam 11/01/2003 ? 19:48, Jamin a ?crit : > > Hello fellow nagios users, > > I'm trying to integrate nagios into our paging and problem > > management software right now but am having problems getting nagios to > > execute the perl script that initiates the pages and tickets. > > > > In the etc/misccommands.cfg file I am trying to do something similar to > > the notify-by-epager command but instead of using printf and mail, I am > > trying to execute the command which contacts the problem management > > software. > > > > Here is a simplified command where the 'hello' part is actually the second > > argument which describes the problem. > > > > # Test 'host-notify-by-CIRTpager' command definition > > define command{ > > command_name host-notify-by-CIRTpager > > command_line /nfs/e1/oper/PAGER/scauto/linuxevprob.pl HostDown hello > > } > > > > I added some lines in the perl file which appends the 2nd argument to a > > file in /tmp, just so I know if the file is being executed, but > > apparently, it is never executed by nagios because the file is empty. > > > > The permissions on the file are good, and it executes normally when done > > by hand. It just seems to not work in nagios. I checked the notification > > history, and nagios seems to think it was executed, but there is never > > anything in the /tmp file when nagios tries to run the command. > > > > Anyone have any suggestions? I would appreciate any help. > > Thanks, > > -Jamin Ragle > > SA for CIRT > > ______________________________________________________________________ > > Multi-Slacking - "I can only do one thing at a time, but I can avoid > > doing many things simultaneously." -- Unknown > > ______________________________________________________________________ > > > > > > > > ------------------------------------------------------- > > 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: 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 > ---------------------------------------------------------------------- It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed. The hands acquire shaking. The shaking becomes a warning. It is by caffeine alone I set my mind in motion. -Influenced by Dune ---------------------------------------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jcarro10 at sprintspectrum.com Tue Jan 14 23:36:44 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 14 Jan 2003 16:36:44 -0600 Subject: check_swap quirk on Solaris Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F24FD@PKDWB03C.ad.sprint.com> It's been brought to my attention that check_swap on Solaris8 reports in bytes, whereas the 'swap -l' command reports in blocks. Either the output should be changed to 'blocks', or the math should be done so that the numeric value is actually in bytes. Example: Nagios reports: Swap ok - Swap used: 0% (0 bytes out of 1049312) swap -l reports: swapfile dev swaplo blocks free /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 HTH. jc ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From tram18 at yahoo.com Wed Jan 15 01:14:42 2003 From: tram18 at yahoo.com (Adam Tram) Date: Tue, 14 Jan 2003 16:14:42 -0800 (PST) Subject: Web Authentication Prompts Over and Over... Message-ID: <20030115001442.22961.qmail@web40303.mail.yahoo.com> Hello, I've gotten everything configured properely so far and was moving on to the authentication and authorization for cgi access. I've created the .htaccess files in the /share/ dir and the cgi /sbin/ dir with the 'nagiosadmin' user. When I launch the browser to my site, when prompted for username and password, it takes it but then immediately prompts again. Am I missing something with my setup of apache or is this a nagios setting in the cgi.cfg..... Thanks for the help. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From ads at irc.pila.pl Wed Jan 15 02:04:19 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 02:04:19 +0100 Subject: Web Authentication Prompts Over and Over... In-Reply-To: <20030115001442.22961.qmail@web40303.mail.yahoo.com> References: <20030115001442.22961.qmail@web40303.mail.yahoo.com> Message-ID: <27306672.20030115020419@irc.pila.pl> Hello Adam, Wednesday, January 15, 2003, 1:14:42 AM, you wrote: > When I launch the browser to my site, when prompted > for username and password, it takes it but then > immediately prompts again. > Am I missing something with my setup of apache or is > this a nagios setting in the cgi.cfg..... Yup, your web server configuration is wrong. Probably Apache looking for password file in wrong location. See error_log for more details. -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From rcolley at cardaccess.com.au Wed Jan 15 02:01:33 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Wed, 15 Jan 2003 12:01:33 +1100 Subject: Multiple inheritance Message-ID: Thanks Donavan, I am already doing this, but it's not quite flexible enough. I want to have templates for severity of problems. I want to have templates for commands. Then a registered service that mixes commands and severities. Doing it your way requires many more specialised templates to be produced. But thanks for the suggestion. Regards, Richard -----Original Message----- From: donavan nelson [mailto:donavan at 4wx.net] Sent: Wednesday, 15 January 2003 5:55 AM To: nagios-users Subject: [Nagios-users] Re: Multiple inheritance I've answered this before, but I can't find it in the archive....SF is acting up.... .dn ============================ copied from earlier message ===================== I do something similar, but it's a slightly different mind set template A template B, uses A service X, uses template B Same behavior, different method. I don't know if your way even works.... Example # Generic service definition template define service{ name generic-service ; ... } define service{ use generic-service name generic_check_disk is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups 4wx-admin notification_interval 240 notification_period 24x7 notification_options c,r register 0 } define service{ use generic_check_disk service_description / check_command check_nrpe!check_disk_root host_name sparky, cat } define service{ use generic_check_disk service_description /var/log check_command check_nrpe!check_disk_var_log host_name sparky, cat } Hopefully you can find something useful here. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Steven L. Kohrs" To: nagios-users at lists.sourceforge.net Sent: 07 Jan 2003 17:24:08 -0600 Subject: [Nagios-users] Multiple templates in a service definition? > Is it possible to 'use' more than one template in a service > definition? What about multiple hosts? I need the same PING > capabilities on all my hosts. > > Example: > > define service{ > name generic-service > ... > } > > define service{ > name generic-ping > > service_description PING > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups engineers > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_ping!100.0,20%!500.0, > 60% } > > define service{ > use generic-service ; Name of service template to > use use generic-ping ; Name of service template > to use > > host_name one,five,seven,eight,nine,www,ns1,ns2 > } -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Richard Colley To: "'nagios-users at lists.sourceforge.net'" Sent: Tue, 14 Jan 2003 14:44:15 +1100 Subject: [Nagios-users] Multiple inheritance > [Nagios-users] Multiple inheritance ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From karl at debisschop.net Wed Jan 15 02:28:39 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 14 Jan 2003 20:28:39 -0500 Subject: NRPE vs. check_by_ssh vs. nagios_statd In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> Message-ID: <1042594118.10933.32.camel@localhost.localdomain> On Tue, 2003-01-14 at 12:04, 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 I made the recent post, and I'm crafting a reply to it now. But your guess is correct, determining what you can monitor is the lions share of the work. But even so, it's usually not hard, and you can generally monitor quite a lot. More to follow. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From nagios at cerbernet.co.uk Tue Jan 14 10:36:34 2003 From: nagios at cerbernet.co.uk (nagios at cerbernet.co.uk) Date: Tue, 14 Jan 2003 09:36:34 GMT Subject: Availability report problem Message-ID: <200301140936.h0E9aY6l004797@gaould.cerbernet.co.uk> I have noticed that we have a problem with the availability reports, the problem shows on hostgroups, hosts and services. If we leave the "First Assumed State" in "Step 3 Select Report Options" as Unspecified "Time Up" all show as 0.000% and "Time Undertermined" shows as 100%. If we change the "First Assumed State" to "Host Up/Service Ok" then the report shows the correct information "Time Up" 100%. Why does the report not set the value of "First Assumed State" as Host Up/Service Ok? It would seem logical that you would not start checking of a host or service that is not yet live. Although this is not a big problem I am being asked these questions by managers because on the demo site at www.nagios.org you can leave the "First Assumed State" as "Unspecified" and it reports "Hosts/Services" as 100% "Time Up" Is there are way to fix this? Thanks In Advance Tony ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From nagios at cerbernet.co.uk Tue Jan 14 21:23:25 2003 From: nagios at cerbernet.co.uk (nagios at cerbernet.co.uk) Date: Tue, 14 Jan 2003 20:23:25 GMT Subject: Tactical overview shows service event handlers disabled??? Message-ID: <200301142023.h0EKNPMd006428@gaould.cerbernet.co.uk> The tactical overview for service event handlers is showing incorrect information. Event handlers are enabled for all services of which we have 327, however it shows 320 event handlers are disabled. Upon a reload of Nagios the value changes to 9 disabled, another reload moves the value back to 320 and another reload changes it back to 9 and so on. Anyone got any ideas why? Thanks In Advance Tony ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From karl at debisschop.net Wed Jan 15 02:39:59 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 14 Jan 2003 20:39:59 -0500 Subject: Same status In-Reply-To: <20030114190707.M72301@4wx.net> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> <20030114190707.M72301@4wx.net> Message-ID: <1042594797.10933.48.camel@localhost.localdomain> On Tue, 2003-01-14 at 14:07, donavan nelson wrote: > Hi Jim, > > I started out trying to do everything with SNMP. Just be aware that it can > add extra services to your configuration. As an example, for the 1 5 15 > minutes CPU load check, it's 3 SNMP services instead of just one. You can check multiple OIDs in one check_snmp invocation > There were > other things I couldn't figure out with SNMP, like checking that all processes > on a box are less than 25M in size. My grand plan includes some sort of calculation module that would allow what you are describing. But it is clearly a ways off. > It's prolly good to know how to do SNMP > checks, but I don't think they are the be all to monitoring. I definitely agree with that. Each remote method has its ups and downs. In a secure cluster, SNMP has a number of ups. But it does not solve evrything. > I've since backed off SNMP and have gone to letting the nagios plugins do the > work where I can. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: "Carroll, Jim P [Contractor]" > To: "'Karl DeBisschop'" > Sent: Tue, 14 Jan 2003 09:36:32 -0600 > Subject: RE: [Nagios-users] Same status > > > I've been pondering SNMP as an alternative to NRPE. If I were to > > take this approach, I presume I need the following: > > > > - the SNMP software components need to be installed on the Nagios > > server as well as for any client I wish to monitor (should be > > obvious, but I didn't want to skip over this ;) - proper config of > > SNMP so that it's functioning client/server - the check_snmp plugin > > should be built properly - I'm guessing I need a MIB for whatever > > aspect I'm trying to monitor...? > > E.g., o/s, hardware, specific application - the biggest gap is > > w.r.t. what a service definition would look like; if you could post > > a couple examples (eg, memory, disk) that would be most excellent, > > sir :) > > > > For further reference, it would be great if you could take me > > through the creation of a single definition, from the "gee, I'd like > > to monitor service XYZ on host xyzygy" to looking up the MIB details > > (or snmpwalk or whatever's required), that'd be great! > > > > TIA, > > > > jc > > > > > -----Original Message----- > > > From: Karl DeBisschop [mailto:karl at debisschop.net] > > > Sent: Monday, January 13, 2003 8:37 PM > > > To: Chris Stankaitis > > > Cc: Justin; Nagios Users > > > Subject: Re: [Nagios-users] Same status > > > > > > > > > On Mon, 2003-01-13 at 09:02, Chris Stankaitis wrote: > > > > This is an active vs. passive check thing... An Active > > > check is one that > > > > is started on the nagios server.... some of these can handle remote > > > > hosts, ping, ssh, smtp, pop, http, time etc... those you > > > can run from > > > > nagios and everything will be happy for all your different hosts. > > > > > > > > Things like current user, load, disk space, processes, > > > can't be run > > > > from the nagios server with regards to collecting this > > > information from > > > > remote hosts by default. to do this you need to set up > > > passive checks, > > > > and somehow get the information from the client to the host (nagios > > > > server) this can be acomplished by mutiple ways... > > > > > > > > 1) NRPE - open connection runs on each clent, nagios > > > connects to the > > > > port and gets the info you want > > > > 2) NSCA - open connection runs on NAGIOS server and clients send > > > > information to the nagios server encrypted > > > > 3) check_by_ssh using the SSH's ability to execute commands to run > > > > commands on the client and pulls back results > > > > > > If you are in an isolated LAN (i.e., you have a failrly > > > decent firewall > > > and you put ACLs on your servers) there is also check_snmp. It's my > > > personal favorite becuase it has great funtionality, near > > > zero setup in > > > my RH73 servers, and very low overhead. > > > > > > Justin's options are fine too - just missed one (I'm sure > > > there are more > > > too). > > > > > > -- > > > Karl > > > > > > > > > > > > ------------------------------------------------------- > > > 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 > > > > > > > ------------------------------------------------------- > > 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 > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From poete66 at caramail.com Wed Jan 15 02:44:53 2003 From: poete66 at caramail.com (Régis BLANCHON) Date: Wed, 15 Jan 2003 02:44:53 GMT+1 Subject: problem using database Message-ID: <1042595093014975@caramail.com> Hi, I want to use Nagios with a data base for hoststatus and others things. I have created a database nagios with all the tables and I have changed the files cgi.cfg and resources.cfg but nagios doesn't use the database. It already uses status.log, downtime.log ... I don't understand why... If anyone can help me... Thanks Reg' _________________________________________________________ Gagne une PS2 ! Envoie un SMS avec le code PS au 61166 (0,35? Hors co?t du SMS) From ads at irc.pila.pl Wed Jan 15 04:04:26 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 04:04:26 +0100 Subject: check_traffic plugin Message-ID: <18914514921.20030115040426@irc.pila.pl> Hello All, I written in Perl my own check_traffic plugin allow to monitor network interfaces over SNMP protocol. It can check current bandwidth utilization and total number of transmitted bytes. Additional feature is creating traffic graphs using RRDTool. Feel free to test it and send me your opinions about this software. You can download it here: http://adi.blink.pl/nagios -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From dushy at symonds.net Wed Jan 15 04:13:32 2003 From: dushy at symonds.net (Dushyanth Harinath) Date: Wed, 15 Jan 2003 08:43:32 +0530 Subject: recovery alerts problem.. Message-ID: <20030115031332.GA2129@directi.com> Hi guys, I have service escalations defined as given below. The problem i'm facing is whenever HTTP at web1,web2 goes down the critical alerts are sent to all the contacts correctly but when the service recovers the recovery alert is sent to only the first contact i,e support. This happens only if the last notificaion i,e 3 is sent out to the sysad-l2 group. The only reason i could make out of it is that the last escalation definition below is supressing recovery alerts too for those groups. Is this the way it is supposed to work ? The max_check_attempts, normal_check_interval, retry_check_interval and notification_interval values for all the checks are 5,5,1,5 respectively. define serviceescalation{ host_name web1,web2 service_description HTTP first_notification 2 last_notification 0 notification_interval 5 contact_groups support } 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 TIA Regards Dushyanth.H -- Windows: Just another pane in the glass. http://symonds.net/~dushy ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jlyons30 at yahoo.com Wed Jan 15 05:53:47 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Tue, 14 Jan 2003 20:53:47 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <18914514921.20030115040426@irc.pila.pl> References: <18914514921.20030115040426@irc.pila.pl> Message-ID: <20030115045347.85052.qmail@web21502.mail.yahoo.com> Cool, I will try test it tomorrow. Does it just input the totals into a RRDtool database, or does it creat the graphs as well? Adrian Wieczorek wrote:Hello All, I written in Perl my own check_traffic plugin allow to monitor network interfaces over SNMP protocol. It can check current bandwidth utilization and total number of transmitted bytes. Additional feature is creating traffic graphs using RRDTool. Feel free to test it and send me your opinions about this software. You can download it here: http://adi.blink.pl/nagios -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 tdeblend at gcc.dhl.com Wed Jan 15 08:39:00 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 15 Jan 2003 08:39:00 +0100 Subject: NRPE vs. check_by_ssh vs. nagios_statd References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F9@PKDWB03C.ad.sprint.com> Message-ID: <3E251014.E57757D2@gcc.dhl.com> > - 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 You might consider using netsaint_statd, which is what I do. It uses Perl instead of Python. You are right that it only allows you to monitor a given set of services. On the other hand, thise services are often the only ones I want to monitor. If I want more, I setup a set of keypairs, and use check_by_ssh. To me placing the Perl script on the target box and adding it to the startup scripts still is the easiest way. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From tdeblend at gcc.dhl.com Wed Jan 15 08:51:37 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 15 Jan 2003 08:51:37 +0100 Subject: Parents References: <20030114153944.39832.qmail@web21512.mail.yahoo.com> Message-ID: <3E251309.36816DD1@gcc.dhl.com> I did that, and then I see two links on the Status Map page. That is OK. Now the question is: what is the result of this? What will happen if one of the two parents goes down? You see, what I have is this: Nagios box: IF A: 172.20.200.109 IF B: 10.30.66.66 Server: IF A: 172.20.200.40 IF B: 10.30.66.10 This server has the 10.30.66.10 IP as host_address. This is the IP of the private GigaBit backbone that both this server and the nagios box share. Now, some service checks are done over the 10. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From tdeblend at gcc.dhl.com Wed Jan 15 08:58:51 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 15 Jan 2003 08:58:51 +0100 Subject: Parents References: <20030114153944.39832.qmail@web21512.mail.yahoo.com> <3E251309.36816DD1@gcc.dhl.com> Message-ID: <3E2514BB.5B97CF04@gcc.dhl.com> I hate it when this happens... So, now the full story... I did that, and then I see two links on the Status Map page. That is OK. Now the question is: what is the result of this? What will happen if one of the two parents goes down? You see, what I have is this: Nagios box: IF A: 172.20.200.109 IF B: 10.30.66.66 Server: IF A: 172.20.200.40 IF B: 10.30.66.10 10. goes to a router 172.20. goes to a switch This server has the 10.30.66.10 IP as host_address. This is the IP of the private GigaBit backbone that both this server and the nagios box share. Now, some service checks are done over the 10. network, and some are done over the 172.20. network. However, since the server is defined with its 10. IP, Nagios will only see this host as being down when it receives no reply from that interface. It doesn't care about the other one. So what would be the advantage of adding the switch on the 172.20. network as a parent, if you know that if that interface fails, Nagios will not see it as a down host? I hope you know what I mean... Tom DE BLENDE wrote: > > I did that, and then I see two links on the Status Map page. That is > OK. Now the question is: what is the result of this? What will happen > if one of the two parents goes down? > > You see, what I have is this: > > Nagios box: > IF A: 172.20.200.109 > IF B: 10.30.66.66 > > Server: > IF A: 172.20.200.40 > IF B: 10.30.66.10 > > This server has the 10.30.66.10 IP as host_address. This is the IP of > the private GigaBit backbone that both this server and the nagios box > share. > > Now, some service checks are done over the 10. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From tdeblend at gcc.dhl.com Wed Jan 15 09:00:40 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 15 Jan 2003 09:00:40 +0100 Subject: Parents References: <20030114191040.46460.qmail@web21501.mail.yahoo.com> Message-ID: <3E251528.CC626B87@gcc.dhl.com> As that dumb hub can never go down, what would be the advantage of adding it as a parent? ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From kehr02 at yahoo.com Wed Jan 15 09:13:42 2003 From: kehr02 at yahoo.com (Karl Ehr) Date: Wed, 15 Jan 2003 00:13:42 -0800 (PST) Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ECF88@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ECF88@mismail.ena.com> Message-ID: <20030115081342.45981.qmail@web80314.mail.yahoo.com> Sorry -- had to put this project down for a few days... Well it's not an issue with the trailing space (I wish it had been that easy!) I'm still stuck, but you're question about whether nsca is running out of inetd or a daemon made me realize I was running in -s (single) rather than -d (daemon) mode. I 've fixed that: nsca 24583 0.0 0.1 1596 668 ? S 02:56 0:00 /usr/local/nagios/bin/nsca -d -c /usr/local/nagios/etc/nsca.cfg ...But now I get this error in syslog: Jan 15 03:09:31 sf1nmc1 nsca[24645]: Handling the connection... Jan 15 03:09:32 sf1nmc1 nsca[24645]: SERVICE CHECK -> Host Name: 'laptop', Service Description: 'BOGUS', Return Code: '2', Output: 'Error Message goes here' Jan 15 03:09:32 sf1nmc1 nsca[24645]: Could not open command file '/scale8/nagios/var/rw/nagios.cmd' for writing Jan 15 03:09:32 sf1nmc1 nsca[24645]: End of connection... Notice the "Could not open" -- This would make it *seem* more like a permission issue... but honestly, everyting with the CGI's and echoing directly to the command file works just fine (as the nagios user, and as the apache user). Here is my "rw" directory: [root at XXXX root]# ls -la /usr/local/nagios/var/rw/ total 8 drwxrwsr-x 2 nagios nagios 4096 Jan 15 02:57 . drwxrwxr-x 4 nagios nagios 4096 Jan 15 03:11 .. prw-rw---- 1 nagios nagios 0 Jan 15 02:57 nagios.cmd -rw-r--r-- 1 nagios nagios 0 Jan 7 10:26 nsca.dump Any other ideas? Thanks for you help. --- Marc Powell wrote: > I don't know if it's just a display issue or not but > this line caught my > eye: > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > '/usr/local/nagios/var/rw/nagios.cmd ' > > Note the '' after nagios.cmd. Just seems kind > of odd to me that > that would be there. Other than that, does nsca run > out of (x)inetd or > as a daemon? For our sake could you do the following > and resend to the > list? > > ls -la /usr/local/nagios/var/rw > ps -efwww | grep nsca > > Thanks, > > Marc > > > -----Original Message----- > > From: Karl Ehr [mailto:kehr02 at yahoo.com] > > Sent: Tuesday, January 07, 2003 9:03 AM > > To: nagios > > Subject: [Nagios-users] Stumper? bug? nsca daemon > & ext. cmd. file -- > not > > a permission issue? > > > > I have a hacker challenge -- maybe... > > > > I've read the phobic posts about Red Hat 8.0, but > I > > haven't seen anything that looks like my problem, > RH > > 8.0 or otherwise: > > > > My problem is that the nsca daemon, when handling > a > > remote network request from send_nsca, gives the > > following error: > > > > > > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > > connection... > > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> > Host > > Name: 'laptop', Service Description: 'BOGUS', > Return > > Code: '2', Output: 'Error Message goes here' > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > > '/usr/local/nagios/var/rw/nagios.cmd ' does not > exist, > > attempting to use alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for output > > Jan 7 08:27:38 XXXX nsca[8827]: Could not open > > alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for appending > > Jan 7 08:27:38 XXXX nsca[8827]: End of > connection... > > > > I've configured the user/group for both nagios and > the > > nsca daemons to be 'nagios/nagios'. All of > > /usr/local/nagios is user/group nagios.nagios. > The > > permissions are correct (I'm 99%) sure, because > all of > > the external command CGI's work perfectly; also, > su-ed > > to the nagios user, I can echo commands >> to the > > /usr/local/nagios/var/rw/nagios.cmd file and they > show > > up fine both in the log and in the web > interface.... > > > > I have tried compiling the 1.06b and 1.0 versions > of > > nagios, the 2.1 and latest CVS build of nsca, > > mix-matching them in all combinations. I have > set > > the permissions on the "rw" directory both by hand > > (setting the group, the S bit on the group level, > > etc...) and with the "install-commandmode" make > > option; I've also tried chmoding the file with > "chmod > > 777" after it gets created when nagios starts and > > there is the same error. > > > > The fact that I can echo commands in locally as > the > > "nagios" user and get good results seems to > probably > > show that its neither a permissions issue or > anything > > with the passive/external command interface. > Maybe > > this is a bug with nsca itself? > > > > As an aside, I cannot get the alternate dump file > to > > work either. Touching the nagios.dump file ahead > of > > time, and setting wide open permissions makes no > > difference. (I'm assuming that the dump file is > > supposed to be a regular text file -- not a FIFO > named > > pipe like the command file, right??) > > > > I'm stumped... but I'm also surprised that I'm > seeing > > something that hasn't popped up for someone else > > already. Any help will bring you praise, beer, > pizza, > > cookies or whatever tithe you demand. TIA, > > > > Karl > > > > __________________________________________________ > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! > > http://sbc.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 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jakscht at vit.de Wed Jan 15 09:39:19 2003 From: jakscht at vit.de (Michael Jakscht) Date: Wed, 15 Jan 2003 09:39:19 +0100 Subject: URGENT::: Nagios producing 100% undetermined status... Message-ID: Hi, since a few days our nagios 1.0b4 is producing mostly 100% undetermined status on all machines. On some machines nagios produces 100% "reachability" - I changed nothing more than adding a host with services and adding it to the hostgroups. Think there shouldn't be a problem with this new host. Additionally I deleted another host. There shouldn't also be a problem with this (in the configuration). I have absolutely no clue what this can be about... So I need your help - we use nagios in a production environment and need the statistics for the monthly analysis. If you like to have a look at the config file I could tar them and put it on our webserver for a few hours. Thanx in advance for ANY help/hints/tips where I can look.... Michael ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From rcolley at cardaccess.com.au Wed Jan 15 09:28:47 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Wed, 15 Jan 2003 19:28:47 +1100 Subject: URGENT::: Nagios producing 100% undetermined s tatus... Message-ID: Was the host you removed, the 'parent' of any other hosts? -----Original Message----- From: Michael Jakscht [mailto:jakscht at vit.de] Sent: Wednesday, 15 January 2003 7:39 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] URGENT::: Nagios producing 100% undetermined status... Hi, since a few days our nagios 1.0b4 is producing mostly 100% undetermined status on all machines. On some machines nagios produces 100% "reachability" - I changed nothing more than adding a host with services and adding it to the hostgroups. Think there shouldn't be a problem with this new host. Additionally I deleted another host. There shouldn't also be a problem with this (in the configuration). I have absolutely no clue what this can be about... So I need your help - we use nagios in a production environment and need the statistics for the monthly analysis. If you like to have a look at the config file I could tar them and put it on our webserver for a few hours. Thanx in advance for ANY help/hints/tips where I can look.... Michael ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From rcolley at cardaccess.com.au Wed Jan 15 09:27:55 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Wed, 15 Jan 2003 19:27:55 +1100 Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Message-ID: First, you do realise it is looking in /scale8/nagios for var/rw/nagios.cmd? Is this just a symlink to /usr/local? What is the output of the following commands: ls -ld /scale8 ls -ld /scale8/nagios ls -ld /scale8/nagios/var ls -ld /scale8/nagios/var/rw ls -l /scale8/nagios/var/rw/nagios.cmd Is the user 'nsca' a member of group 'nagios'? It must be, with the config you have. What's the output of: grep nsca /etc/group ... does it include the group 'nagios'? Richard -----Original Message----- From: Karl Ehr [mailto:kehr02 at yahoo.com] Sent: Wednesday, 15 January 2003 7:14 PM To: Marc Powell; nagios Subject: RE: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Sorry -- had to put this project down for a few days... Well it's not an issue with the trailing space (I wish it had been that easy!) I'm still stuck, but you're question about whether nsca is running out of inetd or a daemon made me realize I was running in -s (single) rather than -d (daemon) mode. I 've fixed that: nsca 24583 0.0 0.1 1596 668 ? S 02:56 0:00 /usr/local/nagios/bin/nsca -d -c /usr/local/nagios/etc/nsca.cfg ...But now I get this error in syslog: Jan 15 03:09:31 sf1nmc1 nsca[24645]: Handling the connection... Jan 15 03:09:32 sf1nmc1 nsca[24645]: SERVICE CHECK -> Host Name: 'laptop', Service Description: 'BOGUS', Return Code: '2', Output: 'Error Message goes here' Jan 15 03:09:32 sf1nmc1 nsca[24645]: Could not open command file '/scale8/nagios/var/rw/nagios.cmd' for writing Jan 15 03:09:32 sf1nmc1 nsca[24645]: End of connection... Notice the "Could not open" -- This would make it *seem* more like a permission issue... but honestly, everyting with the CGI's and echoing directly to the command file works just fine (as the nagios user, and as the apache user). Here is my "rw" directory: [root at XXXX root]# ls -la /usr/local/nagios/var/rw/ total 8 drwxrwsr-x 2 nagios nagios 4096 Jan 15 02:57 . drwxrwxr-x 4 nagios nagios 4096 Jan 15 03:11 .. prw-rw---- 1 nagios nagios 0 Jan 15 02:57 nagios.cmd -rw-r--r-- 1 nagios nagios 0 Jan 7 10:26 nsca.dump Any other ideas? Thanks for you help. --- Marc Powell wrote: > I don't know if it's just a display issue or not but > this line caught my > eye: > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > '/usr/local/nagios/var/rw/nagios.cmd ' > > Note the '' after nagios.cmd. Just seems kind > of odd to me that > that would be there. Other than that, does nsca run > out of (x)inetd or > as a daemon? For our sake could you do the following > and resend to the > list? > > ls -la /usr/local/nagios/var/rw > ps -efwww | grep nsca > > Thanks, > > Marc > > > -----Original Message----- > > From: Karl Ehr [mailto:kehr02 at yahoo.com] > > Sent: Tuesday, January 07, 2003 9:03 AM > > To: nagios > > Subject: [Nagios-users] Stumper? bug? nsca daemon > & ext. cmd. file -- > not > > a permission issue? > > > > I have a hacker challenge -- maybe... > > > > I've read the phobic posts about Red Hat 8.0, but > I > > haven't seen anything that looks like my problem, > RH > > 8.0 or otherwise: > > > > My problem is that the nsca daemon, when handling > a > > remote network request from send_nsca, gives the > > following error: > > > > > > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > > connection... > > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> > Host > > Name: 'laptop', Service Description: 'BOGUS', > Return > > Code: '2', Output: 'Error Message goes here' > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > > '/usr/local/nagios/var/rw/nagios.cmd ' does not > exist, > > attempting to use alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for output Jan 7 08:27:38 XXXX > > nsca[8827]: Could not open alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for appending > > Jan 7 08:27:38 XXXX nsca[8827]: End of > connection... > > > > I've configured the user/group for both nagios and > the > > nsca daemons to be 'nagios/nagios'. All of > > /usr/local/nagios is user/group nagios.nagios. > The > > permissions are correct (I'm 99%) sure, because > all of > > the external command CGI's work perfectly; also, > su-ed > > to the nagios user, I can echo commands >> to the > > /usr/local/nagios/var/rw/nagios.cmd file and they > show > > up fine both in the log and in the web > interface.... > > > > I have tried compiling the 1.06b and 1.0 versions > of > > nagios, the 2.1 and latest CVS build of nsca, > > mix-matching them in all combinations. I have > set > > the permissions on the "rw" directory both by hand > > (setting the group, the S bit on the group level, > > etc...) and with the "install-commandmode" make > > option; I've also tried chmoding the file with > "chmod > > 777" after it gets created when nagios starts and > > there is the same error. > > > > The fact that I can echo commands in locally as > the > > "nagios" user and get good results seems to > probably > > show that its neither a permissions issue or > anything > > with the passive/external command interface. > Maybe > > this is a bug with nsca itself? > > > > As an aside, I cannot get the alternate dump file > to > > work either. Touching the nagios.dump file ahead > of > > time, and setting wide open permissions makes no > > difference. (I'm assuming that the dump file is > > supposed to be a regular text file -- not a FIFO > named > > pipe like the command file, right??) > > > > I'm stumped... but I'm also surprised that I'm > seeing > > something that hasn't popped up for someone else > > already. Any help will bring you praise, beer, > pizza, > > cookies or whatever tithe you demand. TIA, > > > > Karl > > > > __________________________________________________ > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! http://sbc.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 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From rcolley at cardaccess.com.au Wed Jan 15 09:37:35 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Wed, 15 Jan 2003 19:37:35 +1100 Subject: URGENT::: Nagios producing 100% undetermined s tatus... Message-ID: Do you have any errors in /var/log/messages or ..../nagios/var/nagios.log??? -----Original Message----- From: Michael Jakscht [mailto:jakscht at vit.de] Sent: Wednesday, 15 January 2003 7:50 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] URGENT::: Nagios producing 100% undetermined status... no, we don't work with parents or host/service dependencies. we only have plain hosts with services. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jakscht at vit.de Wed Jan 15 09:49:33 2003 From: jakscht at vit.de (Michael Jakscht) Date: Wed, 15 Jan 2003 09:49:33 +0100 Subject: URGENT::: Nagios producing 100% undetermined status... Message-ID: no, we don't work with parents or host/service dependencies. we only have plain hosts with services. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From rcolley at cardaccess.com.au Wed Jan 15 09:44:55 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Wed, 15 Jan 2003 19:44:55 +1100 Subject: URGENT::: Nagios producing 100% undetermined s tatus... Message-ID: Can you upgrade to the 1.0 release? -----Original Message----- From: Richard Colley [mailto:rcolley at cardaccess.com.au] Sent: Wednesday, 15 January 2003 7:38 PM To: 'Michael Jakscht'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] URGENT::: Nagios producing 100% undetermined s tatus... Do you have any errors in /var/log/messages or ..../nagios/var/nagios.log??? -----Original Message----- From: Michael Jakscht [mailto:jakscht at vit.de] Sent: Wednesday, 15 January 2003 7:50 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] URGENT::: Nagios producing 100% undetermined status... no, we don't work with parents or host/service dependencies. we only have plain hosts with services. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From atulsh at hclinsys.com Wed Jan 15 05:26:17 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 15 Jan 2003 09:56:17 +0530 Subject: check_snmp file not found in libexec directory References: <001701c2b936$37d00f30$5f7b0297@atul> <1042483742.4945.47.camel@moishe> Message-ID: <004501c2bc4e$3f9beed0$5f7b0297@atul> Hello, Thx for this. Can you tell me, how can I configure the check_snmp plugin so that i can be able to make it working. Basically first of all i want to run it as a command line to check if it is working or now. I have configured the Win NT SNMP service and it is running. But I can't able to communicate this machine. Can you give me the syntax for check_snmp. I have checked the help for this but can't get enough for it. Thx 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: "Pascal Miquet" To: "Atul Shrivastava" Cc: "Nagios users" Sent: Tuesday, January 14, 2003 12:19 AM Subject: Re: [Nagios-users] check_snmp file not found in libexec directory > During the ./configure into nagios plugins take a look at the history, > because you should install some added software for some plugins, like > snmp, flexlm, ... > HTH > Regards > > Le sam 11/01/2003 ? 06:56, Atul Shrivastava a ?crit : > > Hello All, > > > > In my libexec directory, there is no file check_snmp > > Can you tell me why it is not there. I have also find this file in the whole harddisk but it is not there. 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: 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 ads at irc.pila.pl Wed Jan 15 11:08:39 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 11:08:39 +0100 Subject: check_traffic plugin In-Reply-To: <20030115045347.85052.qmail@web21502.mail.yahoo.com> References: <20030115045347.85052.qmail@web21502.mail.yahoo.com> Message-ID: <173699712.20030115110839@irc.pila.pl> Hello Jon, Wednesday, January 15, 2003, 5:53:47 AM, you wrote: > Cool, I will try test it tomorrow. Does it just input the totals into a RRDtool database, or does it creat the graphs > as well? It create graphs: http://irc.pila.pl/cgi-bin/nagios/Kmicic_ppp0.cgi -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Grae.Noble at newcastle.edu.au Wed Jan 15 11:17:49 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Wed, 15 Jan 2003 21:17:49 +1100 Subject: check_swap quirk on Solaris Message-ID: Hi all, I've seen the problem also. Not only that, but it also does not handle multiple swap devices properly. If there is more that one swap file or partition and if one of them is at a size/percentage that will generate an alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, 1, at 10% and one at 0%. If the threshold for the check is set to 60% then the check will trigger a critical or warning instead of calculating the total swap available and setting the status against that. I did submit a bug report for both problems, 621872 is the block/byte problem, but the other bug seems to have disappeared from sourceforge. Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> "Carroll, Jim P [Contractor]" 01/15/03 09:36am >>> It's been brought to my attention that check_swap on Solaris8 reports in bytes, whereas the 'swap -l' command reports in blocks. Either the output should be changed to 'blocks', or the math should be done so that the numeric value is actually in bytes. Example: Nagios reports: Swap ok - Swap used: 0% (0 bytes out of 1049312) swap -l reports: swapfile dev swaplo blocks free /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 HTH. jc ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From dscollon at scotwebsolutions.com Wed Jan 15 11:27:16 2003 From: dscollon at scotwebsolutions.com (Derek Scollon) Date: Wed, 15 Jan 2003 10:27:16 +0000 Subject: Crash during installation Message-ID: <63369934908.20030115102716@scotwebsolutions.com> nagios-users, I'm new to this list but didn't see this problem mentioned recently. Apologies if it's further back. I'm running RedHat 7.3 on a machine which has been working well and very stable for several months. Tried to install nagios today and hit the following problem... "./configure" worked fine and found everything. The defaults suited me so I didn't specify any options. "make all" started to work and print out what it was doing, then the machine just stopped responding. No error messages, no nothing, had to hit the power button. If I run "make clean" then "make all" again, the same thing happens every time. gcc is version 2.96-110 Hope someone can help. Derek Scollon Scotweb Solutions Ltd. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jakscht at vit.de Wed Jan 15 11:34:53 2003 From: jakscht at vit.de (Michael Jakscht) Date: Wed, 15 Jan 2003 11:34:53 +0100 Subject: URGENT::: Nagios producing 100% undetermined status... Message-ID: Hi Tony, > You may have already had the answer for this but in case you haven't. > I have the very same problem a few days ago and I had changed nothing, I > think that you added and removed a host was just a coincidence. > If you are talking about the Availability reports showing 100% > undetermined then hopefully this will help. Yes, you're right, I'm talking exactly about the availability reports... :-) > In nagios.cfg insure you have it set so nagios will remember the initial > state of hosts and services when they are first checked. > log_initial_states=1 Hmm. Okay lets see what I have configured right now... Oooooops, I have: log_initial_states=0 Okay, but you can tell nagios to "assume state retention"... Think this should do nearly the same... to the result of the reports... ??? > Otherwise it does not know the state of a host/service when it was first > checked and will have no data to go itself to determine the up time, > unless you select "Host Up" or "Service OK" from the "First Assumed > State" in step 3 of the report. Yes, okay, I did that to. > Once I had set this I had to delete all the archived logs and cat > /dev/null into the current log so all checks started from scratch. Sorry, Tony, I absolutely can't do this. In no case, under no circumstances. We use nagios in a production environment and the data already collected is essential for us. There must be another way of getting the reports to work again. > Hope this helps. Yes, nearly ;-) Thanx! ;-) Hope you or someone else knows how to help me a bit more ;-) Michael ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From karl at debisschop.net Wed Jan 15 12:48:40 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 15 Jan 2003 06:48:40 -0500 Subject: check_swap quirk on Solaris In-Reply-To: References: Message-ID: <1042631319.10933.658.camel@localhost.localdomain> On Wed, 2003-01-15 at 05:17, Grae Noble wrote: > Hi all, > I've seen the problem also. Not only that, but it also does not handle multiple swap devices properly. If there is more that one swap file or partition and if one of them is at a size/percentage that will generate an alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, 1, at 10% and one at 0%. If the threshold for the check is set to 60% then the check will trigger a critical or warning instead of calculating the total swap available and setting the status against that. > > I did submit a bug report for both problems, 621872 is the block/byte problem, but the other bug seems to have disappeared from sourceforge. The other did not 'disappear', it was applied and the ticket closed. Standard view does not show closed tickets. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From karl at debisschop.net Wed Jan 15 13:04:22 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 15 Jan 2003 07:04:22 -0500 Subject: Same status In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> Message-ID: <1042632262.10933.676.camel@localhost.localdomain> On Tue, 2003-01-14 at 10:36, Carroll, Jim P [Contractor] wrote: > I've been pondering SNMP as an alternative to NRPE. If I were to take this > approach, I presume I need the following: OK. First note my caveat. It's easy on RedHat linux. It's probably easy on almost any linux. YMMV with other vendors (although in general, most embedded devices, siwtches, etc are good if you can get or guess the MIB) > - the SNMP software components need to be installed on the Nagios server as > well as for any client I wish to monitor (should be obvious, but I didn't > want to skip over this ;) > - proper config of SNMP so that it's functioning client/server > - the check_snmp plugin should be built properly These ought to be straightforward. But yes, complete = good > - I'm guessing I need a MIB for whatever aspect I'm trying to monitor...? > E.g., o/s, hardware, specific application It helps, but not really needed. I often use the numeric OID > - the biggest gap is w.r.t. what a service definition would look like; if > you could post a couple examples (eg, memory, disk) that would be most > excellent, sir :) There are some service definitions in the old command.cfg file. > For further reference, it would be great if you could take me through the > creation of a single definition, from the "gee, I'd like to monitor service > XYZ on host xyzygy" to looking up the MIB details (or snmpwalk or whatever's > required), that'd be great! OK. I happen to have a RedHat beta on my laptop here. No nagios, no snmp. Let's see just how painful this is, since it's been a few years since I first set ip up. 1) rpm -Uv net-snmp* 2) edit /etc/snmp/snmpd.conf (comments in file are enough to tell you what to do) 3) sudo /sbin/service snmpd restart 4) test with `snmpwalk -c public -v 1 localhost system` 5) snmpwalk -c public -v 1 localhost .1 | less 6) now, since people asked about checking load without 3 test in another thread, I'll run snmpwalk -c public -v 1 localhost .1.3.6.1.4.1.2021.10 Part of what comes back is UCD-SNMP-MIB::laLoad.1 = STRING: 0.00 UCD-SNMP-MIB::laLoad.2 = STRING: 0.07 UCD-SNMP-MIB::laLoad.3 = STRING: 0.23 Or, if you prefer: snmpwalk -O n -c public -v 1 localhost .1.3.6.1.4.1.2021.10 .1.3.6.1.4.1.2021.10.1.3.1 = STRING: 0.12 .1.3.6.1.4.1.2021.10.1.3.2 = STRING: 0.10 .1.3.6.1.4.1.2021.10.1.3.3 = STRING: 0.09 So I can define a load check like: /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ \ -o .1.3.6.1.4.1.2021.10.1.5.1 \ -o .1.3.6.1.4.1.2021.10.1.5.2 \ -o .1.3.6.1.4.1.2021.10.1.5.3 \ -w :$ARG2$,:$ARG3$,:$ARG4$ \ -c :$ARG5$,:$ARG6$,:$ARG7$ \ -l load (Sorry about the line wraps.) Here's a few new style commands from ny currently running configuration: define command{ command_name snmp_procs command_line /usr/lib/nagios/plugins/check_snmp \ -H $HOSTADDRESS$ -C $USER5$ \ -o host.hrSystem.hrSystemProcesses.0 \ -w :$ARG1$ -c :$ARG2$ -l processes } define command{ command_name snmp_disk command_line /usr/lib/nagios/plugins/check_snmp \ -H $HOSTADDRESS$ -C $USER5$ \ -o .1.3.6.1.4.1.2021.9.1.9.1 \ -w :$ARG1$ -c :$ARG2$ -l percent } define command{ command_name snmp_inodes command_line /usr/lib/nagios/plugins/check_snmp \ -H $HOSTADDRESS$ -C $USER5$ \ -o .1.3.6.1.4.1.2021.9.1.10.1 \ -w :$ARG1$ -c :$ARG2$ -l percent } Hope that helps. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From mpowell at ena.com Wed Jan 15 13:48:40 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 15 Jan 2003 06:48:40 -0600 Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2682E@mismail.ena.com> According to your ps output below, nsca is running as user nsca, not the user nagios and therefor does not have permission to write to the command file. Either start nsca as the nagios user or add nsca to the nagios group in /etc/group and restart nsca. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Karl Ehr To: Marc Powell ; nagios Sent: Wed Jan 15 02:13:42 2003 Subject: RE: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Sorry -- had to put this project down for a few days... Well it's not an issue with the trailing space (I wish it had been that easy!) I'm still stuck, but you're question about whether nsca is running out of inetd or a daemon made me realize I was running in -s (single) rather than -d (daemon) mode. I 've fixed that: nsca 24583 0.0 0.1 1596 668 ? S 02:56 0:00 /usr/local/nagios/bin/nsca -d -c /usr/local/nagios/etc/nsca.cfg ...But now I get this error in syslog: Jan 15 03:09:31 sf1nmc1 nsca[24645]: Handling the connection... Jan 15 03:09:32 sf1nmc1 nsca[24645]: SERVICE CHECK -> Host Name: 'laptop', Service Description: 'BOGUS', Return Code: '2', Output: 'Error Message goes here' Jan 15 03:09:32 sf1nmc1 nsca[24645]: Could not open command file '/scale8/nagios/var/rw/nagios.cmd' for writing Jan 15 03:09:32 sf1nmc1 nsca[24645]: End of connection... Notice the "Could not open" -- This would make it *seem* more like a permission issue... but honestly, everyting with the CGI's and echoing directly to the command file works just fine (as the nagios user, and as the apache user). Here is my "rw" directory: [root at XXXX root]# ls -la /usr/local/nagios/var/rw/ total 8 drwxrwsr-x 2 nagios nagios 4096 Jan 15 02:57 . drwxrwxr-x 4 nagios nagios 4096 Jan 15 03:11 .. prw-rw---- 1 nagios nagios 0 Jan 15 02:57 nagios.cmd -rw-r--r-- 1 nagios nagios 0 Jan 7 10:26 nsca.dump Any other ideas? Thanks for you help. --- Marc Powell wrote: > I don't know if it's just a display issue or not but > this line caught my > eye: > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > '/usr/local/nagios/var/rw/nagios.cmd ' > > Note the '' after nagios.cmd. Just seems kind > of odd to me that > that would be there. Other than that, does nsca run > out of (x)inetd or > as a daemon? For our sake could you do the following > and resend to the > list? > > ls -la /usr/local/nagios/var/rw > ps -efwww | grep nsca > > Thanks, > > Marc > > > -----Original Message----- > > From: Karl Ehr [mailto:kehr02 at yahoo.com] > > Sent: Tuesday, January 07, 2003 9:03 AM > > To: nagios > > Subject: [Nagios-users] Stumper? bug? nsca daemon > & ext. cmd. file -- > not > > a permission issue? > > > > I have a hacker challenge -- maybe... > > > > I've read the phobic posts about Red Hat 8.0, but > I > > haven't seen anything that looks like my problem, > RH > > 8.0 or otherwise: > > > > My problem is that the nsca daemon, when handling > a > > remote network request from send_nsca, gives the > > following error: > > > > > > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > > connection... > > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> > Host > > Name: 'laptop', Service Description: 'BOGUS', > Return > > Code: '2', Output: 'Error Message goes here' > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > > '/usr/local/nagios/var/rw/nagios.cmd ' does not > exist, > > attempting to use alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for output > > Jan 7 08:27:38 XXXX nsca[8827]: Could not open > > alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for appending > > Jan 7 08:27:38 XXXX nsca[8827]: End of > connection... > > > > I've configured the user/group for both nagios and > the > > nsca daemons to be 'nagios/nagios'. All of > > /usr/local/nagios is user/group nagios.nagios. > The > > permissions are correct (I'm 99%) sure, because > all of > > the external command CGI's work perfectly; also, > su-ed > > to the nagios user, I can echo commands >> to the > > /usr/local/nagios/var/rw/nagios.cmd file and they > show > > up fine both in the log and in the web > interface.... > > > > I have tried compiling the 1.06b and 1.0 versions > of > > nagios, the 2.1 and latest CVS build of nsca, > > mix-matching them in all combinations. I have > set > > the permissions on the "rw" directory both by hand > > (setting the group, the S bit on the group level, > > etc...) and with the "install-commandmode" make > > option; I've also tried chmoding the file with > "chmod > > 777" after it gets created when nagios starts and > > there is the same error. > > > > The fact that I can echo commands in locally as > the > > "nagios" user and get good results seems to > probably > > show that its neither a permissions issue or > anything > > with the passive/external command interface. > Maybe > > this is a bug with nsca itself? > > > > As an aside, I cannot get the alternate dump file > to > > work either. Touching the nagios.dump file ahead > of > > time, and setting wide open permissions makes no > > difference. (I'm assuming that the dump file is > > supposed to be a regular text file -- not a FIFO > named > > pipe like the command file, right??) > > > > I'm stumped... but I'm also surprised that I'm > seeing > > something that hasn't popped up for someone else > > already. Any help will bring you praise, beer, > pizza, > > cookies or whatever tithe you demand. TIA, > > > > Karl > > > > __________________________________________________ > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! > > http://sbc.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 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From kdellhofen at telebel.net Wed Jan 15 14:02:12 2003 From: kdellhofen at telebel.net (kdellhofen at telebel.net) Date: Wed, 15 Jan 2003 14:02:12 +0100 Subject: how can i use snmp Message-ID: which tools where need to use snmp or to count the traffic on each port and so on... ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From mpowell at ena.com Wed Jan 15 13:58:06 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 15 Jan 2003 06:58:06 -0600 Subject: URGENT::: Nagios producing 100% undetermined status... Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2682F@mismail.ena.com> Did you happen to change the log rotation frequency anytime between restarts? I've noticed some reporting anomolies when I've done that but nothing this extreme. I think going from daily to monthly or vice versa *might* do something odd but right now its purely speculation. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Michael Jakscht To: nagios-users at lists.sourceforge.net Sent: Wed Jan 15 04:34:53 2003 Subject: Re: [Nagios-users] URGENT::: Nagios producing 100% undetermined status... Hi Tony, > You may have already had the answer for this but in case you haven't. > I have the very same problem a few days ago and I had changed nothing, I > think that you added and removed a host was just a coincidence. > If you are talking about the Availability reports showing 100% > undetermined then hopefully this will help. Yes, you're right, I'm talking exactly about the availability reports... :-) > In nagios.cfg insure you have it set so nagios will remember the initial > state of hosts and services when they are first checked. > log_initial_states=1 Hmm. Okay lets see what I have configured right now... Oooooops, I have: log_initial_states=0 Okay, but you can tell nagios to "assume state retention"... Think this should do nearly the same... to the result of the reports... ??? > Otherwise it does not know the state of a host/service when it was first > checked and will have no data to go itself to determine the up time, > unless you select "Host Up" or "Service OK" from the "First Assumed > State" in step 3 of the report. Yes, okay, I did that to. > Once I had set this I had to delete all the archived logs and cat > /dev/null into the current log so all checks started from scratch. Sorry, Tony, I absolutely can't do this. In no case, under no circumstances. We use nagios in a production environment and the data already collected is essential for us. There must be another way of getting the reports to work again. > Hope this helps. Yes, nearly ;-) Thanx! ;-) Hope you or someone else knows how to help me a bit more ;-) Michael ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 kdellhofen at telebel.net Wed Jan 15 14:27:46 2003 From: kdellhofen at telebel.net (kdellhofen at telebel.net) Date: Wed, 15 Jan 2003 14:27:46 +0100 Subject: how can i use snmp Message-ID: mrtg to read out temprature and Door Open Closed?!?! Sorry for my bad english... "Tom DE BLENDE" Kopie: Thema: Re: [Nagios-users] how can i use snmp 15.01.2003 14:23 mrtg? kdellhofen at telebel.net wrote: > > which tools where need to use snmp or to count the traffic on each port and > so on... > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From tdeblend at gcc.dhl.com Wed Jan 15 14:31:57 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 15 Jan 2003 14:31:57 +0100 Subject: how can i use snmp References: Message-ID: <3E2562CD.EEA1CC78@gcc.dhl.com> You asked for a tool -and I quote- "to count the traffic on each port and so on...". MRTG does just that. MRTG is a master in counting and graphing. So if you want to graph temperature, yes MRTG can do that. However, it seems like you want to monitor, rather than to count? No? Anyway, it might be helpfull if you could write out what exactly you want to know, because it's a bit fuzzy now... kdellhofen at telebel.net wrote: > > mrtg to read out temprature and Door Open Closed?!?! > > Sorry for my bad english... > > > "Tom DE BLENDE" > l.com> Kopie: > Thema: Re: [Nagios-users] how can i use snmp > 15.01.2003 14:23 > > > > mrtg? > > kdellhofen at telebel.net wrote: > > > > which tools where need to use snmp or to count the traffic on each port > and > > so on... > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Take your first step towards giving > > your online business a competitive advantage. Test-drive a Thawte SSL > > certificate - our easy online guide will show you how. Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From kdellhofen at telebel.net Wed Jan 15 14:41:53 2003 From: kdellhofen at telebel.net (kdellhofen at telebel.net) Date: Wed, 15 Jan 2003 14:41:53 +0100 Subject: Antwort: Re: how can i use snmp Message-ID: Ok i need to count the traffic on each port on an switch or router so i can use MRTG or?! Then i need a tool perhaps Mrtg that can read out from a "CMC Rittal" Server cabinet security wether is opened a door or closed or is there any alarm.. e.g system.sysDescr.0 = Rittal CMC Ser. 015271 HW V24 -- SW V2.00 system.sysObjectID.0 = OID: enterprises.2606.1 system.sysUpTime.0 = Timeticks: (1134605) 3:09:06.05 system.sysContact.0 = Klaus Dellhofen system.sysName.0 = CMC Schrank 1 system.sysLocation.0 = Leverkusen EVL OVF system.sysServices.0 = 72 system.sysORLastChange.0 = Wrong Type (should be Timeticks): 0 interfaces.ifNumber.0 = 1 interfaces.ifTable.ifEntry.ifIndex.1 = 1 interfaces.ifTable.ifEntry.ifDescr.1 = pack interfaces.ifTable.ifEntry.ifType.1 = iso88023Csmacd(7) interfaces.ifTable.ifEntry.ifMtu.1 = 1500 interfaces.ifTable.ifEntry.ifSpeed.1 = Gauge32: 10000000 interfaces.ifTable.ifEntry.ifPhysAddress.1 = 0:10:f0:0:3b:a7 interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1) "Tom DE BLENDE" Kopie: Nagios-users at lists.sourceforge.net Thema: Re: [Nagios-users] how can i use snmp 15.01.2003 14:31 You asked for a tool -and I quote- "to count the traffic on each port and so on...". MRTG does just that. MRTG is a master in counting and graphing. So if you want to graph temperature, yes MRTG can do that. However, it seems like you want to monitor, rather than to count? No? Anyway, it might be helpfull if you could write out what exactly you want to know, because it's a bit fuzzy now... kdellhofen at telebel.net wrote: > > mrtg to read out temprature and Door Open Closed?!?! > > Sorry for my bad english... > > > "Tom DE BLENDE" > l.com> Kopie: > Thema: Re: [Nagios-users] how can i use snmp > 15.01.2003 14:23 > > > > mrtg? > > kdellhofen at telebel.net wrote: > > > > which tools where need to use snmp or to count the traffic on each port > and > > so on... > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Take your first step towards giving > > your online business a competitive advantage. Test-drive a Thawte SSL > > certificate - our easy online guide will show you how. Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From poete66 at caramail.com Wed Jan 15 14:56:12 2003 From: poete66 at caramail.com (Reg') Date: 15 Jan 2003 13:56:12 -0000 Subject: database Message-ID: <20030115135612.5898.qmail@pod-163.dolphin-server.co.uk> Hi, I want to use Nagios with a data base for hoststatus and others things. I have created a database nagios with all the tables and added the user nagios in mysql .user and I have changed the files cgi.cfg and resources.cfg but nagios doesn't use the database. It already uses status.log, downtime.log ... I don't understand why... I have ever done ./configue --with-mysql ... too. If anyone can help me... Thanks Reg' -- Reg' ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From sghosh at sghosh.org Wed Jan 15 15:30:27 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 15 Jan 2003 09:30:27 -0500 (EST) Subject: Antwort: Re: how can i use snmp In-Reply-To: References: Message-ID: Use MRTG for grpahing the traffic and use Nagios to monitor whether the door is open or closed. If you use Cricket instead of MRTG - Cricket could graph the traffic and the door state and send an snmp trap to Nagios if the door state is open.. Generally - use Nagios for monitoring fault - use other apps for performance trends.. -sg On Wed, 15 Jan 2003 kdellhofen at telebel.net wrote: > > Ok i need to count the traffic on each port on an switch or router so i can > use MRTG or?! > Then i need a tool perhaps Mrtg that can read out from a "CMC Rittal" > Server cabinet security wether is opened a door or closed or is there any > alarm.. > > > e.g > system.sysDescr.0 = Rittal CMC Ser. 015271 HW V24 -- SW V2.00 > system.sysObjectID.0 = OID: enterprises.2606.1 > system.sysUpTime.0 = Timeticks: (1134605) 3:09:06.05 > system.sysContact.0 = Klaus Dellhofen > system.sysName.0 = CMC Schrank 1 > system.sysLocation.0 = Leverkusen EVL OVF > system.sysServices.0 = 72 > system.sysORLastChange.0 = Wrong Type (should be Timeticks): 0 > interfaces.ifNumber.0 = 1 > interfaces.ifTable.ifEntry.ifIndex.1 = 1 > interfaces.ifTable.ifEntry.ifDescr.1 = pack > interfaces.ifTable.ifEntry.ifType.1 = iso88023Csmacd(7) > interfaces.ifTable.ifEntry.ifMtu.1 = 1500 > interfaces.ifTable.ifEntry.ifSpeed.1 = Gauge32: 10000000 > interfaces.ifTable.ifEntry.ifPhysAddress.1 = 0:10:f0:0:3b:a7 > interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1) > > > > > > > "Tom DE BLENDE" > l.com> Kopie: Nagios-users at lists.sourceforge.net > Thema: Re: [Nagios-users] how can i use snmp > 15.01.2003 14:31 > > > > > > > You asked for a tool -and I quote- "to count the traffic on each port > and so on...". > > MRTG does just that. MRTG is a master in counting and graphing. So if > you want to graph temperature, yes MRTG can do that. > > However, it seems like you want to monitor, rather than to count? No? > > Anyway, it might be helpfull if you could write out what exactly you > want to know, because it's a bit fuzzy now... > > kdellhofen at telebel.net wrote: > > > > mrtg to read out temprature and Door Open Closed?!?! > > > > Sorry for my bad english... > > > > > > "Tom DE BLENDE" > > kdellhofen at telebel.net > > l.com> Kopie: > > Thema: Re: > [Nagios-users] how can i use snmp > > 15.01.2003 14:23 > > > > > > > > mrtg? > > > > kdellhofen at telebel.net wrote: > > > > > > which tools where need to use snmp or to count the traffic on each port > > and > > > so on... > > > > > > ------------------------------------------------------- > > > This SF.NET email is sponsored by: Take your first step towards giving > > > your online business a competitive advantage. Test-drive a Thawte SSL > > > certificate - our easy online guide will show you how. Click here to > get > > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > > _______________________________________________ > > > 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: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Fredrik.Wanglund at datavis.se Wed Jan 15 15:48:52 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Wed, 15 Jan 2003 15:48:52 +0100 Subject: how can i use snmp Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780475@storevis.datavis.se> Have a look at Apan, apan.sourceforge.net. It may have some useful oid's for network-traffic etc. /FredrikW -----Original Message----- From: kdellhofen at telebel.net [mailto:kdellhofen at telebel.net] Sent: Wed 15-Jan-03 14:02 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] how can i use snmp which tools where need to use snmp or to count the traffic on each port and so on... ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Ton.Voon at egg.com Wed Jan 15 15:55:27 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Wed, 15 Jan 2003 14:55:27 -0000 Subject: check_swap quirk on Solaris Message-ID: <53104E20A25CD411B556009027E50636064D5104@pnnemp02.pn.egg.com> I decided against using check_swap on Solaris, mainly because swap -l does not consider "reserved but not yet utilised" memory as used. Instead, I've got a perl script which runs a swap -s and takes the figures there. Let me know if you want me to post this. > -----Original Message----- > From: Grae Noble [SMTP:Grae.Noble at newcastle.edu.au] > Sent: Wednesday, January 15, 2003 10:18 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_swap quirk on Solaris > > Hi all, > I've seen the problem also. Not only that, but it also does not handle > multiple swap devices properly. If there is more that one swap file or > partition and if one of them is at a size/percentage that will generate an > alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, 1, > at 10% and one at 0%. If the threshold for the check is set to 60% then > the check will trigger a critical or warning instead of calculating the > total swap available and setting the status against that. > > I did submit a bug report for both problems, 621872 is the block/byte > problem, but the other bug seems to have disappeared from sourceforge. > > > Grae Noble > Infrastructure, Communication and Information Services, University > Services Division > University of Newcastle, NSW > Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 > Grae.Noble at newcastle.edu.au > Room: CT216 > > > >>> "Carroll, Jim P [Contractor]" 01/15/03 > 09:36am >>> > It's been brought to my attention that check_swap on Solaris8 reports in > bytes, whereas the 'swap -l' command reports in blocks. Either the output > should be changed to 'blocks', or the math should be done so that the > numeric value is actually in bytes. > > Example: > > Nagios reports: > > Swap ok - Swap used: 0% (0 bytes out of 1049312) > > swap -l reports: > > swapfile dev swaplo blocks free > /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 > > HTH. > > jc > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From kdellhofen at telebel.net Wed Jan 15 15:49:55 2003 From: kdellhofen at telebel.net (kdellhofen at telebel.net) Date: Wed, 15 Jan 2003 15:49:55 +0100 Subject: Antwort: RE: Antwort: Re: how can i use snmp Message-ID: thx nice solution !!! Anders Nerheim no> Kopie: Nagios-users Thema: RE: Antwort: Re: [Nagios-users] how can i use snmp 15.01.2003 15:46 should be a quick hack. Look at other snmp scripts like check_hpjd and check_ifoperstatus for a pointer on howto do it. You would also need the OID's >Then i need a tool perhaps Mrtg that can read out from a "CMC Rittal" >Server cabinet security wether is opened a door or closed or is there any >alarm.. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From grubbel at online.no Wed Jan 15 15:46:24 2003 From: grubbel at online.no (Anders Nerheim) Date: Wed, 15 Jan 2003 15:46:24 +0100 Subject: Antwort: Re: how can i use snmp Message-ID: <3E28E44A@epostleser.online.no> should be a quick hack. Look at other snmp scripts like check_hpjd and check_ifoperstatus for a pointer on howto do it. You would also need the OID's >Then i need a tool perhaps Mrtg that can read out from a "CMC Rittal" >Server cabinet security wether is opened a door or closed or is there any >alarm.. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jgking at packetstorm.org Wed Jan 15 16:45:45 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Wed, 15 Jan 2003 09:45:45 -0600 (CST) Subject: writing own interface, status.log question In-Reply-To: References: Message-ID: Now that I have nagios setup like I want (man is this tool flexible), I am wanting to present the data differently than the Nagios Console. Basically I have a postnuke php portal that i made custom blocks to parse NMIS data for network graphs and I plan on doing a similar set of blocks for Nagios. The reason i am doing it this way is that I can present a customized read only overview of the system that in no way interacts with the main consoles other than reading a set of data files. Looking at Nagios, it seems the only file i need to worry about is the status.log file Which is a semicolon delimited file and im only concerned to display the most current information and the first 4 fields. timestamp SERVICE;hostname;CHeck Description;Status Am I missing anything or is it really this easy? Thanks! ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From russell at quadrix.com Wed Jan 15 16:45:52 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 15 Jan 2003 10:45:52 -0500 Subject: check_traffic plugin References: <20030115045347.85052.qmail@web21502.mail.yahoo.com> <173699712.20030115110839@irc.pila.pl> Message-ID: <3E258230.20201@quadrix.com> I'd love to see the graphs, but its prompting for login/password. Can you give out a guest login just to see what the graphs look like? Russell Scibetti Adrian Wieczorek wrote: >Hello Jon, > >Wednesday, January 15, 2003, 5:53:47 AM, you wrote: > > >>Cool, I will try test it tomorrow. Does it just input the totals into a RRDtool database, or does it creat the graphs >>as well? >> > > It create graphs: > > http://irc.pila.pl/cgi-bin/nagios/Kmicic_ppp0.cgi > > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From dennis.cannell at itouch.ie Wed Jan 15 16:57:53 2003 From: dennis.cannell at itouch.ie (Dennis Cannell) Date: Wed, 15 Jan 2003 15:57:53 -0000 Subject: Sybase plugin Message-ID: Hi, Would love to hear from anyone who has written a sybase plugin, specifically remotely logging in, doing a test of some sort (probably just a select) and returning code. I've written a basic one, that just uses isql running a SQL query based on contrib/check_oracle_instance but it's real simplistic and there's probably something better by someone out there. For all the budding DBA out there, what would be a general good SQL statement to run to poll health? I'm just using select * from master..sysdatabases and returning the number of rows! Looking forward to hearing any thoughts. Cheers ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From russell at quadrix.com Wed Jan 15 17:18:52 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 15 Jan 2003 11:18:52 -0500 Subject: writing own interface, status.log question References: Message-ID: <3E2589EC.8030100@quadrix.com> You might want to take a look at the FAQ. It lists what every field in the status.log stands for. There's probably more you care about than just the first 4 things, like what retry its on, Soft or Hard state, is it acknowledged, in a downtime, etc. http://www.nagios.org/faqs/viewfaq.php?faq_id=66 Russell Scibetti jgking at packetstorm.org wrote: >Now that I have nagios setup like I want (man is this tool flexible), I am >wanting to present the data differently than the Nagios Console. Basically >I have a postnuke php portal that i made custom blocks to parse NMIS data >for network graphs and I plan on doing a similar set of blocks for Nagios. > >The reason i am doing it this way is that I can present a customized read >only overview of the system that >in no way interacts with the main consoles other than reading a set of >data files. > >Looking at Nagios, it seems the only file i need to worry about is the >status.log file > > >Which is a semicolon delimited file and im only concerned to display the >most current information and the first 4 fields. > >timestamp SERVICE;hostname;CHeck Description;Status > > >Am I missing anything or is it really this easy? > >Thanks! > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Take your first step towards giving >your online business a competitive advantage. Test-drive a Thawte SSL >certificate - our easy online guide will show you how. Click here to get >started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en >_______________________________________________ >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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jgking at packetstorm.org Wed Jan 15 17:32:17 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Wed, 15 Jan 2003 10:32:17 -0600 (CST) Subject: Antwort: Re: how can i use snmp In-Reply-To: References: Message-ID: Mrtg or even better rrdtool (NMIS project is great for cisco devices). Cricket is pretty nice but i had to create a seperate set of binaries seperate from my core apache/php system since Cricket wont work in safe mode and needs reg_globals on among other things. Still Cricket is nice. You should also check on net-snmp (http://www.net-snmp.org). The check_snmp tool in the libexec directory of Nagios is very nice and can be expanded by creating entries in the etc/checkcommands.cfg I did this to handle integer and string return differences: define command{ command_name check_snmp_int command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$ -C $ARG4$ -d $ARG5$ } define command{ command_name check_snmp_str command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ -C $ARG4$ -d $ARG5$ } Then in your services.cfg file you can do something like this: define service{ use generic-service ; Name of service template to use host_name portal service_description ETH: Status is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_snmp_int!localhost!.1.3.6.1.2.1.2.2.1.7.2,.1.3.6.1.2.1.2.2.1.8.2!1!***********!"=" } What the above does is check the return values for my ethernet device to see if the admin and oper status is 1. Handling multiple oids is real handy when trying to minimize Status Details, the only issue i have with it so far is that the boundary check for oids limits me (ie it cores) to only so many entries. It would be nice if the check_snmp program could add a flag for the oid parent tree and then accept an array of integers comprised of the subtree values. For example, the process table oid .1.3.6.1.4.1.2021.2.1.101 and then and array of what leaf nodes (1,2,3,4,10,12,15...n) ahck im going off on a tangent again, better stop before i go completely off track ;) -Greg On Wed, 15 Jan 2003, Subhendu Ghosh wrote: > > Use MRTG for grpahing the traffic and use Nagios to monitor whether the > door is open or closed. > > > If you use Cricket instead of MRTG - Cricket could graph the traffic and > the door state and send an snmp trap to Nagios if the door state is open.. > > Generally - use Nagios for monitoring fault - use other apps for > performance trends.. > > -sg > > On Wed, 15 Jan 2003 kdellhofen at telebel.net wrote: > > > > > Ok i need to count the traffic on each port on an switch or router so i can > > use MRTG or?! > > Then i need a tool perhaps Mrtg that can read out from a "CMC Rittal" > > Server cabinet security wether is opened a door or closed or is there any > > alarm.. > > > > > > e.g > > system.sysDescr.0 = Rittal CMC Ser. 015271 HW V24 -- SW V2.00 > > system.sysObjectID.0 = OID: enterprises.2606.1 > > system.sysUpTime.0 = Timeticks: (1134605) 3:09:06.05 > > system.sysContact.0 = Klaus Dellhofen > > system.sysName.0 = CMC Schrank 1 > > system.sysLocation.0 = Leverkusen EVL OVF > > system.sysServices.0 = 72 > > system.sysORLastChange.0 = Wrong Type (should be Timeticks): 0 > > interfaces.ifNumber.0 = 1 > > interfaces.ifTable.ifEntry.ifIndex.1 = 1 > > interfaces.ifTable.ifEntry.ifDescr.1 = pack > > interfaces.ifTable.ifEntry.ifType.1 = iso88023Csmacd(7) > > interfaces.ifTable.ifEntry.ifMtu.1 = 1500 > > interfaces.ifTable.ifEntry.ifSpeed.1 = Gauge32: 10000000 > > interfaces.ifTable.ifEntry.ifPhysAddress.1 = 0:10:f0:0:3b:a7 > > interfaces.ifTable.ifEntry.ifAdminStatus.1 = up(1) > > > > > > > > > > > > > > "Tom DE BLENDE" > > > l.com> Kopie: Nagios-users at lists.sourceforge.net > > Thema: Re: [Nagios-users] how can i use snmp > > 15.01.2003 14:31 > > > > > > > > > > > > > > You asked for a tool -and I quote- "to count the traffic on each port > > and so on...". > > > > MRTG does just that. MRTG is a master in counting and graphing. So if > > you want to graph temperature, yes MRTG can do that. > > > > However, it seems like you want to monitor, rather than to count? No? > > > > Anyway, it might be helpfull if you could write out what exactly you > > want to know, because it's a bit fuzzy now... > > > > kdellhofen at telebel.net wrote: > > > > > > mrtg to read out temprature and Door Open Closed?!?! > > > > > > Sorry for my bad english... > > > > > > > > > "Tom DE BLENDE" > > > > kdellhofen at telebel.net > > > l.com> Kopie: > > > Thema: Re: > > [Nagios-users] how can i use snmp > > > 15.01.2003 14:23 > > > > > > > > > > > > mrtg? > > > > > > kdellhofen at telebel.net wrote: > > > > > > > > which tools where need to use snmp or to count the traffic on each port > > > and > > > > so on... > > > > > > > > ------------------------------------------------------- > > > > This SF.NET email is sponsored by: Take your first step towards giving > > > > your online business a competitive advantage. Test-drive a Thawte SSL > > > > certificate - our easy online guide will show you how. Click here to > > get > > > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > > > _______________________________________________ > > > > 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: Take your first step towards giving > > your online business a competitive advantage. Test-drive a Thawte SSL > > certificate - our easy online guide will show you how. Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jlyons30 at yahoo.com Wed Jan 15 16:02:58 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 07:02:58 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <173699712.20030115110839@irc.pila.pl> References: <173699712.20030115110839@irc.pila.pl> Message-ID: <20030115150258.51042.qmail@web21503.mail.yahoo.com> Password protected.? Adrian Wieczorek wrote:Hello Jon, Wednesday, January 15, 2003, 5:53:47 AM, you wrote: > Cool, I will try test it tomorrow. Does it just input the totals into a RRDtool database, or does it creat the graphs > as well? It create graphs: http://irc.pila.pl/cgi-bin/nagios/Kmicic_ppp0.cgi -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 jlyons30 at yahoo.com Wed Jan 15 15:56:01 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 06:56:01 -0800 (PST) Subject: Parents In-Reply-To: <3E251309.36816DD1@gcc.dhl.com> References: <3E251309.36816DD1@gcc.dhl.com> Message-ID: <20030115145601.90381.qmail@web21507.mail.yahoo.com> http://nagios.sourceforge.net/docs/1_0/networkoutages.html Tom DE BLENDE wrote:I did that, and then I see two links on the Status Map page. That is OK. Now the question is: what is the result of this? What will happen if one of the two parents goes down? You see, what I have is this: Nagios box: IF A: 172.20.200.109 IF B: 10.30.66.66 Server: IF A: 172.20.200.40 IF B: 10.30.66.10 This server has the 10.30.66.10 IP as host_address. This is the IP of the private GigaBit backbone that both this server and the nagios box share. Now, some service checks are done over the 10. ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 steve at dtnspeed.net Wed Jan 15 15:53:50 2003 From: steve at dtnspeed.net (Steven L. Kohrs) Date: 15 Jan 2003 08:53:50 -0600 Subject: Nagios centralized server BUG??? Message-ID: <1042642430.1095.83.camel@localhost.localdomain> What's the status on this problem? I'm experiencing the same thing on RH 6.2. I've read the tuning docs, but I can't find anything about handling this. Is it a parallelization issue? I set max_concurrent_checks=100. After restarting Nagios 50 minutes ago, I've got 208 processes. I had a similar problem on a remote host, but setting max_concurrent_checks=5 took care of it. I've got one central server performing 30 active checks and accepting about 900 passive checks from 30 remote servers via NSCA. I believe the problem, which Gerald described below, is a result of too many processes running. I can't hardly perform a 'ps' command when Nagios runs away. How can it update a service status? Thanks, Steve Kohrs From: Burnson, Richard RE: Nagios centralized server BUG??? 2003-01-03 15:10 I tried running Nagios on RH 8.0 as well. (Part of my plan to setup a distributed system, see previous e-mail) I left the existing server running RH 7.2, and on a duplicate machine with the exact same hardware I installed RH 8.0. (Dual 1 Ghz processes and 1 GB RAM, in the same model server) I installed nagios and moved the configs over from the 7.2 box. While the 7.2 box has run w/o a hitch for 1.5 years, the RH 8.0 box would run out of memory and the kernel would kill the nagios process(es). So I blew away Rh 8.0 and installed 7.2 on the box, and was able to run the Nagios setup the same as the original. Not sure what gives, but it seems like 8.0 has some bugs in it that red Hat needs to still work out. So my recommendation is to run it on 7.2 or 7.3 until 8.x is stable. Richard -----Original Message----- From: Gerald Wichmann [mailto:gwichman at za...] Sent: Friday, January 03, 2003 4:46 PM To: Nagios (E-mail) Subject: [Nagios-users] Nagios centralized server BUG??? Well I'm about to give up and install this central server on another box. Running it on RH8 and it's driving me nuts. I have 1 central server accepting only passive service checks. Also 2 distributed servers which submit passive checks to the centralized server's nsca daemon. Watching /var/log/messages I can clearly see all the EXTERNAL COMMANDS being submitted exactly as I'd expect them to. All services are reporting and showing up OK including Ping. Yet when I look at "host detail" or "service detail" something doesn't mesh.. Either there's a bug in nagios or I seriously have something wacky going on here.. Despite the fact that all services report ok, under "host details" I have a variety of servers showing up as RED/DOWN.. Last Check is recent. Status Information is always "CRITICAL - Plugin timed out after 10 seconds". Status is either UNREACHABLE (most of them), or DOWN (1 of them). Ok so I click on "service details".. over there all services report "OK" and green. For some odd reason the Ping services are old in the last checked column. Like 7 hours.. Even though I can watch /var/log/messages and see that I'm receiving PING updates as OK regularly.. The other services mostly have recent updates but there are a lot of them that are 1,2, and even 3 hours out of date. Why is my services detail page so out of date? Someone points out that I may have multiple nagios servers running on the machine and well yes that's partially true. Initially when I start nagios it spawns one nagios -d process but soon they start to multiply. Long term I have seen them climb up to 4000 which seems excessive to me. Far as I can tell they don't reduce in numbers nor do they seem to go much higher then 4000. We're running netsaint in a much larger distributed environment here checking hundreds and hundreds of services and it also spawns multiple netsaint processes.. but not as many.. seems to top out usually around 500.. so as far as I can tell this behavior of multiple processes is normal. So what the hell is going on here? Does anyone out there run a distributed environment with a centralized server? Gerald Wichmann Senior Systems Development Engineer Zantaz, Inc. 925.598.3099 (w) ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jgking at packetstorm.org Wed Jan 15 17:35:34 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Wed, 15 Jan 2003 10:35:34 -0600 (CST) Subject: writing own interface, status.log question In-Reply-To: <3E2589EC.8030100@quadrix.com> References: <3E2589EC.8030100@quadrix.com> Message-ID: oh i read the FAQ but most FAQs seem to leave out some important piece of info and i just wanted to be sure before I started codeing the php block Thanks! On Wed, 15 Jan 2003, Russell Scibetti wrote: > You might want to take a look at the FAQ. It lists what every field in > the status.log stands for. There's probably more you care about than > just the first 4 things, like what retry its on, Soft or Hard state, is > it acknowledged, in a downtime, etc. > > http://www.nagios.org/faqs/viewfaq.php?faq_id=66 > > Russell Scibetti > > jgking at packetstorm.org wrote: > > >Now that I have nagios setup like I want (man is this tool flexible), I am > >wanting to present the data differently than the Nagios Console. Basically > >I have a postnuke php portal that i made custom blocks to parse NMIS data > >for network graphs and I plan on doing a similar set of blocks for Nagios. > > > >The reason i am doing it this way is that I can present a customized read > >only overview of the system that > >in no way interacts with the main consoles other than reading a set of > >data files. > > > >Looking at Nagios, it seems the only file i need to worry about is the > >status.log file > > > > > >Which is a semicolon delimited file and im only concerned to display the > >most current information and the first 4 fields. > > > >timestamp SERVICE;hostname;CHeck Description;Status > > > > > >Am I missing anything or is it really this easy? > > > >Thanks! > > > > > > > >------------------------------------------------------- > >This SF.NET email is sponsored by: Take your first step towards giving > >your online business a competitive advantage. Test-drive a Thawte SSL > >certificate - our easy online guide will show you how. Click here to get > >started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > >_______________________________________________ > >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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jlyons30 at yahoo.com Wed Jan 15 15:59:53 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 06:59:53 -0800 (PST) Subject: Parents In-Reply-To: <3E251528.CC626B87@gcc.dhl.com> References: <3E251528.CC626B87@gcc.dhl.com> Message-ID: <20030115145953.50335.qmail@web21503.mail.yahoo.com> Because your statusmap, and statusvrml maps would have the correct phyical layout? Might be usefull for trouble shooting. Tom DE BLENDE wrote:As that dumb hub can never go down, what would be the advantage of adding it as a parent? ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 justin at pvamu.edu Wed Jan 15 15:55:15 2003 From: justin at pvamu.edu (Justin) Date: Wed, 15 Jan 2003 08:55:15 -0600 Subject: nrpe Message-ID: <017201c2bca6$3bb4c190$0e38cf81@fucko> I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Wed Jan 15 16:57:37 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 15 Jan 2003 10:57:37 -0500 Subject: Statusmap libpng compile problems References: <3FB7F0E2C9BB434187CA34D262A0E91D0E7B64@calvin.twinengines.com> Message-ID: <3E2584F1.5090300@quadrix.com> It probably is a library issue. Check out this FAQ I submitted. It could help find the problem. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti John P. Scarborough wrote: >This one should be obvious. I recieve the following errors in the >apache logs: > >********** >[Mon Jan 13 23:26:19 2003] [error] [client 67.33.118.35] Premature end >of script headers: /usr/local/nagios/sbin/statusmap.cgi >libpng warning: Application was compiled with png.h from libpng-1.0.12 >libpng warning: Application is running with png.c from libpng-1.2.5 >gd-png: fatal libpng error: Incompatible libpng version in application >and library >********** > >Can some help in guiding me to what files I need to tweek to get them >looking in the right place? > >NHSDM?X'DAH?-y2y+r >Xzz?DA-y$)?jYrH r(?.? r?y6?XX?.+-? y+-wv. > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From stan at live2think.com Wed Jan 15 17:58:52 2003 From: stan at live2think.com (Stan Tichomirov) Date: Wed, 15 Jan 2003 08:58:52 -0800 Subject: check_traffic plugin References: <20030115045347.85052.qmail@web21502.mail.yahoo.com> <173699712.20030115110839@irc.pila.pl> <3E258230.20201@quadrix.com> Message-ID: <3E25934C.48E7C85D@live2think.com> aahh.. let me guess here.. guest/guest :-) Russell Scibetti wrote: > I'd love to see the graphs, but its prompting for login/password. Can > you give out a guest login just to see what the graphs look like? > > Russell Scibetti > > Adrian Wieczorek wrote: > >> Hello Jon, >> >> Wednesday, January 15, 2003, 5:53:47 AM, you wrote: >> >> >> >> > Cool, I will try test it tomorrow. Does it just input the totals >> > into a RRDtool database, or does it creat the graphs >> > as well? >> > >> It create graphs: >> >> http://irc.pila.pl/cgi-bin/nagios/Kmicic_ppp0.cgi >> >> >> >> > -- > Russell Scibetti > Quadrix Solutions, Inc. > http://www.quadrix.com > (732) 235-2335, ext. 7038 > > -- Stan Tichomirov UNIX Systems Administrator ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From i.stokes-rees1 at physics.ox.ac.uk Wed Jan 15 17:58:06 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Wed, 15 Jan 2003 16:58:06 -0000 Subject: NSCA problem Message-ID: <35666012DF4CD411BE940090279FA240035A2EDE@ppnt41.physics.ox.ac.uk> What should I do about the check_command entry for a service on a host which only submits passive checks? I have set "active_checks_enabled=0" and "passive_checks_enabled=1", but it still seems "messy" to have a check_command defined. 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From ads at irc.pila.pl Wed Jan 15 18:03:30 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 18:03:30 +0100 Subject: check_traffic plugin In-Reply-To: <20030115150258.51042.qmail@web21503.mail.yahoo.com> References: <20030115150258.51042.qmail@web21503.mail.yahoo.com> Message-ID: <14225594226.20030115180330@irc.pila.pl> Hello Jon, Wednesday, January 15, 2003, 4:02:58 PM, you wrote: > Password protected.? Sorry. Log on guest account (l:guest, p:guest) on my box: http://irc.pila.pl/nagios -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Michael.Huettig at Medien-Systempartner.de Wed Jan 15 17:54:32 2003 From: Michael.Huettig at Medien-Systempartner.de (=?iso-8859-1?Q?Michael_H=FCttig?=) Date: Wed, 15 Jan 2003 17:54:32 +0100 Subject: =?iso-8859-1?Q?Nagios_don=B4t_start_Yaps_for_sms-notifications?= Message-ID: <004e01c2bcb6$c6c7d550$020b18ac@mspmhcpq> Hi, i?ve installed yaps and from command-line, it?s working fine, i defined command for notify-by-sms as described in faq http://www.nagios.org/faqs/viewfaq.php?faq_id=65&expand=false&showdesc=t rue, but nagios don?t send SMS. Then i piped the output of the command into file and i found following output: Found service D1-0175 for 0175xxxxxx Sending following message: 0175xxxxxx (D1-0175, 0175xxxxxx): PROBLEM: : SNMP-Service Running is CRITICAL ( snmp.exe: not running) Trying to open /dev/ttyS0 for modem standard Yaps-permissions are ok, Any Idea? Thanks Michael ********************************************************************** Diese E-Mail wurde auf Viren ueberprueft. www.mimesweeper.com ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Gopinath_Pulyankote at affymetrix.com Wed Jan 15 18:00:52 2003 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Wed, 15 Jan 2003 09:00:52 -0800 Subject: Template Structure is Better??? Message-ID: <48F1F432BF75D6118FAC0002B325BE3636EA6A@ntex04.affymetrix.com> Jim, I have been wanting to move towards a directory based single config file per host approach. Can you send me a sample config file for a host? Secondly, how did you go about creating hostgroups? Do you retain the hostgroups.cfg file? Or can this also be added into the host config file? If so how? Lastly, I had a question on contacts. There are 2 places where contacts are defined, in services.cfg and hostgroups.cfg, which of these take precedence when the host goes down? I have been asked to create host groups based on site location, but my admins are based on type of host (network-admin, windows-admin, unix-admin etc), so if I create a hostgroup based on site I need to add a default contactgroup, if I add all the 3 contactgroups, will the correct one get alerts based on what is defined in the services.cfg file? I am sure it will work for a service outage, but what about a host down situation? Hope you got what I am trying to convey!. Thanks in advance -Gopinath -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Tuesday, January 14, 2003 8:43 AM To: 'Tom DE BLENDE'; Shelfo Pete Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Template Structure is Better??? Tom DE BLENDE wrote: > > Hi Pete, > > > "Shelfo, Pete" wrote: > > > > I have been using Netsaint 7.0 for a long time and have built up > > quite a large number of non-standard check_snmp statements that > > require individual configuration per server. With the new template > > based format for Nagios 1.0 my services.cfg file is going to be huge > > since each service statement is now about 10 lines instead of one > > line condensed. > > I just moved from NetSaint 0.0.7 to Nagios as well. You have a point > that the one line per service was easier to overview. However, don't > let this scare you. Templates are really fun to play with! When I first started to sink my teeth into Nagios back in July/02, I glanced at the 'old' method, shuddered quietly, glanced at the 'new' method, pondered a moment, read the note that indicated everything which used the 'old' method would eventually use the 'new' method, and decided I didn't want to be forced to completely redo everything after the 'old' method was dropped. Once I got the knack for seeing opportunities for making templates, the actual keystrokes I needed to do was a major savings. > > This is going to make maintenance very difficult > > since I will have to browse tons of pages to find a service. > > Well, you can always use the search funtion in vi... Do what I do. In nagios.cfg, set: cfg_dir=/usr/local/nagios/etc/configs and in that directory, create a separate .cfg file for each host. That config file will have the host config stanza as well as all the service config stanzas. Makes for a great way to quickly build out new host/service definitions (ie, keep a copy of a 'baseline' config for each architecture you wish to build out quickly, such as a SQL Server for Windows, or an Oracle database server for Solaris -- just make sure you don't leave the boilerplate files in that directory ending in .cfg, as Nagios will examine them on startup). > > I don't want to go back to the old "default" method since I am > > completely transferring my system into the new format and don't want > > to be outdated on the offset. > > That was one of my motivations as well.> *shrug* I just saw it as The Way (tm). ;) > > Is there a way to manage custom statements like check_snmp and > > NSClient Windows service check so that they are not out of control? > > I see the benefit for template's but that seems to be limited to > > environments that all the hosts in a network have similar settings. > > If one server in a group does not follow a guideline then you have > > to expand the group to individual hosts. Can you do hostgroup > > exemptions in a service check? Can you issue multiple > > check_commands in one service statement? > > See it like this: directives for a specific host or service take > precedence over template settings. And that is a true blessing! One > example: > > I monitor a lot of SQL servers, so I have a SQL service template like > this: [snip] > So you see I can use everything from the template, and still change > that one directive that does not fit in, in this case the > check_command. Templates rock! 'Nuff said. :) > In my opinion the new template format beats the "Old Way". You just > have to learn the little tricks and not just run the convert tool and > leave it to that. Using that tool is a start that will save you a lot > of typing work, but you should then try to exploit everyting that > templates have to offer. In a sense, one needs to step back, look at the bigger picture, and recognize opportunities for economizing. In the beginning, I too used hosts.cfg and services.cfg and added multiple definitions where possible. I've all but eliminated that. It's more verbose using my approach, but also affords greater nimbleness during creation, and minimizes the scope of Fat Fingering a config file. I've even given thought to creating separate subdirectories for each hostname, and creating tiny separate files for each host/service definition. In a dream world, there would be some sort of implicit recognition that, since the service definitions are in the same directory as the host definition, they must be referring to that host, and no other. That would make adding new services as simple as copying a tiny .cfg file from a boilerplate directory to the hostname directory. (Dependencies are a whole 'nother kettle of fish.) > And as far as the size is concerned... that's about the only setback I > can see and was a bit my concern as well... Given the choice of verbose/lucid vs. terse/cryptic, I'm all for verbose. ;) > Kind regards, > Tom jc > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From Gopinath_Pulyankote at affymetrix.com Wed Jan 15 18:11:57 2003 From: Gopinath_Pulyankote at affymetrix.com (Pulyankote, Gopinath) Date: Wed, 15 Jan 2003 09:11:57 -0800 Subject: check_traffic plugin Message-ID: <48F1F432BF75D6118FAC0002B325BE3636EA6B@ntex04.affymetrix.com> try guest/guest. it worked for me :) -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Wednesday, January 15, 2003 7:46 AM To: Adrian Wieczorek Cc: Jon Lyons Subject: Re: [Nagios-users] check_traffic plugin I'd love to see the graphs, but its prompting for login/password. Can you give out a guest login just to see what the graphs look like? Russell Scibetti Adrian Wieczorek wrote: Hello Jon, Wednesday, January 15, 2003, 5:53:47 AM, you wrote: Cool, I will try test it tomorrow. Does it just input the totals into a RRDtool database, or does it creat the graphs as well? It create graphs: http://irc.pila.pl/cgi-bin/nagios/Kmicic_ppp0.cgi -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsm at inpro.net Wed Jan 15 18:49:23 2003 From: jsm at inpro.net (Jeff McKeon) Date: 15 Jan 2003 12:49:23 -0500 Subject: Parents In-Reply-To: <20030115145953.50335.qmail@web21503.mail.yahoo.com> References: <20030115145953.50335.qmail@web21503.mail.yahoo.com> Message-ID: <1042652963.23116.3.camel@rh80-jsm.telaurus.net> Plus it makes it easier for non technical PHM to understand. They like pretty pictures that make sense (hmmm.. "non technical PHM", is that redundant??) On Wed, 2003-01-15 at 09:59, Jon Lyons wrote: > > Because your statusmap, and statusvrml maps would have the correct phyical layout? Might be usefull for trouble shooting. > Tom DE BLENDE wrote:As that dumb hub can never go down, what would be the advantage of > adding it as a parent? > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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 ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From gastrauskas at burrelles.com Wed Jan 15 18:44:31 2003 From: gastrauskas at burrelles.com (Giedrius Astrauskas) Date: Wed, 15 Jan 2003 12:44:31 -0500 Subject: Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? References: <5DB017510818EC468B05BD7BD9EACF8301E2682E@mismail.ena.com> Message-ID: <00a601c2bcbd$c2a2df90$9c0312ac@developer01> Re: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue?I have found comments in nsca.c code that nsca started with option -d is running as "multi process daemon" and started with option -s as "single process daemon". Further in the comments in code there are references to multi process daemon as being "older style". So I am running nsca with option -s Can anybody explain what is really a difference between the two options? Thanks. Giedrius ----- Original Message ----- From: Marc Powell To: kehr02 at yahoo.com ; nagios-users at lists.sourceforge.net Sent: Wednesday, January 15, 2003 7:48 AM Subject: Re: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? According to your ps output below, nsca is running as user nsca, not the user nagios and therefor does not have permission to write to the command file. Either start nsca as the nagios user or add nsca to the nagios group in /etc/group and restart nsca. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Karl Ehr To: Marc Powell ; nagios Sent: Wed Jan 15 02:13:42 2003 Subject: RE: [Nagios-users] Stumper? bug? nsca daemon & ext. cmd. file -- not a permission issue? Sorry -- had to put this project down for a few days... Well it's not an issue with the trailing space (I wish it had been that easy!) I'm still stuck, but you're question about whether nsca is running out of inetd or a daemon made me realize I was running in -s (single) rather than -d (daemon) mode. I 've fixed that: nsca 24583 0.0 0.1 1596 668 ? S 02:56 0:00 /usr/local/nagios/bin/nsca -d -c /usr/local/nagios/etc/nsca.cfg ...But now I get this error in syslog: Jan 15 03:09:31 sf1nmc1 nsca[24645]: Handling the connection... Jan 15 03:09:32 sf1nmc1 nsca[24645]: SERVICE CHECK -> Host Name: 'laptop', Service Description: 'BOGUS', Return Code: '2', Output: 'Error Message goes here' Jan 15 03:09:32 sf1nmc1 nsca[24645]: Could not open command file '/scale8/nagios/var/rw/nagios.cmd' for writing Jan 15 03:09:32 sf1nmc1 nsca[24645]: End of connection... Notice the "Could not open" -- This would make it *seem* more like a permission issue... but honestly, everyting with the CGI's and echoing directly to the command file works just fine (as the nagios user, and as the apache user). Here is my "rw" directory: [root at XXXX root]# ls -la /usr/local/nagios/var/rw/ total 8 drwxrwsr-x 2 nagios nagios 4096 Jan 15 02:57 . drwxrwxr-x 4 nagios nagios 4096 Jan 15 03:11 .. prw-rw---- 1 nagios nagios 0 Jan 15 02:57 nagios.cmd -rw-r--r-- 1 nagios nagios 0 Jan 7 10:26 nsca.dump Any other ideas? Thanks for you help. --- Marc Powell wrote: > I don't know if it's just a display issue or not but > this line caught my > eye: > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > '/usr/local/nagios/var/rw/nagios.cmd ' > > Note the '' after nagios.cmd. Just seems kind > of odd to me that > that would be there. Other than that, does nsca run > out of (x)inetd or > as a daemon? For our sake could you do the following > and resend to the > list? > > ls -la /usr/local/nagios/var/rw > ps -efwww | grep nsca > > Thanks, > > Marc > > > -----Original Message----- > > From: Karl Ehr [mailto:kehr02 at yahoo.com] > > Sent: Tuesday, January 07, 2003 9:03 AM > > To: nagios > > Subject: [Nagios-users] Stumper? bug? nsca daemon > & ext. cmd. file -- > not > > a permission issue? > > > > I have a hacker challenge -- maybe... > > > > I've read the phobic posts about Red Hat 8.0, but > I > > haven't seen anything that looks like my problem, > RH > > 8.0 or otherwise: > > > > My problem is that the nsca daemon, when handling > a > > remote network request from send_nsca, gives the > > following error: > > > > > > Jan 7 08:27:38 XXXX nsca[8827]: Handling the > > connection... > > Jan 7 08:27:38 XXXX nsca[8827]: SERVICE CHECK -> > Host > > Name: 'laptop', Service Description: 'BOGUS', > Return > > Code: '2', Output: 'Error Message goes here' > > Jan 7 08:27:38 XXXX nsca[8827]: Command file > > '/usr/local/nagios/var/rw/nagios.cmd ' does not > exist, > > attempting to use alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for output > > Jan 7 08:27:38 XXXX nsca[8827]: Could not open > > alternate dump file > > '/usr/local/nagios/var/rw/nsca.dump' for appending > > Jan 7 08:27:38 XXXX nsca[8827]: End of > connection... > > > > I've configured the user/group for both nagios and > the > > nsca daemons to be 'nagios/nagios'. All of > > /usr/local/nagios is user/group nagios.nagios. > The > > permissions are correct (I'm 99%) sure, because > all of > > the external command CGI's work perfectly; also, > su-ed > > to the nagios user, I can echo commands >> to the > > /usr/local/nagios/var/rw/nagios.cmd file and they > show > > up fine both in the log and in the web > interface.... > > > > I have tried compiling the 1.06b and 1.0 versions > of > > nagios, the 2.1 and latest CVS build of nsca, > > mix-matching them in all combinations. I have > set > > the permissions on the "rw" directory both by hand > > (setting the group, the S bit on the group level, > > etc...) and with the "install-commandmode" make > > option; I've also tried chmoding the file with > "chmod > > 777" after it gets created when nagios starts and > > there is the same error. > > > > The fact that I can echo commands in locally as > the > > "nagios" user and get good results seems to > probably > > show that its neither a permissions issue or > anything > > with the passive/external command interface. > Maybe > > this is a bug with nsca itself? > > > > As an aside, I cannot get the alternate dump file > to > > work either. Touching the nagios.dump file ahead > of > > time, and setting wide open permissions makes no > > difference. (I'm assuming that the dump file is > > supposed to be a regular text file -- not a FIFO > named > > pipe like the command file, right??) > > > > I'm stumped... but I'm also surprised that I'm > seeing > > something that hasn't popped up for someone else > > already. Any help will bring you praise, beer, > pizza, > > cookies or whatever tithe you demand. TIA, > > > > Karl > > > > __________________________________________________ > > Do you Yahoo!? > > New DSL Internet Access from SBC & Yahoo! > > http://sbc.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 > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users __________________________________________________ Do you Yahoo!? New DSL Internet Access from SBC & Yahoo! http://sbc.yahoo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From i.stokes-rees1 at physics.ox.ac.uk Wed Jan 15 18:51:38 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Wed, 15 Jan 2003 17:51:38 -0000 Subject: Passive only service checks Message-ID: <35666012DF4CD411BE940090279FA240035A2EDF@ppnt41.physics.ox.ac.uk> I have two passive only checks on a particular host. One called "disk" and one called "load". "load" has a nice big P indicating that it is a passive only check, while "disk" does not. Can someone explain this? This is particularly curious since "load" (the one with the P) was created by cut and paste from the service description for "disk". 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jlyons30 at yahoo.com Wed Jan 15 18:57:45 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 09:57:45 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <14225594226.20030115180330@irc.pila.pl> References: <14225594226.20030115180330@irc.pila.pl> Message-ID: <20030115175745.13669.qmail@web21502.mail.yahoo.com> Hey, I've installed it, but hit a few glitches....I needed to modify the make-config; @walk = `$SNMPWALK -v 1 -c $COMMUNITY $HOST <<--didn't like the ordering And on my cicso device, it only created one extend service info entry in the serviceextinfo.cfg file for the first interface(loopback 0), be nice if it created the extend information for each interface/service. I can see the graphs and nagios is polling, but I'm not getting any totals...I haven't looked at it that much though.. Total RX Bytes: 0.00 MB, Total TX Bytes: 0.00 MB Average Traffic: 0.00 B/s (0.0%) in, 0.00 B/s (0.0%) out Adrian Wieczorek wrote:Hello Jon, Wednesday, January 15, 2003, 4:02:58 PM, you wrote: > Password protected.? Sorry. Log on guest account (l:guest, p:guest) on my box: http://irc.pila.pl/nagios -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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 i.stokes-rees1 at physics.ox.ac.uk Wed Jan 15 19:06:02 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Wed, 15 Jan 2003 18:06:02 -0000 Subject: Getting performance data from a windows host Message-ID: <35666012DF4CD411BE940090279FA240035A2EE0@ppnt41.physics.ox.ac.uk> I have NSClient running on my windows hosts, and I would like to get performance data from them. What is the best way to do this? I am currently thinking that I should just put a wrapper around check_nt, parse the output with perl, and then re-form the output line to contain the performance metrics in a "clean" form for logging. 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From pkrzystofiak at endeavors.com Wed Jan 15 19:37:48 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 15 Jan 2003 10:37:48 -0800 Subject: Perl plugin help, Thanks Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63CE@mail.endeavorstech.com> Perl Pluging Question ======================== I can run this script via command line, but when I try to monitor it with the web page, I get an (Return code of 126 is out of bounds - plugin may be missing error) I just want to see the "testing...ca test" string in the nagios web monitor page. You input is appreciated. Thanks, Peter K. #! /usr/bin/perl -wT use strict; use Getopt::Long: use vars qw($PROGNAME); use lib "/usr/local/nagios/libexec"; use utils qw(%ERRORS &print_revision &support &usage); $PROGNAME = "check_ca"; sub print_help(); sub print_usage(); $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; print "testing...ca test\n"; exit $ERRORS{'OK'}; ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From ads at irc.pila.pl Wed Jan 15 19:35:22 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 19:35:22 +0100 Subject: check_traffic plugin In-Reply-To: <20030115175745.13669.qmail@web21502.mail.yahoo.com> References: <20030115175745.13669.qmail@web21502.mail.yahoo.com> Message-ID: <18431106969.20030115193522@irc.pila.pl> Hello Jon, Wednesday, January 15, 2003, 6:57:45 PM, you wrote: > Hey, I've installed it, but hit a few glitches....I needed to modify the make-config; > @walk = `$SNMPWALK -v 1 -c $COMMUNITY $HOST <<--didn't like the ordering Probably Your SNMP utilities must be called with different syntax. (assuming the snmpd was configured correct). Which version of snmpget and snmpwalk You have ? ..and what distribution it is ? > And on my cicso device, it only created one extend service info entry in the serviceextinfo.cfg > file for the first interface(loopback 0), be nice if it created the extend information for each > interface/service. It's bug in make-config: line 125: open(CONFIG, ">$OUTPUT_EXTINFO_FILE"); SHOULD BE: open(CONFIG, ">>$OUTPUT_EXTINFO_FILE"); ;-) > I can see the graphs and nagios is polling, but I'm not getting any totals... > I haven't looked at it that much though.. > Total RX Bytes: 0.00 MB, Total TX Bytes: 0.00 MB > Average Traffic: 0.00 B/s (0.0%) in, 0.00 B/s (0.0%) out like I said before, it's problem with snmpget.. (IMHO) -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From mpowell at ena.com Wed Jan 15 17:27:38 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 15 Jan 2003 10:27:38 -0600 Subject: writing own interface, status.log question Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED0EC@mismail.ena.com> I would suggest using the status.sav file instead since you won't have to read through the *entire* log file and find the most current entry for each particular device. If you do so you should adjust your retention_update_interval in nagios.cfg appropriately. The format of this file is slightly different than status.log and unfortunately I can't find the email that detailed it's contents. -- Marc > -----Original Message----- > From: jgking at packetstorm.org [mailto:jgking at packetstorm.org] > Sent: Wednesday, January 15, 2003 9:46 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] writing own interface, status.log question > > > Now that I have nagios setup like I want (man is this tool flexible), I am > wanting to present the data differently than the Nagios Console. Basically > I have a postnuke php portal that i made custom blocks to parse NMIS data > for network graphs and I plan on doing a similar set of blocks for Nagios. > > The reason i am doing it this way is that I can present a customized read > only overview of the system that > in no way interacts with the main consoles other than reading a set of > data files. > > Looking at Nagios, it seems the only file i need to worry about is the > status.log file > > > Which is a semicolon delimited file and im only concerned to display the > most current information and the first 4 fields. > > timestamp SERVICE;hostname;CHeck Description;Status > > > Am I missing anything or is it really this easy? > > Thanks! > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en From jlyons30 at yahoo.com Wed Jan 15 20:00:31 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 11:00:31 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <18431106969.20030115193522@irc.pila.pl> References: <18431106969.20030115193522@irc.pila.pl> Message-ID: <20030115190031.70278.qmail@web21510.mail.yahoo.com> Hi, snmpwalk version 5.0.3 on FreeBSD 4.7, still have the same issue with the serviceextinfo, I do get the error that it can't determine the maxium speed for interface for each interface on my device. Could this be effecting you while loop? Adrian Wieczorek wrote:Hello Jon, Wednesday, January 15, 2003, 6:57:45 PM, you wrote: > Hey, I've installed it, but hit a few glitches....I needed to modify the make-config; > @walk = `$SNMPWALK -v 1 -c $COMMUNITY $HOST <<--didn't like the ordering Probably Your SNMP utilities must be called with different syntax. (assuming the snmpd was configured correct). Which version of snmpget and snmpwalk You have ? ..and what distribution it is ? > And on my cicso device, it only created one extend service info entry in the serviceextinfo.cfg > file for the first interface(loopback 0), be nice if it created the extend information for each > interface/service. It's bug in make-config: line 125: open(CONFIG, ">$OUTPUT_EXTINFO_FILE"); SHOULD BE: open(CONFIG, ">>$OUTPUT_EXTINFO_FILE"); ;-) > I can see the graphs and nagios is polling, but I'm not getting any totals... > I haven't looked at it that much though.. > Total RX Bytes: 0.00 MB, Total TX Bytes: 0.00 MB > Average Traffic: 0.00 B/s (0.0%) in, 0.00 B/s (0.0%) out like I said before, it's problem with snmpget.. (IMHO) -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ 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 jlyons30 at yahoo.com Wed Jan 15 20:07:54 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 11:07:54 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <20030115190031.70278.qmail@web21510.mail.yahoo.com> References: <20030115190031.70278.qmail@web21510.mail.yahoo.com> Message-ID: <20030115190754.44424.qmail@web21507.mail.yahoo.com> Oops, net-snmp v 5.0.3 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From pkrzystofiak at endeavors.com Wed Jan 15 20:02:41 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 15 Jan 2003 11:02:41 -0800 Subject: run my java code in perl Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63D0@mail.endeavorstech.com> Hello all, I would like to run my java code in perl. Any ideas on what Perl module to use? Inline::Java ? Thanks, Peter ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From robert.brown at visitv.com Wed Jan 15 20:17:32 2003 From: robert.brown at visitv.com (Robert Brown) Date: Wed, 15 Jan 2003 19:17:32 -0000 Subject: configuration Error: check_ping, also check_host_alive, Message-ID: Hello, I am currently trying to configure Nagios, but am stumped at the pre-flight check on configuration data. I have been using http://www.onlamp.com/lpt/a/2705 as my template for configuring, but cannot get past the pre-flight check. Can anyone shed any light? These are the 2 Error types; Checking services... Error: Service check command 'check_ping' specified in service 'PING' for host 'production1' not defined anywhere! Also Checking hosts... Error: Host check command 'check-host-alive' specified for host 'production1' is not defined anywhere! Many thanks in advance Robert Brown www.visitv.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Wed Jan 15 20:40:22 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 15 Jan 2003 14:40:22 -0500 (EST) Subject: Perl plugin help, Thanks In-Reply-To: <53109A46D4F58F458B18D009EAEEDC830E63CE@mail.endeavorstech.com> References: <53109A46D4F58F458B18D009EAEEDC830E63CE@mail.endeavorstech.com> Message-ID: Command is found - but not executable - check the perm bits. On Wed, 15 Jan 2003, Peter Krzystofiak wrote: > Perl Pluging Question > ======================== > I can run this script via command line, but when I try to monitor it > with the web page, I get an (Return code of 126 is out of bounds - plugin may be missing error) > I just want to see the "testing...ca test" string in the nagios web monitor page. > > You input is appreciated. > > Thanks, > > Peter K. > > > #! /usr/bin/perl -wT > > use strict; > use Getopt::Long: > use vars qw($PROGNAME); > use lib "/usr/local/nagios/libexec"; > use utils qw(%ERRORS &print_revision &support &usage); > > $PROGNAME = "check_ca"; > > sub print_help(); > sub print_usage(); > > $ENV{'PATH'}=''; > $ENV{'BASH_ENV'}=''; > $ENV{'ENV'}=''; > > print "testing...ca test\n"; > > exit $ERRORS{'OK'}; > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From sghosh at sghosh.org Wed Jan 15 20:45:02 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 15 Jan 2003 14:45:02 -0500 (EST) Subject: configuration Error: check_ping, also check_host_alive, In-Reply-To: References: Message-ID: in your nagios.cfg - check if there is a cfg_file=/path/to/command.cfg defined Make sure the file exists in the appropriate dir. The file is included in the plugins distribution. -sg On Wed, 15 Jan 2003, Robert Brown wrote: > Hello, > > I am currently trying to configure Nagios, but am stumped at the > pre-flight check on configuration data. I have been using > http://www.onlamp.com/lpt/a/2705 as my template for configuring, but > cannot get past the pre-flight check. Can anyone shed any light? > > These are the 2 Error types; > > Checking services... > Error: Service check command 'check_ping' specified in service 'PING' > for host 'production1' not defined anywhere! > > Also > > Checking hosts... > Error: Host check command 'check-host-alive' specified for host > 'production1' is not defined anywhere! > > > > Many thanks in advance > > Robert Brown > www.visitv.com > -- ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jcarro10 at sprintspectrum.com Wed Jan 15 20:37:17 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 13:37:17 -0600 Subject: database Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12F0@PKDWB03C.ad.sprint.com> You might want to avoid incorporate database support. It's expected to be dropped in the future. http://www.nagios.org/upcoming.php jc > -----Original Message----- > From: Reg' [mailto:poete66 at caramail.com] > Sent: Wednesday, January 15, 2003 7:56 AM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] database > > > > Hi, > > I want to use Nagios with a data base for hoststatus and > others things. I have created a database nagios with all the > tables and added the user nagios in mysql .user and I have > changed the files cgi.cfg and resources.cfg but nagios > doesn't use the database. It already uses status.log, > downtime.log ... I don't understand why... > I have ever done ./configue --with-mysql ... too. > > If anyone can help me... > > Thanks > > Reg' > -- > Reg' > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Take your first step > towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click > here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jcarro10 at sprintspectrum.com Wed Jan 15 20:38:58 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 13:38:58 -0600 Subject: check_swap quirk on Solaris Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12F2@PKDWB03C.ad.sprint.com> I wouldn't mind having it. :) jc > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Wednesday, January 15, 2003 8:55 AM > To: 'Grae Noble'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_swap quirk on Solaris > > > I decided against using check_swap on Solaris, mainly because > swap -l does > not consider "reserved but not yet utilised" memory as used. > Instead, I've > got a perl script which runs a swap -s and takes the figures > there. Let me > know if you want me to post this. > > > -----Original Message----- > > From: Grae Noble [SMTP:Grae.Noble at newcastle.edu.au] > > Sent: Wednesday, January 15, 2003 10:18 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_swap quirk on Solaris > > > > Hi all, > > I've seen the problem also. Not only that, but it also does > not handle > > multiple swap devices properly. If there is more that one > swap file or > > partition and if one of them is at a size/percentage that > will generate an > > alert, then it fails the entire check. i.e. 3 swap devices, > 1 at 80%, 1, > > at 10% and one at 0%. If the threshold for the check is set > to 60% then > > the check will trigger a critical or warning instead of > calculating the > > total swap available and setting the status against that. > > > > I did submit a bug report for both problems, 621872 is the > block/byte > > problem, but the other bug seems to have disappeared from > sourceforge. > > > > > > Grae Noble > > Infrastructure, Communication and Information Services, University > > Services Division > > University of Newcastle, NSW > > Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 > > Grae.Noble at newcastle.edu.au > > Room: CT216 > > > > > > >>> "Carroll, Jim P [Contractor]" > 01/15/03 > > 09:36am >>> > > It's been brought to my attention that check_swap on > Solaris8 reports in > > bytes, whereas the 'swap -l' command reports in blocks. > Either the output > > should be changed to 'blocks', or the math should be done > so that the > > numeric value is actually in bytes. > > > > Example: > > > > Nagios reports: > > > > Swap ok - Swap used: 0% (0 bytes out of 1049312) > > > > swap -l reports: > > > > swapfile dev swaplo blocks free > > /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 > > > > HTH. > > > > jc > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Take your first step > towards giving > > your online business a competitive advantage. Test-drive a > Thawte SSL > > certificate - our easy online guide will show you how. > Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > 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: Take your first step > towards giving > > your online business a competitive advantage. Test-drive a > Thawte SSL > > certificate - our easy online guide will show you how. > Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > 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: Take your first step > towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click > here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From russell at quadrix.com Wed Jan 15 21:05:23 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 15 Jan 2003 15:05:23 -0500 Subject: Nagios centralized server BUG??? References: <1042642430.1095.83.camel@localhost.localdomain> Message-ID: <3E25BF03.6040305@quadrix.com> Something that could be worth testing. What is your value of service_reaper_frequency in nagios.cfg? It defaults to 10, which means that nagios reads its internal plugin communications pipe every 10 seconds. Changing it to 5 helped me a lot, but I was running almost exclusively active checks. I think that setting, and they setting for how often Nagios reads the command pipe are the two things you're going to want to play with the most. Russell Scibetti Steven L. Kohrs wrote: >What's the status on this problem? I'm experiencing the same thing on >RH 6.2. I've read the tuning docs, but I can't find anything about >handling this. Is it a parallelization issue? I set >max_concurrent_checks=100. After restarting Nagios 50 minutes ago, I've >got 208 processes. I had a similar problem on a remote host, but >setting max_concurrent_checks=5 took care of it. > >I've got one central server performing 30 active checks and accepting >about 900 passive checks from 30 remote servers via NSCA. > >I believe the problem, which Gerald described below, is a result of too >many processes running. I can't hardly perform a 'ps' command when >Nagios runs away. How can it update a service status? > >Thanks, > >Steve Kohrs > >From: Burnson, Richard >RE: Nagios centralized server BUG??? >2003-01-03 15:10 > >I tried running Nagios on RH 8.0 as well. (Part of my plan to setup a >distributed system, see previous e-mail) I left the existing server >running RH 7.2, and on a duplicate machine with the exact same hardware >I installed RH 8.0. (Dual 1 Ghz processes and 1 GB RAM, in the same >model server) I installed nagios and moved the configs over from the >7.2 box. While the 7.2 box has run w/o a hitch for 1.5 years, the RH 8.0 >box would run out of memory and the kernel would kill the nagios >process(es). So I blew away Rh 8.0 and installed 7.2 on the box, and >was able to run the Nagios setup the same as the original. Not sure >what gives, but it seems like 8.0 has some bugs in it that red Hat needs >to still work out. So my recommendation is to run it on 7.2 or 7.3 >until 8.x is stable. > >Richard > >-----Original Message----- >From: Gerald Wichmann [mailto:gwichman at za...] >Sent: Friday, January 03, 2003 4:46 PM >To: Nagios (E-mail) >Subject: [Nagios-users] Nagios centralized server BUG??? > >Well I'm about to give up and install this central server on another >box. Running it on RH8 and it's driving me nuts. I have 1 central server >accepting only passive service checks. Also 2 distributed servers which >submit passive checks to the centralized server's nsca daemon. Watching >/var/log/messages I can clearly see all the EXTERNAL COMMANDS being >submitted exactly as I'd expect them to. All services are reporting and >showing up OK including Ping. Yet when I look at "host detail" or >"service detail" something doesn't mesh.. Either there's a bug in nagios >or I seriously have something wacky going on here.. > >Despite the fact that all services report ok, under "host details" I >have a variety of servers showing up as RED/DOWN.. Last Check is recent. >Status Information is always "CRITICAL - Plugin timed out after 10 >seconds". Status is either UNREACHABLE (most of them), or DOWN (1 of >them). > >Ok so I click on "service details".. over there all services report "OK" >and green. For some odd reason the Ping services are old in the last >checked column. Like 7 hours.. Even though I can watch /var/log/messages >and see that I'm receiving PING updates as OK regularly.. The other >services mostly have recent updates but there are a lot of them that are >1,2, and even 3 hours out of date. Why is my services detail page so out >of date? > >Someone points out that I may have multiple nagios servers running on >the machine and well yes that's partially true. Initially when I start >nagios it spawns one nagios -d process but soon they start to multiply. >Long term I have seen them climb up to 4000 which seems excessive to me. >Far as I can tell they don't reduce in numbers nor do they seem to go >much higher then 4000. We're running netsaint in a much larger >distributed environment here checking hundreds and hundreds of services >and it also spawns multiple netsaint processes.. but not as many.. seems >to top out usually around 500.. so as far as I can tell this behavior of >multiple processes is normal. > >So what the hell is going on here? Does anyone out there run a >distributed environment with a centralized server? > >Gerald Wichmann >Senior Systems Development Engineer >Zantaz, Inc. >925.598.3099 (w) > > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: Take your first step towards giving >your online business a competitive advantage. Test-drive a Thawte SSL >certificate - our easy online guide will show you how. Click here to get >started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en >_______________________________________________ >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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From ads at irc.pila.pl Wed Jan 15 21:13:00 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Wed, 15 Jan 2003 21:13:00 +0100 Subject: check_traffic plugin In-Reply-To: <20030115190031.70278.qmail@web21510.mail.yahoo.com> References: <20030115190031.70278.qmail@web21510.mail.yahoo.com> Message-ID: <6736966355.20030115211300@irc.pila.pl> Hello Jon, Wednesday, January 15, 2003, 8:00:31 PM, you wrote: > Hi, snmpwalk version 5.0.3 on FreeBSD 4.7, still have the same issue with the > serviceextinfo, I do get the error that it can't determine the maxium speed for > interface for each interface on my device. Could this be effecting you while loop? It happens because script can't get value from interfaces.ifTable.ifEntry.ifSpeed.$ifNumber object There might be two reasons of this situation: interface hasn't set this value, or.. You still have problems with snmpget :) I don't have access to any platform works under FreeBSD, so I can't help.. Hmmm...I guess the next releases of this plugin should use Perl:SNMP module. It'll solves many problems. -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From gustave at 3web.net Wed Jan 15 21:05:08 2003 From: gustave at 3web.net (Gustave Eiffel) Date: Wed, 15 Jan 2003 13:05:08 -0700 Subject: icon_image directive not working Message-ID: <1042661108.3e25bef49287d@wmail.cybersurf.com> Using version 1 on a RedHat box. I have specified this in my hosts.cfg file: icon_image redhat.jpg and the image is in the share/images/logos/ directory But when I check the config I get: Reading configuration data... Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' on line 101. What am I doing wrong here? The documentation states that the default logo location should be /usr/local/nagios/share/images/logos/ and that is where it is. I have also tries specifying the full path to no avail. The image is there. Here is the whole part from the hosts.cfg define host{ use generic-host ; Name of host template to use host_name tuna alias Mark's Workstation address 192.168.0.1 check_command check-host-alive icon_image redhat.jpg max_check_attempts 10 notification_interval 480 notification_period 24x7 notification_options d,u,r } Can anyone help me out here? ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jsm at inpro.net Wed Jan 15 21:35:07 2003 From: jsm at inpro.net (Jeff McKeon) Date: 15 Jan 2003 15:35:07 -0500 Subject: icon_image directive not working In-Reply-To: <1042661108.3e25bef49287d@wmail.cybersurf.com> References: <1042661108.3e25bef49287d@wmail.cybersurf.com> Message-ID: <1042662907.25425.7.camel@rh80-jsm.telaurus.net> Isn't 'icon_image' attribute one that belongs in a separate config file for extended configuration. Then you put a pointer to that config file in the cgi.cfg file. I used graphics.cfg but i don't recommend that name because you can add so much more to information to this file.. On Wed, 2003-01-15 at 15:05, Gustave Eiffel wrote: > Using version 1 on a RedHat box. > > I have specified this in my hosts.cfg file: > > icon_image redhat.jpg > > and the image is in the share/images/logos/ directory > > But when I check the config I get: > > > > Reading configuration data... > > Error: Could not add object property in file '/usr/local/nagios/etc/hosts.cfg' > on line 101. > > What am I doing wrong here? The documentation states that the default logo > location should be /usr/local/nagios/share/images/logos/ and that is where it > is. I have also tries specifying the full path to no avail. The image is there. > > Here is the whole part from the hosts.cfg > > define host{ > use generic-host ; Name of host template > to use > > host_name tuna > alias Mark's Workstation > address 192.168.0.1 > check_command check-host-alive > icon_image redhat.jpg > max_check_attempts 10 > notification_interval 480 > notification_period 24x7 > notification_options d,u,r > } > > Can anyone help me out here? > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From robin at primus.ca Wed Jan 15 21:36:56 2003 From: robin at primus.ca (Robin Mordasiewicz) Date: Wed, 15 Jan 2003 15:36:56 -0500 (EST) Subject: fonts in linux browser tooo small Message-ID: It seems that I cannot control the fonts in my linux browsers for nagios. No matter what I do the fonts look shriveled and crappy. ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jlyons30 at yahoo.com Wed Jan 15 21:40:35 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Wed, 15 Jan 2003 12:40:35 -0800 (PST) Subject: check_traffic plugin In-Reply-To: <6736966355.20030115211300@irc.pila.pl> References: <6736966355.20030115211300@irc.pila.pl> Message-ID: <20030115204035.90364.qmail@web21510.mail.yahoo.com> What version of snmpwalk are you using? Adrian Wieczorek wrote:Hello Jon, Wednesday, January 15, 2003, 8:00:31 PM, you wrote: > Hi, snmpwalk version 5.0.3 on FreeBSD 4.7, still have the same issue with the > serviceextinfo, I do get the error that it can't determine the maxium speed for > interface for each interface on my device. Could this be effecting you while loop? It happens because script can't get value from interfaces.ifTable.ifEntry.ifSpeed.$ifNumber object There might be two reasons of this situation: interface hasn't set this value, or.. You still have problems with snmpget :) I don't have access to any platform works under FreeBSD, so I can't help.. Hmmm...I guess the next releases of this plugin should use Perl:SNMP module. It'll solves many problems. -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ 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 Stanley.Hopcroft at ipaustralia.gov.au Wed Jan 15 21:49:50 2003 From: Stanley.Hopcroft at ipaustralia.gov.au (Stanley Hopcroft) Date: Thu, 16 Jan 2003 07:49:50 +1100 Subject: run my java code in perl In-Reply-To: <53109A46D4F58F458B18D009EAEEDC830E63D0@mail.endeavorstech.com>; from pkrzystofiak@endeavors.com on Wed, Jan 15, 2003 at 11:02:41AM -0800 References: <53109A46D4F58F458B18D009EAEEDC830E63D0@mail.endeavorstech.com> Message-ID: <20030116074947.A52378@IPAustralia.Gov.AU> Dear Sir, On Wed, Jan 15, 2003 at 11:02:41AM -0800, Peter Krzystofiak wrote: > Hello all, > > I would like to run my java code in perl. > Any ideas on what Perl module to use? > > Inline::Java ? > I think you have only two choices of which the one you mention is quoted in 'Extending and Embedding Perl' as being the only one maintained and supporting contemporary versions of Java. Would you mind sharing what is you have in mind - what Java code you have that _couldn't_ be converted to a native Java plugin ? You still need all the Java support on the Nag host to run Perl::Inline. 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Jan 15 22:07:50 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 16 Jan 2003 08:07:50 +1100 Subject: Perl plugin help, Thanks In-Reply-To: <53109A46D4F58F458B18D009EAEEDC830E63CE@mail.endeavorstech.com>; from pkrzystofiak@endeavors.com on Wed, Jan 15, 2003 at 10:37:48AM -0800 References: <53109A46D4F58F458B18D009EAEEDC830E63CE@mail.endeavorstech.com> Message-ID: <20030116080733.B52378@IPAustralia.Gov.AU> Dear Sir, Here is what I see here on an ancient 5.005 Perl, tsitc> cat > x #! /usr/bin/perl -wT use strict; use Getopt::Long: use vars qw($PROGNAME); use lib "/usr/local/nagios/libexec"; use utils qw(%ERRORS &print_revision &support &usage); $PROGNAME = "check_ca"; sub print_help(); sub print_usage(); $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; print "testing...ca test\n"; exit $ERRORS{'OK'}; tsitc> perl -c x Too late for "-T" option at x line 1. tsitc> echo $? 255 tsitc> You are getting blown out of the water by -T, or the conjunction of taint checks with warnings. (Why I don't know. Google ..). You could 1 Bad idea. Remove 'use strict'. 2 Better idea. Remove -T 3 R&D. Remove -w and apply it with the run time directive around the code. Your plugin should only be receiving data from you (via your Nag config) and is not running suid, so -T shouldn't be required. You could perhaps selectively enable taint checks around the 'critical sections'. 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From kdebisschop at mail.debisschop.net Wed Jan 15 22:08:32 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Wed, 15 Jan 2003 16:08:32 -0500 Subject: Same status In-Reply-To: <20030115154608.M84397@4wx.net> References: <74D428BDBFD5D04CB54E84499ECA29DB2F24F7@PKDWB03C.ad.sprint.com> <20030114190707.M72301@4wx.net> <1042594797.10933.48.camel@localhost.localdomain> <20030115154608.M84397@4wx.net> Message-ID: donavan nelson writes: > ---------- Original Message ----------- > From: Karl DeBisschop > To: donavan nelson > Sent: 14 Jan 2003 20:39:59 -0500 > Subject: RE: [Nagios-users] Same status > >> On Tue, 2003-01-14 at 14:07, donavan nelson wrote: >> > Hi Jim, >> > >> > I started out trying to do everything with SNMP. Just be aware that it can >> > add extra services to your configuration. As an example, for the 1 5 15 >> > minutes CPU load check, it's 3 SNMP services instead of just one. >> >> You can check multiple OIDs in one check_snmp invocation > > > > and have different warning and critical levels for each OID? You bet. -k ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From pkrzystofiak at endeavors.com Wed Jan 15 22:10:06 2003 From: pkrzystofiak at endeavors.com (Peter Krzystofiak) Date: Wed, 15 Jan 2003 13:10:06 -0800 Subject: Perl plugin help, Thanks Message-ID: <53109A46D4F58F458B18D009EAEEDC830E63D3@mail.endeavorstech.com> Hi Stanley, The permissions bits were not set correctly on the perl plugin that i created. I just ran...chmod 755 check_ca (perl plugin) and everything worked. Thanks for the input and your efforts in trying to run the code. That is truly appreciated. -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Wednesday, January 15, 2003 1:08 PM To: Peter Krzystofiak Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Perl plugin help, Thanks Dear Sir, Here is what I see here on an ancient 5.005 Perl, tsitc> cat > x #! /usr/bin/perl -wT use strict; use Getopt::Long: use vars qw($PROGNAME); use lib "/usr/local/nagios/libexec"; use utils qw(%ERRORS &print_revision &support &usage); $PROGNAME = "check_ca"; sub print_help(); sub print_usage(); $ENV{'PATH'}=''; $ENV{'BASH_ENV'}=''; $ENV{'ENV'}=''; print "testing...ca test\n"; exit $ERRORS{'OK'}; tsitc> perl -c x Too late for "-T" option at x line 1. tsitc> echo $? 255 tsitc> You are getting blown out of the water by -T, or the conjunction of taint checks with warnings. (Why I don't know. Google ..). You could 1 Bad idea. Remove 'use strict'. 2 Better idea. Remove -T 3 R&D. Remove -w and apply it with the run time directive around the code. Your plugin should only be receiving data from you (via your Nag config) and is not running suid, so -T shouldn't be required. You could perhaps selectively enable taint checks around the 'critical sections'. 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From russell at quadrix.com Wed Jan 15 22:26:23 2003 From: russell at quadrix.com (Russell Scibetti) Date: Wed, 15 Jan 2003 16:26:23 -0500 Subject: fonts in linux browser tooo small References: Message-ID: <3E25D1FF.2040601@quadrix.com> You can edit the font size on any of the stylesheets (*.css) inside the share/stylesheets directory. Russell Scibetti Robin Mordasiewicz wrote: >It seems that I cannot control the fonts in my linux browsers for nagios. >No matter what I do the fonts look shriveled and crappy. > > > >------------------------------------------------------- >This SF.NET email is sponsored by: A Thawte Code Signing Certificate >is essential in establishing user confidence by providing assurance of >authenticity and code integrity. Download our Free Code Signing guide: >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en >_______________________________________________ >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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From stanley at szczygiel.net Tue Jan 14 23:02:05 2003 From: stanley at szczygiel.net (Stanis³aw Szczygie³) Date: Tue, 14 Jan 2003 23:02:05 +0100 Subject: check_traffic plugin - another notice Message-ID: <001201c2bc18$93a13d90$0200010a@master> Heloo Adrian, I have installed your plugin today for check - and it works very well. Especially nice is to use this make-config script - generating services for multi ports routers is not very funny. I have no time to check graphics - but it is less important to me. Check_traffic for only one router with 9 ports made load of procesoor about 95-98% all the time... The main problem for me is the way how your scripts work. All this snmpget, snmpwalk commands are very hard for processor state. So generally checking all interestig things by snmp is hard for my computer (its only some p-II). Few days ago I found very interesting program for nagios (also thanks to some mail from nagios forum) - it is snmppd - snmp proxy daemon (http://freshmeat.net/projects/snmppd) Calling snpm questions is made by check_snmpp command (the same like check_snmp, but by snmppd daemon). Thanks to this daemon i low down average load of processor more then 15 times! (average load of processor made by more then 15 snmp asks result in load about 5-7 % - from earlier 80-90% !!!) Because all snmp answers made by snmpget/walk are the same possible to posses by check_snmp command - so this is my proposition (question?): is it possible to rewrite check_traffic to use existing command check_snmp (or especially check_snmpp)? It could effect in low down the processor load, what can be (just like in my situation) very important in greater number of tested devices... I would be very gratefull if you find some time to look on the daemon described above, and maybe you find some possibility to use this solution in your project... If you would like to talk about this - send to my priv mail. I'm afraid my english(please apologize me!) is not perfect. Personaly im sure, that joining this two projects can be very interesting... But apart everything - check_traffic and this install script it is really good job! Regards, Stanley ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jragle at unm.edu Wed Jan 15 23:11:17 2003 From: jragle at unm.edu (Jamin) Date: Wed, 15 Jan 2003 15:11:17 -0700 (MST) Subject: fonts in linux browser tooo small In-Reply-To: References: Message-ID: I suggest installing windows fonts or other more robust fonts on your linux box. And use a browser other than netscape that works well with system fonts. I had problems using an older version of netscape and the fonts it tried to use. I use Mozilla now and everything looks great. Didn't have to change style sheets or anything. On Wed, 15 Jan 2003, Robin Mordasiewicz wrote: > It seems that I cannot control the fonts in my linux browsers for nagios. > No matter what I do the fonts look shriveled and crappy. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ---------------------------------------------------------------------- It is by caffeine alone I set my mind in motion. It is by the beans of Java that thoughts acquire speed. The hands acquire shaking. The shaking becomes a warning. It is by caffeine alone I set my mind in motion. -Influenced by Dune ---------------------------------------------------------------------- ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jcarro10 at sprintspectrum.com Wed Jan 15 23:23:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 16:23:24 -0600 Subject: fonts in linux browser tooo small Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12F4@PKDWB03C.ad.sprint.com> If you go to www.mozilla.org and install Phoenix, it makes it simple enough to change your fonts. jc > -----Original Message----- > From: Robin Mordasiewicz [mailto:robin at primus.ca] > Sent: Wednesday, January 15, 2003 2:37 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] fonts in linux browser tooo small > > > It seems that I cannot control the fonts in my linux browsers > for nagios. > No matter what I do the fonts look shriveled and crappy. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing > assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jragle at unm.edu Wed Jan 15 23:35:11 2003 From: jragle at unm.edu (Jamin) Date: Wed, 15 Jan 2003 15:35:11 -0700 (MST) Subject: Custom Commands with Semicolons: bug or feature? Message-ID: Can anyone shed any light on why custom commands (misccommands.cfg) are truncated on semicolons? Is this a bug or a feature? For the life of me, I have tried to escape the semicolon so that it is ignored when nagios parses the config files, but no matter what, if a semicolon exists in the command line, everything after it gets truncated. If you have an enlightened explanation of this, I would be very interested in it. Thanks in advance. -Jamin P.S. As you can see from my previous posts this is what is happening.... I am attempting to escape the semicolon with a backslash. ______________________________________________________________________________ This is the problem here. Example line I want executed:: /nfs/user/j/jragle/bin/testit.pl HostDown "severity:1\;title:alert - Host $HOSTNAME$ is $HOSTSTATE$\;description:Host $HOSTALIAS$ is $HOSTSTATE$ at $SHORTDATETIME$\;" AND Nagios thinks its this:: (via view config of commands) nfs/user/j/jragle/bin/testit.pl HostDown "severity:1\ ______________________________________________________________________________ ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From robin at primus.ca Wed Jan 15 23:44:08 2003 From: robin at primus.ca (Robin Mordasiewicz) Date: Wed, 15 Jan 2003 17:44:08 -0500 (EST) Subject: fonts in linux browser tooo small In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E12F4@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E12F4@PKDWB03C.ad.sprint.com> Message-ID: Actually I have phoenix and windows fonts installed and tried adjusting the font size in preferences and the fonts in nagios still look bad. On Wed, 15 Jan 2003, Carroll, Jim P [Contractor] wrote: > If you go to www.mozilla.org and install Phoenix, it makes it simple enough > to change your fonts. > > jc > > > -----Original Message----- > > From: Robin Mordasiewicz [mailto:robin at primus.ca] > > Sent: Wednesday, January 15, 2003 2:37 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] fonts in linux browser tooo small > > > > > > It seems that I cannot control the fonts in my linux browsers > > for nagios. > > No matter what I do the fonts look shriveled and crappy. > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > > is essential in establishing user confidence by providing > > assurance of > > authenticity and code integrity. Download our Free Code Signing guide: > > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > > _______________________________________________ > > 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: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Robin Mordasiewicz 416-207-7012 UNIX Administrator Primus Canada ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From Steve.Rossen at Parago.Com Wed Jan 15 23:41:08 2003 From: Steve.Rossen at Parago.Com (Steve Rossen) Date: Wed, 15 Jan 2003 16:41:08 -0600 Subject: nrpe failue Message-ID: <2D2B13BD2D3ED41195E1009027FCA06E02639890@copexc51.parago.com> Running on Solaris 8, checking a Solaris 8 box. I run check_nrpe from the command line, works perfect. Returns the results just fine. However Nagios can not seem to get those results, it always shows "Incorrect command line arguments supplied" and the state is unknown. I tired searcher the archive and FAQ but could not find the same problem. Steve -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Jan 16 00:17:06 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 17:17:06 -0600 Subject: Template Structure is Better??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2500@PKDWB03C.ad.sprint.com> I can send you a sample config file off-list. (I just not realized after doing a bit of administrivia, that I really should carve up hostextinfo.cfg and put the relevant chunks into the hostfiles.) Yes, I still use the hostgroups.cfg file. There's no obvious way (to me) to do so. Off the top of my head, I can't think of any other place where you're required to reference multiple hosts in a single stanza. On contacts (and this is wild speculation, so perhaps someone else can confirm/deny): In the trivial case, if a service goes down, I get notification that that service is down. In the trivial case, if a host goes down, I get notification that that service is down, but I do *not* get inundated with notifications for all the services defined on that host. If I were to extrapolate based on that, I would say that if the service gets down, the contact for that service would be notified, and if the host goes down, only the contact for that host would be notified. I'm uncertain of whether the logic is in place to detect whether someone who is listed as a service contact but not a host contact should be notified regardless. Again, take the trivial case: If I'm listed as the host contact and you're listed as the service contact for 30 services on that host, I'll get 1 notification when the host goes down; do you really want 30 notifications that all your services are down? Also, stop to think about roles and responsibilities. If you're responsible for the database and I'm responsible for the host, do you really want to be notified that the database is down, but there's absolutely nothing you can do until the host is up again? And looking at it from my POV: Do I really want you asking me every 5 minutes, "Is it up yet? Is it up yet?" And once the host is back up and (let's say) the database comes back up smoothly, do you really want to have been awake from 1:00am to 4:00am just to discover that there's absolutely no reason why you needed to be up to begin with? If the database fails to start, you'll get your notification soon enough, no need to worry about that. ;) If someone on this list disagrees with this logic, indicating that yes, the DBA should be notified that the host is down, regardless of whether or not they can be effectual, great: Just show me how I can grant the DBA a view of the host *without* having the ability to acknowledge an alert, or schedule/cancel downtime, etc, *without* having to resort to adding individual users to cgi.cfg. (This is pretty much a question I recently asked on this list, without any feedback.) I'm not sure I adequately answered your last question, but I hope it gives you food for thought. jc > -----Original Message----- > From: Pulyankote, Gopinath [mailto:Gopinath_Pulyankote at affymetrix.com] > Sent: Wednesday, January 15, 2003 11:01 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Template Structure is Better??? > > > Jim, > I have been wanting to move towards a directory based > single config > file per host approach. Can you send me a sample config file > for a host? > Secondly, how did you go about creating hostgroups? Do you retain the > hostgroups.cfg file? Or can this also be added into the host > config file? If > so how? > Lastly, I had a question on contacts. There are 2 places > where contacts are > defined, in services.cfg and hostgroups.cfg, which of these > take precedence > when the host goes down? I have been asked to create host > groups based on > site location, but my admins are based on type of host (network-admin, > windows-admin, unix-admin etc), so if I create a hostgroup > based on site I > need to add a default contactgroup, if I add all the 3 > contactgroups, will > the correct one get alerts based on what is defined in the > services.cfg > file? I am sure it will work for a service outage, but what > about a host > down situation? Hope you got what I am trying to convey!. > Thanks in advance > -Gopinath > > -----Original Message----- > From: Carroll, Jim P [Contractor] > [mailto:jcarro10 at sprintspectrum.com] > Sent: Tuesday, January 14, 2003 8:43 AM > To: 'Tom DE BLENDE'; Shelfo Pete > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Template Structure is Better??? > > > Tom DE BLENDE wrote: > > > > Hi Pete, > > > > > "Shelfo, Pete" wrote: > > > > > > I have been using Netsaint 7.0 for a long time and have built up > > > quite a large number of non-standard check_snmp statements that > > > require individual configuration per server. With the > new template > > > based format for Nagios 1.0 my services.cfg file is going > to be huge > > > since each service statement is now about 10 lines instead of one > > > line condensed. > > > > I just moved from NetSaint 0.0.7 to Nagios as well. You have a point > > that the one line per service was easier to overview. However, don't > > let this scare you. Templates are really fun to play with! > > When I first started to sink my teeth into Nagios back in > July/02, I glanced > at the 'old' method, shuddered quietly, glanced at the 'new' method, > pondered a moment, read the note that indicated everything > which used the > 'old' method would eventually use the 'new' method, and > decided I didn't > want to be forced to completely redo everything after the > 'old' method was > dropped. > > Once I got the knack for seeing opportunities for making > templates, the > actual keystrokes I needed to do was a major savings. > > > > This is going to make maintenance very difficult > > > since I will have to browse tons of pages to find a service. > > > > Well, you can always use the search funtion in vi... > > Do what I do. In nagios.cfg, set: > > cfg_dir=/usr/local/nagios/etc/configs > > and in that directory, create a separate .cfg file for each > host. That > config file will have the host config stanza as well as all > the service > config stanzas. Makes for a great way to quickly build out > new host/service > definitions (ie, keep a copy of a 'baseline' config for each > architecture > you wish to build out quickly, such as a SQL Server for Windows, or an > Oracle database server for Solaris -- just make sure you > don't leave the > boilerplate files in that directory ending in .cfg, as Nagios > will examine > them on startup). > > > > I don't want to go back to the old "default" method since I am > > > completely transferring my system into the new format and > don't want > > > to be outdated on the offset. > > > > That was one of my motivations as well.> > > *shrug* I just saw it as The Way (tm). ;) > > > > Is there a way to manage custom statements like check_snmp and > > > NSClient Windows service check so that they are not out > of control? > > > I see the benefit for template's but that seems to be limited to > > > environments that all the hosts in a network have similar > settings. > > > If one server in a group does not follow a guideline then you have > > > to expand the group to individual hosts. Can you do hostgroup > > > exemptions in a service check? Can you issue multiple > > > check_commands in one service statement? > > > > See it like this: directives for a specific host or service take > > precedence over template settings. And that is a true blessing! One > > example: > > > > I monitor a lot of SQL servers, so I have a SQL service > template like > > this: > > [snip] > > > So you see I can use everything from the template, and still change > > that one directive that does not fit in, in this case the > > check_command. > > Templates rock! 'Nuff said. :) > > > In my opinion the new template format beats the "Old Way". You just > > have to learn the little tricks and not just run the > convert tool and > > leave it to that. Using that tool is a start that will save > you a lot > > of typing work, but you should then try to exploit everyting that > > templates have to offer. > > In a sense, one needs to step back, look at the bigger picture, and > recognize opportunities for economizing. > > In the beginning, I too used hosts.cfg and services.cfg and > added multiple > definitions where possible. I've all but eliminated that. It's more > verbose using my approach, but also affords greater nimbleness during > creation, and minimizes the scope of Fat Fingering a config > file. I've even > given thought to creating separate subdirectories for each > hostname, and > creating tiny separate files for each host/service > definition. In a dream > world, there would be some sort of implicit recognition that, > since the > service definitions are in the same directory as the host > definition, they > must be referring to that host, and no other. That would > make adding new > services as simple as copying a tiny .cfg file from a > boilerplate directory > to the hostname directory. (Dependencies are a whole 'nother > kettle of > fish.) > > > And as far as the size is concerned... that's about the > only setback I > > can see and was a bit my concern as well... > > Given the choice of verbose/lucid vs. terse/cryptic, I'm all > for verbose. > ;) > > > Kind regards, > > Tom > > jc > > > > > ------------------------------------------------------- > > 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 > > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jcarro10 at sprintspectrum.com Thu Jan 16 00:24:33 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 17:24:33 -0600 Subject: nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12F8@PKDWB03C.ad.sprint.com> Do you have check_ping defined in the nrpe.cfg file of the client host? jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Wednesday, January 15, 2003 8:55 AM To: Nagios Users Subject: [Nagios-users] nrpe I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Jan 16 00:40:43 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 15 Jan 2003 17:40:43 -0600 Subject: Template Structure is Better??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E12FA@PKDWB03C.ad.sprint.com> > On contacts (and this is wild speculation, so perhaps someone else can > confirm/deny): In the trivial case, if a service goes down, I get > notification that that service is down. In the trivial case, > if a host goes > down, I get notification that that service is down, but I do *not* get > inundated with notifications for all the services defined on > that host. Argh... I meant to say "... I get notification that that host is down, ...". jc ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Jan 16 01:34:51 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 16 Jan 2003 11:34:51 +1100 Subject: Nag event handlers restarting failed programs on NT ? Message-ID: <20030116113441.C53578@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, Is anyone using Nagios (event handlers) to restart failed programs on NT hosts. In this case Nagios can detect the failed program (by 'tailing' the dumped event log on a share - the program will write a heartbet log record to show that is still alive). However, how could it restart the program ? 1 sshd on the NT host ? 2 Do there exist public (ie Samba-TNG, Samba-head) RPC code that can start programs on NT boxes ? 3 Any other suggestions ? 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From rcolley at cardaccess.com.au Thu Jan 16 01:17:16 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Thu, 16 Jan 2003 11:17:16 +1100 Subject: New plugin: check_sensors Message-ID: I've got a simple perl script for checking CPU temp and any other variable output by the lm_sensors package. But it doesn't really conform to the Nagios plugin guidelines. I'd be really happy if anyone was interested in making it conform. Unfortunately, I don't have the time to do this. Feel free to use it anyway. The general usage is: check_sensors .... 'field1' is the name of the field output by 'sensors'. 'disp1' is what to print back to nagios as the name of this field. 'warn1' is an expression that defines when a warning will be generated for this field 'crit1' is an expression that defines when a critical will be generated for this field The 'warn1' and 'crit1' values can be numbers e.g. '35.5' or expressions e.g. '<20'. No attempt is made to ensure the warning and critical expressions are logically consistent. Output is a single line with the values of each of the sensor checks requested, and an indication if they are above the critical or warning thresholds. An example: check_sensors via686a-isa-0c00 'CPU Temp' 'CPU Temp' 38 42 'SYS Temp' 'SYS Temp' 30 35 'CPU core' 'CPU core' '<=1.80' '<1.79' 'CPU Fan' 'CPU Fan' '<3500' '<3000' ... Generates a warning if CPU temp >=38, and critical if >=42 ... Generates a warning if SYS temp >=30, and critical if >=35 ... Generates a warning if CPU core V <=1.80, and critical if <1.79 ... Generates a warning if CPU fan RPM <3500, and critical if <3000 The output generated for the above would be something like: CPU core=1.67(C<1.79):CPU Fan=5625:SYS Temp=30.1:CPU Temp=34.3: An obvious extension is to use nagios performance data logging output format. But alas, no time ;-} Feel free to email with questions. (Please - no flames on my poor Perl coding - I know it's bad :-) Richard ---------------- check_sensors #!/usr/bin/env perl # # check sensors according to lm_sensors output # # (c)2003 Richard Colley # License: GPL v2 # #### Some paths $SENSOR_PROG="/usr/local/bin/sensors"; ################### $progname=$0; $RC_OK=0; $RC_WARN=1; $RC_CRITICAL=2; sub usage { my ($msg) = shift; print "$msg\n"; print "Usage: $progname ...\n"; print "\twhere:\t corresponds to an entry in /etc/sensors.conf\n"; print "\t\t is the name of a field output by 'sensors'\n"; print "\t\t is a string to use while displaying this field\n"; print "\t\t is the warning threshold value of the field output by 'sensors'\n"; print "\t\t is the critical threshold value of the field output by 'sensors'\n"; print "\t\tmultiple triples are permitted\n"; print "\n\t\tNB: a threshold value can be optionally prefixed by an operator character.\n"; print "\t\tValid operators are currently '>', '<', '==', '>=', '<='. The default is '>='.\n"; print "\t\t\te.g. if the warn threshold is <30, then a warning is raised if the value is less than 30.\n"; print "\t\tNo attempt is made to ensure the resultant logic is sensible\n"; exit $RC_CRITICAL; } if( $#ARGV < 4 ) { usage "Not enough args"; } $chip=$ARGV[0]; shift @ARGV; %fields={}; while( $#ARGV >= 3 ) { $i=0; $field=$ARGV[$i]; $i++; $fieldDisp=$ARGV[$i]; $i++; $ARGV[$i] =~ /^([=<>]*)([0-9.]+)/ or usage "Invalid warning threshold format: $ARGV[$i]"; $warn = $2; $warnop = $1 ne "" ? $1 : ">="; $i++; $ARGV[$i] =~ /^([=<>]*)([0-9.]+)/ or usage "Invalid critical threshold format: $ARGV[$i]"; $critical = $2; $criticalop = $1 ne "" ? $1 : ">="; $i++; $config{ $field } = [ $fieldDisp, $warn, $warnop, $critical, $criticalop ]; shift @ARGV; shift @ARGV; shift @ARGV; shift @ARGV; } sub eval_simple { my( $value, $op, $threshold ) = @_; eval "$value $op $threshold"; } $output=""; $retcode = $RC_OK; open( SENSOR, "$SENSOR_PROG $chip|" ) or usage "Failed to run $SENSOR_PROG\n"; while( ) { if( /^([^:]+)[^0-9]*([0-9.]+)/ ) { $field = $1; $value = $2; if( defined( $config{ $field } ) ) { $fieldDisp = ${$config{ $field }}[0]; $warn = ${$config{ $field }}[1]; $warnop = ${$config{ $field }}[2]; $critical = ${$config{ $field }}[3]; $criticalop = ${$config{ $field }}[4]; $output .= "$fieldDisp=$value"; if( eval_simple( $value, $criticalop, $critical ) ) { $output .= "(C$criticalop$critical)"; $retcode = $RC_CRITICAL; } elsif( $retcode == $RC_OK and eval_simple( $value, $warnop, $warn ) ) { $output .= "(W$warnop$warn)"; $retcode = $RC_WARN; } $output .= ";"; } } } close( SENSOR ); print "$output\n"; exit $retcode; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/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 _______________________________________________ Nagiosplug-devel mailing list Nagiosplug-devel at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagiosplug-devel --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 I've got a simple perl script for checking CPU temp and any other variable output by the lm_sensors package. But it doesn't really conform to the Nagios plugin guidelines. I'd be really happy if anyone was interested in making it conform. Unfortunately, I don't have the time to do this. Feel free to use it anyway. The general usage is: check_sensors .... 'field1' is the name of the field output by 'sensors'. 'disp1' is what to print back to nagios as the name of this field. 'warn1' is an expression that defines when a warning will be generated for this field 'crit1' is an expression that defines when a critical will be generated for this field The 'warn1' and 'crit1' values can be numbers e.g. '35.5' or expressions e.g. '<20'. No attempt is made to ensure the warning and critical expressions are logically consistent. Output is a single line with the values of each of the sensor checks requested, and an indication if they are above the critical or warning thresholds. An example: check_sensors via686a-isa-0c00 'CPU Temp' 'CPU Temp' 38 42 'SYS Temp' 'SYS Temp' 30 35 'CPU core' 'CPU core' '<=1.80' '<1.79' 'CPU Fan' 'CPU Fan' '<3500' '<3000' ... Generates a warning if CPU temp >=38, and critical if >=42 ... Generates a warning if SYS temp >=30, and critical if >=35 ... Generates a warning if CPU core V <=1.80, and critical if <1.79 ... Generates a warning if CPU fan RPM <3500, and critical if <3000 The output generated for the above would be something like: CPU core=1.67(C<1.79):CPU Fan=5625:SYS Temp=30.1:CPU Temp=34.3: An obvious extension is to use nagios performance data logging output format. But alas, no time ;-} Feel free to email with questions. (Please - no flames on my poor Perl coding - I know it's bad :-) Richard ---------------- check_sensors #!/usr/bin/env perl # # check sensors according to lm_sensors output # # (c)2003 Richard Colley # License: GPL v2 # #### Some paths $SENSOR_PROG="/usr/local/bin/sensors"; ################### $progname=$0; $RC_OK=0; $RC_WARN=1; $RC_CRITICAL=2; sub usage { my ($msg) = shift; print "$msg\n"; print "Usage: $progname ...\n"; print "\twhere:\t corresponds to an entry in /etc/sensors.conf\n"; print "\t\t is the name of a field output by 'sensors'\n"; print "\t\t is a string to use while displaying this field\n"; print "\t\t is the warning threshold value of the field output by 'sensors'\n"; print "\t\t is the critical threshold value of the field output by 'sensors'\n"; print "\t\tmultiple triples are permitted\n"; print "\n\t\tNB: a threshold value can be optionally prefixed by an operator character.\n"; print "\t\tValid operators are currently '>', '<', '==', '>=', '<='. The default is '>='.\n"; print "\t\t\te.g. if the warn threshold is <30, then a warning is raised if the value is less than 30.\n"; print "\t\tNo attempt is made to ensure the resultant logic is sensible\n"; exit $RC_CRITICAL; } if( $#ARGV < 4 ) { usage "Not enough args"; } $chip=$ARGV[0]; shift @ARGV; %fields={}; while( $#ARGV >= 3 ) { $i=0; $field=$ARGV[$i]; $i++; $fieldDisp=$ARGV[$i]; $i++; $ARGV[$i] =~ /^([=<>]*)([0-9.]+)/ or usage "Invalid warning threshold format: $ARGV[$i]"; $warn = $2; $warnop = $1 ne "" ? $1 : ">="; $i++; $ARGV[$i] =~ /^([=<>]*)([0-9.]+)/ or usage "Invalid critical threshold format: $ARGV[$i]"; $critical = $2; $criticalop = $1 ne "" ? $1 : ">="; $i++; $config{ $field } = [ $fieldDisp, $warn, $warnop, $critical, $criticalop ]; shift @ARGV; shift @ARGV; shift @ARGV; shift @ARGV; } sub eval_simple { my( $value, $op, $threshold ) = @_; eval "$value $op $threshold"; } $output=""; $retcode = $RC_OK; open( SENSOR, "$SENSOR_PROG $chip|" ) or usage "Failed to run $SENSOR_PROG\n"; while( ) { if( /^([^:]+)[^0-9]*([0-9.]+)/ ) { $field = $1; $value = $2; if( defined( $config{ $field } ) ) { $fieldDisp = ${$config{ $field }}[0]; $warn = ${$config{ $field }}[1]; $warnop = ${$config{ $field }}[2]; $critical = ${$config{ $field }}[3]; $criticalop = ${$config{ $field }}[4]; $output .= "$fieldDisp=$value"; if( eval_simple( $value, $criticalop, $critical ) ) { $output .= "(C$criticalop$critical)"; $retcode = $RC_CRITICAL; } elsif( $retcode == $RC_OK and eval_simple( $value, $warnop, $warn ) ) { $output .= "(W$warnop$warn)"; $retcode = $RC_WARN; } $output .= ";"; } } } close( SENSOR ); print "$output\n"; exit $retcode; --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From rcolley at cardaccess.com.au Thu Jan 16 04:14:01 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Thu, 16 Jan 2003 14:14:01 +1100 Subject: check_traffic plugin Message-ID: Actually, this isn't the problem. There are a couple of small bugs in the make_config script. 1. the serviceextinfo.cfg file is written with an entry for hostextinfo, not serviceextinfo 2. the writing of the serviceextinfo is not in a loop per interface. It is outside a foreach. It seems you Adrian changed his mind over whether to generate host or service extinfo. I will make a simple fix, and email it to Adrian for comment. Richard -----Original Message----- From: Adrian Wieczorek [mailto:ads at irc.pila.pl] Sent: Thursday, 16 January 2003 7:13 AM To: Jon Lyons Cc: jlyons30 at yahoo.com Subject: Re[8]: [Nagios-users] check_traffic plugin Hello Jon, Wednesday, January 15, 2003, 8:00:31 PM, you wrote: > Hi, snmpwalk version 5.0.3 on FreeBSD 4.7, still have the same issue > with the serviceextinfo, I do get the error that it can't determine > the maxium speed for interface for each interface on my device. Could > this be effecting you while loop? It happens because script can't get value from interfaces.ifTable.ifEntry.ifSpeed.$ifNumber object There might be two reasons of this situation: interface hasn't set this value, or.. You still have problems with snmpget :) I don't have access to any platform works under FreeBSD, so I can't help.. Hmmm...I guess the next releases of this plugin should use Perl:SNMP module. It'll solves many problems. -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From rcolley at cardaccess.com.au Thu Jan 16 04:40:04 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Thu, 16 Jan 2003 14:40:04 +1100 Subject: check_traffic plugin - another problem Message-ID: I've found another issue with the check_traffic plugin. On machines with interface aliases, e.g. hme1, hme1:1 etc., there is a problem with the generated .cgi file. This is because rrdcgi gets confused by the ':' in the output file name. The solution is to modify both check_traffic and make-config, and put the following line, after where $db_file is assigned: $db_file =~ s/:/-/g; This substitutes a '-' for any ':' in the file name. Seems to work for me. Richard --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From Grae.Noble at newcastle.edu.au Thu Jan 16 04:55:08 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Thu, 16 Jan 2003 14:55:08 +1100 Subject: check_swap quirk on Solaris Message-ID: Ahh, It all becomes clear. Can you not see some closed tickets then (even when viewing the "closed" tickets)? Thanks, I guess I better have a look through cvs then :) Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> Karl DeBisschop 01/15/03 10:48pm >>> On Wed, 2003-01-15 at 05:17, Grae Noble wrote: > Hi all, > I've seen the problem also. Not only that, but it also does not handle multiple swap devices properly. If there is more that one swap file or partition and if one of them is at a size/percentage that will generate an alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, 1, at 10% and one at 0%. If the threshold for the check is set to 60% then the check will trigger a critical or warning instead of calculating the total swap available and setting the status against that. > > I did submit a bug report for both problems, 621872 is the block/byte problem, but the other bug seems to have disappeared from sourceforge. The other did not 'disappear', it was applied and the ticket closed. Standard view does not show closed tickets. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Take your first step towards giving your online business a competitive advantage. Test-drive a Thawte SSL certificate - our easy online guide will show you how. Click here to get started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en _______________________________________________ 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From Grae.Noble at newcastle.edu.au Thu Jan 16 04:57:21 2003 From: Grae.Noble at newcastle.edu.au (Grae Noble) Date: Thu, 16 Jan 2003 14:57:21 +1100 Subject: check_swap quirk on Solaris Message-ID: Me too :) Grae Noble Infrastructure, Communication and Information Services, University Services Division University of Newcastle, NSW Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 Grae.Noble at newcastle.edu.au Room: CT216 >>> "Carroll, Jim P [Contractor]" 01/16/03 06:38am >>> I wouldn't mind having it. :) jc > -----Original Message----- > From: Voon, Ton [mailto:Ton.Voon at egg.com] > Sent: Wednesday, January 15, 2003 8:55 AM > To: 'Grae Noble'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_swap quirk on Solaris > > > I decided against using check_swap on Solaris, mainly because > swap -l does > not consider "reserved but not yet utilised" memory as used. > Instead, I've > got a perl script which runs a swap -s and takes the figures > there. Let me > know if you want me to post this. > > > -----Original Message----- > > From: Grae Noble [SMTP:Grae.Noble at newcastle.edu.au] > > Sent: Wednesday, January 15, 2003 10:18 AM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_swap quirk on Solaris > > > > Hi all, > > I've seen the problem also. Not only that, but it also does > not handle > > multiple swap devices properly. If there is more that one > swap file or > > partition and if one of them is at a size/percentage that > will generate an > > alert, then it fails the entire check. i.e. 3 swap devices, > 1 at 80%, 1, > > at 10% and one at 0%. If the threshold for the check is set > to 60% then > > the check will trigger a critical or warning instead of > calculating the > > total swap available and setting the status against that. > > > > I did submit a bug report for both problems, 621872 is the > block/byte > > problem, but the other bug seems to have disappeared from > sourceforge. > > > > > > Grae Noble > > Infrastructure, Communication and Information Services, University > > Services Division > > University of Newcastle, NSW > > Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 > > Grae.Noble at newcastle.edu.au > > Room: CT216 > > > > > > >>> "Carroll, Jim P [Contractor]" > 01/15/03 > > 09:36am >>> > > It's been brought to my attention that check_swap on > Solaris8 reports in > > bytes, whereas the 'swap -l' command reports in blocks. > Either the output > > should be changed to 'blocks', or the math should be done > so that the > > numeric value is actually in bytes. > > > > Example: > > > > Nagios reports: > > > > Swap ok - Swap used: 0% (0 bytes out of 1049312) > > > > swap -l reports: > > > > swapfile dev swaplo blocks free > > /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 > > > > HTH. > > > > jc > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Take your first step > towards giving > > your online business a competitive advantage. Test-drive a > Thawte SSL > > certificate - our easy online guide will show you how. > Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > 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: Take your first step > towards giving > > your online business a competitive advantage. Test-drive a > Thawte SSL > > certificate - our easy online guide will show you how. > Click here to get > > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > 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: Take your first step > towards giving > your online business a competitive advantage. Test-drive a Thawte SSL > certificate - our easy online guide will show you how. Click > here to get > started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From karl at debisschop.net Thu Jan 16 05:58:10 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 15 Jan 2003 23:58:10 -0500 Subject: check_swap quirk on Solaris In-Reply-To: References: Message-ID: <1042693090.5905.3.camel@localhost.localdomain> On Wed, 2003-01-15 at 22:55, Grae Noble wrote: > Ahh, > > It all becomes clear. Can you not see some closed tickets then (even when viewing the "closed" tickets)? > > Thanks, I guess I better have a look through cvs then :) Looking on the SF frontend, I also don't see the bug report. But I do remember applying a fix for the issue, and it is in the code. Not having auothored (or audited) the SF code, I'll back off any assertions about how to find the actual entry now. -- Karl > > Karl DeBisschop 01/15/03 10:48pm > > On Wed, 2003-01-15 at 05:17, Grae Noble wrote: > > Hi all, > > I've seen the problem also. Not only that, but it also does not handle multiple swap devices properly. If there is more that one swap file or partition and if one of them is at a size/percentage that will generate an alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, 1, at 10% and one at 0%. If the threshold for the check is set to 60% then the check will trigger a critical or warning instead of calculating the total swap available and setting the status against that. > > > > I did submit a bug report for both problems, 621872 is the block/byte problem, but the other bug seems to have disappeared from sourceforge. > > The other did not 'disappear', it was applied and the ticket closed. > Standard view does not show closed tickets. ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From joe at westnet.net.au Thu Jan 16 07:29:18 2003 From: joe at westnet.net.au (Joe Wooller) Date: Thu, 16 Jan 2003 14:29:18 +0800 Subject: Notifications Message-ID: <024b01c2bd28$a2b53000$fa05a8c0@slampt> Does any one know howto set nagios to send only 1 notification when something is down and will only send another notification when its back up, currently when something is down it will keep sending an email after every check. I only want it to send 1 when its down then another when its back up. TIA Joe -------------- next part -------------- An HTML attachment was scrubbed... URL: From atulsh at hclinsys.com Thu Jan 16 08:11:02 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Thu, 16 Jan 2003 12:41:02 +0530 Subject: check_snmp now working in checkcommands.cfg References: <001701c2b936$37d00f30$5f7b0297@atul> <1042483742.4945.47.camel@moishe> <004501c2bc4e$3f9beed0$5f7b0297@atul> <1042624727.4787.21.camel@moishe> Message-ID: <000e01c2bd2e$6dcc8360$5f7b0297@atul> Hello, I have checked that my SNMP is working fine. I can use snmpwalk to query my router and get the response. I can also be able to run the check_snmp command from the command line and I am getting the response. The syntax I am specifyig is as below: ./check_snmp -H 192.168.1.1 -C public system.sysUpTime.0 And this query returns me the UpTime. Also the query system.sysDescr.0 and many other in this category is working. But when I specify this command in the checkcommands.cfg, it doesn't work. Can you tell me how can I write this in checkcommands.cfg to make this work. 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: "Pascal Miquet" To: "Atul Shrivastava" Sent: Wednesday, January 15, 2003 3:28 PM Subject: Re: [Nagios-users] check_snmp file not found in libexec directory > First you may checks that the snmp tools are working fine. > This is done using smpwalk and snmpget command. > > If those are working, then you may checks the Nagios plugins manually > first and then test in nagios. > > HTH > Regards > Pascal Miquet > Le mer 15/01/2003 ? 05:26, Atul Shrivastava a ?crit : > > Hello, > > Thx for this. > > > > Can you tell me, how can I configure the check_snmp plugin so that i can be able to make it working. Basically first of all i want to run it as a command line to check if it is working or now. I have configured the Win NT SNMP service and it is running. But I can't able to communicate this machine. Can you give me the syntax for check_snmp. I have checked the help for this but can't get enough for it. Thx 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: "Pascal Miquet" > > To: "Atul Shrivastava" > > Cc: "Nagios users" > > Sent: Tuesday, January 14, 2003 12:19 AM > > Subject: Re: [Nagios-users] check_snmp file not found in libexec directory > > > > > > > During the ./configure into nagios plugins take a look at the history, > > > because you should install some added software for some plugins, like > > > snmp, flexlm, ... > > > HTH > > > Regards > > > > > > Le sam 11/01/2003 ? 06:56, Atul Shrivastava a ?crit : > > > > Hello All, > > > > > > > > In my libexec directory, there is no file check_snmp > > > > Can you tell me why it is not there. I have also find this file in the whole harddisk but it is not there. 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: 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 Ton.Voon at egg.com Thu Jan 16 08:31:18 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu, 16 Jan 2003 07:31:18 -0000 Subject: check_swap quirk on Solaris Message-ID: <53104E20A25CD411B556009027E50636064D5109@pnnemp02.pn.egg.com> Here's the script. Ideally I think it should be integrated into the C check_swap program - probably using solaris specific ifdefs - but it looked too difficult for me. Also some people dispute the validity of the check as opposed to swap -l. My guide was this reference: http://www.sun.com/sun-on-net/itworld/UIR980701perf.html. <> > -----Original Message----- > From: Tim Shouldice [SMTP:tim at mintoskatingclub.com] > Sent: Wednesday, January 15, 2003 6:55 PM > To: Voon, Ton > Subject: RE: [Nagios-users] check_swap quirk on Solaris > > Yes, please post your script, we get lots of arguements for Solaris admins > when we > currently have a swap alert. > > /Tim > > On Jan 15, "Voon, Ton" wrote: > > > > I decided against using check_swap on Solaris, mainly because swap -l > does > > not consider "reserved but not yet utilised" memory as used. Instead, > I've > > got a perl script which runs a swap -s and takes the figures there. Let > me > > know if you want me to post this. > > > > > -----Original Message----- > > > From: Grae Noble [SMTP:Grae.Noble at newcastle.edu.au] > > > Sent: Wednesday, January 15, 2003 10:18 AM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Re: [Nagios-users] check_swap quirk on Solaris > > > > > > Hi all, > > > I've seen the problem also. Not only that, but it also does not handle > > > multiple swap devices properly. If there is more that one swap file or > > > partition and if one of them is at a size/percentage that will > generate an > > > alert, then it fails the entire check. i.e. 3 swap devices, 1 at 80%, > 1, > > > at 10% and one at 0%. If the threshold for the check is set to 60% > then > > > the check will trigger a critical or warning instead of calculating > the > > > total swap available and setting the status against that. > > > > > > I did submit a bug report for both problems, 621872 is the block/byte > > > problem, but the other bug seems to have disappeared from sourceforge. > > > > > > > > > Grae Noble > > > Infrastructure, Communication and Information Services, University > > > Services Division > > > University of Newcastle, NSW > > > Phone: +61 2 4921 7875 Fax: +61 2 4921 7087 > > > Grae.Noble at newcastle.edu.au > > > Room: CT216 > > > > > > > > > >>> "Carroll, Jim P [Contractor]" > 01/15/03 > > > 09:36am >>> > > > It's been brought to my attention that check_swap on Solaris8 reports > in > > > bytes, whereas the 'swap -l' command reports in blocks. Either the > output > > > should be changed to 'blocks', or the math should be done so that the > > > numeric value is actually in bytes. > > > > > > Example: > > > > > > Nagios reports: > > > > > > Swap ok - Swap used: 0% (0 bytes out of 1049312) > > > > > > swap -l reports: > > > > > > swapfile dev swaplo blocks free > > > /dev/vx/dsk/swapvol 228,7 16 1049312 1049312 > > > > > > HTH. > > > > > > jc > 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. -------------- next part -------------- A non-text attachment was scrubbed... Name: check_swap Type: application/octet-stream Size: 933 bytes Desc: not available URL: From tdeblend at gcc.dhl.com Thu Jan 16 08:45:27 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 16 Jan 2003 08:45:27 +0100 Subject: Notifications References: <024b01c2bd28$a2b53000$fa05a8c0@slampt> Message-ID: <3E266317.F99B7833@gcc.dhl.com> notification_interval: This directive is used to define the number of "time units" to wait before re-notifying a contact that this server is still down or unreachable. Unless you've changed the interval_length directive from the default value of 60, this number will mean minutes. If you set this value to 0, Nagios will not re-notify contacts about problems for this host - only one problem notification will be sent out. > Joe Wooller wrote: > > Does any one know howto set nagios to send only 1 notification when > something is down and will only send another notification when its > back up, > > currently when something is down it will keep sending an email after > every check. > I only want it to send 1 when its down then another when its back > up. > > TIA > > Joe > ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From tdeblend at gcc.dhl.com Thu Jan 16 08:53:55 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 16 Jan 2003 08:53:55 +0100 Subject: Getting performance data from a windows host References: <35666012DF4CD411BE940090279FA240035A2EE0@ppnt41.physics.ox.ac.uk> Message-ID: <3E266513.BA967F56@gcc.dhl.com> Dear Ian, I used to log performance data in a tab delimited file for further analysis. Now I just use MRTG to graph real time CPU data, and that is really helpful. I know there are sexier things around like Cricket, based on rrdtool, but MRTG does the job just fine here. This is what I used for MRTG: #!/bin/sh hostname=$1 uptime=`/usr/local/netsaint/libexec/check_nt -H $1 -p 1248 -v UPTIME | cut -d: -f2` stat=`/usr/local/netsaint/libexec/check_nt -H $1 -p 1248 -v CPULOAD -l 5,80,95,60,80,95,1440,80,95 | cut -d\% -f1 | awk '{print $5}' ` echo $stat echo $stat echo $uptime echo $hostname And this is what I used for logging the stuff in a file: #!/bin/sh [ ! -f /usr/local/netsaint/logging/logs.txt ] && echo -n '"Date" "Time" ' >> /usr/local/netsaint/logging/logs.txt && sed 's/^/"/;s/$/"/' < /usr/local/netsaint/logging/servers| tr "\n" " " >> /usr/local/netsaint/logging/logs.txt && echo >> /usr/local/netsaint/logging/logs.txt echo '"'`date '+%m/%e/%Y'`'" ''"'`date '+%T'`'" '`for server in \`cat /usr/local/netsaint/logging/servers\`; do /usr/local/netsaint/libexec/check_nt -H $server -p 1248 -v CPULOAD -l 10,80,95,60,80,95,1440,80,95 | cut -d\% -f1 | awk '{print "\"" $5 "\""}'; done` >> /usr/local/netsaint/logging/logs.txt Looking at that last 'script' makes my stomach turn. It was written long ago, and is not used anymore, but should do the job. It requires a file with a list of all servers you want to have stats for. Shouldn't be too hard to do the same with Perl. Kind regards, Tom Ian Stokes-Rees wrote: > > I have NSClient running on my windows hosts, and I would like to get > performance data from them. What is the best way to do this? I am > currently thinking that I should just put a wrapper around check_nt, parse > the output with perl, and then re-form the output line to contain the > performance metrics in a "clean" form for logging. > > 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: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > 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: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From jasmine.chua at securecirt.com Thu Jan 16 09:12:03 2003 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 16 Jan 2003 16:12:03 +0800 Subject: URGENT : Help on Nagios Latency & too many Nagios running processes In-Reply-To: <3E19F812.31285.F695D6@localhost> References: <3E19F812.31285.F695D6@localhost> Message-ID: <200301161612.08829.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 But it still does not solve the problem. I have implemented checking freshness.. and my central server is getting a lot of results saying that it has not received an update from the distributed monitoring servers for some time. And, because host status are not updated they are seen as down when the hosts are not down. On Tuesday 07 January 2003 11:41, you wrote: > Hi Jasmine - > > Set the service_reaper_frequency value to 3 or 4 and see if that helps (it > should). > > On 4 Jan 2003 at 3:14, Jasmine Chua wrote: > > -----BEGIN PGP SIGNED MESSAGE----- > > Hash: SHA1 > > > > Hi Ethan, > > > > I am facing a big problem with Latency. I have tried the mailing list, > > and also read up the docs but I still cant seem to figure out how to > > bring it down. I am using Nagios 1.0 and nagios-plugins 1.3.0-beta2 > > running on Linux Suse8.0. My central monitoring server is currently > > monitoring 560 services and 156 hosts in total. And, 504 are passive and > > disabled, 56 are active services. It is doing active checks as well as > > accepting passive checks from 6 distributed monitoring servers. NSCA is > > run using tcpserver. All data are logged to database. > > > > According to the docs, " The spacing of service checks (also known as the > > inter-check delay) is used to minimize/equalize the load on the local > > host running Nagios and the interleaving is used to minimize/equalize > > load imposed on remote hosts." > > > > I have tried tweaking latency by increasing the max_concurrent_checks as > > well as reducing service_reaper_frequency. ALso, I have once set > > average_check_interval to 540secs, so as to increase the inter-check > > delay but still does not help. Now, I have it set back to 300secs. I am > > afraid interleaving is not something I can do about as it is calculated > > by no.of services / no. of hosts. All calculations are set to SMART. I > > couldnt see what else I can do to bring latency down. > > > > On one of the distributed monitoring servers, is reporting a lot of > > problem hosts and services. Just wondering if there are many alert > > problems, will it slow Nagios down? My guess is it will slow down.. > > right? Because without those problems, my Nagios work perfectly. That > > particular distributed monitoring server however, is playing a major role > > in monitoring 417 services & 137 hosts and reporting results back to the > > central server. > > > > Also, what is the reason for causing many Nagios processes to be running. > > Because apparently I am having many Nagios running on this particular > > distributed monitoring server. > > > > I will be truly grateful if you can help me because this has been bugging > > me for past 2 weeks now. Below are further details and if you shld need > > more details please feel free to contact me via email anytime! > > > > > > Central Monitoring Server: > > > > max_concurrent_checks=240 > > service_reaper_frequency=10 > > service_check_timeout=90 > > host_check_timeout=10 > > event_handler_timeout=30 > > notification_timeout=30 > > ocsp_timeout=10 > > interval_length=60 > > use_agressive_host_checking=0 > > command_check_interval=-1 > > > > Calculations are set to SMART. > > > > Min Max Average > > Check Execution Time: <1s 90s 2.87s > > Check Latency: <1s 2850s 1014s > > > > > > SERVICE SCHEDULING INFORMATION > > ------------------------------- > > Total services: 560 > > Total hosts: 156 > > > > Command check interval: -1 sec > > Check reaper interval: 10 sec > > > > Inter-check delay method: SMART > > Average check interval: 300.000 sec > > Inter-check delay: 0.536 sec > > > > Interleave factor method: SMART > > Average services per host: 3.590 > > Service interleave factor: 4 > > > > Initial service check scheduling info: > > -------------------------------------- > > First scheduled check: 1041619501 -> Sat Jan 4 02:45:01 > > 2003 Last scheduled check: 1041619801 -> Sat Jan 4 02:50:01 2003 > > > > Rough guidelines for max_concurrent_checks value: > > ------------------------------------------------- > > Absolute minimum value: 19 > > Recommend value: 57 > > > > That particular distributed monitoring server: > > > > max_concurrent_checks=168 > > service_reaper_frequency=10 > > service_check_timeout=90 > > host_check_timeout=10 > > interval_length=60 > > use_agressive_host_checking=0 > > > > SERVICE SCHEDULING INFORMATION > > ------------------------------- > > Total services: 417 > > Total hosts: 137 > > > > Command check interval: -1 sec > > Check reaper interval: 10 sec > > > > Inter-check delay method: SMART > > Average check interval: 300.000 sec > > Inter-check delay: 0.719 sec > > > > Interleave factor method: SMART > > Average services per host: 3.044 > > Service interleave factor: 4 > > > > Initial service check scheduling info: > > -------------------------------------- > > First scheduled check: 1041620893 -> Fri Jan 3 19:08:13 > > 2003 Last scheduled check: 1041621194 -> Fri Jan 3 19:13:14 2003 > > > > Rough guidelines for max_concurrent_checks value: > > ------------------------------------------------- > > Absolute minimum value: 14 > > Recommend value: 42 > > > > - -- > > Jasmine Chua > > Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) > > http://www.securecirt.com > > -----BEGIN PGP SIGNATURE----- > > Version: GnuPG v1.0.6 (GNU/Linux) > > Comment: For info see http://www.gnupg.org > > > > iD8DBQE+FeEHNgvTa7Hj2AURAq+RAJ9Ps4Uxf1oraQy7kI908GDHtHoewgCguou1 > > hIzoX3MLLfrMsyMOQ2/UdB8= > > =uIsV > > -----END PGP SIGNATURE----- > > Ethan Galstad, > Nagios Developer > --- > Email: nagios at nagios.org > Website: http://www.nagios.org - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+JmlXNgvTa7Hj2AURAmGSAJ4+aKxHv++xhkzRYtsfUvMszv0gYwCgpMbB YWZEFpGUip/uTyFwy7WS8ms= =UrUZ -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en From mborchers at spielemax.de Thu Jan 16 10:33:09 2003 From: mborchers at spielemax.de (Borchers, Matthias) Date: Thu, 16 Jan 2003 10:33:09 +0100 Subject: nagios dead but subsys locked Message-ID: <43926C914BDCC14282341005840F906708FD44@exchange.spielemax.de> hi all, this message i got every time, i try to start nagios. I use nagios 1.0b5, running on redhat 7.3 on i386. I can't get nagios to work! agin... 112 days uptime everything goes right, but now i get this error message Any help is welcome! with best regards! Matthias Borchers Systemadministration ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From stevox2000 at yahoo.com Thu Jan 16 12:42:10 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Thu, 16 Jan 2003 12:42:10 +0100 (CET) Subject: Problem with check_snmp plugin Message-ID: <20030116114210.13564.qmail@web10905.mail.yahoo.com> I have 2 services using the check_snmp plugin. One service work quite well (network usage). But i have problems with my other service that check disk usage on Win2K. I have manually test the check_snmp : check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL The command returns this line : SNMP OK - 652730 for my network usage service i have this : check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL The command returns this line : SNMP OK - Counter32:5656236 I think the problem is that Nagios parses the result of the check_snmp command and search for Counter32. How can i do to solve this problem ? 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From stevox2000 at yahoo.com Thu Jan 16 12:42:50 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Thu, 16 Jan 2003 12:42:50 +0100 (CET) Subject: Problem with check_snmp plugin Message-ID: <20030116114250.21516.qmail@web10902.mail.yahoo.com> I have 2 services using the check_snmp plugin. One service work quite well (network usage). But i have problems with my other service that check disk usage on Win2K. I have manually test the check_snmp : check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL The command returns this line : SNMP OK - 652730 for my netword usage service i have this : check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 ___________________________________________________________ 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 Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jasmine.chua at securecirt.com Thu Jan 16 13:10:50 2003 From: jasmine.chua at securecirt.com (Jasmine Chua) Date: Thu, 16 Jan 2003 20:10:50 +0800 Subject: service check time out Message-ID: <200301162010.55944.jasmine.chua@securecirt.com> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Hi all I dont understand why I still get "service check timeout " errors when I have set the overall service_timeout to 90secs and the relevant service individually to 90 secs as well. - -- Jasmine Chua Security Engineer, SecureCiRT (A SBU of Z-Vance Pte Ltd) http://www.securecirt.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE+JqFONgvTa7Hj2AURAtjLAJ99I489ZDIYumnTyUaKMyjaO+69vACfcJH3 Usgu4c3OJLa6dgmQa1Gn2rg= =07Jw -----END PGP SIGNATURE----- ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Fredrik.Wanglund at datavis.se Thu Jan 16 13:56:42 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Thu, 16 Jan 2003 13:56:42 +0100 Subject: fonts in linux browser tooo small Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780476@storevis.datavis.se> I had the same problem, no matter which fonts I used. I made this solution: Run this script in the share/stylesheets directory: #!/bin/sh for file in `ls *.css`; do echo $file cat $file | sed -e "s/8pt/10pt/" > tmpfil /bin/mv tmpfil $file done -----Original Message----- From: Robin Mordasiewicz [mailto:robin at primus.ca] Sent: Wed 15-Jan-03 21:36 To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] fonts in linux browser tooo small It seems that I cannot control the fonts in my linux browsers for nagios. No matter what I do the fonts look shriveled and crappy. ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From emann at questinc.org Thu Jan 16 14:29:17 2003 From: emann at questinc.org (Evan Mann) Date: Thu, 16 Jan 2003 08:29:17 -0500 Subject: qpage syntax for misccommands Message-ID: Could someone paste me their syntax for QPAGE notifications from their misccommads.cfg ? ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From karl at debisschop.net Thu Jan 16 14:43:04 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 16 Jan 2003 08:43:04 -0500 Subject: check_swap quirk on Solaris In-Reply-To: <53104E20A25CD411B556009027E50636064D5109@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D5109@pnnemp02.pn.egg.com> Message-ID: <1042724582.22208.42.camel@localhost.localdomain> On Thu, 2003-01-16 at 02:31, Voon, Ton wrote: > Here's the script. Ideally I think it should be integrated into the C > check_swap program - probably using solaris specific ifdefs - but it looked > too difficult for me. Also some people dispute the validity of the check as > opposed to swap -l. My guide was this reference: > http://www.sun.com/sun-on-net/itworld/UIR980701perf.html. Interesting reading... I looked at linux (2.4.20-2.13 i686) and saw: [kdebisschop at localhost build-redhat]$ cat /proc/meminfo total: used: free: shared: buffers: cached: Mem: 128999424 125702144 3297280 0 4173824 77893632 Swap: 263200768 57708544 205492224 MemTotal: 125976 kB MemFree: 3220 kB MemShared: 0 kB Buffers: 4076 kB Cached: 49136 kB SwapCached: 26932 kB Active: 92372 kB ActiveAnon: 54180 kB ActiveCache: 38192 kB Inact_dirty: 4196 kB Inact_laundry: 12796 kB Inact_clean: 2096 kB Inact_target: 22292 kB HighTotal: 0 kB HighFree: 0 kB LowTotal: 125976 kB LowFree: 3220 kB SwapTotal: 257032 kB SwapFree: 200676 kB I wonder if there's any relation to the SwapCached item... Anyway, I think what you have can be done in C with just a few changes to configure.in. If I have a little time on a Solaris machine, I'll look into it. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From GPotter at MarathonOil.com Thu Jan 16 14:58:54 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 16 Jan 2003 07:58:54 -0600 Subject: qpage syntax for misccommands Message-ID: Here is mine. Greg define command{ command_name notify-by-qpage command_line /bin/echo "okcu06 $HOSTALIAS$/$SERVICESTATE$/$SERVICEDESC$ $OUTPUT$ " | /usr/local/bin/qpage -p $CONTACTPAGER$ } > -----Original Message----- > From: Evan Mann [mailto:emann at questinc.org] > Sent: Thursday, January 16, 2003 7:29 AM > To: Nagios List > Subject: [Nagios-users] qpage syntax for misccommands > > > Could someone paste me their syntax for QPAGE notifications from their > misccommads.cfg ? > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From emann at questinc.org Thu Jan 16 15:10:25 2003 From: emann at questinc.org (Evan Mann) Date: Thu, 16 Jan 2003 09:10:25 -0500 Subject: do notifications start with 0 or 1? Message-ID: In reguards to first_notification on an escalation, is first notification understood by Nagios as 0 or 1? ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Stanley.G.Martin at mail.sprint.com Thu Jan 16 15:06:41 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Thu, 16 Jan 2003 08:06:41 -0600 Subject: qpage syntax for misccommands Message-ID: # 'host-notify-by-qpage' command definition define command{ command_name host-notify-by-qpage command_line /usr/bin/printf "Host: '$HOSTNAME$' is $HOSTSTATE$\nInfo: $OUTPUT$\ nTime: $DATETIME$" | /usr/local/bin/qpage -d -p $CONTACTPAGER$ } # 'notify-by-qpage' command definition define command{ command_name notify-by-qpage command_line /bin/echo -e "Service: $SERVICEDESC$\n Host: $HOSTNAME$\n State: $S ERVICESTATE$\n Info: $OUTPUT$\n Date: $DATETIME$" | /usr/local/bin/qpage -d -p $CONTACTPAGE R$ } Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: emann [mailto:emann at questinc.org] Sent: Thursday, January 16, 2003 7:29 AM To: nagios-users Subject: [Nagios-users] qpage syntax for misccommands Could someone paste me their syntax for QPAGE notifications from their misccommads.cfg ? ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From emann at questinc.org Thu Jan 16 15:16:08 2003 From: emann at questinc.org (Evan Mann) Date: Thu, 16 Jan 2003 09:16:08 -0500 Subject: host in more than one hostgroup? Message-ID: I can put a host in more than 1 hostgroup correct? I would have this: host router-ext part of group all which has members * (thus getting 100% of my hosts.cfg) host router-ext-2 part of group routerext which has members router-ext-2 (only 1 host in that hostgroup) Both host's ping the SAME IP. This would be then used in my escalations in the following way: define hostgroupescalation{ hostgroup_name routerext first_notification 2 last_notification 3 contact_groups qpage-group notification_interval 60 } define hostgroupescalation{ hostgroup_name all first_notification 3 last_notification 4 contact_groups it-group,nextel-group notification_interval 60 } --- The reason behind this is that the my "router-ext-2" host I want to have an escalation from a standard e-mail to sending a qpage alert after 20 minutes of being down. So to accomplish this I have router-ext-2 set to a 20 minute notification interval, and "router-ext" host set to my standard 120 minute interval. This should (this is why I ask) give me a setup where on the first down/unknown response I get an e-mail sent to an e-mail box, on the 2nd notification I get a qpage alert sent to my cell phone, and then on the 3 alert I'll still continue to get my e-mails because the escalation for "all" has the router-ext part of it. Would this work? ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Thu Jan 16 15:19:36 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 16 Jan 2003 09:19:36 -0500 (EST) Subject: configuration Error: check_ping, alsocheck_host_alive, In-Reply-To: References: Message-ID: it is usually in the nagios/etc/ directory On Thu, 16 Jan 2003, Robert Brown wrote: > Thanks for the mail, > > Where should the command.cfg be located? > > Robert > > > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: 15 January 2003 19:45 > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] configuration Error: check_ping, > alsocheck_host_alive, > > in your nagios.cfg - check if there is a cfg_file=/path/to/command.cfg > defined > > Make sure the file exists in the appropriate dir. > The file is included in the plugins distribution. > > -sg > > > > On Wed, 15 Jan 2003, Robert Brown wrote: > > > Hello, > > > > I am currently trying to configure Nagios, but am stumped at the > > pre-flight check on configuration data. I have been using > > http://www.onlamp.com/lpt/a/2705 as my template for configuring, but > > cannot get past the pre-flight check. Can anyone shed any light? > > > > These are the 2 Error types; > > > > Checking services... > > Error: Service check command 'check_ping' specified in service 'PING' > > for host 'production1' not defined anywhere! > > > > Also > > > > Checking hosts... > > Error: Host check command 'check-host-alive' specified for host > > 'production1' is not defined anywhere! > > > > > > > > Many thanks in advance > > > > Robert Brown > > www.visitv.com > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From gcoon at inch.com Thu Jan 16 15:19:14 2003 From: gcoon at inch.com (Gerald) Date: Thu, 16 Jan 2003 09:19:14 -0500 (EST) Subject: Problem with check_snmp plugin In-Reply-To: <20030116114210.13564.qmail@web10905.mail.yahoo.com> References: <20030116114210.13564.qmail@web10905.mail.yahoo.com> Message-ID: <20030116091551.K70552@kod.inch.com> This is how I would suggest to set up the command: # $ARG1$ is disk Partition number to be added to OID. # $ARG2$:$ARG3$ is warning threshold MIN:MAX in Kb # $ARG4$:$ARG5$ is critical threshold MIN:MAX in Kb command[check_snmp_disk]=$USER1$/check_snmp -H $HOSTADDRESS$ -C community_name -o enterprises.ucdavis.dskTable.dskEntry.dskAvail.$ARG1$ -w $ARG2$:$ARG3$ -c $ARG4$:$ARG5$ It takes a little more to add the machines since you have to know the thresholds you want, but it makes for realistic paging during an outage instead of generic percentages across a machine. Gerald On Thu, 16 Jan 2003, [iso-8859-1] Steve Dussaux wrote: > I have 2 services using the check_snmp plugin. > One service work quite well (network usage). > But i have problems with my other service that check disk usage on Win2K. > > I have manually test the check_snmp : > > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL > The command returns this line : > SNMP OK - 652730 > > for my network usage service i have this : > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL > The command returns this line : > SNMP OK - Counter32:5656236 > > I think the problem is that Nagios parses the result of the check_snmp command and search for > Counter32. > How can i do to solve this problem ? > > 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: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Thu Jan 16 15:32:55 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 16 Jan 2003 09:32:55 -0500 (EST) Subject: Problem with check_snmp plugin In-Reply-To: <20030116114210.13564.qmail@web10905.mail.yahoo.com> References: <20030116114210.13564.qmail@web10905.mail.yahoo.com> Message-ID: This is a bug - "Counter32:" should be stripped out of the output by the plugin. Will have a patch for it in a few minutes.. Thanks -sg On Thu, 16 Jan 2003, Steve Dussaux wrote: > I have 2 services using the check_snmp plugin. > One service work quite well (network usage). > But i have problems with my other service that check disk usage on Win2K. > > I have manually test the check_snmp : > > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL > The command returns this line : > SNMP OK - 652730 > > for my network usage service i have this : > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL > The command returns this line : > SNMP OK - Counter32:5656236 > > I think the problem is that Nagios parses the result of the check_snmp command and search for > Counter32. > How can i do to solve this problem ? > > 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: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Thu Jan 16 15:30:32 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 16 Jan 2003 09:30:32 -0500 (EST) Subject: check_snmp now working in checkcommands.cfg In-Reply-To: <000e01c2bd2e$6dcc8360$5f7b0297@atul> References: <000e01c2bd2e$6dcc8360$5f7b0297@atul> Message-ID: Hi Atul - a couple of things: first - please have your email program wrap your lines to something readable like 72-80 columns. second - provide a sample config that is not working is easier to fix than providing my version of configs that may make different use of macros.. $USER1$/check_snmp -H $HOSTADDRESS$ -C public -o .1.3.6.1.2.1.1.3.0 -sg On Thu, 16 Jan 2003, Atul Shrivastava wrote: > Hello, > > I have checked that my SNMP is working fine. I can use snmpwalk to query > my router and get the response. I can also be able to run the check_snmp > command from the command line and I am getting the response. > > The syntax I am specifyig is as below: > > ./check_snmp -H 192.168.1.1 -C public system.sysUpTime.0 > > And this query returns me the UpTime. Also the query system.sysDescr.0 > and many other in this category is working. But when I specify this > command in the checkcommands.cfg, it doesn't work. Can you tell me how > can I write this in checkcommands.cfg to make this work. 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: "Pascal Miquet" > To: "Atul Shrivastava" > Sent: Wednesday, January 15, 2003 3:28 PM > Subject: Re: [Nagios-users] check_snmp file not found in libexec directory > > > > First you may checks that the snmp tools are working fine. > > This is done using smpwalk and snmpget command. > > > > If those are working, then you may checks the Nagios plugins manually > > first and then test in nagios. > > > > HTH > > Regards > > Pascal Miquet > > Le mer 15/01/2003 ? 05:26, Atul Shrivastava a ?crit : > > > Hello, > > > Thx for this. > > > > > > Can you tell me, how can I configure the check_snmp plugin so that i can be able to make it working. Basically first of all i want to run it as a command line to check if it is working or now. I have configured the Win NT SNMP service and it is running. But I can't able to communicate this machine. Can you give me the syntax for check_snmp. I have checked the help for this but can't get enough for it. Thx 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: "Pascal Miquet" > > > To: "Atul Shrivastava" > > > Cc: "Nagios users" > > > Sent: Tuesday, January 14, 2003 12:19 AM > > > Subject: Re: [Nagios-users] check_snmp file not found in libexec directory > > > > > > > > > > During the ./configure into nagios plugins take a look at the history, > > > > because you should install some added software for some plugins, like > > > > snmp, flexlm, ... > > > > HTH > > > > Regards > > > > > > > > Le sam 11/01/2003 ? 06:56, Atul Shrivastava a ?crit : > > > > > Hello All, > > > > > > > > > > In my libexec directory, there is no file check_snmp > > > > > Can you tell me why it is not there. I have also find this file in the whole harddisk but it is not there. 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: 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 > > -- ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From chris.stankaitis at datawire.net Thu Jan 16 15:37:15 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Thu, 16 Jan 2003 09:37:15 -0500 Subject: fonts in linux browser tooo small In-Reply-To: References: Message-ID: <3E26C39B.7050605@datawire.net> If your using Moz then just go into the Edit > Preferences > Appearance > Fonts and set a MINIMUM font size. Robin Mordasiewicz wrote: > It seems that I cannot control the fonts in my linux browsers for nagios. > No matter what I do the fonts look shriveled and crappy. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- Chris Stankaitis Systems Administrator Datawire Communication Networks Inc. chris.stankaitis at datawire.net ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jgking at packetstorm.org Thu Jan 16 15:42:58 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 08:42:58 -0600 (CST) Subject: Problem with check_snmp plugin In-Reply-To: <20030116114210.13564.qmail@web10905.mail.yahoo.com> References: <20030116114210.13564.qmail@web10905.mail.yahoo.com> Message-ID: i sent an example to the list a few days ago related to check_snmp on another snmp question. I had the same issue so I used the delimeter switch in check_snmp i also created two check_snmp entries in checkcommands.cfg (one for strings and one for integers both with a delimiter option) Like so: define command{ command_name check_snmp_int command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$ -C $ARG4$ -d $ARG5$ } # /check_snmp -H localhost -o .1.3.6.1.2.1.2.2.1.14.2 -s 0 -C ***** -d "Counter32: " define command{ command_name check_snmp_str command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ -C $ARG4$ -d $ARG5$ } Of course i may be doing this the hard way since im still in my first few days of delving into this tool. If theres a better way please correct me :) -Greg On Thu, 16 Jan 2003, Steve Dussaux wrote: > I have 2 services using the check_snmp plugin. > One service work quite well (network usage). > But i have problems with my other service that check disk usage on Win2K. > > I have manually test the check_snmp : > > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.25.2.3.1.6.2 -C public -m ALL > The command returns this line : > SNMP OK - 652730 > > for my network usage service i have this : > check_snmp -H 10.1.6.250 -o .1.3.6.1.2.1.2.2.1.10.16777219 -C public -m ALL > The command returns this line : > SNMP OK - Counter32:5656236 > > I think the problem is that Nagios parses the result of the check_snmp command and search for > Counter32. > How can i do to solve this problem ? > > 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: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jlyons30 at yahoo.com Thu Jan 16 15:57:12 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 16 Jan 2003 06:57:12 -0800 (PST) Subject: check_traffic plugin In-Reply-To: References: Message-ID: <20030116145712.55609.qmail@web21510.mail.yahoo.com> Yea, I noticed that, but wasn't able to fix it.. :) Richard Colley wrote:Actually, this isn't the problem. There are a couple of small bugs in the make_config script. 1. the serviceextinfo.cfg file is written with an entry for hostextinfo, not serviceextinfo 2. the writing of the serviceextinfo is not in a loop per interface. It is outside a foreach. It seems you Adrian changed his mind over whether to generate host or service extinfo. I will make a simple fix, and email it to Adrian for comment. Richard -----Original Message----- From: Adrian Wieczorek [mailto:ads at irc.pila.pl] Sent: Thursday, 16 January 2003 7:13 AM To: Jon Lyons Cc: jlyons30 at yahoo.com Subject: Re[8]: [Nagios-users] check_traffic plugin Hello Jon, Wednesday, January 15, 2003, 8:00:31 PM, you wrote: > Hi, snmpwalk version 5.0.3 on FreeBSD 4.7, still have the same issue > with the serviceextinfo, I do get the error that it can't determine > the maxium speed for interface for each interface on my device. Could > this be effecting you while loop? It happens because script can't get value from interfaces.ifTable.ifEntry.ifSpeed.$ifNumber object There might be two reasons of this situation: interface hasn't set this value, or.. You still have problems with snmpget :) I don't have access to any platform works under FreeBSD, so I can't help.. Hmmm...I guess the next releases of this plugin should use Perl:SNMP module. It'll solves many problems. -- Best regards, ADi ------------------------------------------------------- This SF.NET email is sponsored by: A Thawte Code Signing Certificate is essential in establishing user confidence by providing assurance of authenticity and code integrity. Download our Free Code Signing guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgking at packetstorm.org Thu Jan 16 16:01:34 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 09:01:34 -0600 (CST) Subject: new plugin can i send here for peer review? Message-ID: Hey I read over the page at http://nagiosplug.sourceforge.net/developer-guidelines.html#SUBMITTINGCHANGES But under 'New submissions and Patches' it doesnt say where to send a new plugin for auditing and peer review. Can I post here? If so ill attach it in a follow-up if the list maintainers are ok with it. Basically I want to create a check_snmp_[prog] branch of plugins. This way I can rely on a single mechanism to poll systems with. For example, I dont want to have to install nagios on each machine to gain access to disk checks etc. Instead Ill use snmp and do it remotely. I would use just check_snmp but I cant use it to perform calculations and in some cases theres no mib for what I want anyhow so I use Net-SNMPs extensability to make my own branches (like an oid that calls a perl program to parse the named statistic output or sendmail mail queues). So to start i wanted to keep it simple. I created a check_snmp_iferrors plugin based on the check_ifstatus plugin. An extra argument has been added (-w) which is the warn limit based on the interface input and output error counts on a given interface. seeing how my interfaces have no errors and i have no idea how to make them act like they would, I tested this setting -w = 0 and got the warn message, set it to 5, no warn message. So it looks to me to be working right but I am not sure. So ill post here if its ok. Also note this is written for for linux so you may have to change the OID values in the program to match the tree on your system. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From magnus.pettersson at eds.com Thu Jan 16 16:04:30 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Thu, 16 Jan 2003 15:04:30 -0000 Subject: nagios dead but subsys locked Message-ID: <5917FD47436E784D8B08F132F0AC506151E55B@sessm201> You probably have a lockfile lurking around in /var/lock/subsys... Delete the lockfile, (probably called nagios.lock or something similar) it and try again. -----Original Message----- From: Borchers, Matthias [mailto:mborchers at spielemax.de] Sent: 16 January 2003 10:33 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] nagios dead but subsys locked hi all, this message i got every time, i try to start nagios. I use nagios 1.0b5, running on redhat 7.3 on i386. I can't get nagios to work! agin... 112 days uptime everything goes right, but now i get this error message Any help is welcome! with best regards! Matthias Borchers Systemadministration ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From karl at debisschop.net Thu Jan 16 16:32:05 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 16 Jan 2003 10:32:05 -0500 Subject: new plugin can i send here for peer review? In-Reply-To: References: Message-ID: <1042731125.22707.34.camel@localhost.localdomain> On Thu, 2003-01-16 at 10:01, jgking at packetstorm.org wrote: > Hey I read over the page at > http://nagiosplug.sourceforge.net/developer-guidelines.html#SUBMITTINGCHANGES > > But under 'New submissions and Patches' it doesnt say where to send a new > plugin for auditing and peer review. > > Can I post here? If so ill attach it in a follow-up if the list > maintainers are ok with it. post to nagiosplug-devel I'd also like to argue for adding the ability to do this genericly to check_snmp, rather than making more and more plugins. It's easy to make a plugin, but the more there are, the more must go into maintaining them. my $0.02 -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jasonp at iland.com Thu Jan 16 16:36:47 2003 From: jasonp at iland.com (Jason Payne) Date: Thu, 16 Jan 2003 09:36:47 -0600 Subject: Win2k NSClient Alert Log Entry Notifications Message-ID: Is there a way to make nagios alert using NSClient responses from a Win2k server whenever there is a new entry in the alert logs with a specific error code? Has anyone done this before? Any help would be greatly appreciated Thanks, -Jason Payne ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From chris.stankaitis at datawire.net Thu Jan 16 16:48:33 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Thu, 16 Jan 2003 10:48:33 -0500 Subject: Dumb Escalation Question In-Reply-To: <5917FD47436E784D8B08F132F0AC506151E55B@sessm201> References: <5917FD47436E784D8B08F132F0AC506151E55B@sessm201> Message-ID: <3E26D451.7010305@datawire.net> Hey All; I have Nagios installed and working about 99% with lots of active and passive checks going on and such and it's all happy except for one thing.. I am supose to have an escalation matrix happening when a box or service goes down and it's not escalating.. I am sure it's something dumb on my part but with the complexity of the escalation/notify I am having a hard time getting my head around it.. What I want is... 1) When BOX or SERVICE goes down/into changed state for it to take 5-6 mins to be in a SOFT state, to recheck during the soft state multiple times and if it all recovers from the soft state before the interval timeout then no one gets paged.. if the box goes into a hard state it needs to do the following. Page Level one, give him/her 15 mins to acknowledge the problem re-paging him/her every 5 mins, after the first 15 mins it escaltes to Level 2 and gives Level 1 and 2 another 15 mins to acknowledge the problem again paging again every 5 mins. if after 30 mins from the start of the hard state no one acknowledges the issue then page Level 1 Level 2 and the Manager a couple of times. Below are examples of my current configs with just some names edited out.. please help me if you can :) define host{ use generic-host host_name host1 alias A Server address 0.0.0.0 parents gatewayrouter check_command check-host-alive max_check_attempts 3 notification_interval 120 notification_period 24x7 notification_options d,r } define service{ use generic-service host_name host1,host2,,host3,host4,host5 service_description SSH is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 2 retry_check_interval 1 contact_groups poor-oncall-guy notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_ssh } define hostgroupescalation{ hostgroup_name hostgroupnamehere first_notification 2 last_notification 5 contact_groups poor-oncall-guy notification_interval 5 } define hostgroupescalation{ hostgroup_name hostgroupnamehere first_notification 5 last_notification 6 contact_groups poor-oncall-guy,rest-of-unix-admins notification_interval 15 } define hostgroupescalation{ hostgroup_name hostgroupnamehere first_notification 7 last_notification 10 contact_groups poor-oncall-guy,rest-of-unix-admins,manager notification_interval 15 } ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jgking at packetstorm.org Thu Jan 16 16:52:12 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 09:52:12 -0600 (CST) Subject: new plugin can i send here for peer review? In-Reply-To: <1042731125.22707.34.camel@localhost.localdomain> References: <1042731125.22707.34.camel@localhost.localdomain> Message-ID: Well if check_snmp allowed me to do something like this i would be set: ./check_snmp -H localhost -C ***** -o a.a.a.a,b.b.b.b -func "($1/$2) * 100 > 90" Where the OID order determines $1,$2 etc so I could use oids for disk usage where a.a.a.a would be current usage, b.b.b.b is total space available In linux i would have these host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageUsed.x host.hrStorage.hrStorageTable.hrStorageEntry.hrStorageSize.x Or something like that. I require that ability. Plus any of these modules im writing dont need to be in distro but id at least like to have other review it so im not doing something bad in the code. -Greg On 16 Jan 2003, Karl DeBisschop wrote: > On Thu, 2003-01-16 at 10:01, jgking at packetstorm.org wrote: > > Hey I read over the page at > > http://nagiosplug.sourceforge.net/developer-guidelines.html#SUBMITTINGCHANGES > > > > But under 'New submissions and Patches' it doesnt say where to send a new > > plugin for auditing and peer review. > > > > Can I post here? If so ill attach it in a follow-up if the list > > maintainers are ok with it. > > post to nagiosplug-devel > > I'd also like to argue for adding the ability to do this genericly to > check_snmp, rather than making more and more plugins. It's easy to make > a plugin, but the more there are, the more must go into maintaining > them. > > my $0.02 > > -- > Karl > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From karl at debisschop.net Thu Jan 16 17:05:44 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 16 Jan 2003 11:05:44 -0500 Subject: new plugin can i send here for peer review? In-Reply-To: References: Message-ID: <1042733143.22707.38.camel@localhost.localdomain> On Thu, 2003-01-16 at 10:52, jgking at packetstorm.org wrote: > Well if check_snmp allowed me to do something like this i would be set: > > ./check_snmp -H localhost -C ***** -o a.a.a.a,b.b.b.b -func "($1/$2) * 100 > > 90" > > Where the OID order determines $1,$2 etc > > so I could use oids for disk usage where a.a.a.a would be current usage, > b.b.b.b is total space available That is exactly the sort of functionality I'd like to have directly in check_snmp. That's been on my long-term plan for some time now. So I'm suggesting that you'd get what you want into the distribution quickest by helping develop that sort of generalized engine for check_snmp. It will be there someday, so let's just do it once. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Thu Jan 16 17:27:09 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 16 Jan 2003 11:27:09 -0500 (EST) Subject: new plugin can i send here for peer review? In-Reply-To: <1042733143.22707.38.camel@localhost.localdomain> References: <1042733143.22707.38.camel@localhost.localdomain> Message-ID: On 16 Jan 2003, Karl DeBisschop wrote: > On Thu, 2003-01-16 at 10:52, jgking at packetstorm.org wrote: > > Well if check_snmp allowed me to do something like this i would be set: > > > > ./check_snmp -H localhost -C ***** -o a.a.a.a,b.b.b.b -func "($1/$2) * 100 > > > 90" > > > > Where the OID order determines $1,$2 etc > > > > so I could use oids for disk usage where a.a.a.a would be current usage, > > b.b.b.b is total space available > > That is exactly the sort of functionality I'd like to have directly in > check_snmp. > > That's been on my long-term plan for some time now. So I'm suggesting > that you'd get what you want into the distribution quickest by helping > develop that sort of generalized engine for check_snmp. It will be there > someday, so let's just do it once. > Exactly - I think if we agree to support only one math/arithmetic function and use a,b,c,... as place holders for the value, it should definitely be in the generalized engine. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From fyzix at yahoo.com Thu Jan 16 18:27:36 2003 From: fyzix at yahoo.com (Gareth Hash) Date: Thu, 16 Jan 2003 09:27:36 -0800 (PST) Subject: Log rotation problem Message-ID: <20030116172736.77684.qmail@web20414.mail.yahoo.com> Hello, I have read through the archives and was not able to find any posts on this particular problem. I have the following settings in my nagios.cfg log_rotation_method=d log_archive_path=/opt/nagios/var/archives However ALL files in /opt/nagios/var/archives have one line about log rotation in them. That is it. I lost all my logs from previous days. The only logs I have are the current day's logs in /opt/nagios/var/nagios.log Your help on this matter would be greatly appreciated. Thank you. Gareth Hash. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From JBilder at netrixllc.com Thu Jan 16 18:31:13 2003 From: JBilder at netrixllc.com (Jeff Bilder) Date: Thu, 16 Jan 2003 11:31:13 -0600 Subject: Win2k NSClient Alert Log Entry Notifications Message-ID: I believe that this was a feature that was going to be added to the next version of NSClient, but the project has stopped? Any insight into the new NSClient? Thanks! - Jeff <<< jasonp at iland.com 1/16 10:13a >>> Is there a way to make nagios alert using NSClient responses from a Win2k server whenever there is a new entry in the alert logs with a specific error code? Has anyone done this before? Any help would be greatly appreciated Thanks, -Jason Payne ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From rburnson at cps.k12.il.us Thu Jan 16 18:49:35 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 16 Jan 2003 11:49:35 -0600 Subject: Distributed Monitoring Message-ID: I have gotten closer to resolving this issue. I setup the same distributed server config on another RedHat 7.2 box, and it worked flawlessly. The only difference between the two distributed servers is that the original one was installed with a high security setting during the redhat installation. The only change on the central server was to allow nsca connections from the new server. I'm not sure what security feature would prevent the service check results from being sent out. I had already double checked the permissions, and found no issues. Any ideas on what could possibly cause this? I could just rebuild the box, but if it's just a simple config change I would rather do that. TIA, Richard -----Original Message----- From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] Sent: Tuesday, January 07, 2003 10:16 AM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Distributed Monitoring I haven't seen any responses yet, perhaps more information is required? Here is some of the debugging I have done: Verified services have "obsess over service" enabled: define service{ name check-service ; The 'name' of this service template, referenced in other service definitions is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 15 retry_check_interval 2 notification_interval 120 notification_period 24x7 notification_options w,u,c,r active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major per formance problems) ================================================ obsess_over_service 1 ; We should obsess over this service (if necessary) ================================================ check_freshness 1 ; 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 across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } ? The "submit_check_result" command is defined as follows: define command{ command_name submit_check_result command_line /usr/local/nagios/libexec/eventhandlers/submit_check_result $HOSTNAME$ '$SERVICEDESC$' $SERVICESTATE$ '$OUTPUT$' } ??? The "ocsp_command" is configured in nagios.cfg as follows with obsess over services enabled: obsess_over_services=1 ocsp_command=submit_check_result I have removed the original commands from the documentation, and implemented the two scripts that came with the nagios tar ball in the contrib./distributed monitoring directory. I am able to send a service check manually, as Nagios, to the central server. [nagios at ilnetmon03 nagios]$ /usr/local/nagios/libexec/eventhandlers/submit_check_result 3390-RTR PING-RI 1 test 1 data packet(s) sent to host successfully. However the ocsp command never seems to be executed after any service checks. Here is the output with nagios compiled with debug set to 3: *** Event Details *** Event type: 0 (service check) Service Description: PING Associated Host: 3390-KRO Event time: Tue Jan 7 08:41:36 2003 Checking service 'PING' on host '3390-KRO'... *** Event Check Loop *** Current time: Tue Jan 7 08:41:36 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:37 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:38 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:39 2003 Next High Priority Event Time: Tue Jan 7 08:41:39 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Details *** Event type: 10 (status save) Event time: Tue Jan 7 08:41:39 2003 *** Event Check Loop *** Current time: Tue Jan 7 08:41:39 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:40 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:41 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:42 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:43 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Check Loop *** Current time: Tue Jan 7 08:41:44 2003 Next High Priority Event Time: Tue Jan 7 08:41:44 2003 Next Low Priority Event Time: Tue Jan 7 08:43:15 2003 Current/Max Outstanding Checks: 1/0 *** Event Details *** Event type: 7 (service check reaper) Event time: Tue Jan 7 08:41:44 2003 Starting to reap service check results... Found check result for service 'PING' on host '3390-KRO' Check Type: ACTIVE Parallelized?: Yes Exited OK?: Yes Return Status: 0 Plugin Output: 'FPING OK - 10.1.1.1 (loss=0.000000%, rta=27.800000 ms)' Finished reaping service check results. Any ideas on why it's not working? TIA, Richard -----Original Message----- From: Burnson, Richard Sent: Friday, January 03, 2003 3:53 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Distributed Monitoring I am trying to setup distributed monitoring with Nagios 1.0 (Stable) on RedHat 7.2.? I have the nsca daemon running on the central server, and I have been able to successfully send a service check result via nsca-send from the distributed server.? The issue appears to be that the distributed server is not executing the ocsp_command.? Here are the settings on the distributed server: 1.????? Obsess over services is enabled both globally and per service. 2.????? The ocsp_command is defined in nagios.cfg as ocsp_command=submit_check_result 3.????? "submit_check_result" is defined in the command definitions section exactly from the documentation. 4.????? The submit_check_result script was created in the libexec directory and the command definition points directly to this file. I can log in as nagios and run the submit_check_result shell script successfully, and the service check is received by the central server.?? It simply seems to be that Nagios is not executing the ocsp command with every service check.? I've tried to watch the service check as they happen via the nagios.log file and even compiled nagios with debug 3.? Is there a better way to debug this?? Anyone have any ideas on what I may be missing? Thanks, Richard ------------------------------------------------------- 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 18:59:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 11:59:54 -0600 Subject: check_swap quirk on Solaris Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1300@PKDWB03C.ad.sprint.com> On a related note (and possibly of at least as much interest) is the Solaris notion of 'scan rate', which vmstat reports on. I've been trying to dig around to see if I can find anything similar on the Linux side. I'd think that a quick script plugin which monitors the scan rate (on Solaris, at any rate) would be desireable. Any thoughts on what the Linux equivalent could be? jc > -----Original Message----- > From: Karl DeBisschop [mailto:karl at debisschop.net] > Sent: Thursday, January 16, 2003 7:43 AM > To: Voon, Ton > Cc: 'Tim Shouldice'; Carroll, Jim P [Contractor]; 'Grae Noble'; > nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_swap quirk on Solaris > > > On Thu, 2003-01-16 at 02:31, Voon, Ton wrote: > > Here's the script. Ideally I think it should be integrated > into the C > > check_swap program - probably using solaris specific ifdefs > - but it looked > > too difficult for me. Also some people dispute the validity > of the check as > > opposed to swap -l. My guide was this reference: > > http://www.sun.com/sun-on-net/itworld/UIR980701perf.html. > > Interesting reading... > > I looked at linux (2.4.20-2.13 i686) and saw: > > [kdebisschop at localhost build-redhat]$ cat /proc/meminfo > total: used: free: shared: buffers: cached: > Mem: 128999424 125702144 3297280 0 4173824 77893632 > Swap: 263200768 57708544 205492224 > MemTotal: 125976 kB > MemFree: 3220 kB > MemShared: 0 kB > Buffers: 4076 kB > Cached: 49136 kB > SwapCached: 26932 kB > Active: 92372 kB > ActiveAnon: 54180 kB > ActiveCache: 38192 kB > Inact_dirty: 4196 kB > Inact_laundry: 12796 kB > Inact_clean: 2096 kB > Inact_target: 22292 kB > HighTotal: 0 kB > HighFree: 0 kB > LowTotal: 125976 kB > LowFree: 3220 kB > SwapTotal: 257032 kB > SwapFree: 200676 kB > > I wonder if there's any relation to the SwapCached item... > > Anyway, I think what you have can be done in C with just a few changes > to configure.in. If I have a little time on a Solaris > machine, I'll look > into it. > > -- > Karl > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 19:12:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 12:12:30 -0600 Subject: Win2k NSClient Alert Log Entry Notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1302@PKDWB03C.ad.sprint.com> I believe the author of NSClient has a reference on his web site about NSClientEVL for monitoring the event log, but alas last I checked, it still wasn't available. The next best thing is to install a utility on your Windows host and have it forward to your syslog server (could be the syslog server on your Nagios host, but doesn't need to be, so long as you're scrubbing it). jc > -----Original Message----- > From: Jason Payne [mailto:jasonp at iland.com] > Sent: Thursday, January 16, 2003 9:37 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Win2k NSClient Alert Log Entry Notifications > > > Is there a way to make nagios alert using NSClient responses > from a Win2k > server whenever there is a new entry in the alert logs with a > specific error > code? Has anyone done this before? > > Any help would be greatly appreciated > > Thanks, > > -Jason Payne > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From will at ilm.com Thu Jan 16 19:44:43 2003 From: will at ilm.com (Will Melick) Date: Thu, 16 Jan 2003 10:44:43 -0800 Subject: NIS check? Message-ID: Does anyone have a favorite way to check NIS services? Thanks much, Will Melick ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 19:44:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 12:44:24 -0600 Subject: nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1304@PKDWB03C.ad.sprint.com> Can you telnet to port 5666 on your client? -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 11:46 AM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe This is what my nrpe config looks like. command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 Here is my xinetd script # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/sbin/nrpe server_args = -i /usr/local/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 129.207.59.31 129.207.59.33 127.0.0.1 Here is the error [root at antispam src]# ./check_nrpe -H 129.207.59.33 -p 5666 -c check_users CHECK_NRPE: Error receiving data from host. Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' ; Nagios Users Sent: Wednesday, January 15, 2003 5:24 PM Subject: RE: [Nagios-users] nrpe Do you have check_ping defined in the nrpe.cfg file of the client host? jc -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Wednesday, January 15, 2003 8:55 AM To: Nagios Users Subject: [Nagios-users] nrpe I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgking at packetstorm.org Thu Jan 16 20:05:27 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 13:05:27 -0600 (CST) Subject: where is the status.sav file Message-ID: a day or so ago i got a response on one of my questions and the poster refered me to look at the status.sav file. so i checked /usr/local/nagios/var the status.log is there, but no status.sav So i go and check the nagios.cfg file and all the lines detailing the status.sav file are active. retain_state_information=1 state_retention_file=/usr/local/nagios/var/status.sav retention_update_interval=60 The comments in the nagios.cfg refer to setting a flag named preserve_state_information. # 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. So i tried setting it in the nagios.cfg file Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 20 (UNKNOWN VARIABLE) Then i figured id set it in the general service template Error: Could not add object property in file '/usr/local/nagios/etc/services.cfg' on line 34. So i tried it not in the template but in an actual host object in the services file: Error: Could not add object property in file '/usr/local/nagios/etc/services.cfg' on line 53. Then i went to lunch .... Realized while walking back, rtfm idiot. so i check the faq and search the mailling list at sourceforge (that search function acts broke it always returns a blank page). No luck either. So would someone enlighten me on how one gets this file to be saved? Oh and the directory perms are correct and im running it as the nagios id. thanks! ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jgking at packetstorm.org Thu Jan 16 20:14:04 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 13:14:04 -0600 (CST) Subject: where is the status.sav file In-Reply-To: References: Message-ID: ok i found a way to save the file but cant this be automagically done via the config? basically i send a HUP to the nagios process and viola! status.sav file. On Thu, 16 Jan 2003 jgking at portal.packetstorm.org wrote: > > a day or so ago i got a response on one of my questions and the poster > refered me to look at the status.sav file. > > so i checked /usr/local/nagios/var > > the status.log is there, but no status.sav > > So i go and check the nagios.cfg file and all the lines detailing the > status.sav file are active. > > retain_state_information=1 > state_retention_file=/usr/local/nagios/var/status.sav > retention_update_interval=60 > > The comments in the nagios.cfg refer to setting a flag named > preserve_state_information. > > # 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. > > So i tried setting it in the nagios.cfg file > > Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 20 > (UNKNOWN VARIABLE) > > Then i figured id set it in the general service template > > Error: Could not add object property in file > '/usr/local/nagios/etc/services.cfg' on line 34. > > So i tried it not in the template but in an actual host object in the > services file: > > Error: Could not add object property in file > '/usr/local/nagios/etc/services.cfg' on line 53. > > > > Then i went to lunch .... > > > Realized while walking back, rtfm idiot. so i check the faq and search the > mailling list at sourceforge (that search function acts broke it always > returns a blank page). No luck either. > > > So would someone enlighten me on how one gets this file to be saved? > > > Oh and the directory perms are correct and im running it as the nagios id. > > > thanks! > > > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jgking at packetstorm.org Thu Jan 16 20:28:45 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 16 Jan 2003 13:28:45 -0600 (CST) Subject: where is the status.sav file In-Reply-To: <5DB017510818EC468B05BD7BD9EACF83030ED127@mismail.ena.com> References: <5DB017510818EC468B05BD7BD9EACF83030ED127@mismail.ena.com> Message-ID: ah thanks! thought it was 60 seconds cause i read the wrong line: "# 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" On Thu, 16 Jan 2003, Marc Powell wrote: > Lower your retention update interval and restart nagios. Right now it's > set to once every 60 minutes. > > marc > > > -----Original Message----- > > From: jgking at packetstorm.org [mailto:jgking at packetstorm.org] > > Sent: Thursday, January 16, 2003 1:14 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Re: where is the status.sav file > > > > > > ok i found a way to save the file but cant this be automagically done > via > > the config? > > > > basically i send a HUP to the nagios process and viola! status.sav > file. > > > > > > > > On Thu, 16 Jan 2003 jgking at portal.packetstorm.org wrote: > > > > > > > > a day or so ago i got a response on one of my questions and the > poster > > > refered me to look at the status.sav file. > > > > > > so i checked /usr/local/nagios/var > > > > > > the status.log is there, but no status.sav > > > > > > So i go and check the nagios.cfg file and all the lines detailing > the > > > status.sav file are active. > > > > > > retain_state_information=1 > > > state_retention_file=/usr/local/nagios/var/status.sav > > > retention_update_interval=60 > > > > > > The comments in the nagios.cfg refer to setting a flag named > > > preserve_state_information. > > > > > > # 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. > > > > > > So i tried setting it in the nagios.cfg file > > > > > > Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - > Line 20 > > > (UNKNOWN VARIABLE) > > > > > > Then i figured id set it in the general service template > > > > > > Error: Could not add object property in file > > > '/usr/local/nagios/etc/services.cfg' on line 34. > > > > > > So i tried it not in the template but in an actual host object in > the > > > services file: > > > > > > Error: Could not add object property in file > > > '/usr/local/nagios/etc/services.cfg' on line 53. > > > > > > > > > > > > Then i went to lunch .... > > > > > > > > > Realized while walking back, rtfm idiot. so i check the faq and > search > > the > > > mailling list at sourceforge (that search function acts broke it > always > > > returns a blank page). No luck either. > > > > > > > > > So would someone enlighten me on how one gets this file to be saved? > > > > > > > > > Oh and the directory perms are correct and im running it as the > nagios > > id. > > > > > > > > > thanks! > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Thawte.com > > Understand how to protect your customers personal information by > > implementing > > SSL on your Apache Web Server. Click here to get our FREE Thawte > Apache > > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > > _______________________________________________ > > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From mpowell at ena.com Thu Jan 16 20:18:04 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 16 Jan 2003 13:18:04 -0600 Subject: where is the status.sav file Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED127@mismail.ena.com> Lower your retention update interval and restart nagios. Right now it's set to once every 60 minutes. marc > -----Original Message----- > From: jgking at packetstorm.org [mailto:jgking at packetstorm.org] > Sent: Thursday, January 16, 2003 1:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Re: where is the status.sav file > > > ok i found a way to save the file but cant this be automagically done via > the config? > > basically i send a HUP to the nagios process and viola! status.sav file. > > > > On Thu, 16 Jan 2003 jgking at portal.packetstorm.org wrote: > > > > > a day or so ago i got a response on one of my questions and the poster > > refered me to look at the status.sav file. > > > > so i checked /usr/local/nagios/var > > > > the status.log is there, but no status.sav > > > > So i go and check the nagios.cfg file and all the lines detailing the > > status.sav file are active. > > > > retain_state_information=1 > > state_retention_file=/usr/local/nagios/var/status.sav > > retention_update_interval=60 > > > > The comments in the nagios.cfg refer to setting a flag named > > preserve_state_information. > > > > # 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. > > > > So i tried setting it in the nagios.cfg file > > > > Error in configuration file '/usr/local/nagios/etc/nagios.cfg' - Line 20 > > (UNKNOWN VARIABLE) > > > > Then i figured id set it in the general service template > > > > Error: Could not add object property in file > > '/usr/local/nagios/etc/services.cfg' on line 34. > > > > So i tried it not in the template but in an actual host object in the > > services file: > > > > Error: Could not add object property in file > > '/usr/local/nagios/etc/services.cfg' on line 53. > > > > > > > > Then i went to lunch .... > > > > > > Realized while walking back, rtfm idiot. so i check the faq and search > the > > mailling list at sourceforge (that search function acts broke it always > > returns a blank page). No luck either. > > > > > > So would someone enlighten me on how one gets this file to be saved? > > > > > > Oh and the directory perms are correct and im running it as the nagios > id. > > > > > > thanks! > > > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From bnelson at rightnow.com Thu Jan 16 20:35:04 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Thu, 16 Jan 2003 12:35:04 -0700 Subject: NIS check? Message-ID: Use the check_rpc plugin........ >From my commands.cfg file: define command{ command_name check_ypserv command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypserv } define command{ command_name check_yppasswdd command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C yppasswdd } define command{ command_name check_ypbind command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypbind } --Ben -----Original Message----- From: Will Melick [mailto:will at ilm.com] Sent: Thursday, January 16, 2003 11:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NIS check? Does anyone have a favorite way to check NIS services? Thanks much, Will Melick ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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 Thu Jan 16 20:43:05 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 13:43:05 -0600 Subject: nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1309@PKDWB03C.ad.sprint.com> And what happens when you login to the client which is running NRPE, su to nagios, then run the following manually: /usr/local/nagios/libexec/check_users -w 5 -c 10 While we're at it, add this to your nrpe.cfg: command[check_nrpe_status]=echo "OK - NRPE is alive" then at the prompt, try this: ./check_nrpe -H 127.0.0.1 -c check_nrpe_status If you get "OK - NRPE is alive", then go to your Nagios server and try: ./check_nrpe -H 129.207.59.33 -c check_nrpe_status and see how that goes. (I'm assuming that's the correct IP address.) jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 1:34 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe Yes. [root at antispam src]# telnet localhost 5666 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. [root at antispam src]# ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 12:44 PM Subject: RE: [Nagios-users] nrpe Can you telnet to port 5666 on your client? -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Thursday, January 16, 2003 11:46 AM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe This is what my nrpe config looks like. command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 Here is my xinetd script # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/sbin/nrpe server_args = -i /usr/local/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 129.207.59.31 129.207.59.33 127.0.0.1 Here is the error [root at antispam src]# ./check_nrpe -H 129.207.59.33 -p 5666 -c check_users CHECK_NRPE: Error receiving data from host. Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' ; Nagios Users Sent: Wednesday, January 15, 2003 5:24 PM Subject: RE: [Nagios-users] nrpe Do you have check_ping defined in the nrpe.cfg file of the client host? jc -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Wednesday, January 15, 2003 8:55 AM To: Nagios Users Subject: [Nagios-users] nrpe I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From fyzix at yahoo.com Thu Jan 16 20:50:54 2003 From: fyzix at yahoo.com (Gareth Hash) Date: Thu, 16 Jan 2003 11:50:54 -0800 (PST) Subject: URGENT Message-ID: <20030116195054.67452.qmail@web20422.mail.yahoo.com> Hello, I am running Nagios on a RH 7.3 system. I noticed that the time was 3 minutes behind, so I tried to fix it. For some strange reason when I clicked on OK, the time was taken back by 5 hours. I set it right using the Apply button. However, my Nagios logs refuse to fix themselves. Once the time was set to 9am, the logs continued with 9am as the base. Therefoer, even though the time is 2:44pm, the Nagios logs show up as 9:44am. Is there an "internal" offset for the clock in Nagios? The reason this is urgent is because all the logs are off track, and this is supposed to be a production server. Thank you. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From mpowell at ena.com Thu Jan 16 20:57:29 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 16 Jan 2003 13:57:29 -0600 Subject: URGENT Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED128@mismail.ena.com> Have you tried stopping and restarting nagios now that the time has been corrected? marc > -----Original Message----- > From: Gareth Hash [mailto:fyzix at yahoo.com] > Sent: Thursday, January 16, 2003 1:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] URGENT > > Hello, > > I am running Nagios on a RH 7.3 system. I noticed that the time was 3 > minutes behind, so I tried to fix it. For some strange reason when I > clicked on OK, the time was taken back by 5 hours. I set it right > using the Apply button. However, my Nagios logs refuse to fix > themselves. Once the time was set to 9am, the logs continued with 9am > as the base. Therefoer, even though the time is 2:44pm, the Nagios > logs show up as 9:44am. Is there an "internal" offset for the clock > in Nagios? > > The reason this is urgent is because all the logs are off track, and > this is supposed to be a production server. > > Thank you. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Jan 16 21:32:16 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 17 Jan 2003 07:32:16 +1100 Subject: Nag event handlers restarting failed programs on NT ? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2501@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Thu, Jan 16, 2003 at 09:33:42AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F2501@PKDWB03C.ad.sprint.com> Message-ID: <20030117073211.A226@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for reply (I will certainly take your advice) and summarise for the archives some options, On Thu, Jan 16, 2003 at 09:33:42AM -0600, Carroll, Jim P [Contractor] wrote: > > Is anyone using Nagios (event handlers) to restart failed > > programs on NT hosts ? > An interesting thought. I don't have an answer off the top of my head > (still working on my first coffee). > > You might wish to check out www.infrastructures.org, subscribe to the > mailing list (it's quite low-volume) and post a variant of your query there. > Probably in order of seriousness/helpfulness (although I think option 2 is the probably the most durable). 1 Convert the program - ask someone else to do it - to a service and use the rpcclient program (from Samba-tng or Samba-2.2.x or Samba-alpha) to start the service. This requires that . the Nag host be set up with a machine account on the MS host that is running the program/service . the program can be converted to a service (I understand from a Windows programmer that in the case of Java applications this can be kludgy). 2 Suggested by Mr T De Blende, ' * NSClient checks to see if the program is still running. In our case, the culprit program will be appending heartbeat messages to a text file in a shared directory. A Nag service check will 'tail' that file and return a CRITICAL if it can find no log records newer (the records will have time stamps) than a the current time minus a threshold iterval (the last record in the file was logged more than 10 minutes ago). * If the program is not running, it puts a simple text file on a Windows share on the server that is supposed to be running that program. Just share a directory with write rights only for a certain account that is used by the Nagios box to make the SMB connection. * Create a small script on the Windows server that checks for the existance of that text file in that shared directory, and if it is there: 1) delete it and 2) restart the program.' (This latter program may be run by AT periodically). 3 Wait for it ... this is my idea. Write a Tk/Expect or Perl/Tk program to drive a VNC session with the host and use this VNC session to start the program. It would probably be a good thing to have the program set up to be run from the GUI (by clicking an icon that runs a bat file for example). Sheesh. 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 21:22:14 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 14:22:14 -0600 Subject: URGENT Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E130A@PKDWB03C.ad.sprint.com> Please clarify something: Is this 5 hour differential a snapshot in time, or is it ongoing? Also, you mentioned 'click'. That would imply you're running X. But you also mentioned 'production server'. That would imply you're NOT running X. I'm curious exactly what you mean by 'click'. Or what you mean by 'production server'. (NB: IMHO, a desktop is NOT a production server.) And why are you setting time manually anyway? Get thee onto NTP, ASAP. jc > -----Original Message----- > From: Gareth Hash [mailto:fyzix at yahoo.com] > Sent: Thursday, January 16, 2003 1:51 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] URGENT > > > Hello, > > I am running Nagios on a RH 7.3 system. I noticed that the time was 3 > minutes behind, so I tried to fix it. For some strange reason when I > clicked on OK, the time was taken back by 5 hours. I set it right > using the Apply button. However, my Nagios logs refuse to fix > themselves. Once the time was set to 9am, the logs continued with 9am > as the base. Therefoer, even though the time is 2:44pm, the Nagios > logs show up as 9:44am. Is there an "internal" offset for the clock > in Nagios? > > The reason this is urgent is because all the logs are off track, and > this is supposed to be a production server. > > Thank you. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Stanley.Hopcroft at IPAustralia.Gov.AU Thu Jan 16 21:38:39 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 17 Jan 2003 07:38:39 +1100 Subject: Win2k NSClient Alert Log Entry Notifications In-Reply-To: ; from JBilder@netrixllc.com on Thu, Jan 16, 2003 at 11:31:13AM -0600 References: Message-ID: <20030117073835.B226@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Thu, Jan 16, 2003 at 11:31:13AM -0600, Jeff Bilder wrote: > I believe that this was a feature that was going to be added to the next version of NSClient, but the project has stopped? Any insight into the new NSClient? Thanks! > > - Jeff > > <<< jasonp at iland.com 1/16 10:13a >>> > Is there a way to make nagios alert using NSClient responses from a Win2k > server whenever there is a new entry in the alert logs with a specific error > code? Has anyone done this before? > > Any help would be greatly appreciated > > Thanks, > Another way of accomplishing this is 1 Fit your NT/2K box with the MS DumpEL program (or write your own equiv) and have this run by AT as often as you need Have DumpEL write the EL to a shared directory accessible to the Nag box. 2 Have the Nag service check read the dumped EL in the share. This can be done by 2.1 smbclient 2.2 code that I am writing (and is working) to allow read at an offset of a file on an SMB file system - this is nothing more than a Perl XS wrapper to the Samba read_smb() function. This saves you reading the entire EL. Once read, the code is easiy parsed (sh, Perl, Ruby, Python) for your alert. > -Jason Payne > > > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Trace.McQuaig at usunwired.com Thu Jan 16 21:46:59 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Thu, 16 Jan 2003 14:46:59 -0600 Subject: nagios.log Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9AB5@usuexch02.usunwired.com> Is there anyway to make Nagios save the information it receives from executing plugins to the nagios.log or any other media. I realize that this information would grow exponentially based on how many host/services you monitor. Also. Is the sourceforge search broke? Everytime I go to search it returns me to a blank sourceforge page with source forge menus on left and header. Is there any other way that I can search these mailing lists? I tried using google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 search but that didn't work. Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 21:43:51 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 14:43:51 -0600 Subject: Nag event handlers restarting failed programs on NT ? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E130D@PKDWB03C.ad.sprint.com> FWIW, FireDaemon might be of value to you: http://www.firedaemon.com/ jc > -----Original Message----- > From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] > Sent: Thursday, January 16, 2003 2:32 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] Nag event handlers restarting failed > programs on NT ? > > > Dear Sir, > > I am writing to thank you for reply (I will certainly take your > advice) and summarise for the archives some options, > > On Thu, Jan 16, 2003 at 09:33:42AM -0600, Carroll, Jim P > [Contractor] wrote: > > > > Is anyone using Nagios (event handlers) to restart failed > > > programs on NT hosts ? > > > > An interesting thought. I don't have an answer off the top > of my head > > (still working on my first coffee). > > > > You might wish to check out www.infrastructures.org, > subscribe to the > > mailing list (it's quite low-volume) and post a variant of > your query there. > > > > Probably in order of seriousness/helpfulness (although I > think option 2 > is the probably the most durable). > > 1 Convert the program - ask someone else to do it - to a > service and use > the rpcclient program (from Samba-tng or Samba-2.2.x or > Samba-alpha) to > start the service. > > This requires that > > . the Nag host be set up with a machine account on the MS host > that is running the program/service > > . the program can be converted to a service (I understand > from a Windows > programmer that in the case of Java applications this can be kludgy). > > 2 Suggested by Mr T De Blende, > > ' > * NSClient checks to see if the program is still running. > > In our case, the culprit program will be appending heartbeat > messages to > a text file in a shared directory. A Nag service check will > 'tail' that > file and return a CRITICAL if it can find no log records newer (the > records will have time stamps) than a the current time minus > a threshold > iterval (the last record in the file was logged more than 10 minutes > ago). > > * If the program is not running, it puts a simple text file on a > Windows share on the server that is supposed to be running that > program. Just share a directory with write rights only for a certain > account that is used by the Nagios box to make the SMB connection. > > * Create a small script on the Windows server that checks for the > existance of that text file in that shared directory, and if it is > there: 1) delete it and 2) restart the program.' > > (This latter program may be run by AT periodically). > > 3 Wait for it ... this is my idea. > > Write a Tk/Expect or Perl/Tk program to drive a VNC session with the > host and use this VNC session to start the program. > > It would probably be a good thing to have the program set up to be run > from the GUI (by clicking an icon that runs a bat file for example). > > Sheesh. > > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Trace.McQuaig at usunwired.com Thu Jan 16 22:35:12 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Thu, 16 Jan 2003 15:35:12 -0600 Subject: nagios.log Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9AB6@usuexch02.usunwired.com> Right on. I am currently setting up this APAN stuff for testing. Is this going to be able to do some trending / out growing prediction for me for now? I am trying to stick it to the man (OPENVIEW). I hope I am on the right track as APAN is a little messy in its current state. Cheers Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 16, 2003 3:30 PM To: Trace McQuaig; Nagios users Subject: RE: [Nagios-users] nagios.log xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log I know what you're looking to do. Many of us want something similar. Take a look at www.nagios.org, in particular the Upcoming section, towards the bottom. This will hopefully give us a way of logging this sort of data to a MySQL database. (I'm hoping to be able to create queries using PHP and graph them with JpGraph.) jc > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Thursday, January 16, 2003 2:47 PM > To: Nagios users > Subject: [Nagios-users] nagios.log > > > Is there anyway to make Nagios save the information it receives from > executing plugins to the nagios.log or any other media. > > I realize that this information would grow exponentially > based on how many > host/services you monitor. > > > Also. Is the sourceforge search broke? Everytime I go to > search it returns > me to a blank sourceforge page with source forge menus on > left and header. > Is there any other way that I can search these mailing lists? > I tried using > google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > search but that didn't work. > > Trace McQuaig > US Unwired > Systems Engineer > Unix Ninja > MCSE Exchange A+ > (o_ > //\ "It is all fun and games 'till someone gets a virus." > V_/_ All spelling errors are completely intentional. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Thu Jan 16 22:31:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 15:31:41 -0600 Subject: nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E130F@PKDWB03C.ad.sprint.com> You might want to set "debug=1" in nrpe.cfg, retry some tests, then take a look at your syslog output. jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 3:29 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe I ran the command. [root at antispam src]# /usr/local/nagios/libexec/check_users -w 5 -c 10 USERS WARNING - 6 users currently logged in [root at antispam src]# ./check_nrpe -H 127.0.0.1 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 127.0.0.1 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 129.207.59.33 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 129.207.59.33 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. I added it to the config and restart xinetd and made sure it was running too. I made sure it was running too [root at antispam src]# netstat -plant | grep 5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 6182/xinetd [root at antispam src]# ps -aux | grep nrpe root 6297 0.0 0.4 3276 628 pts/0 S 15:33 0:00 grep nrpe [root at antispam src]# Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 1:43 PM Subject: RE: [Nagios-users] nrpe And what happens when you login to the client which is running NRPE, su to nagios, then run the following manually: /usr/local/nagios/libexec/check_users -w 5 -c 10 While we're at it, add this to your nrpe.cfg: command[check_nrpe_status]=echo "OK - NRPE is alive" then at the prompt, try this: ./check_nrpe -H 127.0.0.1 -c check_nrpe_status If you get "OK - NRPE is alive", then go to your Nagios server and try: ./check_nrpe -H 129.207.59.33 -c check_nrpe_status and see how that goes. (I'm assuming that's the correct IP address.) jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 1:34 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe Yes. [root at antispam src]# telnet localhost 5666 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. [root at antispam src]# ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 12:44 PM Subject: RE: [Nagios-users] nrpe Can you telnet to port 5666 on your client? -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Thursday, January 16, 2003 11:46 AM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe This is what my nrpe config looks like. command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 Here is my xinetd script # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/sbin/nrpe server_args = -i /usr/local/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 129.207.59.31 129.207.59.33 127.0.0.1 Here is the error [root at antispam src]# ./check_nrpe -H 129.207.59.33 -p 5666 -c check_users CHECK_NRPE: Error receiving data from host. Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' ; Nagios Users Sent: Wednesday, January 15, 2003 5:24 PM Subject: RE: [Nagios-users] nrpe Do you have check_ping defined in the nrpe.cfg file of the client host? jc -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Wednesday, January 15, 2003 8:55 AM To: Nagios Users Subject: [Nagios-users] nrpe I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Thu Jan 16 22:29:56 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 15:29:56 -0600 Subject: nagios.log Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E130E@PKDWB03C.ad.sprint.com> xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log I know what you're looking to do. Many of us want something similar. Take a look at www.nagios.org, in particular the Upcoming section, towards the bottom. This will hopefully give us a way of logging this sort of data to a MySQL database. (I'm hoping to be able to create queries using PHP and graph them with JpGraph.) jc > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Thursday, January 16, 2003 2:47 PM > To: Nagios users > Subject: [Nagios-users] nagios.log > > > Is there anyway to make Nagios save the information it receives from > executing plugins to the nagios.log or any other media. > > I realize that this information would grow exponentially > based on how many > host/services you monitor. > > > Also. Is the sourceforge search broke? Everytime I go to > search it returns > me to a blank sourceforge page with source forge menus on > left and header. > Is there any other way that I can search these mailing lists? > I tried using > google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > search but that didn't work. > > Trace McQuaig > US Unwired > Systems Engineer > Unix Ninja > MCSE Exchange A+ > (o_ > //\ "It is all fun and games 'till someone gets a virus." > V_/_ All spelling errors are completely intentional. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jlyons30 at yahoo.com Thu Jan 16 23:04:54 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 16 Jan 2003 14:04:54 -0800 (PST) Subject: nagios.log In-Reply-To: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9AB6@usuexch02.usunwired.com> References: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9AB6@usuexch02.usunwired.com> Message-ID: <20030116220454.30053.qmail@web21511.mail.yahoo.com> Look at http://adi.blink.pl/nagios , seems a lot easier to setup... Trace McQuaig wrote:Right on. I am currently setting up this APAN stuff for testing. Is this going to be able to do some trending / out growing prediction for me for now? I am trying to stick it to the man (OPENVIEW). I hope I am on the right track as APAN is a little messy in its current state. Cheers Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 16, 2003 3:30 PM To: Trace McQuaig; Nagios users Subject: RE: [Nagios-users] nagios.log xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log I know what you're looking to do. Many of us want something similar. Take a look at www.nagios.org, in particular the Upcoming section, towards the bottom. This will hopefully give us a way of logging this sort of data to a MySQL database. (I'm hoping to be able to create queries using PHP and graph them with JpGraph.) jc > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Thursday, January 16, 2003 2:47 PM > To: Nagios users > Subject: [Nagios-users] nagios.log > > > Is there anyway to make Nagios save the information it receives from > executing plugins to the nagios.log or any other media. > > I realize that this information would grow exponentially > based on how many > host/services you monitor. > > > Also. Is the sourceforge search broke? Everytime I go to > search it returns > me to a blank sourceforge page with source forge menus on > left and header. > Is there any other way that I can search these mailing lists? > I tried using > google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > search but that didn't work. > > Trace McQuaig > US Unwired > Systems Engineer > Unix Ninja > MCSE Exchange A+ > (o_ > //\ "It is all fun and games 'till someone gets a virus." > V_/_ All spelling errors are completely intentional. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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 ramog at starcalif.com Thu Jan 16 23:01:54 2003 From: ramog at starcalif.com (Rochel Amog) Date: Thu, 16 Jan 2003 14:01:54 -0800 Subject: Check_swap plugin Message-ID: <063b01c2bdaa$e1ad0da0$0d1fa8c0@sysadmin.starcalif.com> Hello, I compiled the source file "nagios-plugins-1.3.0-beta2" in SCO Openserver 5.0.5 and looks like most of the plugins got installed and have running fine except for one that it did not compiled, "check_swap". I tried compiling the same in Linux 8.0 and everything was fine... Is there anybody know any issues about compiling plugins in SCO Openserver or do you guys know any check_swap plugin that might run on SCO Openserver.. Thanks, Sys Admin Guy -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at atlantic-isp.co.uk Thu Jan 16 23:08:00 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Thu, 16 Jan 2003 22:08:00 -0000 Subject: Does the Availability report have a bug in it? Why is everything undetermined? Message-ID: <001101c2bdab$bea496b0$152ca8c0@main> Is there a bug in the Availability report in Nagios 1.0? It seems that information about hosts/services availability is incorrect. Nagios has been checking these following hosts for the past 3 days and none of them have ever been down, however as far as Nagios is concerned it can only determine for 8% of uptime. I have read some postings to the list about this and I know I have all the options in the configuration correct, such as getting Nagios to remember the initial state of a host/service the first time it is checked. Host % Time Up % Time Down % Time Unreachable % Time Undetermined lon.tc9.rtr1 8.327% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.673% lon.tc9.rtr2 8.253% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.747% lon.tc9.rtr3 8.382% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.618% lon.tc9.sw1 8.327% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.673% lon.tc9.sw2 8.289% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.711% lon.the.rtr1 8.363% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.637% lon.the.sw1 8.327% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.673% lon.the.sw2 8.289% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 91.711% Does anyone have any answers? I even looked on the demo site to see if the same thing happened on there but it does not even when you leave all the report options to the default. Any help would be appreciated. Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From Trace.McQuaig at usunwired.com Thu Jan 16 23:03:03 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Thu, 16 Jan 2003 16:03:03 -0600 Subject: nagios.log--oops Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ABA@usuexch02.usunwired.com> Lol. I was just about to say that... Yea I am wanting to do disk space. Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 16, 2003 4:06 PM To: Trace McQuaig Subject: RE: [Nagios-users] nagios.log--oops Only works for traffic...:) Look at http://adi.blink.pl/nagios , seems a lot easier to setup... Trace McQuaig wrote: Right on. I am currently setting up this APAN stuff for testing. Is this going to be able to do some trending / out growing prediction for me for now? I am trying to stick it to the man (OPENVIEW). I hope I am on the right track as APAN is a little messy in its current state. Cheers Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 16, 2003 3:30 PM To: Trace McQuaig; Nagios users Subject: RE: [Nagios-users] nagios.log xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log I know what you're looking to do. Many of us want something similar. Take a look at www.nagios.org, in particular the Upcoming section, towards the bottom. This will hopefully give us a way of logging this sort of data to a MySQL database. (I'm hoping to be able to create queries using PHP and graph them with JpGraph.) jc > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Thursday, January 16, 2003 2:47 PM > To: Nagios users > Subject: [Nagios-users] nagios.log > > > Is there anyway to make Nagios save the information it receives from > executing plugins to the nagios.log or any other media. > > I realize that this information would grow exponentially > based on how many > host/services you monitor. > > > Also. Is the sourceforge search broke? Everytime I go to > search it returns > me to a blank sourceforge page with source forge menus on > left and header. > Is there any other way that I can search these mailing lists? > I tried using > google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > search but that didn't work. > > Trace McQuaig > US Unwired > Systems Engineer > Unix Ninja > MCSE Exchange A+ > (o_ > //\ "It is all fun and games 'till someone gets a virus." > V_/_ All spelling errors are completely intentional. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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 bnelson at rightnow.com Thu Jan 16 23:12:38 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Thu, 16 Jan 2003 15:12:38 -0700 Subject: NIS check? Message-ID: After trading a couple of emails with Will Melick, it appears that the current version (beta) of check_rpc may have a bug. No matter what host addresss you give the plugin, it returns an 'OK' status. For example: $ ./check_rpc -H 999.999.999.99 -C ypbind OK: RPC program ypbind udp running This bug appears to have been introduced between version 1.2.9-4 and 1.3.0-beta2 of nagios-plugins. I still had a copy of check_rpc from 1.2.9-4 laying around and it returns an error when invoked as above. --Ben -----Original Message----- From: Nelson, Ben Sent: Thursday, January 16, 2003 12:35 PM To: 'Will Melick'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NIS check? Use the check_rpc plugin........ >From my commands.cfg file: define command{ command_name check_ypserv command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypserv } define command{ command_name check_yppasswdd command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C yppasswdd } define command{ command_name check_ypbind command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypbind } --Ben -----Original Message----- From: Will Melick [ mailto:will at ilm.com ] Sent: Thursday, January 16, 2003 11:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NIS check? Does anyone have a favorite way to check NIS services? Thanks much, Will Melick ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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 rburnson at cps.k12.il.us Thu Jan 16 23:21:33 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 16 Jan 2003 16:21:33 -0600 Subject: Does the Availability report have a bug in it? Why is everything undetermined? Message-ID: What is the time frame you have being reported on below? If nagios does not have the log files to go that far in the past, it will only be able to report on the status in the logs and leave the rest as undetermined. Richard ? ??? -----Original Message----- From: Nagios [mailto:nagios at atlantic-isp.co.uk] Sent: Thursday, January 16, 2003 4:08 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Does the Availability report have a bug in it? Why is everything undetermined? Is there a bug in the Availability report in Nagios 1.0? It seems that information about hosts/services availability is incorrect. Nagios has been checking these following hosts for the past 3 days and none of them have ever been down, however as far as Nagios is concerned it can only determine for 8% of uptime. I have read some postings to the list about this and I know I have all the options in the configuration correct, such as getting Nagios to remember the initial state of a host/service the first time it is checked. Host???????????? % Time Up???????????????? % Time Down??????? % Time Unreachable??? % Time Undetermined lon.tc9.rtr1???? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.673% lon.tc9.rtr2???? 8.253% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.747% lon.tc9.rtr3???? 8.382% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.618% lon.tc9.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.673% lon.tc9.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.711% lon.the.rtr1???? 8.363% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.637% lon.the.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.673% lon.the.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% (0.000%)???????? 91.711% Does anyone have any answers? I even looked on the demo site to see if the same thing happened on there but it does not even when you leave all the report options to the default. Any help would be appreciated. Thanks ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From nagios at atlantic-isp.co.uk Thu Jan 16 23:28:05 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Thu, 16 Jan 2003 22:28:05 -0000 Subject: Does the Availability report have a bug in it? Why is everything undetermined? In-Reply-To: References: Message-ID: <001801c2bdae$8f1ac290$152ca8c0@main> If I specify the last 24 hours I get the same result even though the checks have been running non-stop for 3 days. > -----Original Message----- > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > Sent: 16 January 2003 22:22 > To: Nagios; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is > everything undetermined? > > What is the time frame you have being reported on below? If nagios does not > have the log files to go that far in the past, it will only be able to > report on the status in the logs and leave the rest as undetermined. > > Richard > > > -----Original Message----- > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > Sent: Thursday, January 16, 2003 4:08 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Does the Availability report have a bug in it? Why > is everything undetermined? > > Is there a bug in the Availability report in Nagios 1.0? > It seems that information about hosts/services availability is incorrect. > Nagios has been checking these following hosts for the past 3 days and none > of them have ever been down, however as far as Nagios is concerned it can > only determine for 8% of uptime. > I have read some postings to the list about this and I know I have all the > options in the configuration correct, such as getting Nagios to remember the > initial state of a host/service the first time it is checked. > Host???????????? % Time Up???????????????? % Time Down??????? % Time > Unreachable??? % Time Undetermined > lon.tc9.rtr1???? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.tc9.rtr2???? 8.253% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.747% > lon.tc9.rtr3???? 8.382% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.618% > lon.tc9.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.tc9.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.711% > lon.the.rtr1???? 8.363% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.637% > lon.the.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.the.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.711% > > Does anyone have any answers? > I even looked on the demo site to see if the same thing happened on there > but it does not even when you leave all the report options to the default. > Any help would be appreciated. > Thanks > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From russell at quadrix.com Thu Jan 16 23:34:34 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 16 Jan 2003 17:34:34 -0500 Subject: Does the Availability report have a bug in it? Why is everything undetermined? References: <001101c2bdab$bea496b0$152ca8c0@main> Message-ID: <3E27337A.1000704@quadrix.com> Hosts will only be checked when a service on that host fails, so most of the timw would end up being undetermined. In the availability report, one of the options for First Assumed State (a drop down) is Host OK. Try setting that and recreating the availability report. The undetermined time should change to OK time. Russell Scibetti Nagios wrote: > Is there a bug in the Availability report in Nagios 1.0? > > It seems that information about hosts/services availability is incorrect. > > Nagios has been checking these following hosts for the past 3 days and > none of them have ever been down, however as far as Nagios is > concerned it can only determine for 8% of uptime. > > I have read some postings to the list about this and I know I have all > the options in the configuration correct, such as getting Nagios to > remember the initial state of a host/service the first time it is checked. > > Host % Time Up % Time Down % Time > Unreachable % Time Undetermined > > lon.tc9.rtr1 8.327% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.673% > > lon.tc9.rtr2 8.253% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.747% > > lon.tc9.rtr3 8.382% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.618% > > lon.tc9.sw1 8.327% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.673% > > lon.tc9.sw2 8.289% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.711% > > lon.the.rtr1 8.363% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.637% > > lon.the.sw1 8.327% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.673% > > lon.the.sw2 8.289% (100.000%) 0.000% (0.000%) 0.000% > (0.000%) 91.711% > > > Does anyone have any answers? > > I even looked on the demo site to see if the same thing happened on > there but it does not even when you leave all the report options to > the default. > > Any help would be appreciated. > > Thanks > > > > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Thu Jan 16 23:34:52 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 16 Jan 2003 16:34:52 -0600 Subject: Does the Availability report have a bug in it? Why is everything undetermined? Message-ID: Make sure you have this set in Nagios.cfg: log_initial_states=1 What is you log rotation method? It could simply be that you have not set it for enough "backtracked archives" in the report viewer. Richard -----Original Message----- From: Nagios [mailto:nagios at atlantic-isp.co.uk] Sent: Thursday, January 16, 2003 4:28 PM To: 'Burnson, Richard'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is everything undetermined? If I specify the last 24 hours I get the same result even though the checks have been running non-stop for 3 days. > -----Original Message----- > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > Sent: 16 January 2003 22:22 > To: Nagios; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is > everything undetermined? > > What is the time frame you have being reported on below? If nagios does not > have the log files to go that far in the past, it will only be able to > report on the status in the logs and leave the rest as undetermined. > > Richard > > > -----Original Message----- > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > Sent: Thursday, January 16, 2003 4:08 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Does the Availability report have a bug in it? Why > is everything undetermined? > > Is there a bug in the Availability report in Nagios 1.0? > It seems that information about hosts/services availability is incorrect. > Nagios has been checking these following hosts for the past 3 days and none > of them have ever been down, however as far as Nagios is concerned it can > only determine for 8% of uptime. > I have read some postings to the list about this and I know I have all the > options in the configuration correct, such as getting Nagios to remember the > initial state of a host/service the first time it is checked. > Host???????????? % Time Up???????????????? % Time Down??????? % Time > Unreachable??? % Time Undetermined > lon.tc9.rtr1???? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.tc9.rtr2???? 8.253% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.747% > lon.tc9.rtr3???? 8.382% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.618% > lon.tc9.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.tc9.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.711% > lon.the.rtr1???? 8.363% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.637% > lon.the.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.673% > lon.the.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > (0.000%)???????? 91.711% > > Does anyone have any answers? > I even looked on the demo site to see if the same thing happened on there > but it does not even when you leave all the report options to the default. > Any help would be appreciated. > Thanks > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jlyons30 at yahoo.com Thu Jan 16 23:36:23 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 16 Jan 2003 14:36:23 -0800 (PST) Subject: nagios.log--oops In-Reply-To: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ABA@usuexch02.usunwired.com> References: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ABA@usuexch02.usunwired.com> Message-ID: <20030116223623.25263.qmail@web21504.mail.yahoo.com> The make-config script is pretty nice, makes all the cfg, and extinfo files, I wish apan had something simular.... Trace McQuaig wrote:Lol. I was just about to say that... Yea I am wanting to do disk space. Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 16, 2003 4:06 PM To: Trace McQuaig Subject: RE: [Nagios-users] nagios.log--oops Only works for traffic...:) Look at http://adi.blink.pl/nagios , seems a lot easier to setup... Trace McQuaig wrote: Right on. I am currently setting up this APAN stuff for testing. Is this going to be able to do some trending / out growing prediction for me for now? I am trying to stick it to the man (OPENVIEW). I hope I am on the right track as APAN is a little messy in its current state. Cheers Trace McQuaig US Unwired Systems Engineer Unix Ninja MCSE Exchange A+ (o_ //\ "It is all fun and games 'till someone gets a virus." V_/_ All spelling errors are completely intentional. -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Thursday, January 16, 2003 3:30 PM To: Trace McQuaig; Nagios users Subject: RE: [Nagios-users] nagios.log xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log I know what you're looking to do. Many of us want something similar. Take a look at www.nagios.org, in particular the Upcoming section, towards the bottom. This will hopefully give us a way of logging this sort of data to a MySQL database. (I'm hoping to be able to create queries using PHP and graph them with JpGraph.) jc > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Thursday, January 16, 2003 2:47 PM > To: Nagios users > Subject: [Nagios-users] nagios.log > > > Is there anyway to make Nagios save the information it receives from > executing plugins to the nagios.log or any other media. > > I realize that this information would grow exponentially > based on how many > host/services you monitor. > > > Also. Is the sourceforge search broke? Everytime I go to > search it returns > me to a blank sourceforge page with source forge menus on > left and header. > Is there any other way that I can search these mailing lists? > I tried using > google site:http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > search but that didn't work. > > Trace McQuaig > US Unwired > Systems Engineer > Unix Ninja > MCSE Exchange A+ > (o_ > //\ "It is all fun and games 'till someone gets a virus." > V_/_ All spelling errors are completely intentional. > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: From nagios at atlantic-isp.co.uk Thu Jan 16 23:51:50 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Thu, 16 Jan 2003 22:51:50 -0000 Subject: Does the Availability report have a bug in it? Why is everything undetermined? In-Reply-To: References: Message-ID: <002301c2bdb1$de51d080$152ca8c0@main> I should have said that this also occurs with service availability reports where they all only show 62% up and none of the services have failed over the last 3 days. Yes I know you can select Host Up or Service Ok from the first assumed drop down box but in mind you shouldn?t have to since I have log_initial_states set to 1, and you don?t seem to have to do this on the demo site at nagios.org. > -----Original Message----- > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > Sent: 16 January 2003 22:35 > To: Nagios; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is > everything undetermined? > > Make sure you have this set in Nagios.cfg: > > log_initial_states=1 > > What is you log rotation method? It could simply be that you have not set > it for enough "backtracked archives" in the report viewer. > > Richard > > > > -----Original Message----- > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > Sent: Thursday, January 16, 2003 4:28 PM > To: 'Burnson, Richard'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? > Why is everything undetermined? > > If I specify the last 24 hours I get the same result even though the > checks have been running non-stop for 3 days. > > > > -----Original Message----- > > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > > Sent: 16 January 2003 22:22 > > To: Nagios; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Does the Availability report have a bug in > it? Why is > > everything undetermined? > > > > What is the time frame you have being reported on below? If nagios > does not > > have the log files to go that far in the past, it will only be able to > > report on the status in the logs and leave the rest as undetermined. > > > > Richard > > > > > > -----Original Message----- > > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > > Sent: Thursday, January 16, 2003 4:08 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Does the Availability report have a bug in it? > Why > > is everything undetermined? > > > > Is there a bug in the Availability report in Nagios 1.0? > > It seems that information about hosts/services availability is > incorrect. > > Nagios has been checking these following hosts for the past 3 days and > none > > of them have ever been down, however as far as Nagios is concerned it > can > > only determine for 8% of uptime. > > I have read some postings to the list about this and I know I have all > the > > options in the configuration correct, such as getting Nagios to > remember the > > initial state of a host/service the first time it is checked. > > Host???????????? % Time Up???????????????? % Time Down??????? % Time > > Unreachable??? % Time Undetermined > > lon.tc9.rtr1???? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.tc9.rtr2???? 8.253% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.747% > > lon.tc9.rtr3???? 8.382% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.618% > > lon.tc9.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.tc9.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.711% > > lon.the.rtr1???? 8.363% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.637% > > lon.the.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.the.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.711% > > > > Does anyone have any answers? > > I even looked on the demo site to see if the same thing happened on > there > > but it does not even when you leave all the report options to the > default. > > Any help would be appreciated. > > Thanks > > > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From bnelson at rightnow.com Fri Jan 17 00:02:43 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Thu, 16 Jan 2003 16:02:43 -0700 Subject: NIS check? Message-ID: The problem I see is that the current revision of check_rpc (1.3.0-beta2) is dependant on specific output of rpcinfo. If the actual output of rpcinfo doesn't match any of the scripts known, hard-coded output strings, then the default state is maintained. Since the default state is 'OK', you will always get an 'OK' if the script can't parse the output of rpcinfo. Doesn't seem like totally desireable behavior to me. --Ben -----Original Message----- From: Nelson, Ben Sent: Thursday, January 16, 2003 3:13 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NIS check? After trading a couple of emails with Will Melick, it appears that the current version (beta) of check_rpc may have a bug. No matter what host addresss you give the plugin, it returns an 'OK' status. For example: $ ./check_rpc -H 999.999.999.99 -C ypbind OK: RPC program ypbind udp running This bug appears to have been introduced between version 1.2.9-4 and 1.3.0-beta2 of nagios-plugins. I still had a copy of check_rpc from 1.2.9-4 laying around and it returns an error when invoked as above. --Ben -----Original Message----- From: Nelson, Ben Sent: Thursday, January 16, 2003 12:35 PM To: 'Will Melick'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] NIS check? Use the check_rpc plugin........ >From my commands.cfg file: define command{ command_name check_ypserv command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypserv } define command{ command_name check_yppasswdd command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C yppasswdd } define command{ command_name check_ypbind command_line $USER1$/check_rpc -H $HOSTADDRESS$ -C ypbind } --Ben -----Original Message----- From: Will Melick [ mailto:will at ilm.com ] Sent: Thursday, January 16, 2003 11:45 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] NIS check? Does anyone have a favorite way to check NIS services? Thanks much, Will Melick ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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 Jan 17 00:14:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 17:14:59 -0600 Subject: Same status Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2504@PKDWB03C.ad.sprint.com> > It helps, but not really needed. I often use the numeric OID But how does one know what the numeric OID references? Let's say a query against (I'm pulling this fictional OID out of the air) .1.3.1.2.1.4.1.5.1.6.1.7.21 and it returns a value of 4257. First, I'd have to ask myself why I queried that OID to begin with. ;) Now if you were to say: 1) do an snmpwalk and dump it to a file 2) look around for things you're interested in 3) do an snmpwalk -O n of the OIDs I'm interested in, in order to get the numeric OID values 4) define the numeric OIDs in the check_snmp definitions that would be one approach. But I'm speculating wildly here; perhaps you have a more economical approach...? Am I even on the right track? > There are some service definitions in the old command.cfg file. I took a look at the sample config files (if that's what you were referring to). Did a "grep snmp *" and found nothing. > OK. I happen to have a RedHat beta on my laptop here. No nagios, no > snmp. Let's see just how painful this is, since it's been a few years > since I first set ip up. > > 1) rpm -Uv net-snmp* $ rpm -qa|grep snmp ucd-snmp-devel-4.2.3-18rlx ucd-snmp-4.2.3-18rlx ucd-snmp-utils-4.2.3-18rlx php-snmp-4.1.2-7 > 2) edit /etc/snmp/snmpd.conf (comments in file are enough to tell you > what to do) Looks like we're good to go. > 3) sudo /sbin/service snmpd restart *nods* > 4) test with `snmpwalk -c public -v 1 localhost system` $ snmpwalk -c public -v 1 localhost system system.sysDescr.0 = Linux itdmll58 2.4.18-3rlx3 #1 Thu Sep 5 08:48:57 CDT 2002 i686 system.sysObjectID.0 = OID: enterprises.ucdavis.ucdSnmpAgent.linux system.sysUpTime.0 = Timeticks: (4248058406) 491 days, 16:09:44.06 system.sysContact.0 = Root (configure /etc/snmp/snmp.local.conf) [snipped to save space] > 5) snmpwalk -c public -v 1 localhost .1 | less Looks good. > 6) now, since people asked about checking load without 3 test > in another > thread, I'll run > > snmpwalk -c public -v 1 localhost .1.3.6.1.4.1.2021.10 > > Part of what comes back is > > UCD-SNMP-MIB::laLoad.1 = STRING: 0.00 > UCD-SNMP-MIB::laLoad.2 = STRING: 0.07 > UCD-SNMP-MIB::laLoad.3 = STRING: 0.23 > > Or, if you prefer: > > snmpwalk -O n -c public -v 1 localhost .1.3.6.1.4.1.2021.10 > > .1.3.6.1.4.1.2021.10.1.3.1 = STRING: 0.12 > .1.3.6.1.4.1.2021.10.1.3.2 = STRING: 0.10 > .1.3.6.1.4.1.2021.10.1.3.3 = STRING: 0.09 I got *way* too much stuff back, so I had to be more specific, thusly: $ snmpwalk -c public -v 1 localhost .1.3.6.1.4.1.2021.10.1.3 enterprises.ucdavis.laTable.laEntry.laLoad.1 = 5.32 enterprises.ucdavis.laTable.laEntry.laLoad.2 = 6.92 enterprises.ucdavis.laTable.laEntry.laLoad.3 = 6.69 or, $ snmpwalk -O n -c public -v 1 localhost .1.3.6.1.4.1.2021.10.1.3 .1.3.6.1.4.1.2021.10.1.3.1 = 1.93 .1.3.6.1.4.1.2021.10.1.3.2 = 5.35 .1.3.6.1.4.1.2021.10.1.3.3 = 6.15 > So I can define a load check like: > > /usr/lib/nagios/plugins/check_snmp -H $HOSTADDRESS$ -C $ARG1$ \ > -o .1.3.6.1.4.1.2021.10.1.5.1 \ > -o .1.3.6.1.4.1.2021.10.1.5.2 \ > -o .1.3.6.1.4.1.2021.10.1.5.3 \ > -w :$ARG2$,:$ARG3$,:$ARG4$ \ > -c :$ARG5$,:$ARG6$,:$ARG7$ \ > -l load > > (Sorry about the line wraps.) (Hmm. Looks like you're using a different OID. But I understand the intent.) Alright, so far so good. > Here's a few new style commands from ny currently running > configuration: > > define command{ > command_name snmp_procs > command_line /usr/lib/nagios/plugins/check_snmp \ > -H $HOSTADDRESS$ -C $USER5$ \ > -o host.hrSystem.hrSystemProcesses.0 \ > -w :$ARG1$ -c :$ARG2$ -l processes > } Looks good. > define command{ > command_name snmp_disk > command_line /usr/lib/nagios/plugins/check_snmp \ > -H $HOSTADDRESS$ -C $USER5$ \ > -o .1.3.6.1.4.1.2021.9.1.9.1 \ > -w :$ARG1$ -c :$ARG2$ -l percent > } Hmm. Alright, while technically this works, I can see a problem reconciling the OIDs with the actual mountpoints, at least in larger systems/environments. I can imagine that dskPath.1 will almost always be "/", but I can also see that dskPath.17 on one system may well have a different mountpoint than that of another system. Setting up the first system check_snmp services for the disk percentages would take a bit of time, but not overwhelmingly so. But it does impair cut-pasting definitions from one host's services to another host's services, unless you're fond of manual reconciliation. At least with check_disk, I can specify "/" and it will always be "/", no matter which host I run it on. It shouldn't be an issue for small, repeated configurations, such as blade servers (e.g., RLX). (In case I'm being vague, I'm referring to the service_description string. What would be a way of naming it that's both economical and sensible? It would be great if the service_description could query check_snmp to get the appropriate string... however....) Now if only there were a way of passing a mount point to check_snmp as well as the OID you're looking to have it return, letting the program do the reconciliation for you, etc.... Or perhaps more economically, write a script to grok the snmpwalk output, do the reconciliation, and create the necessary service definitions automagically. But then you're faced with having to redefine the thresholds. Unless the script referred to a metaconfig file, which would then have the thresholds. Argh, this doesn't really help matters much, does it.... Thoughts? > define command{ > command_name snmp_inodes > command_line /usr/lib/nagios/plugins/check_snmp \ > -H $HOSTADDRESS$ -C $USER5$ \ > -o .1.3.6.1.4.1.2021.9.1.10.1 \ > -w :$ARG1$ -c :$ARG2$ -l percent > } Very nice. Still has the same naming standard issue as above. :/ > Hope that helps. Helps quite a bit actually. jc > -- > Karl > > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From ken.snider at datawire.net Fri Jan 17 00:12:41 2003 From: ken.snider at datawire.net (Ken Snider) Date: Thu, 16 Jan 2003 18:12:41 -0500 Subject: Issues with NSCA In-Reply-To: References: Message-ID: <3E273C69.8000201@datawire.net> Greetings all, I've witnessed a perplexing issue with NSCA, and was hoping someone my have experienced the same, and could perhaps offer a solution to the issue. We use NSCA to monitor about 350 passive services onto our network. NSCA is processed through xinetd -reuse, and has Connections per second (cps) and instances set to 200, and UNLIMITED, respectively. In essence, xinetd will happily accept up to 200 connections per second. We use a wrapper to massage plugin data and pipe to send_nsca, which in turn sends these results to our nagios server. We have about 5 plugin results per server, or about 70 servers total doing this, every two minutes. What this means is, every two minutes, 70 connections are made to NSCA and processed. The *connections* themselves seem to work just fine.. xinetd spawns all the required nsca daemons and they seem to communicate well. The problem, however, is that over time, while nagios will first process all these requests without issue, every two minutes, over time, the process seems to take longer and longer, until nagios eventually begins tripping our freshness threshold, which is set at a more-than-generous 500 seconds. The box doesn't experience significant load, nor does it seem to be network-related. It appears that, for whatever reason, these requests simply don't make it into the external command pipe, or they are somehow lost in the process. I'm hoping someone more familiar with the issue than I can explain *what* NSCA does, when launched from xinetd, and "likely" blocking on the pipe as the requests go into the server. I'd hope the solution isn't "less passive checks", or "staggered more", because that suggests that Nagios won't be able to scale as we grow, and we'll reach a point where our passive requests exceed nagios' capability. -- Ken Snider Senior Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sandro at opservices.com.br Fri Jan 17 00:31:11 2003 From: sandro at opservices.com.br (sandro vaz) Date: Thu, 16 Jan 2003 21:31:11 -0200 Subject: NSClient - 38 OK and 1 Down Message-ID: Nagiosmates: Today we have deployed 39 NT/W2K NSClients, almost with 100% success. But in one English NT4+SP6a, we have installed and Distrib-1.07.zip, and just received a "Connection refused by host" message. Then, uninstalled this version and installed the fresh new version Distrib-1.07.1.zip, but the messages was even more strange at each Nagios Server connection: "Division by zero" at NT Event Log. We tripled checked the counters.defs counters syntaxes, but it's just the same (no portuguese version, nothing beyond the regular installation). Some one has any idea, hint, tip, pray, "macumba" to solve this problem? Thank you all very much in advance. Sandro Vaz --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Jan 17 00:33:39 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 17 Jan 2003 10:33:39 +1100 Subject: NIS check? In-Reply-To: ; from bnelson@rightnow.com on Thu, Jan 16, 2003 at 04:02:43PM -0700 References: Message-ID: <20030117103331.B68230@IPAustralia.Gov.AU> Dear Sir, On Thu, Jan 16, 2003 at 04:02:43PM -0700, Nelson, Ben wrote: > The problem I see is that the current revision of check_rpc (1.3.0-beta2) is > dependant on specific output of rpcinfo. If the actual output of rpcinfo > doesn't match any of the scripts known, hard-coded output strings, then the > default state is maintained. Since the default state is 'OK', you will > always get an 'OK' if the script can't parse the output of rpcinfo. > Doesn't > seem like totally desireable behavior to me. > Much more desireable than 'CRITICAL': spurious alerts bring availability monitors __quickly__ undone. Suggest you change the default state to 'UNKNOWN'. > --Ben BTW, welcome to the world of heterogenous systems. Making code portable is at least as hard as making it in the first place. 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jcarro10 at sprintspectrum.com Fri Jan 17 00:38:14 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 17:38:14 -0600 Subject: nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1315@PKDWB03C.ad.sprint.com> I think we're getting closer to the problem. Somehow, nrpe is looking in the wrong place for nrpe.cfg. Clearly it's not picking up that option from your xinetd config file. What happens when you simply do: /usr/sbin/nrpe This what I get: $ ./nrpe NRPE - Nagios Remote Plugin Executor Copyright (c) 1999-2002 Ethan Galstad ( nagios at nagios.org ) Version: 1.5 Last Modified: 06-03-2002 License: GPL Usage: ./nrpe <-i | -d> Options: -i Run as a service under inetd or xinetd -d Run as a standalone daemon Notes: This program is designed to process requests from the check_nrpe plugin on the host(s) running Nagios. It can run as a service under inetd or xinetd (read the docs for info on this), or as a standalone daemon. Once a request is received from an authorized host, NRPE will execute the command/plugin (as defined in the config file) and return the plugin output and return code to the check_nrpe plugin. As you can see, I'm running version 1.5. I seem to recall a recent thread which requires the newer version to use a -c switch or some such to specify the config file. If that's the case, update your xinetd config file, then pkill -12 xinetd, do another test, and see what syslog says. jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 5:25 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe Here is the syslog errors. Below is my config Jan 16 17:28:10 antispam nrpe[1029]: Unable to open config file '//nrpe.cfg' for reading Jan 16 17:28:10 antispam nrpe[1029]: Config file '//nrpe.cfg' contained errors, bailing out... ############################################################################ # # Sample NRPE Config File # Written by: Ethan Galstad ( nagios at nagios.org ) # # Last Modified: 12-30-2002 # # NOTES: # This is a sample configuration file for the NRPE daemon. It needs to be # located on the remote host that is running the NRPE daemon, not the host # from which the check_nrpe client is being executed. ############################################################################ # # PORT NUMBER # Port number we should wait for connections on. # NOTE: This must be a non-priviledged port (i.e. > 1024). # NOTE: This option is ignored if NRPE is running under either inetd or xinetd server_port=5666 # SERVER ADDRESS # Address that nrpe should bind to in case there are more than one interface # and you do not want nrpe to bind on all interfaces. # NOTE: This option is ignored if NRPE is running under either inetd or xinetd #server_address=192.168.1.1 # ALLOWED HOST ADDRESSES # This is a comma-delimited list of IP address of hosts that are allowed # to talk to the NRPE daemon. # # NOTE: The daemon only does rudimentary checking of the client's IP # address. I would highly recommend adding entries in your # /etc/hosts.allow file to allow only the specified host to connect # to the port you are running this daemon on. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd allowed_hosts=129.207.59.33 127.0.0.1 # NRPE USER # This determines the effective user that the NRPE daemon should run as. # You can either supply a username or a UID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_user=nagios # NRPE GROUP # This determines the effective group that the NRPE daemon should run as. # You can either supply a group name or a GID. # # NOTE: This option is ignored if NRPE is running under either inetd or xinetd nrpe_group=nagios # DEBUGGING OPTION # This option determines whether or not debugging messages are logged to the # syslog facility. # Values: 0=debugging off, 1=debugging on debug=1 # COMMAND TIMEOUT # This specifies the maximum number of seconds that the NRPE daemon will # allow plugins to finish executing before killing them off. command_timeout=60 # COMMAND DEFINITIONS # Command definitions that this daemon will run. Definitions # are in the following format: # # command[]= # # When the daemon receives a request to return the results of # it will execute the command specified by the argument. # # Unlike Nagios, the command line cannot contain macros - it must be # typed exactly as it should be executed. # # Note: Any plugins that are used in the command lines must reside # on the machine that this daemon is running on! The examples below # assume that you have plugins installed in a /usr/local/nagios/libexec # directory. Also note that you will have to modify the definitions below # to match the argument format the plugins expect. Remember, these are # examples only! command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 command[check_nrpe_status]=echo "OK - NRPE is alive" Thanks Jim Justin Wedeking ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 3:31 PM Subject: RE: [Nagios-users] nrpe You might want to set "debug=1" in nrpe.cfg, retry some tests, then take a look at your syslog output. jc -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Thursday, January 16, 2003 3:29 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe I ran the command. [root at antispam src]# /usr/local/nagios/libexec/check_users -w 5 -c 10 USERS WARNING - 6 users currently logged in [root at antispam src]# ./check_nrpe -H 127.0.0.1 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 127.0.0.1 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 129.207.59.33 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. [root at antispam src]# ./check_nrpe -H 129.207.59.33 -c check_nrpe_status CHECK_NRPE: Error receiving data from host. I added it to the config and restart xinetd and made sure it was running too. I made sure it was running too [root at antispam src]# netstat -plant | grep 5666 tcp 0 0 0.0.0.0:5666 0.0.0.0:* LISTEN 6182/xinetd [root at antispam src]# ps -aux | grep nrpe root 6297 0.0 0.4 3276 628 pts/0 S 15:33 0:00 grep nrpe [root at antispam src]# Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 1:43 PM Subject: RE: [Nagios-users] nrpe And what happens when you login to the client which is running NRPE, su to nagios, then run the following manually: /usr/local/nagios/libexec/check_users -w 5 -c 10 While we're at it, add this to your nrpe.cfg: command[check_nrpe_status]=echo "OK - NRPE is alive" then at the prompt, try this: ./check_nrpe -H 127.0.0.1 -c check_nrpe_status If you get "OK - NRPE is alive", then go to your Nagios server and try: ./check_nrpe -H 129.207.59.33 -c check_nrpe_status and see how that goes. (I'm assuming that's the correct IP address.) jc -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Thursday, January 16, 2003 1:34 PM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe Yes. [root at antispam src]# telnet localhost 5666 Trying 127.0.0.1... Connected to localhost. Escape character is '^]'. Connection closed by foreign host. [root at antispam src]# ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' Cc: Nagios-Users (E-mail) Sent: Thursday, January 16, 2003 12:44 PM Subject: RE: [Nagios-users] nrpe Can you telnet to port 5666 on your client? -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Thursday, January 16, 2003 11:46 AM To: Carroll, Jim P [Contractor] Subject: Re: [Nagios-users] nrpe This is what my nrpe config looks like. command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 Here is my xinetd script # default: on # description: NRPE service nrpe { flags = REUSE socket_type = stream wait = no user = nagios server = /usr/sbin/nrpe server_args = -i /usr/local/nagios/etc/nrpe.cfg log_on_failure += USERID disable = no only_from = 129.207.59.31 129.207.59.33 127.0.0.1 Here is the error [root at antispam src]# ./check_nrpe -H 129.207.59.33 -p 5666 -c check_users CHECK_NRPE: Error receiving data from host. Thanks for the help Jim Justin Wedeking Info Tech ----- Original Message ----- From: Carroll, Jim P [Contractor] To: 'Justin' ; Nagios Users Sent: Wednesday, January 15, 2003 5:24 PM Subject: RE: [Nagios-users] nrpe Do you have check_ping defined in the nrpe.cfg file of the client host? jc -----Original Message----- From: Justin [ mailto:justin at pvamu.edu ] Sent: Wednesday, January 15, 2003 8:55 AM To: Nagios Users Subject: [Nagios-users] nrpe I check the recent messages to make sure my question had not been answered. But what is the common cause ofthis error? The nrpe dameon is running on the remote host, and plugins are up to date etc. Thanks snatch:/usr/local/nrpe-1.7/src# ./check_nrpe -H antispam.pvamu.edu -c check_ping CHECK_NRPE: Error receiving data from host. Justin Wedeking Info Tech -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 17 00:41:26 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 16 Jan 2003 17:41:26 -0600 Subject: Issues with NSCA Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1316@PKDWB03C.ad.sprint.com> Yes, it does sound like the FIFO is getting a wee bit clogged. What's your service_reaper_frequency set to? If it's set to 10, lower it to 5. Restart nagios and see what happens. jc > -----Original Message----- > From: Ken Snider [mailto:ken.snider at datawire.net] > Sent: Thursday, January 16, 2003 5:13 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Issues with NSCA > > > Greetings all, > > I've witnessed a perplexing issue with NSCA, and was hoping > someone my have > experienced the same, and could perhaps offer a solution to the issue. > > We use NSCA to monitor about 350 passive services onto our > network. NSCA is > processed through xinetd -reuse, and has Connections per > second (cps) and > instances set to 200, and UNLIMITED, respectively. > > In essence, xinetd will happily accept up to 200 connections > per second. > > We use a wrapper to massage plugin data and pipe to > send_nsca, which in turn > sends these results to our nagios server. We have about 5 > plugin results per > server, or about 70 servers total doing this, every two minutes. > > What this means is, every two minutes, 70 connections are > made to NSCA and > processed. > > The *connections* themselves seem to work just fine.. xinetd > spawns all the > required nsca daemons and they seem to communicate well. > > The problem, however, is that over time, while nagios will > first process all > these requests without issue, every two minutes, over time, > the process > seems to take longer and longer, until nagios eventually > begins tripping our > freshness threshold, which is set at a more-than-generous 500 seconds. > > The box doesn't experience significant load, nor does it seem to be > network-related. It appears that, for whatever reason, these > requests simply > don't make it into the external command pipe, or they are > somehow lost in > the process. > > I'm hoping someone more familiar with the issue than I can > explain *what* > NSCA does, when launched from xinetd, and "likely" blocking > on the pipe as > the requests go into the server. > > I'd hope the solution isn't "less passive checks", or > "staggered more", > because that suggests that Nagios won't be able to scale as > we grow, and > we'll reach a point where our passive requests exceed nagios' > capability. > > -- > Ken Snider > Senior Systems Administrator > Datawire Communication Networks Inc. > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From bnelson at rightnow.com Fri Jan 17 00:57:13 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Thu, 16 Jan 2003 16:57:13 -0700 Subject: NIS check? Message-ID: My apologies if I've offended you. Mine was merely an observation and I do appreciate the large amount of coding that has been done to make Nagios and the Nagios plugins available. Thank you. I agree that making code that is meant to be cross-platform is difficult. I also agree that spurious 'CRITICAL' alerts can be annoying and really muck other things up, especially depending on defined dependancies. With that said, I would suggest that the default state gets set to 'UNKNOWN' at the source distribution as well as in my own environment. If you would like help (with the plugins project in general), I am willing. --Ben -----Original Message----- From: Stanley Hopcroft [mailto:Stanley.Hopcroft at IPAustralia.Gov.AU] Sent: Thursday, January 16, 2003 4:34 PM To: Nelson, Ben Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] NIS check? Dear Sir, On Thu, Jan 16, 2003 at 04:02:43PM -0700, Nelson, Ben wrote: > The problem I see is that the current revision of check_rpc (1.3.0-beta2) is > dependant on specific output of rpcinfo. If the actual output of rpcinfo > doesn't match any of the scripts known, hard-coded output strings, then the > default state is maintained. Since the default state is 'OK', you will > always get an 'OK' if the script can't parse the output of rpcinfo. > Doesn't > seem like totally desireable behavior to me. > Much more desireable than 'CRITICAL': spurious alerts bring availability monitors __quickly__ undone. Suggest you change the default state to 'UNKNOWN'. > --Ben BTW, welcome to the world of heterogenous systems. Making code portable is at least as hard as making it in the first place. 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 will at ilm.com Fri Jan 17 01:04:44 2003 From: will at ilm.com (Will Melick) Date: Thu, 16 Jan 2003 16:04:44 -0800 Subject: NIS check? In-Reply-To: <20030117103331.B68230@IPAustralia.Gov.AU> References: <20030117103331.B68230@IPAustralia.Gov.AU> Message-ID: Hmmm...is this the issue? check_rpc.pl looks for these responses from rpcinfo: if ( $line =~ /program $prognum version ([0-9]*) ready and waiting/ ) { $response .= " version $1"; $state = 'OK' unless $state ne 'OK'; print "1:$response \n" if $verbose; } if ( $line =~ /program $prognum version ([0-9]*) is not available/ ) { $response2 .= " version $1"; $state = 'CRITICAL'; print "2:$response2 \n" if $verbose; } if ( $line =~ /program $prognum is not available/ ) { $response3 = ""; $response3 = "tcp" if $opt_t; $response3 = "udp" if $opt_u; $state = 'CRITICAL'; print "3:$response3 \n" if $verbose; } } but rpcinfo answers like this: (normal state here for ypbind): [nagios at river nagios]$ rpcinfo -u 10.10.77.60 ypbind program 100007 version 1 ready and waiting program 100007 version 2 ready and waiting (failed state for ypbind): [nagios at river nagios]$ rpcinfo -u 10.10.77.60 ypbind rpcinfo: RPC: Program not registered program 100007 is not available So perhaps we should add an if statement to the perl script that sets $state to 'CRITICAL' if it gets "rpcinfo: RPC: Program not registered" e.g. } if ( $line =~ /rpcinfo: RPC: Program not registered/ ) { $response4 = ""; $response4 = "tcp" if $opt_t; $response4 = "udp" if $opt_u; $state = 'CRITICAL'; print "4:$response4 \n" if $verbose; { Is it that easy? Or am I missing something? Thanks, -Will ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From rburnson at cps.k12.il.us Fri Jan 17 01:12:43 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 16 Jan 2003 18:12:43 -0600 Subject: Does the Availability report have a bug in it? Why is everything undetermined? Message-ID: I have a test system which has been running for only 1 day, and I have no "undetermined" time listed when I run a 24 hour report. How often are your logs archived? Richard -----Original Message----- From: Nagios [mailto:nagios at atlantic-isp.co.uk] Sent: Thursday, January 16, 2003 4:52 PM To: 'Burnson, Richard'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is everything undetermined? I should have said that this also occurs with service availability reports where they all only show 62% up and none of the services have failed over the last 3 days. Yes I know you can select Host Up or Service Ok from the first assumed drop down box but in mind you shouldn't have to since I have log_initial_states set to 1, and you don't seem to have to do this on the demo site at nagios.org. > -----Original Message----- > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > Sent: 16 January 2003 22:35 > To: Nagios; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? Why is > everything undetermined? > > Make sure you have this set in Nagios.cfg: > > log_initial_states=1 > > What is you log rotation method? It could simply be that you have not set > it for enough "backtracked archives" in the report viewer. > > Richard > > > > -----Original Message----- > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > Sent: Thursday, January 16, 2003 4:28 PM > To: 'Burnson, Richard'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Does the Availability report have a bug in it? > Why is everything undetermined? > > If I specify the last 24 hours I get the same result even though the > checks have been running non-stop for 3 days. > > > > -----Original Message----- > > From: Burnson, Richard [mailto:rburnson at cps.k12.il.us] > > Sent: 16 January 2003 22:22 > > To: Nagios; nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Does the Availability report have a bug in > it? Why is > > everything undetermined? > > > > What is the time frame you have being reported on below? If nagios > does not > > have the log files to go that far in the past, it will only be able to > > report on the status in the logs and leave the rest as undetermined. > > > > Richard > > > > > > -----Original Message----- > > From: Nagios [mailto:nagios at atlantic-isp.co.uk] > > Sent: Thursday, January 16, 2003 4:08 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Does the Availability report have a bug in it? > Why > > is everything undetermined? > > > > Is there a bug in the Availability report in Nagios 1.0? > > It seems that information about hosts/services availability is > incorrect. > > Nagios has been checking these following hosts for the past 3 days and > none > > of them have ever been down, however as far as Nagios is concerned it > can > > only determine for 8% of uptime. > > I have read some postings to the list about this and I know I have all > the > > options in the configuration correct, such as getting Nagios to > remember the > > initial state of a host/service the first time it is checked. > > Host???????????? % Time Up???????????????? % Time Down??????? % Time > > Unreachable??? % Time Undetermined > > lon.tc9.rtr1???? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.tc9.rtr2???? 8.253% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.747% > > lon.tc9.rtr3???? 8.382% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.618% > > lon.tc9.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.tc9.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.711% > > lon.the.rtr1???? 8.363% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.637% > > lon.the.sw1??? 8.327% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.673% > > lon.the.sw2??? 8.289% (100.000%)??? 0.000% (0.000%)?? 0.000% > > (0.000%)???????? 91.711% > > > > Does anyone have any answers? > > I even looked on the demo site to see if the same thing happened on > there > > but it does not even when you leave all the report options to the > default. > > Any help would be appreciated. > > Thanks > > > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Stanley.Hopcroft at IPAustralia.Gov.AU Fri Jan 17 01:37:37 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 17 Jan 2003 11:37:37 +1100 Subject: NIS check? In-Reply-To: ; from bnelson@rightnow.com on Thu, Jan 16, 2003 at 04:57:13PM -0700 References: Message-ID: <20030117113731.E68230@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your gracious reply. On Thu, Jan 16, 2003 at 04:57:13PM -0700, Nelson, Ben wrote: > My apologies if I've offended you. Mine was merely an observation and I do > appreciate the large amount of coding that has been done to make Nagios and > the Nagios plugins available. Thank you. The plugins are only as good as the bug reports. Let me assure you as a part time plugin developer, the contribution of fair minded and positive persons such as yourself in pointing out defects is very welcome. Part of the aim of the list (in my view) is to lift the bar: to help people by providing them with the encouragement to do better and get across things they find challenging. Patches speak louder than words: a patch followed by why I thought it was necessary, should have been my response. I'll submerge now. 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From eric at spins.com Fri Jan 17 01:34:22 2003 From: eric at spins.com (Eric Hill) Date: Thu, 16 Jan 2003 16:34:22 -0800 Subject: nagios isn't running well Message-ID: Okay, I was in training last week. Nagios is still not seeing any machines via check-host-command or check_ping, and everything libexec is sitting right where it oughta. This is FreeBSD 3.5. -eric checkcommands.cfg: ----------------- # 'check_ping' command definition define command{ command_name check_ping command_line $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 } # 'check-host-alive' command definition define command{ command_name check-host-alive command_line $USER1$/check_ping -H $HOSTADDRESS$ -w 100,80% -c 500,100% -p 1 } hosts.cfg: --------- # 'nt1' host definition define host{ use generic-host ; Name of host template to use host_name comet alias Corp. File/Print Server address 192.168.1.3 check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } su'd as user nagios: ------------------- > ./check_ping -H comet.spins.com -w 100,80% -c 500,100% PING OK - Packet loss = 0%, RTA = 0.20 ms error message in nagios: ----------------------- Status Information: check_ping: %s: Warning threshold must be integer or percentage! ps aux: ------ nagios 15549 0.0 2.5 1124 740 ?? Ss 4:35PM 0:00.09 /usr/local/nagios/bin/nagios -d /usr/local/nagios/etc/nagios.cfg ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From fyzix at yahoo.com Fri Jan 17 03:36:38 2003 From: fyzix at yahoo.com (Gareth Hash) Date: Thu, 16 Jan 2003 18:36:38 -0800 (PST) Subject: URGENT In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E130A@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E130A@PKDWB03C.ad.sprint.com> Message-ID: <20030117023638.58187.qmail@web20421.mail.yahoo.com> Thank you for your replies. I figured out what it was and fixed it. The system time was set to UTC. Nagios was set to EST, which automatically subtracted 5 hours from the system time. I set the system time to EST and all was well. > Also, you mentioned 'click'. That would imply you're running X. > But you > also mentioned 'production server'. That would imply you're NOT > running X. > I'm curious exactly what you mean by 'click'. Or what you mean by > 'production server'. (NB: IMHO, a desktop is NOT a production > server.) Well, not a "production" server in the way that you mean. It is a "crucial desktop". > And why are you setting time manually anyway? Get thee onto NTP, > ASAP. I have been trying to do just that. I read through a lot of man pages, information, etc. The question is, to what should I synchronize *my* NTP server? Any old public NTP server? The NRC? If the server gives the wrong time, the clients will have the wrong time, etc. Thank you. __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From code at php-db.com Fri Jan 17 05:14:06 2003 From: code at php-db.com (code at php-db.com) Date: Thu, 16 Jan 2003 22:14:06 -0600 (CST) Subject: windows status information Message-ID: <2738.202.175.18.222.1042776846.squirrel@www.php-db.com> Hello, I wonder if anyone can help me with the following question: With nagios, is it possible to get host status information like processor load and memory usage for windows machines? I know you can do this with linux/ unix hosts but I can't seem to find if this is possible for windows boxes. Where can I get information about this? Thanks a lot! Rgds, Rui Alves ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From ziggy at one2net.co.ug Wed Jan 15 14:22:39 2003 From: ziggy at one2net.co.ug (David Lubowa) Date: Wed, 15 Jan 2003 16:22:39 +0300 Subject: Help Message-ID: i have setup nagios and it giving me abit of hell to setup ...i have managed to follow the instructions and setup one of the hosts on my network to be monitored by nagios, but i have a couple of things that are not working properly on the web interface, e.g my cgi , i cant view the pics that are used to represent a couple of option on the menu, i have the right permissions on my webserver to view most of the files but i dont know what exactly is lacking. these are some of the errors i am getting. [snip] It appears as though you do not have permission to view information for any of the hosts you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. [/snip] i get the above on most of the option i click on the web interface, could i be missing something here..is there any way i should set my cgi's??? forgive my ignorance ...i havent used nagios...been using different means to monitor my network cheers David Ziggy Lubowa Network Engineer One2net (U) web: www.one2net.co.ug Tel: +256 41 345466 ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From koreth-nagios at midwinter.com Fri Jan 17 05:57:58 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Thu, 16 Jan 2003 20:57:58 -0800 Subject: First rev of plugin to batch up check_by_ssh calls Message-ID: <20030116205758.G28311@cadge.midwinter.com> I started setting up Nagios this week and quickly found that with my site's mix of servers, checking the statuses of remote services was getting to be a real headache. I didn't want to scatter duplicate per-host NRPE configuration files on all our clustered application and HTTP servers, didn't want to suffer the overhead of a separate ssh connection for each service on each host using check_by_ssh. I saw discussion on this list of using check_by_ssh to run multiple checks in one go and report them back to Nagios as passive results, but that would have meant constructing a separate check_by_ssh command object for each unique combination of services on our various hosts. So I wrote the following Perl script, which I call "batch_by_ssh", which acts as a frontend to check_by_ssh and automates the construction of passive-results-fetching command lines. At a high level, the approach I took was to add a new "batch" service mode that's halfway between active and passive. You define these batch services in the Nagios configuration as if they were going to run on the monitoring host (with a slightly different syntax for specifying the check command in the service object) but you set active_checks_enabled to 0 and check_freshness to 1. You can specify any number of batch services for a given host. Then you add one active service for the host, which runs batch_by_ssh. batch_by_ssh scans the Nagios configuration to find all the batch services for the host in question and runs check_by_ssh with the appropriate command line to execute them all on the remote host. Then it reports the results back to Nagios. I also have an auxiliary script that generates servicedependency objects based on the same configuration, so each host's batch services can be marked as dependent on its batch_by_ssh service. Hopefully I haven't duplicated someone else's work here, but I didn't see anything like this after searching around the net and I think it makes setting up remote monitoring a *LOT* easier. batch_by_ssh can be found at http://www.midwinter.com/~koreth/nagios/batch_by_ssh And the dependency-generating script: http://www.midwinter.com/~koreth/nagios/make_batch_dependencies See the top of batch_by_ssh for documentation on the new config items. Comments, bugfixes, etc. appreciated! Once a few people other than me have had a chance to try this out, I'll submit it to the Nagios plugins project, naturally. Here's an example configuration to probe the disk space and user count on a remote host. This is the example in the documentation at the top of batch_by_ssh, which has more details about what it all means, but hopefully it'll give you an idea of what I'm talking about. These all go in the standard Nagios config files (hence the "#<>" in front of the new keywords, so Nagios will ignore them.) -Steve P.S. Obviously you need to have passwordless ssh logins working before you can use this -- if you can't successfully run a remote command using the standard check_by_ssh plugin, this script won't be useful. --- define host { host_name myserver address 1.2.3.4 #<> $USER1$ /usr2/nagios } define command { command_name batch_by_ssh command_line $USER1$/batch_by_ssh $HOSTNAME$ } define command { command_name check_local_disk command_line $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$ } define command { command_name check_local_users command_line $USER1$/check_users -w $ARG1$ -c $ARG2$ } define service { use generic_service service_description ssh host_name myserver active_checks_enabled 1 check_command batch_by_ssh normal_check_interval 5 retry_check_interval 1 } define service { use generic_service service_description User Count host_name myserver,otherserver active_checks_enabled 0 check_freshness 1 freshness_threshold 430 ; 7 minutes = check interval + 2 retries check_command no_report ; see Nagios freshness checking docs #<> batch_type ssh #<> batch_command check_local_users!20!25 } define service { use generic_service service_description /home disk space host_name myserver,otherserver hostgroup_name group1,group2 active_checks_enabled 0 check_freshness 1 freshness_threshold 430 check_command no_report #<> batch_type ssh #<> batch_command check_local_disk!10%!5%!/home } ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Fri Jan 17 06:19:57 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 17 Jan 2003 00:19:57 -0500 (EST) Subject: Check_swap plugin In-Reply-To: <063b01c2bdaa$e1ad0da0$0d1fa8c0@sysadmin.starcalif.com> References: <063b01c2bdaa$e1ad0da0$0d1fa8c0@sysadmin.starcalif.com> Message-ID: On Thu, 16 Jan 2003, Rochel Amog wrote: > Hello, I compiled the source file "nagios-plugins-1.3.0-beta2" in SCO > Openserver 5.0.5 and looks like most of the plugins got installed and > have running fine except for one that it did not compiled, "check_swap". > I tried compiling the same in Linux 8.0 and everything was fine... Is > there anybody know any issues about compiling plugins in SCO Openserver > or do you guys know any check_swap plugin that might run on SCO > Openserver.. > how does one check for swap on SCO Openserver? Any sample output? -sg -- ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From karl at debisschop.net Fri Jan 17 06:41:31 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 17 Jan 2003 00:41:31 -0500 Subject: NIS check? In-Reply-To: <20030117103331.B68230@IPAustralia.Gov.AU> References: <20030117103331.B68230@IPAustralia.Gov.AU> Message-ID: <1042782091.2011.29.camel@localhost.localdomain> On Thu, 2003-01-16 at 18:33, Stanley Hopcroft wrote: > BTW, welcome to the world of heterogenous systems. Making code portable > is at least as hard as making it in the first place. Amen. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From karl at debisschop.net Fri Jan 17 06:39:47 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 17 Jan 2003 00:39:47 -0500 Subject: Same status In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2504@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2504@PKDWB03C.ad.sprint.com> Message-ID: <1042781986.2011.26.camel@localhost.localdomain> On Thu, 2003-01-16 at 18:14, Carroll, Jim P [Contractor] wrote: > > It helps, but not really needed. I often use the numeric OID > > But how does one know what the numeric OID references? Let's say a query > against (I'm pulling this fictional OID out of the air) > .1.3.1.2.1.4.1.5.1.6.1.7.21 and it returns a value of 4257. First, I'd have > to ask myself why I queried that OID to begin with. ;) > > Now if you were to say: > > 1) do an snmpwalk and dump it to a file > 2) look around for things you're interested in > 3) do an snmpwalk -O n of the OIDs I'm interested in, in order to get the > numeric OID values > 4) define the numeric OIDs in the check_snmp definitions > > that would be one approach. But I'm speculating wildly here; perhaps you > have a more economical approach...? Am I even on the right track? I don't have another approach -- if I can get the MIB, that is easiest. But often enough, I can't. And the snmpwalk you describe is exactly what I do in that case. > > There are some service definitions in the old command.cfg file. > > I took a look at the sample config files (if that's what you were referring > to). Did a "grep snmp *" and found nothing. In the CVS for the plugins, grep snmp command.cfg.in > > OK. I happen to have a RedHat beta on my laptop here. No nagios, no > > snmp. Let's see just how painful this is, since it's been a few years > > since I first set ip up. > > > > 1) rpm -Uv net-snmp* > > $ rpm -qa|grep snmp > ucd-snmp-devel-4.2.3-18rlx > ucd-snmp-4.2.3-18rlx > ucd-snmp-utils-4.2.3-18rlx > php-snmp-4.1.2-7 Prior to 8.0, it's ucd-snmp. Same codebase, new name. > Hmm. Alright, while technically this works, I can see a problem reconciling > the OIDs with the actual mountpoints, at least in larger > systems/environments. I can imagine that dskPath.1 will almost always be > "/", but I can also see that dskPath.17 on one system may well have a > different mountpoint than that of another system. Setting up the first > system check_snmp services for the disk percentages would take a bit of > time, but not overwhelmingly so. But it does impair cut-pasting definitions > from one host's services to another host's services, unless you're fond of > manual reconciliation. At least with check_disk, I can specify "/" and it > will always be "/", no matter which host I run it on. It shouldn't be an > issue for small, repeated configurations, such as blade servers (e.g., RLX). > > (In case I'm being vague, I'm referring to the service_description string. > What would be a way of naming it that's both economical and sensible? It > would be great if the service_description could query check_snmp to get the > appropriate string... however....) > > Now if only there were a way of passing a mount point to check_snmp as well > as the OID you're looking to have it return, letting the program do the > reconciliation for you, etc.... > > Or perhaps more economically, write a script to grok the snmpwalk output, do > the reconciliation, and create the necessary service definitions > automagically. But then you're faced with having to redefine the > thresholds. Unless the script referred to a metaconfig file, which would > then have the thresholds. Argh, this doesn't really help matters much, does > it.... > > Thoughts? Yes, therein lies madness. Well, not a terrible amount of madness if the systems are not totally divergent. But you're right, disk space is not too scalable. I think this now merges with the other current discussion about extending check_snmp. To make it scalable and generalizable, we need to be able to 1) scan a set of OIDs 2) calculate things like sums, counts, percentages, averages So it's still got some real limitations in this respect. SNMP is so widespread and standard, however, that it seems to me well worth extending check_snmp to handle these cases. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From sghosh at sghosh.org Fri Jan 17 07:04:36 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 17 Jan 2003 01:04:36 -0500 (EST) Subject: NIS check? In-Reply-To: References: Message-ID: the bug is not platform dependent as far as I can see. the issue is further up - lines 32/33 followed by the "if" statement in line 266 - changed default state to UNKNOWN and undefined opt_c changes have been committed CVS. -sg On Thu, 16 Jan 2003, Will Melick wrote: > Hmmm...is this the issue? > > check_rpc.pl looks for these responses from rpcinfo: > > if ( $line =~ /program $prognum version ([0-9]*) ready and waiting/ ) { > $response .= " version $1"; > $state = 'OK' unless $state ne 'OK'; > print "1:$response \n" if $verbose; > } > if ( $line =~ /program $prognum version ([0-9]*) is not > available/ ) { > $response2 .= " version $1"; > $state = 'CRITICAL'; > print "2:$response2 \n" if $verbose; > } > if ( $line =~ /program $prognum is not available/ ) { > $response3 = ""; > $response3 = "tcp" if $opt_t; > $response3 = "udp" if $opt_u; > $state = 'CRITICAL'; > print "3:$response3 \n" if $verbose; > } > } > > but rpcinfo answers like this: > > (normal state here for ypbind): > > > [nagios at river nagios]$ rpcinfo -u 10.10.77.60 ypbind > program 100007 version 1 ready and waiting > program 100007 version 2 ready and waiting > > > (failed state for ypbind): > > > [nagios at river nagios]$ rpcinfo -u 10.10.77.60 ypbind > rpcinfo: RPC: Program not registered > program 100007 is not available > > > So perhaps we should add an if statement to the perl script that sets > $state to 'CRITICAL' if it gets "rpcinfo: RPC: Program not registered" > > e.g. > > } > if ( $line =~ /rpcinfo: RPC: Program not registered/ ) { > $response4 = ""; > $response4 = "tcp" if $opt_t; > $response4 = "udp" if $opt_u; > $state = 'CRITICAL'; > print "4:$response4 \n" if $verbose; > { > > > > Is it that easy? Or am I missing something? > > Thanks, > -Will > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Fabian.Pehla at Dregis.com Fri Jan 17 09:21:38 2003 From: Fabian.Pehla at Dregis.com (Pehla, Fabian) Date: Fri, 17 Jan 2003 09:21:38 +0100 Subject: NSClient - 38 OK and 1 Down Message-ID: <640A7EC6DCCAD511A5250008C75D52BD02801649@ffz00zm2.ffz00e.mail.dresdner.net> Hi, I also found such entries in my EventLog. As I recall, it was an issue with the Language NSClient 1.07.1 detects and uses for its checks. Take a look at your Application Log: When NSClient 1.07.1 starts up, it mentions the Language it uses (some Hex-Code like 0x0407). On my German systems (which would have Code 0x0409) NSClient detected 0x0407 (= english). So I just modified the counters.defs that comes with 1.07.1 to label the german counters with 0x0407 and everything went fine. -- fp -----Original Message----- From: sandro vaz [mailto:sandro at opservices.com.br] Sent: Friday, January 17, 2003 12:31 AM To: nagios-users at lists.sourceforge.net Cc: 'Alessandro Ren'; dbestetti at opservices.com.br Subject: [Nagios-users] NSClient - 38 OK and 1 Down Nagiosmates: Today we have deployed 39 NT/W2K NSClients, almost with 100% success. But in one English NT4+SP6a, we have installed and Distrib-1.07.zip, and just received a "Connection refused by host" message. Then, uninstalled this version and installed the fresh new version Distrib-1.07.1.zip, but the messages was even more strange at each Nagios Server connection: "Division by zero" at NT Event Log. We tripled checked the counters.defs counters syntaxes, but it's just the same (no portuguese version, nothing beyond the regular installation). Some one has any idea, hint, tip, pray, "macumba" to solve this problem? Thank you all very much in advance. Sandro Vaz --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From fernando at puc-campinas.edu.br Fri Jan 17 12:08:43 2003 From: fernando at puc-campinas.edu.br (Fernando Ribeiro) Date: Fri, 17 Jan 2003 09:08:43 -0200 Subject: Service Notifications why they don't work? Message-ID: <023001c2be18$cc303880$0ffb88c8@cifernando> Hello, I am having a problem with service notifications. Everything is up and running (including host notification). My service looks like this: define service { service_description check_ssh check_command SSH register 0 name check_ssh max_check_attempts 5 notification_interval 30 notification_period 24x7 notification_options c,u,w notifications_enabled 1 normal_check_interval 1 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 event_handler_enabled 1 flap_detection_enabled 0 process_perf_data 0 retain_status_information 1 retain_nonstatus_information 0 contact_groups Grupo_Info_Telecom } define service { host_name jocker.puc-campinas.edu.br service_description ssh register 1 use check_ssh } In my "nagios.cfg" notifications are enabled and I am also logging notification events. When the service goes on a Hard Critical state it does not send a service notification. Where did I go wrong? I have a Conectiva8 (RedHat compatible) box with Kernel 2.4.x.x.... If anyone can help, thanks in advance! ----------------------------------------------------------------------------------- Fernando Ger?ncia de Inform?tica - PUC-Campinas fernando at puc-campinas.edu.br - http://www.puc-campinas.edu.br/ --------------------------------------------------------------------------------------- -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at cerbernet.co.uk Fri Jan 17 12:35:26 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 17 Jan 2003 11:35:26 -0000 Subject: Is there a problem on sourceforge Message-ID: <001b01c2be1c$8b057e70$f81fc3c1@TONYS> I can't seem to browse any of the Nagios mailing lists as I get ERROR Forum not found And trying to retrieve stuff via CVS from Nagios is failing. ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Vinther at danfoss.com Fri Jan 17 13:06:22 2003 From: Vinther at danfoss.com (Vinther Jonas Struer) Date: Fri, 17 Jan 2003 13:06:22 +0100 Subject: invert results in nagios or netsaint Message-ID: <25BC686423E66F46971C458A4782FEAF15A435@dkdn01mx07.danfoss.net> Hi. I want to know if it is possible to invert ping results, so that when the router is unavailable it is green, and when It goes online I must be red. Med venlig hilsen / Yours sincerely Jonas Struer Vinther Technician Danfoss A/S -------------- next part -------------- An HTML attachment was scrubbed... URL: From fernando at puc-campinas.edu.br Fri Jan 17 13:17:54 2003 From: fernando at puc-campinas.edu.br (Fernando Ribeiro) Date: Fri, 17 Jan 2003 10:17:54 -0200 Subject: Fw: Is there a problem on sourceforge Message-ID: <027b01c2be22$769e5a50$0ffb88c8@cifernando> I got the same problem browsing the forum. ---------------------------------------------------------------------------- ------- Fernando Ger?ncia de Inform?tica - PUC-Campinas fernando at puc-campinas.edu.br - http://www.puc-campinas.edu.br/ ---------------------------------------------------------------------------- ----------- ----- Original Message ----- From: "Tony" To: Sent: Friday, January 17, 2003 9:35 AM Subject: [Nagios-users] Is there a problem on sourceforge > I can't seem to browse any of the Nagios mailing lists as I get > > ERROR > Forum not found > > And trying to retrieve stuff via CVS from Nagios is failing. > > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Schimpke at Lenze.de Fri Jan 17 13:15:52 2003 From: Schimpke at Lenze.de (Schimpke, Dr. Thomas / bhn) Date: Fri, 17 Jan 2003 13:15:52 +0100 Subject: OT: hostmibd for AIX 4.3/4.2 Message-ID: <03AA3D7DD4488840996C036E23BE71C41B57F5@zde008.lenze.com> Hi, the question is a little bit off-topic: I have to monitor four AIX (4.3/4.2) machines with nagios. Much of the checks I need (ip traffic, running processes etc.) can be done with snmp. But in the "standard" AIX snmpd installation the host resources mib seems not to be implemented. There should be, however, a daemon called hostmibd (located in /sbin or /usr/sbin), which should be the host-resource subagent. This server is not installed on my machines. I'm not an AIX guru; it could be, that the software package, in which this server resides is simply not installed on my machines (or it could be IBM payware). Is somebody here, who's also monitoring AIX and has this server installed (lslpp -w output would be great!) or knows, if I have to purchase it seperately from IBM... Thanks in advance, Thomas ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From jsm at inpro.net Fri Jan 17 13:37:11 2003 From: jsm at inpro.net (Jeff McKeon) Date: 17 Jan 2003 07:37:11 -0500 Subject: windows status information In-Reply-To: <2738.202.175.18.222.1042776846.squirrel@www.php-db.com> References: <2738.202.175.18.222.1042776846.squirrel@www.php-db.com> Message-ID: <1042807032.20355.0.camel@rh80-jsm.telaurus.net> you need to install nsclient on the windows machines. there should be something about it in the documentation or faq's I think... On Thu, 2003-01-16 at 23:14, code at php-db.com wrote: > Hello, > > I wonder if anyone can help me with the following question: > > With nagios, is it possible to get host status information like processor > load and memory usage for windows machines? I know you can do this with > linux/ unix hosts but I can't seem to find if this is possible for windows > boxes. Where can I get information about this? > > Thanks a lot! > > Rgds, > Rui Alves > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From tdeblend at gcc.dhl.com Fri Jan 17 13:35:44 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 17 Jan 2003 13:35:44 +0100 Subject: invert results in nagios or netsaint References: <25BC686423E66F46971C458A4782FEAF15A435@dkdn01mx07.danfoss.net> Message-ID: <3E27F8A0.28EC6630@gcc.dhl.com> Write a small script that wraps the output of check_ping... > Vinther Jonas Struer wrote: > > Hi. > > > > I want to know if it is possible to invert ping results, so that > when the router is unavailable it is green, and when It goes online > I must be red. > > > > > > Med venlig hilsen / Yours sincerely > > Jonas Struer Vinther > > > > Technician > > Danfoss A/S > > ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From nagios at cerbernet.co.uk Fri Jan 17 13:52:57 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 17 Jan 2003 12:52:57 -0000 Subject: Compiling 1.0 on Redhat 8.0 Message-ID: <002f01c2be27$5c990790$f81fc3c1@TONYS> I am having problems compiling Nagios 1.0 on a Redhat 8.0 server. Has anyone else run by problems installing on RH8.0? Here is the configure line. ./configure --prefix=/home/nagios --with-cgiurl=/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios --with-gd --with-template-extinfo Here are just the error I get from running the configure line. sed: can't read conftest.vals: No such file or directory sed: can't read conftest.in: No such file or directory ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating common/snprintf.h ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating base/nagios.h sed: can't read conftest.in: No such file or directory ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating cgi/cgiutils.h ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found Here is the errors I get from running a make all make[1]: Entering directory `/usr/src/nagios/nagios-1.0/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c In file included from ../common/statusdata.h:30, from checks.c:28: ../common/objects.h:126: parse error before "time_t" ../common/objects.h:126: warning: no semicolon at end of struct or union ../common/objects.h:127: warning: data definition has no type or storage class ../common/objects.h:128: parse error before "last_check" ../common/objects.h:128: warning: data definition has no type or storage class ../common/objects.h:129: parse error before "last_state_change" ../common/objects.h:129: warning: data definition has no type or storage class ../common/objects.h:145: parse error before "last_state_history_update" ../common/objects.h:145: warning: data definition has no type or storage class ../common/objects.h:153: parse error before '}' token ../common/objects.h:153: warning: data definition has no type or storage class ../common/objects.h:252: parse error before "time_t" ../common/objects.h:252: warning: no semicolon at end of struct or union ../common/objects.h:254: parse error before "last_check" ../common/objects.h:254: warning: data definition has no type or storage class ../common/objects.h:256: parse error before "last_notification" ../common/objects.h:256: warning: data definition has no type or storage class ../common/objects.h:257: parse error before "next_notification" ../common/objects.h:257: warning: data definition has no type or storage class ../common/objects.h:260: parse error before "last_state_change" ../common/objects.h:260: warning: data definition has no type or storage class ../common/objects.h:284: conflicting types for `next' ../common/objects.h:152: previous declaration of `next' ../common/objects.h:285: parse error before '}' token ../common/objects.h:285: warning: data definition has no type or storage class ../common/objects.h:392: parse error before '*' token ../common/objects.h:392: warning: data definition has no type or storage class ../common/objects.h:393: parse error before '*' token ../common/objects.h:402: parse error before '*' token ../common/objects.h:402: warning: data definition has no type or storage class ../common/objects.h:403: parse error before '*' token ../common/objects.h:416: parse error before '*' token ../common/objects.h:416: parse error before "host" ../common/objects.h:416: warning: data definition has no type or storage class ../common/objects.h:423: parse error before '*' token ../common/objects.h:423: parse error before "service" ../common/objects.h:423: warning: data definition has no type or storage class ../common/objects.h:427: parse error before '*' token ../common/objects.h:428: parse error before '*' token ../common/objects.h:429: parse error before '*' token ../common/objects.h:430: parse error before "host" ../common/objects.h:433: parse error before '*' token ../common/objects.h:434: parse error before '*' token ../common/objects.h:435: parse error before '*' token ../common/objects.h:436: parse error before '*' token ../common/objects.h:437: parse error before '*' token ../common/objects.h:439: parse error before '*' token ../common/objects.h:440: parse error before '*' token ../common/objects.h:441: parse error before '*' token ../common/objects.h:442: parse error before '*' token ../common/objects.h:445: parse error before '*' token In file included from checks.c:28: ../common/statusdata.h:151: parse error before '*' token ../common/statusdata.h:152: parse error before '*' token In file included from checks.c:29: ../common/downtime.h:40: parse error before "time_t" ../common/downtime.h:40: warning: no semicolon at end of struct or union ../common/downtime.h:41: warning: data definition has no type or storage class ../common/downtime.h:42: parse error before "end_time" ../common/downtime.h:42: warning: data definition has no type or storage class ../common/downtime.h:54: conflicting types for `next' ../common/objects.h:284: previous declaration of `next' ../common/downtime.h:55: parse error before '}' token ../common/downtime.h:55: warning: data definition has no type or storage class ../common/downtime.h:63: parse error before "time_t" ../common/downtime.h:64: parse error before "time_t" ../common/downtime.h:65: parse error before "time_t" ../common/downtime.h:71: parse error before "time_t" ../common/downtime.h:75: parse error before '*' token ../common/downtime.h:77: parse error before '*' token ../common/downtime.h:78: parse error before '*' token ../common/downtime.h:89: parse error before "time_t" ../common/downtime.h:90: parse error before "time_t" ../common/downtime.h:91: parse error before "time_t" ../common/downtime.h:93: parse error before '*' token ../common/downtime.h:93: warning: data definition has no type or storage class ../common/downtime.h:94: parse error before '*' token ../common/downtime.h:94: warning: data definition has no type or storage class In file included from checks.c:30: nagios.h:325: parse error before '*' token nagios.h:327: parse error before '*' token nagios.h:328: parse error before '*' token nagios.h:336: parse error before '*' token nagios.h:337: parse error before '*' token nagios.h:338: parse error before '*' token nagios.h:339: parse error before '*' token nagios.h:340: parse error before '*' token nagios.h:341: parse error before '*' token nagios.h:344: parse error before '*' token nagios.h:345: parse error before '*' token nagios.h:346: parse error before '*' token nagios.h:347: parse error before '*' token nagios.h:351: parse error before '*' token nagios.h:352: parse error before '*' token nagios.h:353: parse error before '*' token nagios.h:354: parse error before '*' token nagios.h:358: parse error before '*' token nagios.h:359: parse error before '*' token nagios.h:360: parse error before '*' token nagios.h:361: parse error before '*' token nagios.h:362: parse error before '*' token nagios.h:363: parse error before '*' token nagios.h:364: parse error before '*' token nagios.h:365: parse error before '*' token nagios.h:366: parse error before '*' token nagios.h:370: parse error before '*' token nagios.h:371: parse error before '*' token nagios.h:372: parse error before '*' token nagios.h:373: parse error before '*' token nagios.h:374: parse error before "service" nagios.h:375: parse error before "service" nagios.h:376: parse error before '*' token nagios.h:377: parse error before '*' token nagios.h:378: parse error before '*' token nagios.h:379: parse error before '*' token nagios.h:380: parse error before '*' token nagios.h:381: parse error before "host" nagios.h:382: parse error before "host" nagios.h:383: parse error before '*' token nagios.h:384: parse error before '*' token nagios.h:387: parse error before '*' token nagios.h:388: parse error before '*' token nagios.h:395: parse error before '*' token nagios.h:396: parse error before '*' token nagios.h:427: parse error before '*' token nagios.h:428: parse error before '*' token nagios.h:473: parse error before '*' token nagios.h:474: parse error before '*' token nagios.h:475: parse error before '*' token nagios.h:478: parse error before '*' token nagios.h:479: parse error before '*' token nagios.h:480: parse error before '*' token nagios.h:481: parse error before '*' token nagios.h:482: parse error before '*' token nagios.h:483: parse error before '*' token nagios.h:484: parse error before '*' token nagios.h:485: parse error before '*' token nagios.h:486: parse error before '*' token nagios.h:487: parse error before '*' token nagios.h:492: parse error before '*' token nagios.h:493: parse error before '*' token nagios.h:496: parse error before '*' token nagios.h:497: parse error before '*' token nagios.h:498: parse error before '*' token nagios.h:499: parse error before '*' token nagios.h:500: parse error before '*' token nagios.h:501: parse error before '*' token In file included from checks.c:31: perfdata.h:34: parse error before '*' token perfdata.h:35: parse error before '*' token checks.c:71: parse error before '*' token checks.c:71: warning: data definition has no type or storage class checks.c:72: parse error before '*' token checks.c:72: warning: data definition has no type or storage class checks.c:85: parse error before '*' token checks.c: In function `run_service_check': checks.c:97: `temp_host' undeclared (first use in this function) checks.c:97: (Each undeclared identifier is reported only once checks.c:97: for each function it appears in.) checks.c:118: `svc' undeclared (first use in this function) checks.c:301: `SIGALRM' undeclared (first use in this function) checks.c: In function `reap_service_checks': checks.c:513: `temp_service' undeclared (first use in this function) checks.c:514: `temp_host' undeclared (first use in this function) checks.c:641: warning: assignment makes pointer from integer without a cast checks.c:642: warning: assignment makes pointer from integer without a cast checks.c:652: warning: assignment makes pointer from integer without a cast checks.c: At top level: checks.c:1161: parse error before '*' token checks.c: In function `check_service_dependencies': checks.c:1163: `temp_service' undeclared (first use in this function) checks.c:1174: `dependency_type' undeclared (first use in this function) checks.c:1178: `svc' undeclared (first use in this function) checks.c: At top level: checks.c:1213: parse error before '*' token checks.c: In function `check_host_dependencies': checks.c:1215: `temp_host' undeclared (first use in this function) checks.c:1225: `dependency_type' undeclared (first use in this function) checks.c:1229: `hst' undeclared (first use in this function) checks.c: In function `check_for_orphaned_services': checks.c:1257: `temp_service' undeclared (first use in this function) checks.c: In function `check_service_result_freshness': checks.c:1311: `temp_service' undeclared (first use in this function) checks.c: At top level: checks.c:1395: parse error before '*' token checks.c: In function `verify_route_to_host': checks.c:1403: `hst' undeclared (first use in this function) checks.c: At top level: checks.c:1415: parse error before '*' token checks.c: In function `check_host': checks.c:1418: `parent_host' undeclared (first use in this function) checks.c:1420: `child_host' undeclared (first use in this function) checks.c:1432: `hst' undeclared (first use in this function) checks.c:1469: `propagation_options' undeclared (first use in this function) checks.c: At top level: checks.c:1658: parse error before '*' token checks.c: In function `run_host_check': checks.c:1677: `hst' undeclared (first use in this function) checks.c:1752: warning: assignment makes pointer from integer without a cast checks.c:1774: warning: assignment makes pointer from integer without a cast make[1]: *** [checks.o] Error 1 make[1]: Leaving directory `/usr/src/nagios/nagios-1.0/base' make: *** [all] Error 2 TIA ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Craig.Emsley at document.co.uk Fri Jan 17 14:01:38 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Fri, 17 Jan 2003 13:01:38 -0000 Subject: Compiling check_nt.c Message-ID: Hi This is my first attempt at configuring nagios and although I am finding it enjoyable I am finding it taxing. So I apologise now if I am asking dumb questions. I am running nagios-1.0 on Red Hat 7.3 and everything is fine until I attempt to install NSClient 1.0.7.1. The windows client is fine the problem arises when I come to compile the check_nt.c file on the Linux box, it returns the error message 'undefined reference to 'ssprintf'. Please can somebody point me in the right direction. Craig Apprentice Nagios User ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From uriel at eln.gov.br Fri Jan 17 14:34:18 2003 From: uriel at eln.gov.br (Uriel de Almeida Papa) Date: Fri, 17 Jan 2003 11:34:18 -0200 Subject: snmp_check Message-ID: <3E28065A.10206@eln.gov.br> Hello, Could someone please help me to use snmp_check command to test up/down interface OID value? Tnks! Uriel ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From nagios at cerbernet.co.uk Fri Jan 17 14:46:17 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 17 Jan 2003 13:46:17 -0000 Subject: Compiling 1.0 on Redhat 8.0 In-Reply-To: <5593DA408212D511B0910002A513501F01D288A8@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288A8@phsexch20.mgh.harvard.edu> Message-ID: <005201c2be2e$d262f970$f81fc3c1@TONYS> I selected a custom install and selected everything I needed to run as a server omitting stuff that a server install would install that I did not want. > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: 17 January 2003 13:43 > To: 'Tony' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > When you initially installed Red Hat, what type of installation did you > choose? > > -----Original Message----- > From: Tony [mailto:nagios at cerbernet.co.uk] > Sent: Friday, January 17, 2003 7:53 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > > I am having problems compiling Nagios 1.0 on a Redhat 8.0 server. > > Has anyone else run by problems installing on RH8.0? > > Here is the configure line. > > ./configure --prefix=/home/nagios --with-cgiurl=/cgi-bin > --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios > --with-gd --with-template-extinfo > > Here are just the error I get from running the configure line. > > sed: can't read conftest.vals: No such file or directory > sed: can't read conftest.in: No such file or directory > ./config.status: line 403: s%^\([: command not found > ./config.status: line 404: s%^\([: command not found > ./config.status: line 405: s%^\([: command not found > ./config.status: line 406: s%^\([: command not found > ./config.status: line 407: s%^\([: command not found > ./config.status: line 408: s%^\([: command not found > ./config.status: line 409: s%^\([: command not found > ./config.status: line 410: s%^\([: command not found > ./config.status: line 411: s%^\([: command not found > ./config.status: line 412: s%^\([: command not found > ./config.status: line 413: s%^\([: command not found > ./config.status: line 414: s%^\([: command not found > creating common/snprintf.h > ./config.status: line 403: s%^\([: command not found > ./config.status: line 404: s%^\([: command not found > ./config.status: line 405: s%^\([: command not found > ./config.status: line 406: s%^\([: command not found > ./config.status: line 407: s%^\([: command not found > ./config.status: line 408: s%^\([: command not found > ./config.status: line 409: s%^\([: command not found > ./config.status: line 410: s%^\([: command not found > ./config.status: line 411: s%^\([: command not found > ./config.status: line 412: s%^\([: command not found > ./config.status: line 413: s%^\([: command not found > ./config.status: line 414: s%^\([: command not found > creating base/nagios.h > sed: can't read conftest.in: No such file or directory > ./config.status: line 403: s%^\([: command not found > ./config.status: line 404: s%^\([: command not found > ./config.status: line 405: s%^\([: command not found > ./config.status: line 406: s%^\([: command not found > ./config.status: line 407: s%^\([: command not found > ./config.status: line 408: s%^\([: command not found > ./config.status: line 409: s%^\([: command not found > ./config.status: line 410: s%^\([: command not found > ./config.status: line 411: s%^\([: command not found > ./config.status: line 412: s%^\([: command not found > ./config.status: line 413: s%^\([: command not found > ./config.status: line 414: s%^\([: command not found > creating cgi/cgiutils.h > ./config.status: line 403: s%^\([: command not found > ./config.status: line 404: s%^\([: command not found > ./config.status: line 405: s%^\([: command not found > ./config.status: line 406: s%^\([: command not found > ./config.status: line 407: s%^\([: command not found > ./config.status: line 408: s%^\([: command not found > ./config.status: line 409: s%^\([: command not found > ./config.status: line 410: s%^\([: command not found > ./config.status: line 411: s%^\([: command not found > ./config.status: line 412: s%^\([: command not found > ./config.status: line 413: s%^\([: command not found > ./config.status: line 414: s%^\([: command not found > > > Here is the errors I get from running a make all > > make[1]: Entering directory `/usr/src/nagios/nagios-1.0/base' > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c > In file included from ../common/statusdata.h:30, > from checks.c:28: > ../common/objects.h:126: parse error before "time_t" > ../common/objects.h:126: warning: no semicolon at end of struct or union > ../common/objects.h:127: warning: data definition has no type or storage > class > ../common/objects.h:128: parse error before "last_check" > ../common/objects.h:128: warning: data definition has no type or storage > class > ../common/objects.h:129: parse error before "last_state_change" > ../common/objects.h:129: warning: data definition has no type or storage > class > ../common/objects.h:145: parse error before "last_state_history_update" > ../common/objects.h:145: warning: data definition has no type or storage > class > ../common/objects.h:153: parse error before '}' token > ../common/objects.h:153: warning: data definition has no type or storage > class > ../common/objects.h:252: parse error before "time_t" > ../common/objects.h:252: warning: no semicolon at end of struct or union > ../common/objects.h:254: parse error before "last_check" > ../common/objects.h:254: warning: data definition has no type or storage > class > ../common/objects.h:256: parse error before "last_notification" > ../common/objects.h:256: warning: data definition has no type or storage > class > ../common/objects.h:257: parse error before "next_notification" > ../common/objects.h:257: warning: data definition has no type or storage > class > ../common/objects.h:260: parse error before "last_state_change" > ../common/objects.h:260: warning: data definition has no type or storage > class > ../common/objects.h:284: conflicting types for `next' > ../common/objects.h:152: previous declaration of `next' > ../common/objects.h:285: parse error before '}' token > ../common/objects.h:285: warning: data definition has no type or storage > class > ../common/objects.h:392: parse error before '*' token > ../common/objects.h:392: warning: data definition has no type or storage > class > ../common/objects.h:393: parse error before '*' token > ../common/objects.h:402: parse error before '*' token > ../common/objects.h:402: warning: data definition has no type or storage > class > ../common/objects.h:403: parse error before '*' token > ../common/objects.h:416: parse error before '*' token > ../common/objects.h:416: parse error before "host" > ../common/objects.h:416: warning: data definition has no type or storage > class > ../common/objects.h:423: parse error before '*' token > ../common/objects.h:423: parse error before "service" > ../common/objects.h:423: warning: data definition has no type or storage > class > ../common/objects.h:427: parse error before '*' token > ../common/objects.h:428: parse error before '*' token > ../common/objects.h:429: parse error before '*' token > ../common/objects.h:430: parse error before "host" > ../common/objects.h:433: parse error before '*' token > ../common/objects.h:434: parse error before '*' token > ../common/objects.h:435: parse error before '*' token > ../common/objects.h:436: parse error before '*' token > ../common/objects.h:437: parse error before '*' token > ../common/objects.h:439: parse error before '*' token > ../common/objects.h:440: parse error before '*' token > ../common/objects.h:441: parse error before '*' token > ../common/objects.h:442: parse error before '*' token > ../common/objects.h:445: parse error before '*' token > In file included from checks.c:28: > ../common/statusdata.h:151: parse error before '*' token > ../common/statusdata.h:152: parse error before '*' token > In file included from checks.c:29: > ../common/downtime.h:40: parse error before "time_t" > ../common/downtime.h:40: warning: no semicolon at end of struct or union > ../common/downtime.h:41: warning: data definition has no type or storage > class > ../common/downtime.h:42: parse error before "end_time" > ../common/downtime.h:42: warning: data definition has no type or storage > class > ../common/downtime.h:54: conflicting types for `next' > ../common/objects.h:284: previous declaration of `next' > ../common/downtime.h:55: parse error before '}' token > ../common/downtime.h:55: warning: data definition has no type or storage > class > ../common/downtime.h:63: parse error before "time_t" > ../common/downtime.h:64: parse error before "time_t" > ../common/downtime.h:65: parse error before "time_t" > ../common/downtime.h:71: parse error before "time_t" > ../common/downtime.h:75: parse error before '*' token > ../common/downtime.h:77: parse error before '*' token > ../common/downtime.h:78: parse error before '*' token > ../common/downtime.h:89: parse error before "time_t" > ../common/downtime.h:90: parse error before "time_t" > ../common/downtime.h:91: parse error before "time_t" > ../common/downtime.h:93: parse error before '*' token > ../common/downtime.h:93: warning: data definition has no type or storage > class > ../common/downtime.h:94: parse error before '*' token > ../common/downtime.h:94: warning: data definition has no type or storage > class > In file included from checks.c:30: > nagios.h:325: parse error before '*' token > nagios.h:327: parse error before '*' token > nagios.h:328: parse error before '*' token > nagios.h:336: parse error before '*' token > nagios.h:337: parse error before '*' token > nagios.h:338: parse error before '*' token > nagios.h:339: parse error before '*' token > nagios.h:340: parse error before '*' token > nagios.h:341: parse error before '*' token > nagios.h:344: parse error before '*' token > nagios.h:345: parse error before '*' token > nagios.h:346: parse error before '*' token > nagios.h:347: parse error before '*' token > nagios.h:351: parse error before '*' token > nagios.h:352: parse error before '*' token > nagios.h:353: parse error before '*' token > nagios.h:354: parse error before '*' token > nagios.h:358: parse error before '*' token > nagios.h:359: parse error before '*' token > nagios.h:360: parse error before '*' token > nagios.h:361: parse error before '*' token > nagios.h:362: parse error before '*' token > nagios.h:363: parse error before '*' token > nagios.h:364: parse error before '*' token > nagios.h:365: parse error before '*' token > nagios.h:366: parse error before '*' token > nagios.h:370: parse error before '*' token > nagios.h:371: parse error before '*' token > nagios.h:372: parse error before '*' token > nagios.h:373: parse error before '*' token > nagios.h:374: parse error before "service" > nagios.h:375: parse error before "service" > nagios.h:376: parse error before '*' token > nagios.h:377: parse error before '*' token > nagios.h:378: parse error before '*' token > nagios.h:379: parse error before '*' token > nagios.h:380: parse error before '*' token > nagios.h:381: parse error before "host" > nagios.h:382: parse error before "host" > nagios.h:383: parse error before '*' token > nagios.h:384: parse error before '*' token > nagios.h:387: parse error before '*' token > nagios.h:388: parse error before '*' token > nagios.h:395: parse error before '*' token > nagios.h:396: parse error before '*' token > nagios.h:427: parse error before '*' token > nagios.h:428: parse error before '*' token > nagios.h:473: parse error before '*' token > nagios.h:474: parse error before '*' token > nagios.h:475: parse error before '*' token > nagios.h:478: parse error before '*' token > nagios.h:479: parse error before '*' token > nagios.h:480: parse error before '*' token > nagios.h:481: parse error before '*' token > nagios.h:482: parse error before '*' token > nagios.h:483: parse error before '*' token > nagios.h:484: parse error before '*' token > nagios.h:485: parse error before '*' token > nagios.h:486: parse error before '*' token > nagios.h:487: parse error before '*' token > nagios.h:492: parse error before '*' token > nagios.h:493: parse error before '*' token > nagios.h:496: parse error before '*' token > nagios.h:497: parse error before '*' token > nagios.h:498: parse error before '*' token > nagios.h:499: parse error before '*' token > nagios.h:500: parse error before '*' token > nagios.h:501: parse error before '*' token > In file included from checks.c:31: > perfdata.h:34: parse error before '*' token > perfdata.h:35: parse error before '*' token > checks.c:71: parse error before '*' token > checks.c:71: warning: data definition has no type or storage class > checks.c:72: parse error before '*' token > checks.c:72: warning: data definition has no type or storage class > checks.c:85: parse error before '*' token > checks.c: In function `run_service_check': > checks.c:97: `temp_host' undeclared (first use in this function) > checks.c:97: (Each undeclared identifier is reported only once > checks.c:97: for each function it appears in.) > checks.c:118: `svc' undeclared (first use in this function) > checks.c:301: `SIGALRM' undeclared (first use in this function) > checks.c: In function `reap_service_checks': > checks.c:513: `temp_service' undeclared (first use in this function) > checks.c:514: `temp_host' undeclared (first use in this function) > checks.c:641: warning: assignment makes pointer from integer without a > cast > checks.c:642: warning: assignment makes pointer from integer without a > cast > checks.c:652: warning: assignment makes pointer from integer without a > cast > checks.c: At top level: > checks.c:1161: parse error before '*' token > checks.c: In function `check_service_dependencies': > checks.c:1163: `temp_service' undeclared (first use in this function) > checks.c:1174: `dependency_type' undeclared (first use in this function) > checks.c:1178: `svc' undeclared (first use in this function) > checks.c: At top level: > checks.c:1213: parse error before '*' token > checks.c: In function `check_host_dependencies': > checks.c:1215: `temp_host' undeclared (first use in this function) > checks.c:1225: `dependency_type' undeclared (first use in this function) > checks.c:1229: `hst' undeclared (first use in this function) > checks.c: In function `check_for_orphaned_services': > checks.c:1257: `temp_service' undeclared (first use in this function) > checks.c: In function `check_service_result_freshness': > checks.c:1311: `temp_service' undeclared (first use in this function) > checks.c: At top level: > checks.c:1395: parse error before '*' token > checks.c: In function `verify_route_to_host': > checks.c:1403: `hst' undeclared (first use in this function) > checks.c: At top level: > checks.c:1415: parse error before '*' token > checks.c: In function `check_host': > checks.c:1418: `parent_host' undeclared (first use in this function) > checks.c:1420: `child_host' undeclared (first use in this function) > checks.c:1432: `hst' undeclared (first use in this function) > checks.c:1469: `propagation_options' undeclared (first use in this > function) > checks.c: At top level: > checks.c:1658: parse error before '*' token > checks.c: In function `run_host_check': > checks.c:1677: `hst' undeclared (first use in this function) > checks.c:1752: warning: assignment makes pointer from integer without a > cast > checks.c:1774: warning: assignment makes pointer from integer without a > cast > make[1]: *** [checks.o] Error 1 > make[1]: Leaving directory `/usr/src/nagios/nagios-1.0/base' > make: *** [all] Error 2 > > > TIA > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From AHKAPLAN at PARTNERS.ORG Fri Jan 17 14:43:29 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 17 Jan 2003 08:43:29 -0500 Subject: Compiling 1.0 on Redhat 8.0 Message-ID: <5593DA408212D511B0910002A513501F01D288A8@phsexch20.mgh.harvard.edu> When you initially installed Red Hat, what type of installation did you choose? -----Original Message----- From: Tony [mailto:nagios at cerbernet.co.uk] Sent: Friday, January 17, 2003 7:53 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Compiling 1.0 on Redhat 8.0 I am having problems compiling Nagios 1.0 on a Redhat 8.0 server. Has anyone else run by problems installing on RH8.0? Here is the configure line. ./configure --prefix=/home/nagios --with-cgiurl=/cgi-bin --with-htmurl=/nagios --with-nagios-user=nagios --with-nagios-grp=nagios --with-gd --with-template-extinfo Here are just the error I get from running the configure line. sed: can't read conftest.vals: No such file or directory sed: can't read conftest.in: No such file or directory ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating common/snprintf.h ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating base/nagios.h sed: can't read conftest.in: No such file or directory ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found creating cgi/cgiutils.h ./config.status: line 403: s%^\([: command not found ./config.status: line 404: s%^\([: command not found ./config.status: line 405: s%^\([: command not found ./config.status: line 406: s%^\([: command not found ./config.status: line 407: s%^\([: command not found ./config.status: line 408: s%^\([: command not found ./config.status: line 409: s%^\([: command not found ./config.status: line 410: s%^\([: command not found ./config.status: line 411: s%^\([: command not found ./config.status: line 412: s%^\([: command not found ./config.status: line 413: s%^\([: command not found ./config.status: line 414: s%^\([: command not found Here is the errors I get from running a make all make[1]: Entering directory `/usr/src/nagios/nagios-1.0/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c In file included from ../common/statusdata.h:30, from checks.c:28: ../common/objects.h:126: parse error before "time_t" ../common/objects.h:126: warning: no semicolon at end of struct or union ../common/objects.h:127: warning: data definition has no type or storage class ../common/objects.h:128: parse error before "last_check" ../common/objects.h:128: warning: data definition has no type or storage class ../common/objects.h:129: parse error before "last_state_change" ../common/objects.h:129: warning: data definition has no type or storage class ../common/objects.h:145: parse error before "last_state_history_update" ../common/objects.h:145: warning: data definition has no type or storage class ../common/objects.h:153: parse error before '}' token ../common/objects.h:153: warning: data definition has no type or storage class ../common/objects.h:252: parse error before "time_t" ../common/objects.h:252: warning: no semicolon at end of struct or union ../common/objects.h:254: parse error before "last_check" ../common/objects.h:254: warning: data definition has no type or storage class ../common/objects.h:256: parse error before "last_notification" ../common/objects.h:256: warning: data definition has no type or storage class ../common/objects.h:257: parse error before "next_notification" ../common/objects.h:257: warning: data definition has no type or storage class ../common/objects.h:260: parse error before "last_state_change" ../common/objects.h:260: warning: data definition has no type or storage class ../common/objects.h:284: conflicting types for `next' ../common/objects.h:152: previous declaration of `next' ../common/objects.h:285: parse error before '}' token ../common/objects.h:285: warning: data definition has no type or storage class ../common/objects.h:392: parse error before '*' token ../common/objects.h:392: warning: data definition has no type or storage class ../common/objects.h:393: parse error before '*' token ../common/objects.h:402: parse error before '*' token ../common/objects.h:402: warning: data definition has no type or storage class ../common/objects.h:403: parse error before '*' token ../common/objects.h:416: parse error before '*' token ../common/objects.h:416: parse error before "host" ../common/objects.h:416: warning: data definition has no type or storage class ../common/objects.h:423: parse error before '*' token ../common/objects.h:423: parse error before "service" ../common/objects.h:423: warning: data definition has no type or storage class ../common/objects.h:427: parse error before '*' token ../common/objects.h:428: parse error before '*' token ../common/objects.h:429: parse error before '*' token ../common/objects.h:430: parse error before "host" ../common/objects.h:433: parse error before '*' token ../common/objects.h:434: parse error before '*' token ../common/objects.h:435: parse error before '*' token ../common/objects.h:436: parse error before '*' token ../common/objects.h:437: parse error before '*' token ../common/objects.h:439: parse error before '*' token ../common/objects.h:440: parse error before '*' token ../common/objects.h:441: parse error before '*' token ../common/objects.h:442: parse error before '*' token ../common/objects.h:445: parse error before '*' token In file included from checks.c:28: ../common/statusdata.h:151: parse error before '*' token ../common/statusdata.h:152: parse error before '*' token In file included from checks.c:29: ../common/downtime.h:40: parse error before "time_t" ../common/downtime.h:40: warning: no semicolon at end of struct or union ../common/downtime.h:41: warning: data definition has no type or storage class ../common/downtime.h:42: parse error before "end_time" ../common/downtime.h:42: warning: data definition has no type or storage class ../common/downtime.h:54: conflicting types for `next' ../common/objects.h:284: previous declaration of `next' ../common/downtime.h:55: parse error before '}' token ../common/downtime.h:55: warning: data definition has no type or storage class ../common/downtime.h:63: parse error before "time_t" ../common/downtime.h:64: parse error before "time_t" ../common/downtime.h:65: parse error before "time_t" ../common/downtime.h:71: parse error before "time_t" ../common/downtime.h:75: parse error before '*' token ../common/downtime.h:77: parse error before '*' token ../common/downtime.h:78: parse error before '*' token ../common/downtime.h:89: parse error before "time_t" ../common/downtime.h:90: parse error before "time_t" ../common/downtime.h:91: parse error before "time_t" ../common/downtime.h:93: parse error before '*' token ../common/downtime.h:93: warning: data definition has no type or storage class ../common/downtime.h:94: parse error before '*' token ../common/downtime.h:94: warning: data definition has no type or storage class In file included from checks.c:30: nagios.h:325: parse error before '*' token nagios.h:327: parse error before '*' token nagios.h:328: parse error before '*' token nagios.h:336: parse error before '*' token nagios.h:337: parse error before '*' token nagios.h:338: parse error before '*' token nagios.h:339: parse error before '*' token nagios.h:340: parse error before '*' token nagios.h:341: parse error before '*' token nagios.h:344: parse error before '*' token nagios.h:345: parse error before '*' token nagios.h:346: parse error before '*' token nagios.h:347: parse error before '*' token nagios.h:351: parse error before '*' token nagios.h:352: parse error before '*' token nagios.h:353: parse error before '*' token nagios.h:354: parse error before '*' token nagios.h:358: parse error before '*' token nagios.h:359: parse error before '*' token nagios.h:360: parse error before '*' token nagios.h:361: parse error before '*' token nagios.h:362: parse error before '*' token nagios.h:363: parse error before '*' token nagios.h:364: parse error before '*' token nagios.h:365: parse error before '*' token nagios.h:366: parse error before '*' token nagios.h:370: parse error before '*' token nagios.h:371: parse error before '*' token nagios.h:372: parse error before '*' token nagios.h:373: parse error before '*' token nagios.h:374: parse error before "service" nagios.h:375: parse error before "service" nagios.h:376: parse error before '*' token nagios.h:377: parse error before '*' token nagios.h:378: parse error before '*' token nagios.h:379: parse error before '*' token nagios.h:380: parse error before '*' token nagios.h:381: parse error before "host" nagios.h:382: parse error before "host" nagios.h:383: parse error before '*' token nagios.h:384: parse error before '*' token nagios.h:387: parse error before '*' token nagios.h:388: parse error before '*' token nagios.h:395: parse error before '*' token nagios.h:396: parse error before '*' token nagios.h:427: parse error before '*' token nagios.h:428: parse error before '*' token nagios.h:473: parse error before '*' token nagios.h:474: parse error before '*' token nagios.h:475: parse error before '*' token nagios.h:478: parse error before '*' token nagios.h:479: parse error before '*' token nagios.h:480: parse error before '*' token nagios.h:481: parse error before '*' token nagios.h:482: parse error before '*' token nagios.h:483: parse error before '*' token nagios.h:484: parse error before '*' token nagios.h:485: parse error before '*' token nagios.h:486: parse error before '*' token nagios.h:487: parse error before '*' token nagios.h:492: parse error before '*' token nagios.h:493: parse error before '*' token nagios.h:496: parse error before '*' token nagios.h:497: parse error before '*' token nagios.h:498: parse error before '*' token nagios.h:499: parse error before '*' token nagios.h:500: parse error before '*' token nagios.h:501: parse error before '*' token In file included from checks.c:31: perfdata.h:34: parse error before '*' token perfdata.h:35: parse error before '*' token checks.c:71: parse error before '*' token checks.c:71: warning: data definition has no type or storage class checks.c:72: parse error before '*' token checks.c:72: warning: data definition has no type or storage class checks.c:85: parse error before '*' token checks.c: In function `run_service_check': checks.c:97: `temp_host' undeclared (first use in this function) checks.c:97: (Each undeclared identifier is reported only once checks.c:97: for each function it appears in.) checks.c:118: `svc' undeclared (first use in this function) checks.c:301: `SIGALRM' undeclared (first use in this function) checks.c: In function `reap_service_checks': checks.c:513: `temp_service' undeclared (first use in this function) checks.c:514: `temp_host' undeclared (first use in this function) checks.c:641: warning: assignment makes pointer from integer without a cast checks.c:642: warning: assignment makes pointer from integer without a cast checks.c:652: warning: assignment makes pointer from integer without a cast checks.c: At top level: checks.c:1161: parse error before '*' token checks.c: In function `check_service_dependencies': checks.c:1163: `temp_service' undeclared (first use in this function) checks.c:1174: `dependency_type' undeclared (first use in this function) checks.c:1178: `svc' undeclared (first use in this function) checks.c: At top level: checks.c:1213: parse error before '*' token checks.c: In function `check_host_dependencies': checks.c:1215: `temp_host' undeclared (first use in this function) checks.c:1225: `dependency_type' undeclared (first use in this function) checks.c:1229: `hst' undeclared (first use in this function) checks.c: In function `check_for_orphaned_services': checks.c:1257: `temp_service' undeclared (first use in this function) checks.c: In function `check_service_result_freshness': checks.c:1311: `temp_service' undeclared (first use in this function) checks.c: At top level: checks.c:1395: parse error before '*' token checks.c: In function `verify_route_to_host': checks.c:1403: `hst' undeclared (first use in this function) checks.c: At top level: checks.c:1415: parse error before '*' token checks.c: In function `check_host': checks.c:1418: `parent_host' undeclared (first use in this function) checks.c:1420: `child_host' undeclared (first use in this function) checks.c:1432: `hst' undeclared (first use in this function) checks.c:1469: `propagation_options' undeclared (first use in this function) checks.c: At top level: checks.c:1658: parse error before '*' token checks.c: In function `run_host_check': checks.c:1677: `hst' undeclared (first use in this function) checks.c:1752: warning: assignment makes pointer from integer without a cast checks.c:1774: warning: assignment makes pointer from integer without a cast make[1]: *** [checks.o] Error 1 make[1]: Leaving directory `/usr/src/nagios/nagios-1.0/base' make: *** [all] Error 2 TIA ------------------------------------------------------- This SF.NET email is sponsored by: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en _______________________________________________ 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From nagios at cerbernet.co.uk Fri Jan 17 14:53:27 2003 From: nagios at cerbernet.co.uk (Tony) Date: Fri, 17 Jan 2003 13:53:27 -0000 Subject: Compiling 1.0 on Redhat 8.0 In-Reply-To: <5593DA408212D511B0910002A513501F01D288A9@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288A9@phsexch20.mgh.harvard.edu> Message-ID: <005301c2be2f$cfb744f0$f81fc3c1@TONYS> No as far as I can remember I included all the libraries. I have been able to successfully compile and install other software. > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: 17 January 2003 13:50 > To: 'Tony' > Subject: RE: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > During your custom installation, did you specifically leave out any > libraries? > For example, the gcc and other compile libraries? > > -----Original Message----- > From: Tony [mailto:nagios at cerbernet.co.uk] > Sent: Friday, January 17, 2003 8:46 AM > To: Kaplan, Andrew H. > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > > I selected a custom install and selected everything I needed to run as a > server omitting stuff that a server install would install that I did not > want. > > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: 17 January 2003 13:43 > > To: 'Tony' > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > > > When you initially installed Red Hat, what type of installation did > you > > choose? > > > > -----Original Message----- > > From: Tony [mailto:nagios at cerbernet.co.uk] > > Sent: Friday, January 17, 2003 7:53 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Compiling 1.0 on Redhat 8.0 > > > > > > I am having problems compiling Nagios 1.0 on a Redhat 8.0 server. > > > > Has anyone else run by problems installing on RH8.0? > > > > Here is the configure line. > > > > ./configure --prefix=/home/nagios --with-cgiurl=/cgi-bin > > --with-htmurl=/nagios --with-nagios-user=nagios > --with-nagios-grp=nagios > > --with-gd --with-template-extinfo > > > > Here are just the error I get from running the configure line. > > > > sed: can't read conftest.vals: No such file or directory > > sed: can't read conftest.in: No such file or directory > > ./config.status: line 403: s%^\([: command not found > > ./config.status: line 404: s%^\([: command not found > > ./config.status: line 405: s%^\([: command not found > > ./config.status: line 406: s%^\([: command not found > > ./config.status: line 407: s%^\([: command not found > > ./config.status: line 408: s%^\([: command not found > > ./config.status: line 409: s%^\([: command not found > > ./config.status: line 410: s%^\([: command not found > > ./config.status: line 411: s%^\([: command not found > > ./config.status: line 412: s%^\([: command not found > > ./config.status: line 413: s%^\([: command not found > > ./config.status: line 414: s%^\([: command not found > > creating common/snprintf.h > > ./config.status: line 403: s%^\([: command not found > > ./config.status: line 404: s%^\([: command not found > > ./config.status: line 405: s%^\([: command not found > > ./config.status: line 406: s%^\([: command not found > > ./config.status: line 407: s%^\([: command not found > > ./config.status: line 408: s%^\([: command not found > > ./config.status: line 409: s%^\([: command not found > > ./config.status: line 410: s%^\([: command not found > > ./config.status: line 411: s%^\([: command not found > > ./config.status: line 412: s%^\([: command not found > > ./config.status: line 413: s%^\([: command not found > > ./config.status: line 414: s%^\([: command not found > > creating base/nagios.h > > sed: can't read conftest.in: No such file or directory > > ./config.status: line 403: s%^\([: command not found > > ./config.status: line 404: s%^\([: command not found > > ./config.status: line 405: s%^\([: command not found > > ./config.status: line 406: s%^\([: command not found > > ./config.status: line 407: s%^\([: command not found > > ./config.status: line 408: s%^\([: command not found > > ./config.status: line 409: s%^\([: command not found > > ./config.status: line 410: s%^\([: command not found > > ./config.status: line 411: s%^\([: command not found > > ./config.status: line 412: s%^\([: command not found > > ./config.status: line 413: s%^\([: command not found > > ./config.status: line 414: s%^\([: command not found > > creating cgi/cgiutils.h > > ./config.status: line 403: s%^\([: command not found > > ./config.status: line 404: s%^\([: command not found > > ./config.status: line 405: s%^\([: command not found > > ./config.status: line 406: s%^\([: command not found > > ./config.status: line 407: s%^\([: command not found > > ./config.status: line 408: s%^\([: command not found > > ./config.status: line 409: s%^\([: command not found > > ./config.status: line 410: s%^\([: command not found > > ./config.status: line 411: s%^\([: command not found > > ./config.status: line 412: s%^\([: command not found > > ./config.status: line 413: s%^\([: command not found > > ./config.status: line 414: s%^\([: command not found > > > > > > Here is the errors I get from running a make all > > > > make[1]: Entering directory `/usr/src/nagios/nagios-1.0/base' > > gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c > > In file included from ../common/statusdata.h:30, > > from checks.c:28: > > ../common/objects.h:126: parse error before "time_t" > > ../common/objects.h:126: warning: no semicolon at end of struct or > union > > ../common/objects.h:127: warning: data definition has no type or > storage > > class > > ../common/objects.h:128: parse error before "last_check" > > ../common/objects.h:128: warning: data definition has no type or > storage > > class > > ../common/objects.h:129: parse error before "last_state_change" > > ../common/objects.h:129: warning: data definition has no type or > storage > > class > > ../common/objects.h:145: parse error before > "last_state_history_update" > > ../common/objects.h:145: warning: data definition has no type or > storage > > class > > ../common/objects.h:153: parse error before '}' token > > ../common/objects.h:153: warning: data definition has no type or > storage > > class > > ../common/objects.h:252: parse error before "time_t" > > ../common/objects.h:252: warning: no semicolon at end of struct or > union > > ../common/objects.h:254: parse error before "last_check" > > ../common/objects.h:254: warning: data definition has no type or > storage > > class > > ../common/objects.h:256: parse error before "last_notification" > > ../common/objects.h:256: warning: data definition has no type or > storage > > class > > ../common/objects.h:257: parse error before "next_notification" > > ../common/objects.h:257: warning: data definition has no type or > storage > > class > > ../common/objects.h:260: parse error before "last_state_change" > > ../common/objects.h:260: warning: data definition has no type or > storage > > class > > ../common/objects.h:284: conflicting types for `next' > > ../common/objects.h:152: previous declaration of `next' > > ../common/objects.h:285: parse error before '}' token > > ../common/objects.h:285: warning: data definition has no type or > storage > > class > > ../common/objects.h:392: parse error before '*' token > > ../common/objects.h:392: warning: data definition has no type or > storage > > class > > ../common/objects.h:393: parse error before '*' token > > ../common/objects.h:402: parse error before '*' token > > ../common/objects.h:402: warning: data definition has no type or > storage > > class > > ../common/objects.h:403: parse error before '*' token > > ../common/objects.h:416: parse error before '*' token > > ../common/objects.h:416: parse error before "host" > > ../common/objects.h:416: warning: data definition has no type or > storage > > class > > ../common/objects.h:423: parse error before '*' token > > ../common/objects.h:423: parse error before "service" > > ../common/objects.h:423: warning: data definition has no type or > storage > > class > > ../common/objects.h:427: parse error before '*' token > > ../common/objects.h:428: parse error before '*' token > > ../common/objects.h:429: parse error before '*' token > > ../common/objects.h:430: parse error before "host" > > ../common/objects.h:433: parse error before '*' token > > ../common/objects.h:434: parse error before '*' token > > ../common/objects.h:435: parse error before '*' token > > ../common/objects.h:436: parse error before '*' token > > ../common/objects.h:437: parse error before '*' token > > ../common/objects.h:439: parse error before '*' token > > ../common/objects.h:440: parse error before '*' token > > ../common/objects.h:441: parse error before '*' token > > ../common/objects.h:442: parse error before '*' token > > ../common/objects.h:445: parse error before '*' token > > In file included from checks.c:28: > > ../common/statusdata.h:151: parse error before '*' token > > ../common/statusdata.h:152: parse error before '*' token > > In file included from checks.c:29: > > ../common/downtime.h:40: parse error before "time_t" > > ../common/downtime.h:40: warning: no semicolon at end of struct or > union > > ../common/downtime.h:41: warning: data definition has no type or > storage > > class > > ../common/downtime.h:42: parse error before "end_time" > > ../common/downtime.h:42: warning: data definition has no type or > storage > > class > > ../common/downtime.h:54: conflicting types for `next' > > ../common/objects.h:284: previous declaration of `next' > > ../common/downtime.h:55: parse error before '}' token > > ../common/downtime.h:55: warning: data definition has no type or > storage > > class > > ../common/downtime.h:63: parse error before "time_t" > > ../common/downtime.h:64: parse error before "time_t" > > ../common/downtime.h:65: parse error before "time_t" > > ../common/downtime.h:71: parse error before "time_t" > > ../common/downtime.h:75: parse error before '*' token > > ../common/downtime.h:77: parse error before '*' token > > ../common/downtime.h:78: parse error before '*' token > > ../common/downtime.h:89: parse error before "time_t" > > ../common/downtime.h:90: parse error before "time_t" > > ../common/downtime.h:91: parse error before "time_t" > > ../common/downtime.h:93: parse error before '*' token > > ../common/downtime.h:93: warning: data definition has no type or > storage > > class > > ../common/downtime.h:94: parse error before '*' token > > ../common/downtime.h:94: warning: data definition has no type or > storage > > class > > In file included from checks.c:30: > > nagios.h:325: parse error before '*' token > > nagios.h:327: parse error before '*' token > > nagios.h:328: parse error before '*' token > > nagios.h:336: parse error before '*' token > > nagios.h:337: parse error before '*' token > > nagios.h:338: parse error before '*' token > > nagios.h:339: parse error before '*' token > > nagios.h:340: parse error before '*' token > > nagios.h:341: parse error before '*' token > > nagios.h:344: parse error before '*' token > > nagios.h:345: parse error before '*' token > > nagios.h:346: parse error before '*' token > > nagios.h:347: parse error before '*' token > > nagios.h:351: parse error before '*' token > > nagios.h:352: parse error before '*' token > > nagios.h:353: parse error before '*' token > > nagios.h:354: parse error before '*' token > > nagios.h:358: parse error before '*' token > > nagios.h:359: parse error before '*' token > > nagios.h:360: parse error before '*' token > > nagios.h:361: parse error before '*' token > > nagios.h:362: parse error before '*' token > > nagios.h:363: parse error before '*' token > > nagios.h:364: parse error before '*' token > > nagios.h:365: parse error before '*' token > > nagios.h:366: parse error before '*' token > > nagios.h:370: parse error before '*' token > > nagios.h:371: parse error before '*' token > > nagios.h:372: parse error before '*' token > > nagios.h:373: parse error before '*' token > > nagios.h:374: parse error before "service" > > nagios.h:375: parse error before "service" > > nagios.h:376: parse error before '*' token > > nagios.h:377: parse error before '*' token > > nagios.h:378: parse error before '*' token > > nagios.h:379: parse error before '*' token > > nagios.h:380: parse error before '*' token > > nagios.h:381: parse error before "host" > > nagios.h:382: parse error before "host" > > nagios.h:383: parse error before '*' token > > nagios.h:384: parse error before '*' token > > nagios.h:387: parse error before '*' token > > nagios.h:388: parse error before '*' token > > nagios.h:395: parse error before '*' token > > nagios.h:396: parse error before '*' token > > nagios.h:427: parse error before '*' token > > nagios.h:428: parse error before '*' token > > nagios.h:473: parse error before '*' token > > nagios.h:474: parse error before '*' token > > nagios.h:475: parse error before '*' token > > nagios.h:478: parse error before '*' token > > nagios.h:479: parse error before '*' token > > nagios.h:480: parse error before '*' token > > nagios.h:481: parse error before '*' token > > nagios.h:482: parse error before '*' token > > nagios.h:483: parse error before '*' token > > nagios.h:484: parse error before '*' token > > nagios.h:485: parse error before '*' token > > nagios.h:486: parse error before '*' token > > nagios.h:487: parse error before '*' token > > nagios.h:492: parse error before '*' token > > nagios.h:493: parse error before '*' token > > nagios.h:496: parse error before '*' token > > nagios.h:497: parse error before '*' token > > nagios.h:498: parse error before '*' token > > nagios.h:499: parse error before '*' token > > nagios.h:500: parse error before '*' token > > nagios.h:501: parse error before '*' token > > In file included from checks.c:31: > > perfdata.h:34: parse error before '*' token > > perfdata.h:35: parse error before '*' token > > checks.c:71: parse error before '*' token > > checks.c:71: warning: data definition has no type or storage class > > checks.c:72: parse error before '*' token > > checks.c:72: warning: data definition has no type or storage class > > checks.c:85: parse error before '*' token > > checks.c: In function `run_service_check': > > checks.c:97: `temp_host' undeclared (first use in this function) > > checks.c:97: (Each undeclared identifier is reported only once > > checks.c:97: for each function it appears in.) > > checks.c:118: `svc' undeclared (first use in this function) > > checks.c:301: `SIGALRM' undeclared (first use in this function) > > checks.c: In function `reap_service_checks': > > checks.c:513: `temp_service' undeclared (first use in this function) > > checks.c:514: `temp_host' undeclared (first use in this function) > > checks.c:641: warning: assignment makes pointer from integer without a > > cast > > checks.c:642: warning: assignment makes pointer from integer without a > > cast > > checks.c:652: warning: assignment makes pointer from integer without a > > cast > > checks.c: At top level: > > checks.c:1161: parse error before '*' token > > checks.c: In function `check_service_dependencies': > > checks.c:1163: `temp_service' undeclared (first use in this function) > > checks.c:1174: `dependency_type' undeclared (first use in this > function) > > checks.c:1178: `svc' undeclared (first use in this function) > > checks.c: At top level: > > checks.c:1213: parse error before '*' token > > checks.c: In function `check_host_dependencies': > > checks.c:1215: `temp_host' undeclared (first use in this function) > > checks.c:1225: `dependency_type' undeclared (first use in this > function) > > checks.c:1229: `hst' undeclared (first use in this function) > > checks.c: In function `check_for_orphaned_services': > > checks.c:1257: `temp_service' undeclared (first use in this function) > > checks.c: In function `check_service_result_freshness': > > checks.c:1311: `temp_service' undeclared (first use in this function) > > checks.c: At top level: > > checks.c:1395: parse error before '*' token > > checks.c: In function `verify_route_to_host': > > checks.c:1403: `hst' undeclared (first use in this function) > > checks.c: At top level: > > checks.c:1415: parse error before '*' token > > checks.c: In function `check_host': > > checks.c:1418: `parent_host' undeclared (first use in this function) > > checks.c:1420: `child_host' undeclared (first use in this function) > > checks.c:1432: `hst' undeclared (first use in this function) > > checks.c:1469: `propagation_options' undeclared (first use in this > > function) > > checks.c: At top level: > > checks.c:1658: parse error before '*' token > > checks.c: In function `run_host_check': > > checks.c:1677: `hst' undeclared (first use in this function) > > checks.c:1752: warning: assignment makes pointer from integer without > a > > cast > > checks.c:1774: warning: assignment makes pointer from integer without > a > > cast > > make[1]: *** [checks.o] Error 1 > > make[1]: Leaving directory `/usr/src/nagios/nagios-1.0/base' > > make: *** [all] Error 2 > > > > > > TIA > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Thawte.com > > Understand how to protect your customers personal information by > > implementing > > SSL on your Apache Web Server. Click here to get our FREE Thawte > Apache > > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > > _______________________________________________ > > 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: Thawte.com Understand how to protect your customers personal information by implementing SSL on your Apache Web Server. Click here to get our FREE Thawte Apache Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en From Ton.Voon at egg.com Fri Jan 17 16:30:46 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Fri, 17 Jan 2003 15:30:46 -0000 Subject: Compiling check_nt.c Message-ID: <53104E20A25CD411B556009027E50636064D512A@pnnemp02.pn.egg.com> Welcome to Nagios! Look at sourceforge's patches for nagiosplug. There is one by Fabian Pehla which converts all the ssprintf to asprintf calls. Ton > -----Original Message----- > From: Craig Emsley [SMTP:Craig.Emsley at document.co.uk] > Sent: Friday, January 17, 2003 1:02 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Compiling check_nt.c > > Hi > > This is my first attempt at configuring nagios and although I am finding > it > enjoyable I am finding it taxing. So I apologise now if I am asking dumb > questions. > > I am running nagios-1.0 on Red Hat 7.3 and everything is fine until I > attempt to install NSClient 1.0.7.1. The windows client is fine the > problem > arises when I come to compile the check_nt.c file on the Linux box, it > returns the error message 'undefined reference to 'ssprintf'. Please can > somebody point me in the right direction. > > Craig > Apprentice Nagios User > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users 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: 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 From jcarro10 at sprintspectrum.com Fri Jan 17 17:14:15 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 10:14:15 -0600 Subject: NSClient - 38 OK and 1 Down Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E131A@PKDWB03C.ad.sprint.com> This definitely sounds like something which would be of value in the FAQ. Would you be so kind as to add it in, sir? It might not be a 'frequently' asked question, but it's odd enough that I'm sure many would benefit from your wisdom. jc > -----Original Message----- > From: Pehla, Fabian [mailto:Fabian.Pehla at Dregis.com] > Sent: Friday, January 17, 2003 2:22 AM > To: 'sandro vaz'; nagios-users at lists.sourceforge.net > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > Subject: RE: [Nagios-users] NSClient - 38 OK and 1 Down > > > Hi, > > I also found such entries in my EventLog. As I recall, it was > an issue with > the Language NSClient 1.07.1 detects and uses for its checks. > > Take a look at your Application Log: When NSClient 1.07.1 > starts up, it > mentions the Language it uses (some Hex-Code like 0x0407). On > my German > systems (which would have Code 0x0409) NSClient detected > 0x0407 (= english). > So I just modified the counters.defs that comes with 1.07.1 > to label the > german counters with 0x0407 and everything went fine. > > -- > fp > > > > -----Original Message----- > From: sandro vaz [mailto:sandro at opservices.com.br] > Sent: Friday, January 17, 2003 12:31 AM > To: nagios-users at lists.sourceforge.net > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > Subject: [Nagios-users] NSClient - 38 OK and 1 Down > > > Nagiosmates: > > Today we have deployed 39 NT/W2K NSClients, almost with 100% > success. But in > one English NT4+SP6a, we have installed and Distrib-1.07.zip, and just > received a "Connection refused by host" message. > > Then, uninstalled this version and installed the fresh new version > Distrib-1.07.1.zip, but the messages was even more strange at > each Nagios > Server connection: "Division by zero" at NT Event Log. > > We tripled checked the counters.defs counters syntaxes, but > it's just the > same (no portuguese version, nothing beyond the regular installation). > > Some one has any idea, hint, tip, pray, "macumba" to solve > this problem? > > Thank you all very much in advance. > > Sandro Vaz > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: 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 From jcarro10 at sprintspectrum.com Fri Jan 17 17:17:52 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 10:17:52 -0600 Subject: windows status information Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E131B@PKDWB03C.ad.sprint.com> http://nsclient.ready2run.nl > -----Original Message----- > From: code at php-db.com [mailto:code at php-db.com] > Sent: Thursday, January 16, 2003 10:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] windows status information > > > Hello, > > I wonder if anyone can help me with the following question: > > With nagios, is it possible to get host status information > like processor > load and memory usage for windows machines? I know you can do > this with > linux/ unix hosts but I can't seem to find if this is > possible for windows > boxes. Where can I get information about this? > > Thanks a lot! > > Rgds, > Rui Alves > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: 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 From Lane.Williams at jhuapl.edu Fri Jan 17 17:42:29 2003 From: Lane.Williams at jhuapl.edu (Williams, P. Lane) Date: Fri, 17 Jan 2003 11:42:29 -0500 Subject: system availability avail.cgi Message-ID: 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 From nagios at broadbus.com Fri Jan 17 17:56:07 2003 From: nagios at broadbus.com (nagios) Date: Fri, 17 Jan 2003 11:56:07 -0500 Subject: Error using nagios start scripts on RH 8.0 Message-ID: <3B83C5E7EAB53F44A16CDFB70F9E4BF3CD49@btiexch01.broadbus.com> Hi folks, I recently installed Nagios on a RedHat 8.0 system and in the install process I opted to install the sample nagios start/stop script in /etc/init.d. When I try and use the script to start Nagios I get the following error: Starting network monitor: nagios ps: error: List of process IDs must follow -p. usage: ps -[Unix98 options] ps [BSD-style options] ps --[GNU-style long options] ps --help for a command summary Sorry if this is a duplicate message but I didn't find any help searching the archives of the list. thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From vfort at provident-solutions.com Fri Jan 17 18:22:29 2003 From: vfort at provident-solutions.com (Vernon A. Fort) Date: Fri, 17 Jan 2003 11:22:29 -0600 Subject: Newbie SNMP Question Message-ID: I have managed to get nagios running very well, works like a champ - great software. I now need to start the snmp setup and have very little experience with snmp. Can anyone point me do basic documentation, "Snmp-for-dummies" so to speak? I am wanting to monitor my 45 cisco routers as well and some unix server vi snmp (specifically network traffic monitoring as well as real-time router monitoring), looking for bottle-necks and telco line errors and such. From what I have read, snmp is the way to go so any suggestions would be most helpful. Vernon ----------------------------------- Vernon A. Fort (Andy) Provident Solutions, LLC (615) 427-4016 http://www.provident-solutions.com -------------- next part -------------- A non-text attachment was scrubbed... Name: winmail.dat Type: application/ms-tnef Size: 3500 bytes Desc: not available URL: From ken.snider at datawire.net Fri Jan 17 18:30:41 2003 From: ken.snider at datawire.net (Ken Snider) Date: Fri, 17 Jan 2003 12:30:41 -0500 Subject: Issues with NSCA In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1316@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1316@PKDWB03C.ad.sprint.com> Message-ID: <3E283DC1.5040401@datawire.net> Carroll, Jim P [Contractor] wrote: > What's your service_reaper_frequency set to? If it's set to 10, lower it to > 5. Restart nagios and see what happens. I did so, and it did not seem to have any noticeable effect. I think, however, that I've found the problem. I turned on debugging on nsca earlier to see if I could get more details.. What I found was that nsca seems to only be able to handle a few connections on startup, then blocks until they finish before trying to handle the others. The problem is, send_nsca times out after 10 seconds, and the trailing connections don't actually get processed. Here are all the timestamps. Look at the times the connections were "handled": Jan 17 06:26:00 nms nsca[30165]: Handling the connection... Jan 17 06:26:00 nms nsca[30166]: Handling the connection... Jan 17 06:26:00 nms nsca[30167]: Handling the connection... Jan 17 06:26:00 nms nsca[30168]: Handling the connection... Jan 17 06:26:00 nms nsca[30169]: Handling the connection... Jan 17 06:26:00 nms nsca[30170]: Handling the connection... Jan 17 06:26:00 nms nsca[30171]: Handling the connection... Jan 17 06:26:00 nms nsca[30172]: Handling the connection... Jan 17 06:26:00 nms nsca[30173]: Handling the connection... Jan 17 06:26:00 nms nsca[30174]: Handling the connection... Jan 17 06:26:01 nms nsca[30175]: Handling the connection... Jan 17 06:26:01 nms nsca[30176]: Handling the connection... Jan 17 06:26:01 nms nsca[30177]: Handling the connection... Jan 17 06:26:01 nms nsca[30178]: Handling the connection... Jan 17 06:26:01 nms nsca[30179]: Handling the connection... Jan 17 06:26:01 nms nsca[30180]: Handling the connection... Jan 17 06:26:01 nms nsca[30181]: Handling the connection... Jan 17 06:26:01 nms nsca[30182]: Handling the connection... Jan 17 06:26:01 nms nsca[30183]: Handling the connection... Jan 17 06:26:01 nms nsca[30184]: Handling the connection... Jan 17 06:26:01 nms nsca[30185]: Handling the connection... Jan 17 06:26:01 nms nsca[30186]: Handling the connection... Jan 17 06:26:01 nms nsca[30187]: Handling the connection... Jan 17 06:26:01 nms nsca[30188]: Handling the connection... Jan 17 06:26:01 nms nsca[30189]: Handling the connection... Jan 17 06:26:02 nms nsca[30197]: Handling the connection... Jan 17 06:26:04 nms nsca[30207]: Handling the connection... Jan 17 06:26:08 nms nsca[30227]: Handling the connection... Jan 17 06:26:12 nms nsca[30256]: Handling the connection... Jan 17 06:26:15 nms nsca[30295]: Handling the connection... Jan 17 06:26:17 nms nsca[30299]: Handling the connection... Jan 17 06:26:18 nms nsca[30317]: Handling the connection... Jan 17 06:26:19 nms nsca[30320]: Handling the connection... Jan 17 06:26:19 nms nsca[30321]: Handling the connection... Jan 17 06:26:20 nms nsca[30325]: Handling the connection... Jan 17 06:26:20 nms nsca[30326]: Handling the connection... Jan 17 06:26:20 nms nsca[30327]: Handling the connection... Jan 17 06:26:20 nms nsca[30328]: Handling the connection... Jan 17 06:26:20 nms nsca[30329]: Handling the connection... Jan 17 06:26:22 nms nsca[30346]: Handling the connection... a ton are handled immediately, but then there's a pretty big hole where none are. From what I can tell, the connections *are* handled more or less within 1-2 seconds - our time is in sync enough to have most boxes return data in that time frame. That means, by :11 or :12 or so, send_nsca has timed out, and those service checks will likely fail. This theory is supported by the status of all the service checks run *after* :10.. as you'll see here: Jan 17 06:26:02 nms nsca[30165]: End of connection or could not read request from client... Jan 17 06:26:12 nms nsca[30227]: End of connection or could not read request from client... Jan 17 06:26:13 nms nsca[30166]: End of connection or could not read request from client... Jan 17 06:26:14 nms nsca[30167]: End of connection or could not read request from client... Jan 17 06:26:14 nms nsca[30168]: End of connection or could not read request from client... Jan 17 06:26:15 nms nsca[30169]: End of connection or could not read request from client... Jan 17 06:26:15 nms nsca[30256]: End of connection or could not read request from client... Jan 17 06:26:15 nms nsca[30170]: End of connection or could not read request from client... Jan 17 06:26:16 nms nsca[30171]: End of connection or could not read request from client... Jan 17 06:26:16 nms nsca[30172]: End of connection or could not read request from client... Jan 17 06:26:17 nms nsca[30173]: End of connection or could not read request from client... Jan 17 06:26:17 nms nsca[30174]: End of connection or could not read request from client... Jan 17 06:26:17 nms nsca[30175]: End of connection or could not read request from client... Jan 17 06:26:17 nms nsca[30176]: End of connection or could not read request from client... Jan 17 06:26:17 nms nsca[30177]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30178]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30179]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30180]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30181]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30182]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30183]: End of connection or could not read request from client... Jan 17 06:26:18 nms nsca[30184]: End of connection or could not read request from client... Jan 17 06:26:19 nms nsca[30295]: End of connection or could not read request from client... Jan 17 06:26:19 nms nsca[30185]: End of connection or could not read request from client... Jan 17 06:26:19 nms nsca[30186]: End of connection or could not read request from client... Jan 17 06:26:19 nms nsca[30187]: End of connection or could not read request from client... Jan 17 06:26:19 nms nsca[30188]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30299]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30189]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30317]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30320]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30321]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30197]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30325]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30326]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30327]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30328]: End of connection or could not read request from client... Jan 17 06:26:20 nms nsca[30329]: End of connection or could not read request from client... Jan 17 06:26:21 nms nsca[30207]: End of connection or could not read request from client... Jan 17 06:26:22 nms nsca[30346]: End of connection or could not read request from client... Now, note that this message indicates nothing really, a successful and an unsuccessful run ends with the same message. BUT, pick a PID *after* :10 and find its' termination time above, and compare that with a PID *before* :10. Those connections can take up to 20 seconds to close, but the latter ones close within the first second (assumably because the client nsca has hung up). Changing the send_nsca timeout to 60 seconds *completely* eliminated the problem. However, that now poses an even *more* confusing question, namely, why nsca, running from xinetd, did *not* handle the connections at once, as it should have. As I said before, xinetd is setup to allow for 200 concurrent connections, and there are no other services it is handling, so the issue was not xinetd refusing the connections, but NSCA not handling them. I think we're up against some sort of resource limitation, either in nagios, Linux, or nsca(d), since, in theory, xinetd should happily spawn up to 200 nsca processes to handle the incoming load, but it appears nsca itself won't actually process that many. -- Ken Snider Senior Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- 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 From slebrun at muskoka.com Fri Jan 17 18:32:53 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Fri, 17 Jan 2003 12:32:53 -0500 Subject: aggregated status messages In-Reply-To: <3B83C5E7EAB53F44A16CDFB70F9E4BF3CD49@btiexch01.broadbus.com> References: <3B83C5E7EAB53F44A16CDFB70F9E4BF3CD49@btiexch01.broadbus.com> Message-ID: One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails. Also, if a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. Makes it more efficient for mobile devices reciving said emails, too. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Fri Jan 17 18:46:03 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 17 Jan 2003 09:46:03 -0800 (PST) Subject: system availability avail.cgi In-Reply-To: References: Message-ID: <20030117174603.20812.qmail@web21510.mail.yahoo.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: daily-avail-stats.pl Type: application/octet-stream Size: 102 bytes Desc: daily-avail-stats.pl URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: avail-stats.pl Type: application/octet-stream Size: 6071 bytes Desc: avail-stats.pl URL: -------------- next part -------------- A non-text attachment was scrubbed... Name: weekly-avail-stats.pl Type: application/octet-stream Size: 231 bytes Desc: weekly-avail-stats.pl URL: From mpowell at ena.com Fri Jan 17 18:55:34 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 17 Jan 2003 11:55:34 -0600 Subject: aggregated status messages Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED132@mismail.ena.com> Check out http://www.nachtwache.org/projects/netsaint/utilities/nans/ I've never used it but appears to fit the bill. As far as your second comment, you might want to read about parent hosts in the documentation and this FAQ entry: http://www.nagios.org/faqs/viewfaq.php?faq_id=14 -- Marc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] aggregated status messages One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. ? That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails.? Also, if?a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. ? Makes it more efficient for mobile devices reciving said emails, too. ? 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: 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 From sandromergvaz at uol.com.br Fri Jan 17 19:27:52 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Fri, 17 Jan 2003 16:27:52 -0200 Subject: RES: NSClient - 38 OK and 1 Down In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E131A@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E131A@PKDWB03C.ad.sprint.com> Message-ID: It's works now! For some reason, the pNSClient chooses the wrong language (here it was portuguese 0x416). Just copy and paste the english original's counters definitions to the correct language section, and then restart the service. Tks Fabian, you should now receive the honors, writing the FAQ and sending to Ethan. Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Carroll, Jim P [Contractor] Enviada em: sexta-feira, 17 de janeiro de 2003 14:14 Para: 'Pehla, Fabian'; nagios-users at lists.sourceforge.net Assunto: RE: [Nagios-users] NSClient - 38 OK and 1 Down This definitely sounds like something which would be of value in the FAQ. Would you be so kind as to add it in, sir? It might not be a 'frequently' asked question, but it's odd enough that I'm sure many would benefit from your wisdom. jc > -----Original Message----- > From: Pehla, Fabian [mailto:Fabian.Pehla at Dregis.com] > Sent: Friday, January 17, 2003 2:22 AM > To: 'sandro vaz'; nagios-users at lists.sourceforge.net > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > Subject: RE: [Nagios-users] NSClient - 38 OK and 1 Down > > > Hi, > > I also found such entries in my EventLog. As I recall, it was an issue > with the Language NSClient 1.07.1 detects and uses for its checks. > > Take a look at your Application Log: When NSClient 1.07.1 starts up, > it mentions the Language it uses (some Hex-Code like 0x0407). On > my German > systems (which would have Code 0x0409) NSClient detected > 0x0407 (= english). > So I just modified the counters.defs that comes with 1.07.1 > to label the > german counters with 0x0407 and everything went fine. > > -- > fp > > > > -----Original Message----- > From: sandro vaz [mailto:sandro at opservices.com.br] > Sent: Friday, January 17, 2003 12:31 AM > To: nagios-users at lists.sourceforge.net > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > Subject: [Nagios-users] NSClient - 38 OK and 1 Down > > > Nagiosmates: > > Today we have deployed 39 NT/W2K NSClients, almost with 100% success. > But in one English NT4+SP6a, we have installed and Distrib-1.07.zip, > and just received a "Connection refused by host" message. > > Then, uninstalled this version and installed the fresh new version > Distrib-1.07.1.zip, but the messages was even more strange at each > Nagios Server connection: "Division by zero" at NT Event Log. > > We tripled checked the counters.defs counters syntaxes, but it's just > the same (no portuguese version, nothing beyond the regular > installation). > > Some one has any idea, hint, tip, pray, "macumba" to solve this > problem? > > Thank you all very much in advance. > > Sandro Vaz > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by > implementing SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: Thawte.com > Understand how to protect your customers personal information by > implementing SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 ------------------------------------------------------- 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 From jsm at inpro.net Fri Jan 17 20:22:13 2003 From: jsm at inpro.net (Jeff McKeon) Date: 17 Jan 2003 14:22:13 -0500 Subject: UPS Monitoring Message-ID: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> 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 From GPotter at MarathonOil.com Fri Jan 17 20:04:57 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 17 Jan 2003 13:04:57 -0600 Subject: Newbie SNMP Question Message-ID: Here is a link to some SNMP info. It will point to lot's of other links as well. HTH! Greg http://www.faqs.org/faqs/snmp-faq/ > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf > Of Vernon A. Fort > Sent: Friday, January 17, 2003 11:22 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Newbie SNMP Question > > I have managed to get nagios running very well, works like a > champ - great software. I now need to start the snmp setup > and have very little experience with snmp. Can anyone point > me do basic documentation, "Snmp-for-dummies" so to speak? > > I am wanting to monitor my 45 cisco routers as well and some > unix server vi snmp (specifically network traffic monitoring > as well as real-time router monitoring), looking for > bottle-necks and telco line errors and such. From what I > have read, snmp is the way to go so any suggestions would be > most helpful. > > Vernon > > ----------------------------------- > Vernon A. Fort (Andy) > Provident Solutions, LLC > (615) 427-4016 http://www.provident-solutions.com > -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 17 20:51:35 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 13:51:35 -0600 Subject: NSClient - 38 OK and 1 Down Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E131E@PKDWB03C.ad.sprint.com> Actually, new submissions for the FAQ can be entered directly on www.nagios.org jc > -----Original Message----- > From: Sandro Vaz (UOL) [mailto:sandromergvaz at uol.com.br] > Sent: Friday, January 17, 2003 12:28 PM > To: Carroll, Jim P [Contractor]; 'Pehla, Fabian'; > nagios-users at lists.sourceforge.net > Subject: RES: [Nagios-users] NSClient - 38 OK and 1 Down > > > It's works now! > > For some reason, the pNSClient chooses the wrong language (here it was > portuguese 0x416). > > Just copy and paste the english original's counters definitions to the > correct language section, and then restart the service. > > Tks Fabian, you should now receive the honors, writing the > FAQ and sending > to Ethan. > > Sandro Vaz > > -----Mensagem original----- > De: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de > Carroll, Jim P > [Contractor] Enviada em: sexta-feira, 17 de janeiro de 2003 14:14 > Para: 'Pehla, Fabian'; nagios-users at lists.sourceforge.net > Assunto: RE: [Nagios-users] NSClient - 38 OK and 1 Down > > > This definitely sounds like something which would be of value > in the FAQ. > Would you be so kind as to add it in, sir? > > It might not be a 'frequently' asked question, but it's odd > enough that I'm > sure many would benefit from your wisdom. > > jc > > > -----Original Message----- > > From: Pehla, Fabian [mailto:Fabian.Pehla at Dregis.com] > > Sent: Friday, January 17, 2003 2:22 AM > > To: 'sandro vaz'; nagios-users at lists.sourceforge.net > > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > > Subject: RE: [Nagios-users] NSClient - 38 OK and 1 Down > > > > > > Hi, > > > > I also found such entries in my EventLog. As I recall, it > was an issue > > with the Language NSClient 1.07.1 detects and uses for its checks. > > > > Take a look at your Application Log: When NSClient 1.07.1 > starts up, > > it mentions the Language it uses (some Hex-Code like 0x0407). On > > my German > > systems (which would have Code 0x0409) NSClient detected > > 0x0407 (= english). > > So I just modified the counters.defs that comes with 1.07.1 > > to label the > > german counters with 0x0407 and everything went fine. > > > > -- > > fp > > > > > > > > -----Original Message----- > > From: sandro vaz [mailto:sandro at opservices.com.br] > > Sent: Friday, January 17, 2003 12:31 AM > > To: nagios-users at lists.sourceforge.net > > Cc: 'Alessandro Ren'; dbestetti at opservices.com.br > > Subject: [Nagios-users] NSClient - 38 OK and 1 Down > > > > > > Nagiosmates: > > > > Today we have deployed 39 NT/W2K NSClients, almost with > 100% success. > > But in one English NT4+SP6a, we have installed and > Distrib-1.07.zip, > > and just received a "Connection refused by host" message. > > > > Then, uninstalled this version and installed the fresh new version > > Distrib-1.07.1.zip, but the messages was even more strange at each > > Nagios Server connection: "Division by zero" at NT Event Log. > > > > We tripled checked the counters.defs counters syntaxes, but > it's just > > the same (no portuguese version, nothing beyond the regular > > installation). > > > > Some one has any idea, hint, tip, pray, "macumba" to solve this > > problem? > > > > Thank you all very much in advance. > > > > Sandro Vaz > > > > --- > > Outgoing mail is certified Virus Free. > > Checked by AVG anti-virus system (http://www.grisoft.com). > > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: Thawte.com > > Understand how to protect your customers personal information by > > implementing SSL on your Apache Web Server. Click here to > get our FREE > > Thawte Apache > > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > > _______________________________________________ > > 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: Thawte.com > > Understand how to protect your customers personal information by > > implementing SSL on your Apache Web Server. Click here to > get our FREE > > Thawte Apache > > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > > _______________________________________________ > > 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: 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 > > --- > Incoming mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Fri Jan 17 20:47:52 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 13:47:52 -0600 Subject: aggregated status messages Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E131C@PKDWB03C.ad.sprint.com> Read up on the 'parents' directive. Sounds like this will do exactly what you're looking for. (This was one of the main reasons we switched from BB to Nagios.) http://nagios.webdev.sprintspectrum.com/nagios/docs/xodtemplate.html#host jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] aggregated status messages One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails. Also, if a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. Makes it more efficient for mobile devices reciving said emails, too. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at broadbus.com Fri Jan 17 20:58:30 2003 From: nagios at broadbus.com (nagios) Date: Fri, 17 Jan 2003 14:58:30 -0500 Subject: Anyone using RedHat 8.0 with Nagios 1.0? Message-ID: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9C7@btiexch01.broadbus.com> Sunil Mudholkar Manager - IT Broadbus Technologies, Inc. sunilm at broadbus.com (978) 264-7910 80 Central St. Boxborough, MA 01719 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at broadbus.com Fri Jan 17 21:11:47 2003 From: nagios at broadbus.com (nagios) Date: Fri, 17 Jan 2003 15:11:47 -0500 Subject: Anyone using RedHat 8.0 with Nagios 1.0? Message-ID: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9C8@btiexch01.broadbus.com> Are you able to use the "nagios start" and "nagios stop" commands to start and stop the service from /etc/init.d? For some reason my script (straight from the installation w/ no modifications) doesn't work properly so I am trying to compare it to someone elses. Any help is greatly appreciated! Thanks, Sunil sunil at broadbus.com -----Original Message----- From: Williams, P. Lane [mailto:Lane.Williams at jhuapl.edu] Posted At: Friday, January 17, 2003 3:02 PM Posted To: nagios Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? yes. -----Original Message----- From: nagios [mailto:nagios at broadbus.com] Sent: Friday, January 17, 2003 2:59 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Sunil Mudholkar Manager - IT Broadbus Technologies, Inc. sunilm at broadbus.com (978) 264-7910 80 Central St. Boxborough, MA 01719 -------------- next part -------------- An HTML attachment was scrubbed... URL: From Eamon.Garland at telecity.com Fri Jan 17 21:24:11 2003 From: Eamon.Garland at telecity.com (Eamon.Garland at telecity.com) Date: Fri, 17 Jan 2003 20:24:11 -0000 Subject: install Message-ID: <0F7D9E930058D411B84600508BEED49856767A@DUB1> How do i Run the configure script to initialize variables and create a Makefile as follows... ./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl --with-nagios-user=someuser --with-nagios-grp=somegroup Eamon. DISCLAIMER This e-mail is intended only for the use of the addressees named above and may be confidential. If you are not an addressee you must not use any information contained in nor copy it nor inform any person other than TeleCity or the addressees of its existence or contents. If you have received this e-mail in error, please contact the TeleCity IT department on +44 (0) 161 232 3220 or by email at techsupport at telecity.com. Internet communications cannot be guaranteed 100% secure, you should therefore take this potential lack of security into consideration when emailing us as we do not accept legal responsibility for the security of the contents of this or other emails. Whilst TeleCity take measures to prevent any virus contamination of our computer systems, recipients of emails should always ensure that they take their own precautions to avoid virus contamination. ------------------------------------------------------- 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 From setzer at placemark.com Fri Jan 17 21:35:41 2003 From: setzer at placemark.com (setzer at placemark.com) Date: Fri, 17 Jan 2003 14:35:41 -0600 Subject: Newbie SNMP Question In-Reply-To: References: Message-ID: <20030117203541.GZ22673@placemark.com> > From: "Vernon A. Fort" > To: > Date: Fri, 17 Jan 2003 11:22:29 -0600 > > I have managed to get nagios running very well, works like a champ - great > software. I now need to start the snmp setup and have very little > experience with snmp. Can anyone point me do basic documentation, > "Snmp-for-dummies" so to speak? > > I am wanting to monitor my 45 cisco routers as well and some unix server vi > snmp (specifically network traffic monitoring as well as real-time router 1) Make sure SNMP is enabled on your routers. Quick and dirty (and unsafe): router#conf t router(config)#snmp-server community public ro router(config)#^Z 2) Make sure snmpd is installed on your linux boxes. If you have solaris, disable the snmpd master agent as well as dmi. Install net-snmp from http://www.net-snmp.org/ per the instructions. 3) Edit your /etc/snmp/snmpd.conf. You will need to have disk and load entries in order for the snmpd to report those. You will also need to allow access for your nagios server. Quick, dirty, unsafe: # /etc/snmp/snmpd.conf rocommunity public 192.168.1.3 # nagios server IP syslocation Somewhere syscontact Me disk / 10000 disk /var 55 load 5 5 5 4) From the nagios server (which has snmp installed, right?), test the above with: snmpwalk -m ALL -v 1 -c public myserver.mydomain.com laLoad.1 For your unix servers, you'll want: laLoad.1 # Load now laLoad.2 # Load over 5m laLoad.3 # Load over 15m dskPercent.1 # Percent used of first disk in snmpd.conf dskPercent.2 # Percent used of second disk in snmpd.conf 5) The checkcommands.cfg that comes with nagios already has a check_snmp command built in. So, you can go ahead and make a service definition using it. 6) Rather than fooling around with Cisco MIBs, I found it simpler to use the numeric OIDs for monitoring cisco gear. These should get you started. ether0 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.1 serial0 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.2 serial1 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.3 ether0 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.1 serial0 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.2 serial1 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.3 ether0 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.1 serial0 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.2 serial1 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.3 ether0 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.1 serial0 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.2 serial1 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.3 avgBusy0 CPU-load sampled over 5s .1.3.6.1.4.1.9.2.1.56.0 avgBusy1 CPU-load sampled over 1m .1.3.6.1.4.1.9.2.1.57.0 avgBusy5 CPU-load sampled over 5m .1.3.6.1.4.1.9.2.1.58.0 > monitoring), looking for bottle-necks and telco line errors and such. From > what I have read, snmp is the way to go so any suggestions would be most > helpful. The cisco gear has all kinds of interesting snmp capabilities (e.g., copying configs). In order to go further, you may need to install the cisco mibs. http://www.mibdepot.com is a good place to start. Cisco's official mib download site is: http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml > ----------------------------------- > Vernon A. Fort (Andy) > Provident Solutions, LLC > (615) 427-4016 http://www.provident-solutions.com > > > ------=_NextPart_000_0094_01C2BE1A.B8BA27F0 > Content-Type: application/ms-tnef; > name="winmail.dat" > Content-Transfer-Encoding: base64 > Content-Disposition: attachment; > filename="winmail.dat" > > eJ8+Ih0RAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy > b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHAQARAAsAFgAAAAUAEgEB winmail.dat yuck. Kelly -- Kelly Setzer, System Administrator/Architect - Placemark Investments 14180 Dallas Pkwy, Suite 200, Dallas, TX 75240 kelly.setzer at placemark.com http://www.placemark.com (972)404-8100x41 (work) (214) 287-3464 (cell) ------------------------------------------------------- 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 From jgking at packetstorm.org Fri Jan 17 21:37:07 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Fri, 17 Jan 2003 14:37:07 -0600 (CST) Subject: postnuke portal project in works using nagios and other things In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E131B@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E131B@PKDWB03C.ad.sprint.com> Message-ID: Just an FYI to get some feedback. Ive been wanting to take a web portal system like PostNuke (www.postnuke.com) and make a centralized NOC around it. So far Ive got the service monitoring stuff ironed out it seems with Nagios and NetSNMP. I added a snort block that uses the snort.sql database calls to get dynamic updates (modified from the SnortReport code). The idea is that I can provide an overview of the systems and network without giving anyone access to the backend of nagios or nmis (even if its a guest account) since the blocks are the actual "clients". Whats left: - NMIS,MRTG/RRDTOOL performance graphs. Problem is I had NMIS going but then my provider dumped the cisco for another device and I havent had time to revisit it till now. Anyhow the dev site this pic is taken from is still password protected until i get some more work done but I was wondering what others on the list have done to integrate stuff together. Anyhow heres the pic: http://www.packetstorm.org/nagios.png ------------------------------------------------------- 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 From jgking at packetstorm.org Fri Jan 17 21:41:02 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Fri, 17 Jan 2003 14:41:02 -0600 (CST) Subject: Anyone using RedHat 8.0 with Nagios 1.0? In-Reply-To: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9C8@btiexch01.broadbus.com> References: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9C8@btiexch01.broadbus.com> Message-ID: Im not sure about the start and stop script per se but if your worried about it not starting on boot until you get the script working with RH 8 you can always add it to the /etc/rc.local file Also check /etc/init.d and see if the nagios file is there then try and let chkconfig set it up (assuming script is named nagios): chkconfig nagios on On Fri, 17 Jan 2003, nagios wrote: > Are you able to use the "nagios start" and "nagios stop" commands to > start and stop the service from /etc/init.d? > > > > For some reason my script (straight from the installation w/ no > modifications) doesn't work properly so I am trying to compare it to > someone elses. Any help is greatly appreciated! > > > > Thanks, > > > > Sunil > > sunil at broadbus.com > > > > > > > > -----Original Message----- > From: Williams, P. Lane [mailto:Lane.Williams at jhuapl.edu] > Posted At: Friday, January 17, 2003 3:02 PM > Posted To: nagios > Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > yes. > > -----Original Message----- > From: nagios [mailto:nagios at broadbus.com] > Sent: Friday, January 17, 2003 2:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > > > Sunil Mudholkar > > Manager - IT > > Broadbus Technologies, Inc. > > sunilm at broadbus.com > > (978) 264-7910 > > 80 Central St. > > Boxborough, MA 01719 > > > > ------------------------------------------------------- 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 From showkilr at showkilr.com Fri Jan 17 21:28:49 2003 From: showkilr at showkilr.com (James Peterson) Date: Fri, 17 Jan 2003 14:28:49 -0600 Subject: Anyone using RedHat 8.0 with Nagios 1.0? References: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9C7@btiexch01.broadbus.com> Message-ID: <00cc01c2be67$0b57d650$6600a8c0@playnet.com> Yes and I have it running successfully. Using the RPM builds from the tarballs spec files. some tweaks though to get the database support in the rpms but not a hard thing to perform. James "Showkilr" Peterson ----- Original Message ----- From: nagios To: nagios-users at lists.sourceforge.net Sent: Friday, January 17, 2003 1:58 PM Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Sunil Mudholkar Manager - IT Broadbus Technologies, Inc. sunilm at broadbus.com (978) 264-7910 80 Central St. Boxborough, MA 01719 -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at broadbus.com Fri Jan 17 21:31:29 2003 From: nagios at broadbus.com (nagios) Date: Fri, 17 Jan 2003 15:31:29 -0500 Subject: Anyone using RedHat 8.0 with Nagios 1.0? Message-ID: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9CB@btiexch01.broadbus.com> James, are you using the "nagios start" and "nagios stop" commands from /etc/init.d? Thanks to Lane I have the syntax to run from the command line but I am not much of a script writer and the default "nagios start | stop | reload | etc" was nice to use but for reason it's not working with my 8.0. -----Original Message----- From: James Peterson [mailto:showkilr at showkilr.com] Posted At: Friday, January 17, 2003 3:29 PM Posted To: nagios Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Subject: Re: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Yes and I have it running successfully. Using the RPM builds from the tarballs spec files. some tweaks though to get the database support in the rpms but not a hard thing to perform. James "Showkilr" Peterson ----- Original Message ----- From: nagios To: nagios-users at lists.sourceforge.net Sent: Friday, January 17, 2003 1:58 PM Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Sunil Mudholkar Manager - IT Broadbus Technologies, Inc. sunilm at broadbus.com (978) 264-7910 80 Central St. Boxborough, MA 01719 -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Fri Jan 17 21:41:15 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 17 Jan 2003 14:41:15 -0600 Subject: install Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED139@mismail.ena.com> Just like you've typed it except substituting . , and with values suitable for your installation. For example, the configure line for one of my installations is the following: ./configure --with-cgiurl=/cgi --with-htmurl=/ --with-pgsql-xdata --with-pgsql-lib=/usr/local/pgsql/lib --with-pgsql-inc=/usr/local/pgsql/include --prefix=/usr/local/nagios-db --disable-statusmap --disable-statuswrl --with-default-comments --with-default-downtime --with-nagios-user=nagios --with-nagios-grp=nagios -- Marc > -----Original Message----- > From: Eamon.Garland at telecity.com [mailto:Eamon.Garland at telecity.com] > Sent: Friday, January 17, 2003 2:24 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] install > Importance: High > > > How do i Run the configure script to initialize variables and create a > Makefile as follows... > ./configure --prefix=prefix --with-cgiurl=cgiurl --with-htmurl=htmurl > --with-nagios-user=someuser --with-nagios-grp=somegroup > Eamon. > > > > DISCLAIMER > This e-mail is intended only for the use of the addressees named above and > may be confidential. If you are not an addressee you must not use any > information contained in nor copy it nor inform any person other than > TeleCity or the addressees of its existence or contents. If you have > received this e-mail in error, please contact the TeleCity IT department > on > +44 (0) 161 232 3220 or by email at techsupport at telecity.com. Internet > communications cannot be guaranteed 100% secure, you should therefore take > this potential lack of security into consideration when emailing us as we > do > not accept legal responsibility for the security of the contents of this > or > other emails. Whilst TeleCity take measures to prevent any virus > contamination of our computer systems, recipients of emails should always > ensure that they take their own precautions to avoid virus contamination. > > > > > ------------------------------------------------------- > 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: 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 From nagios at broadbus.com Fri Jan 17 21:54:55 2003 From: nagios at broadbus.com (nagios) Date: Fri, 17 Jan 2003 15:54:55 -0500 Subject: Anyone using RedHat 8.0 with Nagios 1.0? Message-ID: <3B83C5E7EAB53F44A16CDFB70F9E4BF3CD4C@btiexch01.broadbus.com> The nagios script is there in /etc/init.d however when I try and run it I get the error: Starting network monitor: nagios ps: error: List of process IDs must follow -p. usage: ps -[Unix98 options] ps [BSD-style options] ps --[GNU-style long options] I think the error in my script has to do with line 46 on the script in which it calls the Nagios prcoess ID variable (NagiosPID) when it does a status check to see if it is running it can't find what NagiosPID is. Like I said I haven't changed the script at all form the Nagios canned one I just am not a good enoughscripter to know how to fix it. Thanks! -----Original Message----- From: jgking at packetstorm.org [mailto:jgking at packetstorm.org] Posted At: Friday, January 17, 2003 3:41 PM Posted To: nagios Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? Im not sure about the start and stop script per se but if your worried about it not starting on boot until you get the script working with RH 8 you can always add it to the /etc/rc.local file Also check /etc/init.d and see if the nagios file is there then try and let chkconfig set it up (assuming script is named nagios): chkconfig nagios on On Fri, 17 Jan 2003, nagios wrote: > Are you able to use the "nagios start" and "nagios stop" commands to > start and stop the service from /etc/init.d? > > > > For some reason my script (straight from the installation w/ no > modifications) doesn't work properly so I am trying to compare it to > someone elses. Any help is greatly appreciated! > > > > Thanks, > > > > Sunil > > sunil at broadbus.com > > > > > > > > -----Original Message----- > From: Williams, P. Lane [mailto:Lane.Williams at jhuapl.edu] > Posted At: Friday, January 17, 2003 3:02 PM > Posted To: nagios > Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > yes. > > -----Original Message----- > From: nagios [mailto:nagios at broadbus.com] > Sent: Friday, January 17, 2003 2:59 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > > > Sunil Mudholkar > > Manager - IT > > Broadbus Technologies, Inc. > > sunilm at broadbus.com > > (978) 264-7910 > > 80 Central St. > > Boxborough, MA 01719 > > > > ------------------------------------------------------- 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 From jens at nha.co.za Fri Jan 17 22:03:49 2003 From: jens at nha.co.za (=?UTF-8?Q?Jens_von_B=C3=BClow?=) Date: Fri, 17 Jan 2003 23:03:49 +0200 Subject: What does Host Availability Report->Up->(Un)Scheduled mean Message-ID: <8F2D061DFD77E444B00D8FE9B8273DD012E619@titan.nha.co.za> R3JlZXRpbmdzLA0KIA0KQ2FuIHNvbWVvbmUgcGxlYXNlIGV4cGxhaW4gdGhlIG1lYW5pbmcgb2Yg d2hhdCAiU3RhdGUgVXAiIFVuc2NoZWR1bGVkIGFuZCBTY2hlZHVsZWQgbWVhbnMgLSBJIGhhdmUg bm8gaWRlYSBob3cgdG8gcmVsYXRlIHRvIG9yIHVzZSB0aGlzIGluZm9ybWF0aW9uPw0KIA0KVGhh bmtzICYgUmVnYXJkcw0KSmVucw0KIA0KIA0K ------------------------------------------------------- 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 From slebrun at muskoka.com Fri Jan 17 22:27:34 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Fri, 17 Jan 2003 16:27:34 -0500 Subject: aggregated status messages In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E131C@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E131C@PKDWB03C.ad.sprint.com> Message-ID: Look at it this way. One of my wireless subnets just went to hell; tripped 'service critical' messages for five or six servers, as the ping RTA time suddenly shot up. So I got five emails. I'd rather have gotten one email with five entries. -----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: Friday, January 17, 2003 2:48 PM To: 'Shayne Lebrun'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Read up on the 'parents' directive. Sounds like this will do exactly what you're looking for. (This was one of the main reasons we switched from BB to Nagios.) http://nagios.webdev.sprintspectrum.com/nagios/docs/xodtemplate.html#host jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] aggregated status messages One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails. Also, if a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. Makes it more efficient for mobile devices reciving said emails, too. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Fri Jan 17 22:32:59 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 17 Jan 2003 16:32:59 -0500 Subject: Monitoring Codonics Printers Message-ID: <5593DA408212D511B0910002A513501F01D288AF@phsexch20.mgh.harvard.edu> Hi there, We have several Codonics 16xx series printers that I would like to monitor via Nagios. The idea was for me to use check_snmp to do the monitoring. The issue is that on the service detail screen, the error message that I am receiving is: SNMP problem - No data received from the host. The check_command parameter in the services.cfg file for the printer is: chceck_command check_snmp The Codonics printer employs a hard drive running SunOS 5.x. According to the manufacturer of the printer, the SNMP daemon is automatically started upon powering up the printer. Anyone have suggestions on what I can do to expedite this? Thanks. ------------------------------------------------------- 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 From mgarfias at fatcow.net Fri Jan 17 22:41:10 2003 From: mgarfias at fatcow.net (Mike Garfias) Date: Fri, 17 Jan 2003 14:41:10 -0700 Subject: Newbie help In-Reply-To: <5593DA408212D511B0910002A513501F01D288AF@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288AF@phsexch20.mgh.harvard.edu> Message-ID: <2931BAE25B4885438BAC623B4414B5C70F87AC@exchange.networkshosting.com> Hey everyone, I've some questions about how to set up the notifications and escalations to do what we require. We want to have escalations setup so that during work hours, we're emailed if there is a problem. Then, 5 minutes later, we're paged. And another set of pages (to the supervisors and such) at 30 minutes. How do I do this? Also, is there an easy way to setup a primary paging contact so that they get the page at 5 minutes, and then at 10, the rest of us get paged? Thanks! Mike ------------------------------------------------------- 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 From vfort at provident-solutions.com Fri Jan 17 22:26:39 2003 From: vfort at provident-solutions.com (Vernon A. Fort) Date: Fri, 17 Jan 2003 15:26:39 -0600 Subject: Newbie SNMP Question In-Reply-To: <20030117203541.GZ22673@placemark.com> References: <20030117203541.GZ22673@placemark.com> Message-ID: Thanks to everyone who has replied. I have gotten a Linux server's smnp going ( which should I use, udc-snmp or net-snmp - or are they the same?) and successfully walked the snmp tree and on our primary cisco router. Can the check_snmp handle any OID either numeric or non numeric...? I really only want to monitor: CPU load Inferfaces UP/DOWN status Alarms signals Analyze Traffic to detect bottle necks Use mrtg to graph over a period of time - to detect trends. Does anyone have any sample check_snmp command strings for any of the above? I had no idea there was soooo much information available from a simple snmpwalk - wow.... Vernon ----------------------------------- Vernon A. Fort (Andy) Provident Solutions, LLC (615) 427-4016 http://www.provident-solutions.com -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of setzer at placemark.com Sent: Friday, January 17, 2003 2:36 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Newbie SNMP Question > From: "Vernon A. Fort" > To: > Date: Fri, 17 Jan 2003 11:22:29 -0600 > > I have managed to get nagios running very well, works like a champ - great > software. I now need to start the snmp setup and have very little > experience with snmp. Can anyone point me do basic documentation, > "Snmp-for-dummies" so to speak? > > I am wanting to monitor my 45 cisco routers as well and some unix server vi > snmp (specifically network traffic monitoring as well as real-time router 1) Make sure SNMP is enabled on your routers. Quick and dirty (and unsafe): router#conf t router(config)#snmp-server community public ro router(config)#^Z 2) Make sure snmpd is installed on your linux boxes. If you have solaris, disable the snmpd master agent as well as dmi. Install net-snmp from http://www.net-snmp.org/ per the instructions. 3) Edit your /etc/snmp/snmpd.conf. You will need to have disk and load entries in order for the snmpd to report those. You will also need to allow access for your nagios server. Quick, dirty, unsafe: # /etc/snmp/snmpd.conf rocommunity public 192.168.1.3 # nagios server IP syslocation Somewhere syscontact Me disk / 10000 disk /var 55 load 5 5 5 4) From the nagios server (which has snmp installed, right?), test the above with: snmpwalk -m ALL -v 1 -c public myserver.mydomain.com laLoad.1 For your unix servers, you'll want: laLoad.1 # Load now laLoad.2 # Load over 5m laLoad.3 # Load over 15m dskPercent.1 # Percent used of first disk in snmpd.conf dskPercent.2 # Percent used of second disk in snmpd.conf 5) The checkcommands.cfg that comes with nagios already has a check_snmp command built in. So, you can go ahead and make a service definition using it. 6) Rather than fooling around with Cisco MIBs, I found it simpler to use the numeric OIDs for monitoring cisco gear. These should get you started. ether0 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.1 serial0 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.2 serial1 traffic in bits/sec .1.3.6.1.4.1.9.2.2.1.1.6.3 ether0 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.1 serial0 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.2 serial1 traffic out bits/sec .1.3.6.1.4.1.9.2.2.1.1.8.3 ether0 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.1 serial0 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.2 serial1 traffic in pkts/sec .1.3.6.1.4.1.9.2.2.1.1.7.3 ether0 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.1 serial0 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.2 serial1 traffic out pkts/sec .1.3.6.1.4.1.9.2.2.1.1.9.3 avgBusy0 CPU-load sampled over 5s .1.3.6.1.4.1.9.2.1.56.0 avgBusy1 CPU-load sampled over 1m .1.3.6.1.4.1.9.2.1.57.0 avgBusy5 CPU-load sampled over 5m .1.3.6.1.4.1.9.2.1.58.0 > monitoring), looking for bottle-necks and telco line errors and such. From > what I have read, snmp is the way to go so any suggestions would be most > helpful. The cisco gear has all kinds of interesting snmp capabilities (e.g., copying configs). In order to go further, you may need to install the cisco mibs. http://www.mibdepot.com is a good place to start. Cisco's official mib download site is: http://www.cisco.com/public/sw-center/netmgmt/cmtk/mibs.shtml > ----------------------------------- > Vernon A. Fort (Andy) > Provident Solutions, LLC > (615) 427-4016 http://www.provident-solutions.com > > > ------=_NextPart_000_0094_01C2BE1A.B8BA27F0 > Content-Type: application/ms-tnef; > name="winmail.dat" > Content-Transfer-Encoding: base64 > Content-Disposition: attachment; > filename="winmail.dat" > > eJ8+Ih0RAQaQCAAEAAAAAAABAAEAAQeQBgAIAAAA5AQAAAAAAADoAAEIgAcAGAAAAElQTS5NaWNy > b3NvZnQgTWFpbC5Ob3RlADEIAQ2ABAACAAAAAgACAAEGgAMADgAAANMHAQARAAsAFgAAAAUAEgEB winmail.dat yuck. Kelly -- Kelly Setzer, System Administrator/Architect - Placemark Investments 14180 Dallas Pkwy, Suite 200, Dallas, TX 75240 kelly.setzer at placemark.com http://www.placemark.com (972)404-8100x41 (work) (214) 287-3464 (cell) ------------------------------------------------------- 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: 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 From Michael_Searcy at adp.com Fri Jan 17 22:51:23 2003 From: Michael_Searcy at adp.com (Searcy, Michael) Date: Fri, 17 Jan 2003 16:51:23 -0500 Subject: Aggregate "containers" in the Status Map display? Message-ID: <3C779389071CD611A2E10060943F4CC92A8F8B@CPLEXPO1> Hi Is it possible to define "containers" to hold individual hosts for grouping purposes? Our map is getting quite cluttered with crowded collections of individual hosts. I didn't see this in the doc, but I may have missed it. I would really like to have an aggregate icon to click on that expands to a new map showing the containers contents. Possible? Running Nagios 1.0 Michael Searcy ADP Output Services, Inc. *E-mail: Michael_Searcy at adp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Bin.Yang at Zeborg.com Fri Jan 17 23:39:05 2003 From: Bin.Yang at Zeborg.com (Bin Yang) Date: Fri, 17 Jan 2003 17:39:05 -0500 Subject: "Incorrect command line arguments supplied" Message-ID: Hi, I have problems to monitor disk space on remote host. Here are my configurations: On the nagios server: 1) checkcommand.cfg define command{ command_name check_nrpe command_line /usr/local/nagios/libexec/check_nrpe $HOSTADDRESS$ -c $ARG1$ } 2) services.cfg define service{ use generic-service ; Name of service template to use host_name fragone service_description /dev/hdb2 Free Space 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_nrpe!check_disk1 } On the remote host: Nrpe.cfg command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb2 >From nagios server, I can run /usr/local/nagios/libexec/check_nrpe -H fragone -c check_disk1 and I get: DISK OK - [15930368 kB (60%) free on /dev/hdb2] It works on command line, but not on web browser. I always get "Incorrect command line arguments supplied" What did I miss here? Thanks very much. ------------------------------------------------------- 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 From donavan at 4wx.net Sat Jan 18 00:00:47 2003 From: donavan at 4wx.net (donavan nelson) Date: Fri, 17 Jan 2003 17:00:47 -0600 Subject: Anyone using RedHat 8.0 with Nagios 1.0? In-Reply-To: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9D2@btiexch01.broadbus.com> References: <3B83C5E7EAB53F44A16CDFB70F9E4BF311A9D2@btiexch01.broadbus.com> Message-ID: <20030117230047.M38082@4wx.net> Interesting. I wonder if I have some tool installed that you don't. I always do custom installs and install most of the development tools. I did build nagios from scratch (no RPMs). -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Sunil V. Mudholkar" To: "donavan nelson" Sent: Fri, 17 Jan 2003 17:44:32 -0500 Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > Thanks a ton Donovan, whatever it was it worked. > > -----Original Message----- > From: donavan nelson [mailto:donavan at 4wx.net] > Sent: Friday, January 17, 2003 5:38 PM > To: Sunil V. Mudholkar; donavan nelson > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > it should be in your ./nagios-1.0 directory, but I've included mine. > > .dn > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: "Sunil V. Mudholkar" > To: "donavan nelson" > Sent: Fri, 17 Jan 2003 17:30:16 -0500 > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > Donavan, sorry to bother you but would you mind sned a copy of that > > script to me? I will try and diff it with what I have here. Much > > appreciated! > > > > -----Original Message----- > > From: donavan nelson [mailto:donavan at 4wx.net] > > Posted At: Friday, January 17, 2003 4:44 PM > > Posted To: nagios > > Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > It works fine overhere. I just renamed the script to nagios. > > > > [root at shzaam nagios-1.0]# diff daemon-init /etc/rc.d/init.d/nagios > > [root at shzaam nagios-1.0]# cat /etc/redhat-release > > Red Hat Linux release 8.0 (Psyche) > > > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: "nagios" > > To: > > Sent: Fri, 17 Jan 2003 15:11:47 -0500 > > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > > Are you able to use the "nagios start" and "nagios stop" commands to > > > start and stop the service from /etc/init.d? > > > > > > > > > > > > For some reason my script (straight from the installation w/ no > > > modifications) doesn't work properly so I am trying to compare it to > > > someone elses. Any help is greatly appreciated! > > > > > > > > > > > > Thanks, > > > > > > > > > > > > Sunil > > > > > > sunil at broadbus.com > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > From: Williams, P. Lane [mailto:Lane.Williams at jhuapl.edu] > > > Posted At: Friday, January 17, 2003 3:02 PM > > > Posted To: nagios > > > Conversation: [Nagios-users] Anyone using RedHat 8.0 with Nagios > 1.0? > > > Subject: RE: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > > > > > > > > > yes. > > > > > > -----Original Message----- > > > From: nagios [mailto:nagios at broadbus.com] > > > Sent: Friday, January 17, 2003 2:59 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: [Nagios-users] Anyone using RedHat 8.0 with Nagios 1.0? > > > > > > > > > > > > > > > > > > Sunil Mudholkar > > > > > > Manager - IT > > > > > > Broadbus Technologies, Inc. > > > > > > sunilm at broadbus.com > > > > > > (978) 264-7910 > > > > > > 80 Central St. > > > > > > Boxborough, MA 01719 > > ------- End of Original Message ------- > ------- End of Original Message ------- ------- 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 From pivert_home at yahoo.fr Sat Jan 18 00:06:30 2003 From: pivert_home at yahoo.fr (Pivert) Date: 18 Jan 2003 00:06:30 +0100 Subject: UPS Monitoring In-Reply-To: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> Message-ID: <1042844792.30861.7.camel@pivert.pivertdomain.be> 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 From donavan at 4wx.net Sat Jan 18 00:19:15 2003 From: donavan at 4wx.net (donavan nelson) Date: Fri, 17 Jan 2003 17:19:15 -0600 Subject: UPS Monitoring In-Reply-To: <1042844792.30861.7.camel@pivert.pivertdomain.be> References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> <1042844792.30861.7.camel@pivert.pivertdomain.be> Message-ID: <20030117231915.M78563@4wx.net> 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 From cjs at cjs226.com Sat Jan 18 00:25:42 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Fri, 17 Jan 2003 17:25:42 -0600 Subject: xedtemplate_config_dir ??? Message-ID: <3E2890F6.6090001@cjs226.com> Is it possible to use something like xedtemplate_config_dir=/usr/local/nagios/etc/systems as you can with cfg_dir=/usr/local/nagios/etc/systems ? I've tried, it didn't work, but is there a different syntax? I'm playing with the idea of having a separate cfg file for each system. Unfortunately, with my environment's various dependencies, the use of Apan, etc., my cfg lines are going to be plentiful... I checked the docs, but I don't see it. cjs ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Sat Jan 18 00:47:19 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 17:47:19 -0600 Subject: aggregated status messages Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1320@PKDWB03C.ad.sprint.com> Perhaps host or service dependencies would be more to your liking. jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 3:28 PM To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Look at it this way. One of my wireless subnets just went to hell; tripped 'service critical' messages for five or six servers, as the ping RTA time suddenly shot up. So I got five emails. I'd rather have gotten one email with five entries. -----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: Friday, January 17, 2003 2:48 PM To: 'Shayne Lebrun'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Read up on the 'parents' directive. Sounds like this will do exactly what you're looking for. (This was one of the main reasons we switched from BB to Nagios.) http://nagios.webdev.sprintspectrum.com/nagios/docs/xodtemplate.html#host jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] aggregated status messages One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails. Also, if a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. Makes it more efficient for mobile devices reciving said emails, too. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Sat Jan 18 01:10:33 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 18:10:33 -0600 Subject: Aggregate "containers" in the Status Map displ ay? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1321@PKDWB03C.ad.sprint.com> Check out the 'parents' directive for defining your hosts in hosts.cfg. jc -----Original Message----- From: Searcy, Michael [mailto:Michael_Searcy at adp.com] Sent: Friday, January 17, 2003 3:51 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] Aggregate "containers" in the Status Map display? Hi Is it possible to define "containers" to hold individual hosts for grouping purposes? Our map is getting quite cluttered with crowded collections of individual hosts. I didn't see this in the doc, but I may have missed it. I would really like to have an aggregate icon to click on that expands to a new map showing the containers contents. Possible? Running Nagios 1.0 Michael Searcy ADP Output Services, Inc. *E-mail: Michael_Searcy at adp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Sat Jan 18 01:16:57 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 17 Jan 2003 18:16:57 -0600 Subject: xedtemplate_config_dir ??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1322@PKDWB03C.ad.sprint.com> Interesting thought. I would have thought that the extended configs could be put into any .cfg file. But the tag is indeed different. Hhhmmm. I should try migrating one definition from the hostextinfo.cfg file to an individual host's config file and see if the defined icon is still visible. It's something I recently realized I'd overlooked anyway. jc > -----Original Message----- > From: Clif J. Smith [mailto:cjs at cjs226.com] > Sent: Friday, January 17, 2003 5:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] xedtemplate_config_dir ??? > > > Is it possible to use something like > xedtemplate_config_dir=/usr/local/nagios/etc/systems as you can with > cfg_dir=/usr/local/nagios/etc/systems ? I've tried, it > didn't work, but > is there a different syntax? I'm playing with the idea of having a > separate cfg file for each system. Unfortunately, with my > environment's > various dependencies, the use of Apan, etc., my cfg lines are > going to > be plentiful... I checked the docs, but I don't see it. > > cjs > > > > ------------------------------------------------------- > 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: 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 From jsm at inpro.net Sat Jan 18 01:37:53 2003 From: jsm at inpro.net (jsm at inpro.net) Date: Fri, 17 Jan 2003 19:37:53 -0500 Subject: UPS Monitoring References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> <1042844792.30861.7.camel@pivert.pivertdomain.be> <20030117231915.M78563@4wx.net> Message-ID: <001301c2be89$e49237e0$984476d8@xphome> Yeah, I've got 6 APC SMART-UPS 2200 (got them from dell on a 2 for 1 sale WOOT!) and they only have serial connections out of the box. I do however have (left over from a previous project) a Digi-neo PCI 8 port com card that should work quite nicely. That combined with the check_UPS plugin and some other opensource UPS Management software that Andrew suggested should do the trick. I'll post my results and instructions when I've got it working if anyone is interested... Jeff ----- Original Message ----- From: "donavan nelson" To: "Nagios List" Sent: Friday, January 17, 2003 6:19 PM Subject: Re: [Nagios-users] UPS Monitoring > 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: 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 From jsm at inpro.net Sat Jan 18 01:42:34 2003 From: jsm at inpro.net (jsm at inpro.net) Date: Fri, 17 Jan 2003 19:42:34 -0500 Subject: "Incorrect command line arguments supplied" References: Message-ID: <002601c2be8a$82e1de00$984476d8@xphome> Have you tried putting the full path in your service.cfg file's check_command parameter? Jeff ----- Original Message ----- From: "Bin Yang" To: Sent: Friday, January 17, 2003 5:39 PM Subject: [Nagios-users] "Incorrect command line arguments supplied" Hi, I have problems to monitor disk space on remote host. Here are my configurations: On the nagios server: 1) checkcommand.cfg define command{ command_name check_nrpe command_line /usr/local/nagios/libexec/check_nrpe $HOSTADDRESS$ -c $ARG1$ } 2) services.cfg define service{ use generic-service ; Name of service template to use host_name fragone service_description /dev/hdb2 Free Space 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_nrpe!check_disk1 } On the remote host: Nrpe.cfg command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb2 >From nagios server, I can run /usr/local/nagios/libexec/check_nrpe -H fragone -c check_disk1 and I get: DISK OK - [15930368 kB (60%) free on /dev/hdb2] It works on command line, but not on web browser. I always get "Incorrect command line arguments supplied" What did I miss here? Thanks very much. ------------------------------------------------------- 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: 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 From jayson at sonictrading.com Sat Jan 18 01:45:29 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 17 Jan 2003 19:45:29 -0500 Subject: Statusmap error Message-ID: <1042850729.4184.349.camel@krull> Hello, I currently have running Nagios running on a RH8 machine, and it is monitoring the test box that I have set up, I have read the docs, and mailing-list archives, but I am still having issues with the statsmap.cgi. I have made the (what I feel are the correct, but probably aren't) changes to the cgi.cfg file and sections .the default_statusmap/default_statuswrl layouts have been set to default 4 (circular).. When ever I try to access statusmap I get an error 500 Premature end of script? Any hints as to where I should begin to track down the problem? I believe that I have all the required libs installed...I am kind of stuck at this point, any ideas? Thanks in advance Jay ------------------------------------------------------- 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 From donavan at 4wx.net Sat Jan 18 03:38:10 2003 From: donavan at 4wx.net (donavan nelson) Date: Fri, 17 Jan 2003 20:38:10 -0600 Subject: UPS Monitoring In-Reply-To: <001301c2be89$e49237e0$984476d8@xphome> References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> <1042844792.30861.7.camel@pivert.pivertdomain.be> <20030117231915.M78563@4wx.net> <001301c2be89$e49237e0$984476d8@xphome> Message-ID: <20030118023810.M55372@4wx.net> My issue is cabling from the UPS to the serial ports. I think there is a plugin for monitoring one or another of the UNIX tools available. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: To: "donavan nelson" , "Nagios List" Sent: Fri, 17 Jan 2003 19:37:53 -0500 Subject: Re: [Nagios-users] UPS Monitoring > Yeah, I've got 6 APC SMART-UPS 2200 (got them from dell on a 2 for 1 > sale WOOT!) and they only have serial connections out of the box. I > do however have (left over from a previous project) a Digi-neo PCI 8 > port com card that should work quite nicely. > > That combined with the check_UPS plugin and some other opensource UPS > Management software that Andrew suggested should do the trick. I'll > post my results and instructions when I've got it working if anyone > is interested... > > Jeff > > ----- Original Message ----- > From: "donavan nelson" > To: "Nagios List" > Sent: Friday, January 17, 2003 6:19 PM > Subject: Re: [Nagios-users] UPS Monitoring > > > 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 ------- 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 From dscollon at scotwebsolutions.com Sat Jan 18 04:40:17 2003 From: dscollon at scotwebsolutions.com (Derek Scollon) Date: Sat, 18 Jan 2003 03:40:17 +0000 Subject: Crash during installation In-Reply-To: <63369934908.20030115102716@scotwebsolutions.com> References: <63369934908.20030115102716@scotwebsolutions.com> Message-ID: <198604325003.20030118034017@scotwebsolutions.com> I've just updated to gcc 2.96-112 and have exactly the same problem. The exact error is... CPU 0: Machine Check Exception 0000000000000004 BBBank1: f20000000000015 Kernal panic: CPU context corrupt Can anyone suggest a solutions for this? Derek Scollon Scotweb Solutions Ltd. Wednesday, January 15, 2003, 10:27:16 AM, you wrote: DS> nagios-users, DS> I'm new to this list but didn't see this problem mentioned recently. DS> Apologies if it's further back. DS> I'm running RedHat 7.3 on a machine which has been working well and DS> very stable for several months. Tried to install nagios today and hit DS> the following problem... DS> "./configure" worked fine and found everything. The defaults suited me DS> so I didn't specify any options. DS> "make all" started to work and print out what it was doing, then the DS> machine just stopped responding. No error messages, no nothing, had to DS> hit the power button. If I run "make clean" then "make all" again, the DS> same thing happens every time. DS> gcc is version 2.96-110 DS> Hope someone can help. DS> Derek Scollon DS> Scotweb Solutions Ltd. DS> ------------------------------------------------------- DS> This SF.NET email is sponsored by: Take your first step towards giving DS> your online business a competitive advantage. Test-drive a Thawte SSL DS> certificate - our easy online guide will show you how. Click here to get DS> started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en DS> _______________________________________________ DS> Nagios-users mailing list DS> Nagios-users at lists.sourceforge.net DS> https://lists.sourceforge.net/lists/listinfo/nagios-users ------------------------------------------------------- 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 From ray at raysweb.com Sat Jan 18 06:35:50 2003 From: ray at raysweb.com (Ray Holland) Date: Fri, 17 Jan 2003 22:35:50 -0700 Subject: Red Hat 8.0 Install Problems - Resolved Message-ID: Ok, first, I am not an expert, what I know I learned myself from hands on experience so if I say something stupid, please have a little sympathy and not blast me too bad, but do tell me of the error. I have a lot of errors when I tried to install the Rel 1.0 code on a RH 8.0 system. (I am running the 1.04 beta on a RH 7.3 system) I installed RH 8.0 via NFS, selecting "Server" Install on a dual processor Intel system. This is a 2.6 GB install. If you select "everything", it is 4.6 GB install so I did not want to do that. What I found out is that the Server Install only installed three of the packages Nagios/plugins need and of those three, it did not complete the full package install (but there was no indication of this during the install). So, after looking at all the postings here, I decided to figure out what needed to be done to get this working. It was really quite simple after all was said and done. 1. (re)Install the rpms that are needed (from the RH 8.0 CD's), using the --force option so the 3 that were installed by RH incorrectly will be fixed. First you collect the rpm files from the 3 install CDs and then install them using: rpm ?i ?force gd-1.8.4-9.i386.rpm rpm ?i ?force gd-devel-1.8.4-9.i386.rpm rpm ?i ?force gd-progs-1.8.4-9.i386.rpm rpm ?i --force libjpeg-devel-6b-21.i386.rpm rpm -i ?force libpng10-1.0.13-5.i386.rpm rpm ?i ?force libpng10-devel-1.0.13-5.i386.rpm rpm ?i --force libpng-1.2.2-6.i386.rpm rpm -i ?force libpng-devel-1.2.2-6.i386.rpm rpm ?i --force zlib-1.1.4-4.i386.rp rpm -i ?force zlib-devel-1.1.4-4.i386.rpm (note: I expect that I really did not need all 10 of these packages but it was the complete set of those mentioned at one place or another in the postings here so I (re)installed all 10) 2. Follow the instructions in the Nagios installation documentation and everything works as advertised. Pretty simple. I used the config files from my 7.3 system that is still running the 1.04 beta. I monitor a dozen systems and about 40 services. 3. Done. All is working great (of course, Nagios is a very fine monitor- my thanks to the author). I hope this helps anyone still scratching their head over install problems. Ray ------------------------------------------------------- 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 From ofb at budget-tech.com Sat Jan 18 07:04:28 2003 From: ofb at budget-tech.com (Olivier Beauchemin (Budget-Tech IT Consulting)) Date: Sat, 18 Jan 2003 01:04:28 -0500 Subject: check_traffic plugin - another problem References: Message-ID: <00e601c2beb7$76fa8f60$0401a8c0@moscow> [obeauche at mrtg check_traffic-0.90b]# ./make-config Number of Interfaces found: 4 ERROR: creating '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/0.rrd': No such file or directory ERROR: creating '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such file or directory ERROR: creating '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/1.rrd': No such file or directory So, it seems that I am unable to create the .rrd files for anything beyond the Null0 interface. I would assume that this is because of the '/' from the interface name. I'm also guessing that the reason the .cgi and hostextinfo isn't populating with the rest of the interfaces is because it's not able to finish creating these files. Anyone have the fixes or improvements, to this great plugin? Olivier ----- Original Message ----- From: "Richard Colley" To: "'Adrian Wieczorek'" ; Sent: Wednesday, January 15, 2003 10:40 PM Subject: [Nagios-users] re: check_traffic plugin - another problem > I've found another issue with the check_traffic plugin. On machines with > interface aliases, e.g. hme1, hme1:1 etc., there is a problem with the > generated .cgi file. This is because rrdcgi gets confused by the ':' in the > output file name. > > The solution is to modify both check_traffic and make-config, and put the > following line, after where $db_file is assigned: > > $db_file =~ s/:/-/g; > > This substitutes a '-' for any ':' in the file name. > > Seems to work for me. > > Richard > > --- > Outgoing mail is certified Virus Free. > Checked by AVG anti-virus system (http://www.grisoft.com). > Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: A Thawte Code Signing Certificate > is essential in establishing user confidence by providing assurance of > authenticity and code integrity. Download our Free Code Signing guide: > http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en > _______________________________________________ > 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: 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 From RLAdams at Kelsey-Seybold.com Sat Jan 18 08:47:22 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Sat, 18 Jan 2003 01:47:22 -0600 Subject: UPS Monitoring In-Reply-To: <20030117231915.M78563@4wx.net> References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> <1042844792.30861.7.camel@pivert.pivertdomain.be> <20030117231915.M78563@4wx.net> Message-ID: <22561.0260422856$1042876785@news.gmane.org> There is an older SNMP adapter for APC UPS's that fits on the serial port. I have them all over the place at work, since most of our refurbed UPS's don't have the NICs. Its the APC SNMP Adapter, mine are running firmware v2.2g. Its a white box about the size of a DSL modem that plugs into the serial port, and has a 10-baseT jack. Configure your BOOTP server with its MAC, configure the snmp adapter via direct serial interface, and then start polling over SNMP. There's also a environmental monitor you can chain onto them that gives you external temp/humidity from wherever you mount the external monitor. Its just another little white box on a serial cable. ;] Whats also handy is that the environmental monitor also has 6 relay contact switches that you can use for remote signalling via SNMP. For example, take a magnetic door sensor and put the wires into the external monitor. When the magnet moves, and the circuit breaks, the device will send an SNMP trap to your host. I think you can find these on Ebay, they fit any APC UPS on the serial port. Russell On Fri, Jan 17, 2003 at 05:19:15PM -0600, 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: 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 From Bin.Yang at Zeborg.com Sat Jan 18 16:58:03 2003 From: Bin.Yang at Zeborg.com (Bin Yang) Date: Sat, 18 Jan 2003 10:58:03 -0500 Subject: "Incorrect command line arguments supplied" Message-ID: WWVzLiAgSSB0cmllZCB0aGF0LiBUaGUgc2FtZSBlcnJvci4NCg0KCS0tLS0tT3JpZ2luYWwgTWVz c2FnZS0tLS0tIA0KCUZyb206IGpzbUBpbnByby5uZXQgW21haWx0bzpqc21AaW5wcm8ubmV0XSAN CglTZW50OiBGcmkgMS8xNy8yMDAzIDc6NDIgUE0gDQoJVG86IEJpbiBZYW5nOyBuYWdpb3MtdXNl cnNAbGlzdHMuc291cmNlZm9yZ2UubmV0IA0KCUNjOiANCglTdWJqZWN0OiBSZTogW05hZ2lvcy11 c2Vyc10gIkluY29ycmVjdCBjb21tYW5kIGxpbmUgYXJndW1lbnRzIHN1cHBsaWVkIg0KCQ0KCQ0K CSANCg0K ------------------------------------------------------- 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 From dan at radom.org Sat Jan 18 17:51:28 2003 From: dan at radom.org (dan radom) Date: Sat, 18 Jan 2003 09:51:28 -0700 Subject: schedule queue / pending checks Message-ID: <20030118165128.GA16611@ikura.radom.org> I have nagios monitoring about 90 hosts and close to 300 services, and I've noticed that sometimes nagios takes hours and hours to perform checks. Looking at the scheduling queue I see that last check will sometimes be hours ago with the next check time having been passed up. Sometimes new service checks will remain in a pending state for 8 or 10 hours. Is this a known issue? If not any suggestions on how to go about starting to track downt he problem. Thanks, dan ------------------------------------------------------- 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 From ofb at budget-tech.com Sat Jan 18 17:58:14 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Sat, 18 Jan 2003 11:58:14 -0500 Subject: check_traffic plugin - another problem References: <00e601c2beb7$76fa8f60$0401a8c0@moscow> Message-ID: <000b01c2bf12$cad8fd50$0201a8c0@boston> Also, when I run the check_traffic plugin via the command line I get: [obeauche at mrtg libexec]# ./check_traffic -H x.x.x.x -i 3 -b 1250000 -r Ethernet0/0 -w 95 -c 85 ERROR: opening '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such file or directory Total RX Bytes: 1646.57 MB, Total TX Bytes: 2422.08 MB
Average Traffic: 9.62 kB/s (0.8%) in, 2.47 kB/s (0.2%) out [obeauche at mrtg libexec]# So, snmp is doing it's thing. I think the plugin in general is doing it's thing... but not creating the .rrd files. Thanks, Olivier PS. It would be nice if some of the variables that had to be edited, like hostname, host and community were able to be entered via the command line rather than hard-coded into make-config or check_traffic. ----- Original Message ----- From: "Olivier Beauchemin (Budget-Tech IT Consulting)" > [obeauche at mrtg check_traffic-0.90b]# ./make-config > Number of Interfaces found: 4 > > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/1.rrd': No such > file or directory > > So, it seems that I am unable to create the .rrd files for anything beyond > the Null0 interface. I would assume that this is because of the '/' from the > interface name. I'm also guessing that the reason the .cgi and hostextinfo > isn't populating with the rest of the interfaces is because it's not able to > finish creating these files. > > Anyone have the fixes or improvements, to this great plugin? > > Olivier ------------------------------------------------------- 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 From cjs at cjs226.com Sat Jan 18 18:34:24 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Sat, 18 Jan 2003 11:34:24 -0600 Subject: fonts in linux browser tooo small In-Reply-To: References: Message-ID: <3E299020.9010706@cjs226.com> For Netscape/Mozilla, go to Edit/Preferences/Appearance/Fonts and set your "Minimum font size" to something like 12. I would imagine Phoenix would be about the same. cjs Jamin wrote: >I suggest installing windows fonts or other more robust fonts on your >linux box. And use a browser other than netscape that works well with >system fonts. > >I had problems using an older version of netscape and the fonts it tried >to use. I use Mozilla now and everything looks great. > >Didn't have to change style sheets or anything. > >On Wed, 15 Jan 2003, Robin Mordasiewicz wrote: > > > >>It seems that I cannot control the fonts in my linux browsers for nagios. >>No matter what I do the fonts look shriveled and crappy. >> >> >> >>------------------------------------------------------- >>This SF.NET email is sponsored by: A Thawte Code Signing Certificate >>is essential in establishing user confidence by providing assurance of >>authenticity and code integrity. Download our Free Code Signing guide: >>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> >> >> > >---------------------------------------------------------------------- > It is by caffeine alone I set my mind in motion. > It is by the beans of Java that thoughts acquire speed. > The hands acquire shaking. > The shaking becomes a warning. > It is by caffeine alone I set my mind in motion. -Influenced by Dune >---------------------------------------------------------------------- > > > > >------------------------------------------------------- >This SF.NET email is sponsored by: A Thawte Code Signing Certificate >is essential in establishing user confidence by providing assurance of >authenticity and code integrity. Download our Free Code Signing guide: >http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0028en >_______________________________________________ >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: 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 From karl at debisschop.net Sun Jan 19 07:25:38 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 19 Jan 2003 01:25:38 -0500 Subject: invert results in nagios or netsaint In-Reply-To: <3E27F8A0.28EC6630@gcc.dhl.com> References: <25BC686423E66F46971C458A4782FEAF15A435@dkdn01mx07.danfoss.net> <3E27F8A0.28EC6630@gcc.dhl.com> Message-ID: <1042957538.16578.1.camel@localhost.localdomain> On Fri, 2003-01-17 at 07:35, Tom DE BLENDE wrote: > Write a small script that wraps the output of check_ping... plugins come with a negate wrapper to do this > > > Vinther Jonas Struer wrote: > > > > Hi. > > > > > > > > I want to know if it is possible to invert ping results, so that > > when the router is unavailable it is green, and when It goes online > > I must be red. > > > > > > > > > > > > Med venlig hilsen / Yours sincerely > > > > Jonas Struer Vinther > > > > > > > > Technician > > > > Danfoss A/S > > > > > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information by implementing > SSL on your Apache Web Server. Click here to get our FREE Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: 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 From mpowell at ena.com Sun Jan 19 14:26:33 2003 From: mpowell at ena.com (Marc Powell) Date: Sun, 19 Jan 2003 07:26:33 -0600 Subject: check_traffic plugin - another problem Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2684E@mismail.ena.com> Looks like check_traffic could use some work to massage interface names. Looks like it's trying to find the directory x.x.x.x_Ethernet0 to create the file 0.rrd. Maybe it should substitute _'s for /'s like cricket does. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Olivier F. Beauchemin (Budget-Tech IT Consulting) To: 'Adrian Wieczorek' ; Nagios-users at lists.sourceforge.net Sent: Sat Jan 18 10:58:14 2003 Subject: Re: [Nagios-users] re: check_traffic plugin - another problem Also, when I run the check_traffic plugin via the command line I get: [obeauche at mrtg libexec]# ./check_traffic -H x.x.x.x -i 3 -b 1250000 -r Ethernet0/0 -w 95 -c 85 ERROR: opening '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such file or directory Total RX Bytes: 1646.57 MB, Total TX Bytes: 2422.08 MB
Average Traffic: 9.62 kB/s (0.8%) in, 2.47 kB/s (0.2%) out [obeauche at mrtg libexec]# So, snmp is doing it's thing. I think the plugin in general is doing it's thing... but not creating the .rrd files. Thanks, Olivier PS. It would be nice if some of the variables that had to be edited, like hostname, host and community were able to be entered via the command line rather than hard-coded into make-config or check_traffic. ----- Original Message ----- From: "Olivier Beauchemin (Budget-Tech IT Consulting)" > [obeauche at mrtg check_traffic-0.90b]# ./make-config > Number of Interfaces found: 4 > > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/1.rrd': No such > file or directory > > So, it seems that I am unable to create the .rrd files for anything beyond > the Null0 interface. I would assume that this is because of the '/' from the > interface name. I'm also guessing that the reason the .cgi and hostextinfo > isn't populating with the rest of the interfaces is because it's not able to > finish creating these files. > > Anyone have the fixes or improvements, to this great plugin? > > Olivier ------------------------------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jsm at inpro.net Sun Jan 19 15:55:18 2003 From: jsm at inpro.net (jsm at inpro.net) Date: Sun, 19 Jan 2003 09:55:18 -0500 Subject: UPS Monitoring References: <1042831333.21692.3.camel@rh80-jsm.telaurus.net> <1042844792.30861.7.camel@pivert.pivertdomain.be> <20030117231915.M78563@4wx.net> <20030118074722.GC3746@soja.ksnet.com.> Message-ID: <002e01c2bfca$d6b7bd60$be4476d8@xphome> Russell, Thanks, I'll look into that as a last resort. Money is VERY tight. Good suggestion though! thanks, Jeff ----- Original Message ----- From: "Russell Adams" To: "Nagios List" Sent: Saturday, January 18, 2003 2:47 AM Subject: Re: [Nagios-users] UPS Monitoring > There is an older SNMP adapter for APC UPS's that fits on the serial > port. I have them all over the place at work, since most of our > refurbed UPS's don't have the NICs. > > Its the APC SNMP Adapter, mine are running firmware v2.2g. Its a white > box about the size of a DSL modem that plugs into the serial port, and > has a 10-baseT jack. Configure your BOOTP server with its MAC, > configure the snmp adapter via direct serial interface, and then start > polling over SNMP. > > There's also a environmental monitor you can chain onto them that > gives you external temp/humidity from wherever you mount the external > monitor. Its just another little white box on a serial cable. ;] > > Whats also handy is that the environmental monitor also has 6 relay > contact switches that you can use for remote signalling via SNMP. For > example, take a magnetic door sensor and put the wires into the > external monitor. When the magnet moves, and the circuit breaks, the > device will send an SNMP trap to your host. > > I think you can find these on Ebay, they fit any APC UPS on the serial > port. > > Russell > > On Fri, Jan 17, 2003 at 05:19:15PM -0600, 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: 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: 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 From cjs at cjs226.com Sun Jan 19 17:25:07 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Sun, 19 Jan 2003 10:25:07 -0600 Subject: Parents In-Reply-To: <3E2514BB.5B97CF04@gcc.dhl.com> References: <20030114153944.39832.qmail@web21512.mail.yahoo.com> <3E251309.36816DD1@gcc.dhl.com> <3E2514BB.5B97CF04@gcc.dhl.com> Message-ID: <3E2AD163.3070803@cjs226.com> In this scenario, I'd have 2 hosts, one for the 0 and one for the 172 network and setup the services, etc. under the appropriate host. cjs Tom DE BLENDE wrote: >I hate it when this happens... > >So, now the full story... > >I did that, and then I see two links on the Status Map page. That is >OK. Now the question is: what is the result of this? What will happen >if one of the two parents goes down? > >You see, what I have is this: > >Nagios box: >IF A: 172.20.200.109 >IF B: 10.30.66.66 > >Server: >IF A: 172.20.200.40 >IF B: 10.30.66.10 > >10. goes to a router >172.20. goes to a switch > >This server has the 10.30.66.10 IP as host_address. This is the IP of >the private GigaBit backbone that both this server and the nagios box >share. > >Now, some service checks are done over the 10. network, and some are >done over the 172.20. network. However, since the server is defined >with its 10. IP, Nagios will only see this host as being down when it >receives no reply from that interface. It doesn't care about the other >one. So what would be the advantage of adding the switch on the >172.20. network as a parent, if you know that if that interface fails, >Nagios will not see it as a down host? > >I hope you know what I mean... > >Tom DE BLENDE wrote: > > >>I did that, and then I see two links on the Status Map page. That is >>OK. Now the question is: what is the result of this? What will happen >>if one of the two parents goes down? >> >>You see, what I have is this: >> >>Nagios box: >>IF A: 172.20.200.109 >>IF B: 10.30.66.66 >> >>Server: >>IF A: 172.20.200.40 >>IF B: 10.30.66.10 >> >>This server has the 10.30.66.10 IP as host_address. This is the IP of >>the private GigaBit backbone that both this server and the nagios box >>share. >> >>Now, some service checks are done over the 10. >> >> > > >------------------------------------------------------- >This SF.NET email is sponsored by: Take your first step towards giving >your online business a competitive advantage. Test-drive a Thawte SSL >certificate - our easy online guide will show you how. Click here to get >started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en >_______________________________________________ >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: 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 From iain at g7iii.demon.co.uk Sun Jan 19 20:50:12 2003 From: iain at g7iii.demon.co.uk (Iain Young) Date: Sun, 19 Jan 2003 19:50:12 +0000 Subject: openvrml-lookat/freewrl problems Message-ID: <20030119195012.GA433@g7iii.demon.co.uk> Hi All, I've been exploring the demo page for Nagios, and am having trouble with the 3D status map. I tried both openvrml and freewrl, running under debian/sid, under i386 and Sparc. Both fail to display the map, whether I run them as a plug in, or save the statuswrl.cgi output to a file, then run it manually. Has anyone else managed to get either of these VRML plugins working ? Any hints or tips ? Below is the output from both plugins. Iain Output from freewrl: FreeWRL NOTE: run with -best mode to get smooth shading PARSE ERROR: '.org"] } Background{ skyColor 0.1 0.1 0.15 } Fog' XXX '{ color 0.1 0.1 0.15 fogType "EXPONENTIAL" visibil', in Invalid node 'Fog' because at /usr/lib/perl5/VRML/Parser.pm line 66. VRML::Error::parsefail('\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...','Invalid node \'Fog\'') called at /usr/lib/perl5/VRML/Parser.pm line 346 VRML::Field::SFNode::parse('VRML::Field::SFNode','VRML::Scene=HASH(0x643a18)','\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...') called at /usr/lib/perl5/VRML/Parser.pm line 141 VRML::Parser::parse_statement('VRML::Scene=HASH(0x643a18)','\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...') called at /usr/lib/perl5/VRML/Parser.pm line 103 VRML::Parser::parse('VRML::Scene=HASH(0x643a18)','#VRML V2.0 utf8\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status ...') called at /usr/lib/perl5/VRML/Browser.pm line 107 VRML::Browser::load_string('VRML::Browser=HASH(0x5f648c)','#VRML V2.0 utf8\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status ...','statuswrl.cgi') called at /usr/lib/perl5/VRML/Browser.pm line 99 VRML::Browser::load_file('VRML::Browser=HASH(0x5f648c)','statuswrl.cgi','undef') called at /usr/bin/freewrl line 537 Output from lookat: readWRL statuswrl.cgi HostText::addIS(font_color, Material::.diffuseColor) HostText::addIS(the_text, Text::.string) Loading statuswrl.cgi ...HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)Default Viewpoint TimeSensor.ProblemTimer isActive TRUE Couldn't read ImageTexture from URL /nagios/images/logos/nagiosvrml.png Couldn't read ImageTexture from URL /nagios/images/logos/freebsd40.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/aix.png Couldn't read ImageTexture from URL /nagios/images/logos/aix.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/firebox.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/firebox.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/freebsd40.png Couldn't read ImageTexture from URL /nagios/images/logos/MailServer.png Couldn't read ImageTexture from URL /nagios/images/logos/linux40.png View status details for host 'uk2net-firewall' (UK2net Firewall) (status.cgi?host=uk2net-firewall) done. ------------------------------------------------------- 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 From lj at mandala-designs.com Sun Jan 19 21:51:38 2003 From: lj at mandala-designs.com (ljacobs ) Date: Sun, 19 Jan 2003 15:51:38 -0500 Subject: frequency of service checks Message-ID: <200301191551.AA16123066@mandala-designs.com> I cannot locate the setting for changing the default frequency for running service checks. Any help would be appreciated. Thanks. --Len Jacobs Mandala Designs ________________________________________________________________ Sent via the WebMail system at mandala-designs.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 From sandromergvaz at uol.com.br Sun Jan 19 22:49:17 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Sun, 19 Jan 2003 19:49:17 -0200 Subject: RES: frequency of service checks In-Reply-To: <200301191551.AA16123066@mandala-designs.com> References: <200301191551.AA16123066@mandala-designs.com> Message-ID: Len: I believe there's no "default frequency"; you have to define it for each service or create a template to apply to more than one host. The parameter is normal_check_interval as you can see at example below. HTH, SMV ************************************************************************ define service{ use generic-service host_name xxx service_description yyy is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups zzz notification_interval 240 notification_period 24x7 notification_options u,c,r check_command check_none } -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de ljacobs Enviada em: domingo, 19 de janeiro de 2003 18:52 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] frequency of service checks I cannot locate the setting for changing the default frequency for running service checks. Any help would be appreciated. Thanks. --Len Jacobs Mandala Designs ________________________________________________________________ Sent via the WebMail system at mandala-designs.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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/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 From lj at mandala-designs.com Sun Jan 19 23:03:23 2003 From: lj at mandala-designs.com (ljacobs ) Date: Sun, 19 Jan 2003 17:03:23 -0500 Subject: RES: frequency of service checks Message-ID: <200301191703.AA21365806@mandala-designs.com> Thanks for this reply. However what is the source of the time referred to in the square in the upper left corner of the main screen? It is the box that contains the text of "Last Updated: "TIme" and "Updated every 90 seconds" ? And does the integer referenced in normal_check_interval refer to minutes? ---------- Original Message ---------------------------------- From: "Sandro Vaz (UOL)" Date: Sun, 19 Jan 2003 19:49:17 -0200 >Len: > >I believe there's no "default frequency"; you have to define it for each >service or create a template to apply to more than one host. > >The parameter is normal_check_interval as you can see at example below. > >HTH, > >SMV > >************************************************************************ > >define service{ > use generic-service > host_name xxx > service_description yyy > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups zzz > notification_interval 240 > notification_period 24x7 > notification_options u,c,r > check_command check_none > } > >-----Mensagem original----- >De: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] Em nome de ljacobs >Enviada em: domingo, 19 de janeiro de 2003 18:52 >Para: nagios-users at lists.sourceforge.net >Assunto: [Nagios-users] frequency of service checks > > >I cannot locate the setting for changing the default frequency for running >service checks. Any help would be appreciated. > >Thanks. > >--Len Jacobs >Mandala Designs > > > > >________________________________________________________________ >Sent via the WebMail system at mandala-designs.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 > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > >--- >[This E-mail scanned for viruses by Declude Virus] > > ________________________________________________________________ Sent via the WebMail system at mandala-designs.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 From nagios at atlantic-isp.co.uk Sun Jan 19 23:32:49 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Sun, 19 Jan 2003 22:32:49 -0000 Subject: Problem with performance data and event handlers Message-ID: <000401c2c00a$b5b8ac60$c798fdd5@main> I have enabled performance data in Nagios 1.0 but it does not seem to be working correctly. I compiled Nagios to use File Based Method and have added xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$O UTPUT$\t$PERFDATA$ xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ To the nagios.cfg file as described in the docs. I completely stopped Nagios and restarted it and although the files hostpref.log and servicepref.log are created by Nagios no data is written to them. Also I have noticed that although the nagios.cfg file has event_handlers enabled the tactical overview shows them as disabled. Any ideas? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Sun Jan 19 23:54:30 2003 From: mpowell at ena.com (Marc Powell) Date: Sun, 19 Jan 2003 16:54:30 -0600 Subject: RES: frequency of service checks Message-ID: <5DB017510818EC468B05BD7BD9EACF8301E2684F@mismail.ena.com> That time and refresh interval are strictly related to the web page refresh... By default the page will reload every 90 seconds. You can change that interval in cgi.cfg. The normal_check_interval is indeed in minutes unless you have modified the interval_length from its default of 60 seconds. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: ljacobs To: Sandro Vaz CC: Nagios-users at lists.sourceforge.net Sent: Sun Jan 19 16:03:23 2003 Subject: Re: RES: [Nagios-users] frequency of service checks Thanks for this reply. However what is the source of the time referred to in the square in the upper left corner of the main screen? It is the box that contains the text of "Last Updated: "TIme" and "Updated every 90 seconds" ? And does the integer referenced in normal_check_interval refer to minutes? ---------- Original Message ---------------------------------- From: "Sandro Vaz (UOL)" Date: Sun, 19 Jan 2003 19:49:17 -0200 >Len: > >I believe there's no "default frequency"; you have to define it for each >service or create a template to apply to more than one host. > >The parameter is normal_check_interval as you can see at example below. > >HTH, > >SMV > >************************************************************************ > >define service{ > use generic-service > host_name xxx > service_description yyy > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups zzz > notification_interval 240 > notification_period 24x7 > notification_options u,c,r > check_command check_none > } > >-----Mensagem original----- >De: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] Em nome de ljacobs >Enviada em: domingo, 19 de janeiro de 2003 18:52 >Para: nagios-users at lists.sourceforge.net >Assunto: [Nagios-users] frequency of service checks > > >I cannot locate the setting for changing the default frequency for running >service checks. Any help would be appreciated. > >Thanks. > >--Len Jacobs >Mandala Designs > > > > >________________________________________________________________ >Sent via the WebMail system at mandala-designs.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 > >--- >Incoming mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > >--- >Outgoing mail is certified Virus Free. >Checked by AVG anti-virus system (http://www.grisoft.com). >Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 > > >--- >[This E-mail scanned for viruses by Declude Virus] > > ________________________________________________________________ Sent via the WebMail system at mandala-designs.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From ofb at budget-tech.com Mon Jan 20 00:47:48 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Sun, 19 Jan 2003 18:47:48 -0500 Subject: check_traffic plugin - another problem References: <5DB017510818EC468B05BD7BD9EACF8301E2684E@mismail.ena.com> Message-ID: <001f01c2c015$2cd6dc40$0201a8c0@boston> I think you are right. Not being a PERL person, can anyone throw me a fix for my dilemma? Thanks, Olivier ----- Original Message ----- From: "Marc Powell" Looks like check_traffic could use some work to massage interface names. Looks like it's trying to find the directory x.x.x.x_Ethernet0 to create the file 0.rrd. Maybe it should substitute _'s for /'s like cricket does. ------------------------------------------------------- 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 From twelsh at square-box.com Mon Jan 20 00:57:14 2003 From: twelsh at square-box.com (Tom Welsh) Date: Sun, 19 Jan 2003 23:57:14 -0000 Subject: openvrml-lookat/freewrl problems In-Reply-To: <20030119195012.GA433@g7iii.demon.co.uk> References: <20030119195012.GA433@g7iii.demon.co.uk> Message-ID: <000401c2c016$7d685c00$0400a8c0@squarebox.com> Hi Iain, I host the nagios demo site and it appears to be working for me from IE with the Cortona plugin. I have seen other mailings on this list talking about probs with vrml plugins from their *nix boxes. They two were using openvrml and freewrl. Have you tried looking at other vrml sites to make sure your vrml client is actually working? Take a look at http://www.vrwonders.com/vrsolarsystem/frameset.htm which is another vr world. Does this work for you? Can some one using a *nix based machine mail me direct if they have been able to view the 3d status page from their box just for my peace of mind. At least then I'll rule out the site, which im sure its not Cheers 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 Iain Young Sent: 19 January 2003 19:50 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] openvrml-lookat/freewrl problems Hi All, I've been exploring the demo page for Nagios, and am having trouble with the 3D status map. I tried both openvrml and freewrl, running under debian/sid, under i386 and Sparc. Both fail to display the map, whether I run them as a plug in, or save the statuswrl.cgi output to a file, then run it manually. Has anyone else managed to get either of these VRML plugins working ? Any hints or tips ? Below is the output from both plugins. Iain Output from freewrl: FreeWRL NOTE: run with -best mode to get smooth shading PARSE ERROR: '.org"] } Background{ skyColor 0.1 0.1 0.15 } Fog' XXX '{ color 0.1 0.1 0.15 fogType "EXPONENTIAL" visibil', in Invalid node 'Fog' because at /usr/lib/perl5/VRML/Parser.pm line 66. VRML::Error::parsefail('\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...','Invalid node \'Fog\'') called at /usr/lib/perl5/VRML/Parser.pm line 346 VRML::Field::SFNode::parse('VRML::Field::SFNode','VRML::Scene=HASH(0x643 a18)','\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...') called at /usr/lib/perl5/VRML/Parser.pm line 141 VRML::Parser::parse_statement('VRML::Scene=HASH(0x643a18)','\x{a}\x{a}Wo rldInfo{\x{a}title "Nagios 3-D Network Status View"\x{a}info ["Co...') called at /usr/lib/perl5/VRML/Parser.pm line 103 VRML::Parser::parse('VRML::Scene=HASH(0x643a18)','#VRML V2.0 utf8\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status ...') called at /usr/lib/perl5/VRML/Browser.pm line 107 VRML::Browser::load_string('VRML::Browser=HASH(0x5f648c)','#VRML V2.0 utf8\x{a}\x{a}WorldInfo{\x{a}title "Nagios 3-D Network Status ...','statuswrl.cgi') called at /usr/lib/perl5/VRML/Browser.pm line 99 VRML::Browser::load_file('VRML::Browser=HASH(0x5f648c)','statuswrl.cgi', 'undef') called at /usr/bin/freewrl line 537 Output from lookat: readWRL statuswrl.cgi HostText::addIS(font_color, Material::.diffuseColor) HostText::addIS(the_text, Text::.string) Loading statuswrl.cgi ...HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)HostText:: setting IS field the_text on #1::string HostText:: setting IS field font_color on #1::diffuseColor Text::setField: no such field (diffuseColor)Default Viewpoint TimeSensor.ProblemTimer isActive TRUE Couldn't read ImageTexture from URL /nagios/images/logos/nagiosvrml.png Couldn't read ImageTexture from URL /nagios/images/logos/freebsd40.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/sun40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/win40.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/aix.png Couldn't read ImageTexture from URL /nagios/images/logos/aix.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/firebox.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/firebox.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/redhat.png Couldn't read ImageTexture from URL /nagios/images/logos/cisco7206.png Couldn't read ImageTexture from URL /nagios/images/logos/freebsd40.png Couldn't read ImageTexture from URL /nagios/images/logos/MailServer.png Couldn't read ImageTexture from URL /nagios/images/logos/linux40.png View status details for host 'uk2net-firewall' (UK2net Firewall) (status.cgi?host=uk2net-firewall) done. ------------------------------------------------------- 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 ------------------------------------------------------- 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 From cjs at cjs226.com Mon Jan 20 02:48:28 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Sun, 19 Jan 2003 19:48:28 -0600 Subject: NSClient, proper syntax for SHOWALL? Message-ID: <3E2B556C.7010201@cjs226.com> What's the proper syntax for nsclient/check_nt to see all working services? I've tried the following: # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL No service/process specified # ./check_nt -H engsvcs -v SERVICESTATE -l -d SHOWALL -d: Unknown # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL -l ./check_nt: option requires an argument -- l check_nt: Unknown argument: (null) # ./check_nt -H engsvcs -d SHOWALL (null) cjs ------------------------------------------------------- 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 From cjs at cjs226.com Mon Jan 20 03:51:06 2003 From: cjs at cjs226.com (Clif J. Smith) Date: Sun, 19 Jan 2003 20:51:06 -0600 Subject: NSClient, proper syntax for SHOWALL? In-Reply-To: <3E2B556C.7010201@cjs226.com> References: <3E2B556C.7010201@cjs226.com> Message-ID: <3E2B641A.7080602@cjs226.com> Nevermind... cjs Clif J. Smith wrote: > What's the proper syntax for nsclient/check_nt to see all working > services? I've tried the following: > > # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL > No service/process specified > > # ./check_nt -H engsvcs -v SERVICESTATE -l -d SHOWALL > -d: Unknown > > # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL -l > ./check_nt: option requires an argument -- l > check_nt: Unknown argument: (null) > > # ./check_nt -H engsvcs -d SHOWALL > (null) > > > cjs > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 From rcolley at cardaccess.com.au Mon Jan 20 04:34:12 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Mon, 20 Jan 2003 14:34:12 +1100 Subject: check_traffic plugin - another problem References: <5DB017510818EC468B05BD7BD9EACF8301E2684E@mismail.ena.com> <001f01c2c015$2cd6dc40$0201a8c0@boston> Message-ID: <002f01c2c034$d03100e0$1550a8c0@mondo> This is almost the same as the fix I posted in this thread before. To repeat (modified slightly) ... The solution is to modify both check_traffic and make-config, and put the following line, after where $db_file is assigned: $db_file =~ s!/:!-!g; Richard ----- Original Message ----- From: "Olivier F. Beauchemin (Budget-Tech IT Consulting)" To: "Marc Powell" ; ; Sent: Monday, January 20, 2003 10:47 AM Subject: Re: [Nagios-users] re: check_traffic plugin - another problem > I think you are right. Not being a PERL person, can anyone throw me a fix > for my dilemma? > > Thanks, > Olivier > > ----- Original Message ----- > From: "Marc Powell" > > > Looks like check_traffic could use some work to massage interface names. > Looks like it's trying to find the directory x.x.x.x_Ethernet0 to create the > file 0.rrd. > > Maybe it should substitute _'s for /'s like cricket does. > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From tim at mintoskatingclub.com Mon Jan 20 05:49:21 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Sun, 19 Jan 2003 23:49:21 -0500 Subject: NSClient, proper syntax for SHOWALL? References: <3E2B556C.7010201@cjs226.com> <3E2B641A.7080602@cjs226.com> Message-ID: <001a01c2c03f$4c7f9ee0$6401a8c0@notebook> What was the correct syntax? ----- Original Message ----- From: Clif J. Smith Cc: rubiyz1047 at swyz.com ; nagios-users at lists.sourceforge.net Sent: Sunday, January 19, 2003 9:51 PM Subject: Re: [Nagios-users] NSClient, proper syntax for SHOWALL? Nevermind... cjs Clif J. Smith wrote: > What's the proper syntax for nsclient/check_nt to see all working > services? I've tried the following: > > # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL > No service/process specified > > # ./check_nt -H engsvcs -v SERVICESTATE -l -d SHOWALL > -d: Unknown > > # ./check_nt -H engsvcs -v SERVICESTATE -d SHOWALL -l > ./check_nt: option requires an argument -- l > check_nt: Unknown argument: (null) > > # ./check_nt -H engsvcs -d SHOWALL > (null) > > > cjs > > > > ------------------------------------------------------- > 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 ------------------------------------------------------- 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 rvelez at sunguruz.com Mon Jan 20 07:52:23 2003 From: rvelez at sunguruz.com (rvelez) Date: Mon, 20 Jan 2003 01:52:23 -0500 Subject: mailq Message-ID: <000501c2c050$7c185000$0300a8c0@sunguruz.com> Has anyone gotten mailq to check qmail using qmail-qstat? I have tried to modify the script but it is not working for me. Thanks for the help -Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From rvelez at sunguruz.com Mon Jan 20 07:51:27 2003 From: rvelez at sunguruz.com (rvelez) Date: Mon, 20 Jan 2003 01:51:27 -0500 Subject: check_disk_smb command Message-ID: <000001c2c050$5b1ab9b0$0300a8c0@sunguruz.com> Hey guys, I am trying to get my nagios to check disk space on my NT server using the check_disk_smb command. In my nagios.cfg file I have # Service definition define service{ use generic-service ; Name of service template to use host_name nspdc2.sunguruz.com service_description C Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups SystemAdmins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command ./check_disk_smb } And in my misccommands.cfg I have define command{ command_name check_disk_smb command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ } When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am getting an error saying Checking services... Error: Service check command './check_disk_smb' specified in service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined anywhere! Now I know that there are some flags that I need to specify inorder for nagios to get this info but I am not sure where I need to specify them or what the syntax would be, could someone help me out and show me how? Thanks for your help guys -Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From mailing at bgs-ing.de Mon Jan 20 09:29:43 2003 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Mon, 20 Jan 2003 09:29:43 +0100 Subject: Archiv-logfiles are wrong name? Message-ID: Hi, I have installed Nagios 1.0 and I want to view the availability report for january, but there is always 100% for all services. This cant't be right! I found out that the logfiles stored in /usr/local/nagios/var/archives have wrong names. There are two different files: nagios-01-10-2003-00.log nagios-01-10-2003-23.log The first file contains only "[1042239583] LOG ROTATION: DAILY" and the second contains the log informations. But the normal log informations should be logged in nagios-01-10-2003-00 .log and not in nagios-01-10-2003-23.log. Therefore showlog.cgi only shows the current log file informations and then for every day "LOG ROTATION: DAILY". Changed nagios the logfiles to early? Where is the problem? Thanks Nicole ------------------------------------------------------- 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 From desmondc at bii.a-star.edu.sg Mon Jan 20 09:43:09 2003 From: desmondc at bii.a-star.edu.sg (Desmond Chia) Date: Mon, 20 Jan 2003 16:43:09 +0800 Subject: Archiv-logfiles are wrong name? References: Message-ID: <001901c2c05f$f59209d0$0b79a8c0@desmond> Check the permission settings for your log files? Check through your cgi.cfg and nagios.cfg.... ----- Original Message ----- From: To: Sent: Monday, January 20, 2003 4:29 PM Subject: [Nagios-users] Archiv-logfiles are wrong name? > Hi, > > I have installed Nagios 1.0 and I want to view the availability report for > january, > but there is always 100% for all services. This cant't be right! > I found out that the logfiles stored in /usr/local/nagios/var/archives have > wrong names. > There are two different files: > > nagios-01-10-2003-00.log > nagios-01-10-2003-23.log > > The first file contains only "[1042239583] LOG ROTATION: DAILY" > and the second contains the log informations. > But the normal log informations should be logged in nagios-01-10-2003-00 > .log > and not in > nagios-01-10-2003-23.log. > Therefore showlog.cgi only shows the current log file informations and then > for every day "LOG ROTATION: DAILY". > > Changed nagios the logfiles to early? > > Where is the problem? > > > Thanks > Nicole > > > > ------------------------------------------------------- > 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 > > ------------------------------------------------------- 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 From Ton.Voon at egg.com Mon Jan 20 11:29:49 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Mon, 20 Jan 2003 10:29:49 -0000 Subject: Archiv-logfiles are wrong name? Message-ID: <53104E20A25CD411B556009027E50636064D5133@pnnemp02.pn.egg.com> I had this problem (http://www.nagios.org/faqs/viewfaq.php?faq_id=93). Problem turned out to be that the time on the server has stepping backwards and forewards due to NTP. This seems to cause Nagios to have problems with when the logs are rotated. The fix was to get the system admins to use NTP in slewing mode, rather than stepping. This means there is only ever 1 midnight point. > -----Original Message----- > From: mailing at bgs-ing.de [SMTP:mailing at bgs-ing.de] > Sent: Monday, January 20, 2003 8:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Archiv-logfiles are wrong name? > > Hi, > > I have installed Nagios 1.0 and I want to view the availability report for > january, > but there is always 100% for all services. This cant't be right! > I found out that the logfiles stored in /usr/local/nagios/var/archives > have > wrong names. > There are two different files: > > nagios-01-10-2003-00.log > nagios-01-10-2003-23.log > > The first file contains only "[1042239583] LOG ROTATION: DAILY" > and the second contains the log informations. > But the normal log informations should be logged in nagios-01-10-2003-00 > .log > and not in > nagios-01-10-2003-23.log. > Therefore showlog.cgi only shows the current log file informations and > then > for every day "LOG ROTATION: DAILY". > > Changed nagios the logfiles to early? > > Where is the problem? > > > Thanks > Nicole > > > > ------------------------------------------------------- > 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 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: 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 From mailing at bgs-ing.de Mon Jan 20 12:05:07 2003 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Mon, 20 Jan 2003 12:05:07 +0100 Subject: Archiv-logfiles are wrong name? Message-ID: Yes, I have a script which syncs the time. I try without. Thanks! Nicole ------------------------------------------------------- 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 From fernando at puc-campinas.edu.br Mon Jan 20 13:40:38 2003 From: fernando at puc-campinas.edu.br (Fernando Ribeiro) Date: Mon, 20 Jan 2003 10:40:38 -0200 Subject: check_disk_smb command References: <000001c2c050$5b1ab9b0$0300a8c0@sunguruz.com> Message-ID: <008401c2c081$2310e860$0ffb88c8@cifernando> Hello, Try removing the "./" from the "check_command" parameter in the services file. In this parameter you have to specify the name of your command that is defined in the commands config file (usually checkcommands.cfg) The name of your command is "check_disk_smb" and Nagios is looking for "./check_disk_smb". Good luck! Fernando ----- Original Message ----- From: rvelez To: nagios-users at lists.sourceforge.net Sent: Monday, January 20, 2003 4:51 AM Subject: [Nagios-users] check_disk_smb command Hey guys, I am trying to get my nagios to check disk space on my NT server using the check_disk_smb command. In my nagios.cfg file I have # Service definition define service{ use generic-service ; Name of service template to use host_name nspdc2.sunguruz.com service_description C Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups SystemAdmins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command ./check_disk_smb } And in my misccommands.cfg I have define command{ command_name check_disk_smb command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ } When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am getting an error saying Checking services... Error: Service check command './check_disk_smb' specified in service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined anywhere! Now I know that there are some flags that I need to specify inorder for nagios to get this info but I am not sure where I need to specify them or what the syntax would be, could someone help me out and show me how? Thanks for your help guys -Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From karoly.vegh at uta.at Mon Jan 20 14:30:57 2003 From: karoly.vegh at uta.at (VEGH Karoly) Date: Mon, 20 Jan 2003 14:30:57 +0100 (CET) Subject: check_by_ssh and Nagios communication Message-ID: Hi, I run Nagios on a debian linux, and up to now i could solve all my problems, but one: the check_by_ssh plugin works just perfect, if i call it by hand, but in the webfrontend i see an errormessage, just like in the log. Executed by hand: newmx4:/opt/nagios# su - nagios nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ '/opt/nagios/libexec/check_disk -w 15% -c 5%' DISK OK - [6951632 kB (95%) free on /dev/md0] [17208 kB (78%) free on /dev/md1] [2301668 kB (91%) free on /dev/md2] nagios at newmx4:~$ in my checkommands.cfg file is: # 'ssh_disk' command definition command_name ssh_disk command_line command[ssh_disk]=/opt/nagios/libexec/check_by_ssh -H $HOSTADDRESS$ -C '/opt/nagios/libexec/check_disk -w 15% -c 5%' newmx4:/opt/nagios# but in /opt/nagios/var/log/nagios.log: [1043069066] Warning: Return code of 127 for check of service 'REMOTE-DISK' on host 'newmx4' was out of bounds. Make sure the plugin you're trying to run actually exists. I use: nagios-1.0 nagios-plugins-1.3.0-beta2 kernel 2.4.18-ac3 OpenSSH3.4p1 the nagios user can authenticate itself between the machines wit RSA public key. what do i do wrong? any help is appreciated. tia charlie -- Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI /* no comment */ ------------------------------------------------------- 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 From atulsh at hclinsys.com Mon Jan 20 10:02:31 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Mon, 20 Jan 2003 14:32:31 +0530 Subject: SNMP Traps Message-ID: <004a01c2c062$aa6a5ae0$5f7b0297@atul> Hello All, Can anyone tell me how can I handle SNMP traps in nagios which are being send by the machines on which SNMP Trap service is running. 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 sandromergvaz at uol.com.br Mon Jan 20 16:12:58 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Mon, 20 Jan 2003 13:12:58 -0200 Subject: RES: SNMP Traps In-Reply-To: <004a01c2c062$aa6a5ae0$5f7b0297@atul> References: <004a01c2c062$aa6a5ae0$5f7b0297@atul> Message-ID: Atul: If you read the Nagios' docs (excellent, need to say), you will find one entry named "SNMP Traps", where the answers to your doubts are placed. Sure that this helps, SMV -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Atul Shrivastava Enviada em: segunda-feira, 20 de janeiro de 2003 07:03 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] SNMP Traps Prioridade: Alta Hello All, Can anyone tell me how can I handle SNMP traps in nagios which are being send by the machines on which SNMP Trap service is running. 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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/1/2003 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Jan 20 16:58:43 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 09:58:43 -0600 Subject: aggregated status messages Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2506@PKDWB03C.ad.sprint.com> Using the 'parents' directive, one host will effectively become dependant on another. Plus, the status map will reflect this hierarchy. Creating a host dependancy won't do anything to the status map. If one host is dependant on another, I suppose you could say that the services of the dependent host depend on the depended-on host, but the services of the dependent host don't depend on any services of the depended-on host, unless you explicity define that dependency. In my case, I have multiple NRPE services dependent on one particular NRPE service on the same host, but I could just as easily created the definition such that they were dependent on some arbitrary other service on some arbitrary host. (Ideally, the choice would make sense, and not be arbitrary. ;) If you can honestly say to yourself something like, "If I define dependencies such that hosts B, C, D and E are all dependent on A, and I really don't care what the status of hosts B, C, D and E are if the ping RTA time of host A goes through the roof", then you may be a good candidate to define this depedency. BUT, if host A is acting up or in a scheduled outage or similar, and any one of host B/C/D/E suffers the pingtime problem (e.g., host died a horrible death), then you won't get a notification. Sorry, you created the definition, so that's how it is. If this isn't acceptable, then I'm not sure what to say. You can put in the request for consolidating notifications, but I see some problems right away: How would you define the consolidation logic? Wait for a predefined threshold of hosts to squawk before sending the single notification? Wait for a quorum of hosts to complain? Wait for a percentage failure? What if that threshold isn't reached? Do you want it to wait a fixed amount of time before sending out the consolidated message? Do you want it to wait for a timeout of sorts (e.g., several hosts send notifications; wait 5 mins after the last one before sending out the consolidated message)? I can't help but think that defining some sort of dependency might do what you need to do. Take a look at the docs regarding host/service dependencies. I know I ended up going over them several times in order to get a clear picture of what it can do. I don't think I'm even using the full capabilities; mine is a fairly simple config by comparison (in terms of logic, anyway). Perhaps instead of having all the hosts funnel their dependencies into one particular host, divide the dependencies so that you end up with 2 'master' hosts. This would let you schedule downtime on one without ending up 'flying blind' on every other host. If one of these hosts complains, you may not be in bad shape, but if both of the hosts complain, you could have a major outage on your hands. But you'll still only receive the 2 notifications. Food for thought. jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Saturday, January 18, 2003 4:48 AM To: Carroll, Jim P [Contractor] Subject: RE: [Nagios-users] aggregated status messages Service dependancies....perhaps. But aren't services automatically considered dependant if hosts are? I kind of like the idea of squelching 'unreachable' messages and being done with it, but.... -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: Friday, January 17, 2003 6:47 PM To: 'Shayne Lebrun'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Perhaps host or service dependencies would be more to your liking. jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 3:28 PM To: Carroll, Jim P [Contractor]; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Look at it this way. One of my wireless subnets just went to hell; tripped 'service critical' messages for five or six servers, as the ping RTA time suddenly shot up. So I got five emails. I'd rather have gotten one email with five entries. -----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: Friday, January 17, 2003 2:48 PM To: 'Shayne Lebrun'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] aggregated status messages Read up on the 'parents' directive. Sounds like this will do exactly what you're looking for. (This was one of the main reasons we switched from BB to Nagios.) http://nagios.webdev.sprintspectrum.com/nagios/docs/xodtemplate.html#host jc -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Friday, January 17, 2003 11:33 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] aggregated status messages One thing I'd love to see from Nagios would be the ability to have aggregated status messages; I'd like to be able to tell it that when it feels the need to send a status message, it should tell me what (if anything) is already (still) down, what (if anything) has just come back up, and what (if anything) has just gone down. That way, if a satellite router goes down, I get one email saying 'routerX down, hosts a,b,c,d,e,f,g now unreachable' instead of getting eight or nine emails. Also, if a subnet goes down, but things are coming back up one by one, I can tell which is still down and which is still up. Makes it more efficient for mobile devices reciving said emails, too. 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Jan 20 17:10:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 10:10:18 -0600 Subject: UPS Monitoring Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1327@PKDWB03C.ad.sprint.com> Perhaps a more economical solution would be to have someone bring in their favourite canine. "What's that Lassie? The UPS for timmy01 fell into a well?" ;) Sorry, couldn't resist. :^) jc > -----Original Message----- > From: jsm at inpro.net [mailto:jsm at inpro.net] > Sent: Sunday, January 19, 2003 8:55 AM > To: Russell Adams; Nagios List > Subject: Re: [Nagios-users] UPS Monitoring > > > Russell, > > Thanks, I'll look into that as a last resort. Money is VERY > tight. Good > suggestion though! > > thanks, > > Jeff > ----- Original Message ----- > From: "Russell Adams" > To: "Nagios List" > Sent: Saturday, January 18, 2003 2:47 AM > Subject: Re: [Nagios-users] UPS Monitoring > > > > There is an older SNMP adapter for APC UPS's that fits on the serial > > port. I have them all over the place at work, since most of our > > refurbed UPS's don't have the NICs. > > > > Its the APC SNMP Adapter, mine are running firmware v2.2g. > Its a white > > box about the size of a DSL modem that plugs into the > serial port, and > > has a 10-baseT jack. Configure your BOOTP server with its MAC, > > configure the snmp adapter via direct serial interface, and > then start > > polling over SNMP. > > > > There's also a environmental monitor you can chain onto them that > > gives you external temp/humidity from wherever you mount > the external > > monitor. Its just another little white box on a serial cable. ;] > > > > Whats also handy is that the environmental monitor also has 6 relay > > contact switches that you can use for remote signalling via > SNMP. For > > example, take a magnetic door sensor and put the wires into the > > external monitor. When the magnet moves, and the circuit breaks, the > > device will send an SNMP trap to your host. > > > > I think you can find these on Ebay, they fit any APC UPS on > the serial > > port. > > > > Russell > > > > On Fri, Jan 17, 2003 at 05:19:15PM -0600, 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: 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: 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 > ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Mon Jan 20 17:13:23 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 10:13:23 -0600 Subject: Problem with performance data and event handle rs Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1328@PKDWB03C.ad.sprint.com> You need to recompile Nagios. First, go back to the source tree and do a 'make clean'. Then do: ./configure --with-file-perfdata Reinstall the CGIs and you should be good to go. jc -----Original Message----- From: Nagios [mailto:nagios at atlantic-isp.co.uk] Sent: Sunday, January 19, 2003 4:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with performance data and event handlers I have enabled performance data in Nagios 1.0 but it does not seem to be working correctly. I compiled Nagios to use File Based Method and have added xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ To the nagios.cfg file as described in the docs. I completely stopped Nagios and restarted it and although the files hostpref.log and servicepref.log are created by Nagios no data is written to them. Also I have noticed that although the nagios.cfg file has event_handlers enabled the tactical overview shows them as disabled. Any ideas? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at atlantic-isp.co.uk Mon Jan 20 18:25:03 2003 From: nagios at atlantic-isp.co.uk (Nagios) Date: Mon, 20 Jan 2003 17:25:03 -0000 Subject: Problem with performance data and event handlers In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1328@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1328@PKDWB03C.ad.sprint.com> Message-ID: <000a01c2c0a8$e1e9cd70$c798fdd5@main> Forgot to say I did compile it with that. ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl= --with-nagios-user=nagios --with-nagios-grp=nagios --with-template-extinfo --with-file-perfdata Tony -----Original Message----- From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] Sent: 20 January 2003 16:13 To: 'Nagios'; nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] Problem with performance data and event handlers You need to recompile Nagios. First, go back to the source tree and do a 'make clean'. Then do: ./configure --with-file-perfdata Reinstall the CGIs and you should be good to go. jc -----Original Message----- From: Nagios [mailto:nagios at atlantic-isp.co.uk] Sent: Sunday, January 19, 2003 4:33 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Problem with performance data and event handlers I have enabled performance data in Nagios 1.0 but it does not seem to be working correctly. I compiled Nagios to use File Based Method and have added xpdfile_service_perfdata_file=/usr/local/nagios/var/serviceperf.log xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$O UTPUT$\t$PERFDATA$ xpdfile_host_perfdata_file=/usr/local/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ To the nagios.cfg file as described in the docs. I completely stopped Nagios and restarted it and although the files hostpref.log and servicepref.log are created by Nagios no data is written to them. Also I have noticed that although the nagios.cfg file has event_handlers enabled the tactical overview shows them as disabled. Any ideas? Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From ads at irc.pila.pl Mon Jan 20 19:05:28 2003 From: ads at irc.pila.pl (Adrian Wieczorek) Date: Mon, 20 Jan 2003 19:05:28 +0100 Subject: check_traffic plugin - another problem In-Reply-To: <00e601c2beb7$76fa8f60$0401a8c0@moscow> References: <00e601c2beb7$76fa8f60$0401a8c0@moscow> Message-ID: <225191444.20030120190528@irc.pila.pl> Hello Olivier, Saturday, January 18, 2003, 7:04:28 AM, you wrote: > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Ethernet0/0.rrd': No such > file or directory > ERROR: creating > '/usr/local/nagios/check_traffic-0.90b/db/x.x.x.x_Serial0/1.rrd': No such > file or directory > So, it seems that I am unable to create the .rrd files for anything beyond > the Null0 interface. I would assume that this is because of the '/' from the > interface name. I'm also guessing that the reason the .cgi and hostextinfo > isn't populating with the rest of the interfaces is because it's not able to > finish creating these files. > Anyone have the fixes or improvements, to this great plugin? This bugs was noticed earlier on group, and will be fixed in next release, comming soon. -- pozdrawiam, ADi ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Mon Jan 20 20:59:26 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 13:59:26 -0600 Subject: URGENT Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F250A@PKDWB03C.ad.sprint.com> First, the reference to Stratum 2 servers: http://www.eecis.udel.edu/~mills/ntp/clock2a.html Next, some comments. When you set up your servers to use NTP, you don't tell them to use just one. That's asking for trouble. I would recommend at least 3 servers, and preferably an odd number of servers (so as to be able to form a quorum). Depending on the environment, I wouldn't necessarily go any higher than 7 servers. That's just for creating your own corporate Stratum 3 servers. You should be fine to create just 3 servers, but feel free to create more. Make sure that they're aware of each other, with the proper configuration. I believe the term is 'peer', but it's been a while for me. You could arguably have each one of these Stratum 3 servers query a completely different set of Stratum 2 servers (from the servers your other Stratum 3 servers query). This spreads queries over a wider area, reducing potential problems even more. Having one Stratum 2 server out of sync, and all 3 of your Stratum 3 servers will have to deal with it. Having one Stratum 2 server out of sync, with visibility restricted to just one Stratum 3 server, and your servers can improve the quality even more. Depending on your environment, you might want to make your servers broadcast/multicast servers, and let your NTP clients listen passively. In this case, you might want to put a server on each of your subnets. All other hosts on your network should refer to your own Stratum 3 servers. This cuts down on the traffic going to the Stratum 2 servers, and helps you to be a good netizen. :) With this sort of configuration, any server which is seen to have lost its mind when compared to the remaining servers will be ignored, aside from querying it to see if it's managed to recover. This is true of your Stratum 3 servers (comparing the Stratum 2 servers they're aware of to each other, as well as to its peers), as well as of your clients (effectively Stratum 4 servers, albeit not serving to any other hosts). Does this help? jc > -----Original Message----- > From: Gareth Hash [mailto:fyzix at yahoo.com] > Sent: Thursday, January 16, 2003 8:37 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] URGENT > > > Thank you for your replies. > > I figured out what it was and fixed it. The system time was set to > UTC. Nagios was set to EST, which automatically subtracted 5 hours > from the system time. I set the system time to EST and all was well. > > > > Also, you mentioned 'click'. That would imply you're running X. > > But you > > also mentioned 'production server'. That would imply you're NOT > > running X. > > I'm curious exactly what you mean by 'click'. Or what you mean by > > 'production server'. (NB: IMHO, a desktop is NOT a production > > server.) > > Well, not a "production" server in the way that you mean. It is a > "crucial desktop". > > > And why are you setting time manually anyway? Get thee onto NTP, > > ASAP. > > I have been trying to do just that. I read through a lot of man > pages, information, etc. The question is, to what should I > synchronize *my* NTP server? Any old public NTP server? The NRC? > If the server gives the wrong time, the clients will have the wrong > time, etc. > > Thank you. > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > > > ------------------------------------------------------- > This SF.NET email is sponsored by: Thawte.com > Understand how to protect your customers personal information > by implementing > SSL on your Apache Web Server. Click here to get our FREE > Thawte Apache > Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en > _______________________________________________ > 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: 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 From bnelson at rightnow.com Mon Jan 20 22:14:51 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Mon, 20 Jan 2003 14:14:51 -0700 Subject: schedule queue / pending checks Message-ID: Dan, I was starting to see something similar to this on my Nagios box as well. The problem in my case was many processes trying to write to a common FIFO of sorts, which resides in the main Nagios process. All of the processes seemed to be overwriting each other in the FIFO and by default the main Nagios process only cleans this buffer out every 10 seconds (I'm pretty sure that was the default). The configuration directive that controls the cleaning frequency is the 'service_reaper_frequency'. I turned this config option down a bit at a time until my service checks were all completing in an acceptable time frame. You might give that a try. --Ben -----Original Message----- From: dan radom [mailto:dan at radom.org] Sent: Saturday, January 18, 2003 9:51 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] schedule queue / pending checks I have nagios monitoring about 90 hosts and close to 300 services, and I've noticed that sometimes nagios takes hours and hours to perform checks. Looking at the scheduling queue I see that last check will sometimes be hours ago with the next check time having been passed up. Sometimes new service checks will remain in a pending state for 8 or 10 hours. Is this a known issue? If not any suggestions on how to go about starting to track downt he problem. Thanks, dan ------------------------------------------------------- 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Jan 20 23:48:21 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 16:48:21 -0600 Subject: xedtemplate_config_dir ??? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1333@PKDWB03C.ad.sprint.com> I tried a trivial case. The preflight failed; it didn't like seeing a hostextinfo definition in the file that contained the host/service definitions for a given host. Ah well. Perhaps something for the 2.0 wishlist...? jc > -----Original Message----- > From: Clif J. Smith [mailto:cjs at cjs226.com] > Sent: Friday, January 17, 2003 5:26 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] xedtemplate_config_dir ??? > > > Is it possible to use something like > xedtemplate_config_dir=/usr/local/nagios/etc/systems as you can with > cfg_dir=/usr/local/nagios/etc/systems ? I've tried, it > didn't work, but > is there a different syntax? I'm playing with the idea of having a > separate cfg file for each system. Unfortunately, with my > environment's > various dependencies, the use of Apan, etc., my cfg lines are > going to > be plentiful... I checked the docs, but I don't see it. > > cjs > > > > ------------------------------------------------------- > 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: 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 From koreth-nagios at midwinter.com Tue Jan 21 00:16:47 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Mon, 20 Jan 2003 15:16:47 -0800 Subject: Monitoring cross-server services? Message-ID: <20030120151647.B14931@cadge.midwinter.com> What's the accepted way to set up monitoring of distributed or peer-to-peer services? For example, I have a server app that connects to copies of itself on other hosts to keep its data synchronized. I'd ideally like to make sure that each host is connected to all the peers it's supposed to talk to. The problem is, if hosts A, B, and C are all connected to each other, I don't want the services on hosts A and C to show up as broken if host B crashes, since I'll have already gotten a notification about host B and the error indications on the other two hosts will just be distracting clutter on the status web page. On the other hand, if there's a connectivity problem between hosts A and B but both hosts are healthy and reachable from the monitoring host, I *do* want the error condition to be flagged. (Application-level connectivity, I mean, not necessarily IP connectivity.) The best solution I've come up with is to wrap a local plugin around the call to the plugin on the remote host that checks the status of the app; the remote plugin reports back a list of peers that the app isn't connected to, and the local plugin checks the Nagios status file to make sure the app is listed as OK on all those peers. If all the problem peers are offline, the warning/critical result from the remote plugin is suppressed. Anyone have a better approach? -Steve ------------------------------------------------------- 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 From SRich at apiatech.com Tue Jan 21 00:30:31 2003 From: SRich at apiatech.com (Scott Rich) Date: Mon, 20 Jan 2003 16:30:31 -0700 Subject: Login/Authentication doesn't work Message-ID: No matter what I try and how many times I have gone through the limited documentation, I can't seem to get authorization to work. And my name is not DAVE! Below is an excerpt from my httpd.conf file and cgi.cfg file. I have Apache configured for port 8000. httpd.conf . . . # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # AccessFileName: The name of the file to look for in each directory # for access control information. See also the AllowOverride directive. # AccessFileName .htaccess # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" ScriptAlias /cgi-bin/nagios/ "/home/apps/nagios/sbin/" # # Additional to mod_cgid.c settings, mod_cgid has Scriptsock # for setting UNIX socket for communicating with cgid. # #Scriptsock logs/cgisock # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # # # AllowOverride None # Options None # Order allow,deny # Allow from all # AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios /home/apps/nagios/share Options None AllowOverride None Order allow,deny Allow from all ..cgi.cfg... # AUTHENTICATION USAGE # This option controls whether or not the CGIs will use any # authentication when displaying host and service information, as # well as committing commands to Nagios for processing. # # Read the HTML documentation to learn how the authorization works! # # NOTE: It is a really *bad* idea to disable authorization, unless # you plan on removing the command CGI (cmd.cgi)! Failure to do # so will leave you wide open to kiddies messing with Nagios and # possibly hitting you with a denial of service attack by filling up # your drive by continuously writing to your command file! # # Setting this value to 0 will cause the CGIs to *not* use # authentication (bad idea), while any other value will make them # use the authentication functions (the default). use_authentication=1 # DEFAULT USER # Setting this variable will define a default user name that can # access pages without authentication. This allows people within a # secure domain (i.e., behind a firewall) to see the current status # without authenticating. You may want to use this to avoid basic # authentication if you are not using a sercure server since basic # authentication transmits passwords in the clear. # # Important: Do not define a default username unless you are # running a secure web server and are sure that everyone who has # access to the CGIs has been authenticated in some manner! If you # define this variable, anyone who has not authenticated to the web # server will inherit all rights you assign to this user! #default_user_name=nagiosadmin If I didn't like the format, layout, options, and scalability of Nagios so much I would have given up trying to install/configure the da*# thing two months ago. Can anyone put an end to my three month long installation suffering? Scott ------------------------------------------------------- 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 From SRich at apiatech.com Tue Jan 21 00:31:36 2003 From: SRich at apiatech.com (Scott Rich) Date: Mon, 20 Jan 2003 16:31:36 -0700 Subject: Plugin docs Message-ID: Does anyone know where to find a shred of documentation for the plugins? i.e. command syntax and examples ------------------------------------------------------- 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 From jcarro10 at sprintspectrum.com Tue Jan 21 00:39:18 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 20 Jan 2003 17:39:18 -0600 Subject: Monitoring cross-server services? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1334@PKDWB03C.ad.sprint.com> Sounds like defining service dependencies might be the route to go: http://nagios.sourceforge.net/docs/1_0/dependencies.html jc > -----Original Message----- > From: Steven Grimm [mailto:koreth-nagios at midwinter.com] > Sent: Monday, January 20, 2003 5:17 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring cross-server services? > > > What's the accepted way to set up monitoring of distributed > or peer-to-peer > services? For example, I have a server app that connects to copies of > itself on other hosts to keep its data synchronized. I'd > ideally like to > make sure that each host is connected to all the peers it's > supposed to > talk to. > > The problem is, if hosts A, B, and C are all connected to > each other, I > don't want the services on hosts A and C to show up as broken > if host B > crashes, since I'll have already gotten a notification about > host B and > the error indications on the other two hosts will just be distracting > clutter on the status web page. > > On the other hand, if there's a connectivity problem between > hosts A and > B but both hosts are healthy and reachable from the monitoring host, I > *do* want the error condition to be flagged. (Application-level > connectivity, I mean, not necessarily IP connectivity.) > > The best solution I've come up with is to wrap a local plugin > around the > call to the plugin on the remote host that checks the status > of the app; > the remote plugin reports back a list of peers that the app isn't > connected to, and the local plugin checks the Nagios status > file to make > sure the app is listed as OK on all those peers. If all the problem > peers are offline, the warning/critical result from the remote plugin > is suppressed. > > Anyone have a better approach? > > -Steve > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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 From Tong at keen.com Tue Jan 21 00:47:32 2003 From: Tong at keen.com (Tong Young) Date: Mon, 20 Jan 2003 15:47:32 -0800 Subject: Plugin docs Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FF25@keenx02.keencorp.keen.com> You can type the command with the -h flag. You get a little explanation of the flags and options. Check_http -h -----Original Message----- From: Scott Rich [mailto:SRich at apiatech.com] Sent: Monday, January 20, 2003 3:32 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Plugin docs Does anyone know where to find a shred of documentation for the plugins? i.e. command syntax and examples ------------------------------------------------------- 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 ------------------------------------------------------- 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 From donavan at 4wx.net Tue Jan 21 00:56:19 2003 From: donavan at 4wx.net (donavan nelson) Date: Mon, 20 Jan 2003 17:56:19 -0600 Subject: Plugin docs In-Reply-To: References: Message-ID: <20030120235619.M66381@4wx.net> plugin_name --help is the documentation -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Scott Rich" To: Sent: Mon, 20 Jan 2003 16:31:36 -0700 Subject: [Nagios-users] Plugin docs > Does anyone know where to find a shred of documentation for the plugins? > i.e. command syntax and examples > > ------------------------------------------------------- > 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 ------- End of Original Message ------- ------------------------------------------------------- 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 From twelsh at square-box.com Tue Jan 21 01:08:39 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 21 Jan 2003 00:08:39 -0000 Subject: Login/Authentication doesn't work In-Reply-To: References: Message-ID: <000001c2c0e1$405b6020$0400a8c0@squarebox.com> Hi Scott, Here is a cutting from my httpd.conf file --------------------------------------------------------- ## Script aliases for Nagios scrip aliases. they live ## in /usr/local/nagios/sbin/ NameVirtualHost 26.23.45.76:80 ServerAdmin webmaster at yourdomain.com DocumentRoot /usr/local/nagios/share ServerName yourhost.yourdomain.com ServerAlias monitoring.square-box.com ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all ## Setup alias for /nagios/ to point to ## /usr/local/nagios/share/ Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all ########################################################## # # Webserver authentication for # /usr/local/nagios/sbin Nagios cgi scripts # /usr/local/nagios/share Nagios HTML pages # ########################################################## AllowOverride AuthConfig order allow,deny allow from all Options ExecCGI AllowOverride AuthConfig order allow,deny allow from all ------------------------------------------------------------- Then create a .htaccess file in your... /usr/local/nagios/sbin /usr/local/nagios/share The apache .htaccess file is used to store information that tells the Apache server valid authentication information is required before access to a resource will be allowed. A .htaccess file must be placed in each directory you wish to have protected The example below was taken from the Nagios? Configuration Documents ------------------------------------------------ AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user ------------------------------------------------ AuthName - the realm name displayed in the Site login authentication dialogue. i.e squareBOX AuthType - is the authentication type required. Basic, Digest, Database AuthUserFile - The path to your username password file require valid-user - The key directive that throws password checking into action. Valid-user accepts any users that are found in the password file defined by AuthUserFile Take a look at my nagios configuration site at http://demo.square-box.com there is a section on configuring apache and the various authentication types you can use. The configs on that site were used to create http://nagios.square-box.com our demo nagios site. Login / Password = guest 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 Scott Rich Sent: 20 January 2003 23:31 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Login/Authentication doesn't work No matter what I try and how many times I have gone through the limited documentation, I can't seem to get authorization to work. And my name is not DAVE! Below is an excerpt from my httpd.conf file and cgi.cfg file. I have Apache configured for port 8000. httpd.conf . . . # # AllowOverride controls what directives may be placed in .htaccess files. # It can be "All", "None", or any combination of the keywords: # Options FileInfo AuthConfig Limit # AllowOverride None # # AccessFileName: The name of the file to look for in each directory # for access control information. See also the AllowOverride directive. # AccessFileName .htaccess # # ScriptAlias: This controls which directories contain server scripts. # ScriptAliases are essentially the same as Aliases, except that # documents in the realname directory are treated as applications and # run by the server when requested rather than as documents sent to the client. # The same rules about trailing "/" apply to ScriptAlias directives as to # Alias. # #ScriptAlias /cgi-bin/ "/var/www/cgi-bin/" ScriptAlias /cgi-bin/nagios/ "/home/apps/nagios/sbin/" # # Additional to mod_cgid.c settings, mod_cgid has Scriptsock # for setting UNIX socket for communicating with cgid. # #Scriptsock logs/cgisock # # "/var/www/cgi-bin" should be changed to whatever your ScriptAliased # CGI directory exists, if you have that configured. # # # AllowOverride None # Options None # Order allow,deny # Allow from all # AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all Alias /nagios /home/apps/nagios/share Options None AllowOverride None Order allow,deny Allow from all ..cgi.cfg... # AUTHENTICATION USAGE # This option controls whether or not the CGIs will use any # authentication when displaying host and service information, as # well as committing commands to Nagios for processing. # # Read the HTML documentation to learn how the authorization works! # # NOTE: It is a really *bad* idea to disable authorization, unless # you plan on removing the command CGI (cmd.cgi)! Failure to do # so will leave you wide open to kiddies messing with Nagios and # possibly hitting you with a denial of service attack by filling up # your drive by continuously writing to your command file! # # Setting this value to 0 will cause the CGIs to *not* use # authentication (bad idea), while any other value will make them # use the authentication functions (the default). use_authentication=1 # DEFAULT USER # Setting this variable will define a default user name that can # access pages without authentication. This allows people within a # secure domain (i.e., behind a firewall) to see the current status # without authenticating. You may want to use this to avoid basic # authentication if you are not using a sercure server since basic # authentication transmits passwords in the clear. # # Important: Do not define a default username unless you are # running a secure web server and are sure that everyone who has # access to the CGIs has been authenticated in some manner! If you # define this variable, anyone who has not authenticated to the web # server will inherit all rights you assign to this user! #default_user_name=nagiosadmin If I didn't like the format, layout, options, and scalability of Nagios so much I would have given up trying to install/configure the da*# thing two months ago. Can anyone put an end to my three month long installation suffering? Scott ------------------------------------------------------- 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 ------------------------------------------------------- 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 From twelsh at square-box.com Tue Jan 21 01:11:01 2003 From: twelsh at square-box.com (Tom Welsh) Date: Tue, 21 Jan 2003 00:11:01 -0000 Subject: Plugin docs In-Reply-To: References: Message-ID: <000101c2c0e1$94d29b00$0400a8c0@squarebox.com> Hi Scott, ./check_plugin -h gives you all the configuration info for the plugins. I have several examples if you look at services.cfg and checkcommands.cfg on http://demo.square-box.com 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 Scott Rich Sent: 20 January 2003 23:32 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Plugin docs Does anyone know where to find a shred of documentation for the plugins? i.e. command syntax and examples ------------------------------------------------------- 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 ------------------------------------------------------- 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 From koreth-nagios at midwinter.com Tue Jan 21 01:01:34 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Mon, 20 Jan 2003 16:01:34 -0800 Subject: Monitoring cross-server services? Message-ID: <20030120160134.E14931@cadge.midwinter.com> That looked good at first, but I don't think it's quite right. Say I have hosts A, B, and C again. Host C has died completely. Hosts A and B are still up, but aren't talking to each other. If I use service dependencies, the fact that host C is known to be offline will cause the notification about the problems between hosts A and B to be suppressed. Or am I just misreading the documentation? -Steve P.S. Anyone know what's up with the list archives on SourceForge? They only go up to January 15. On Mon, Jan 20, 2003 at 05:39:18PM -0600, Carroll, Jim P [Contractor] wrote: > Sounds like defining service dependencies might be the route to go: > > http://nagios.sourceforge.net/docs/1_0/dependencies.html > > jc ------------------------------------------------------- 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 From Tong at keen.com Tue Jan 21 01:03:44 2003 From: Tong at keen.com (Tong Young) Date: Mon, 20 Jan 2003 16:03:44 -0800 Subject: Help with check_http Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FF29@keenx02.keencorp.keen.com> Does anyone know what the proper use of the -u flag is? I am trying to get the following page tested: /horoscopes/chinesescope_result.asp?sign=Tiger&TID=74Jo8_-N I have tried the following and many variations of it. I have tried using IE6.0 to check the above URL and it works. Check_http -H stgweb01 -p 80 -u=//horoscopes/chinesescope_result.asp?sign=Tiger&TID=74Jo8_-N I have tried with quotations around the url. I have tried with the \ sign before special characters. My output is always the following: Page is 224 characters STATUS: HTTP/1.1 400 Bad Request **** HEADER **** Server: Microsoft-IIS/5.0 Date: Tue, 21 Jan 2003 00:00:17 GMT Content-Type: text/html Content-Length: 87 **** CONTENT **** ErrorThe parameter is incorrect. HTTP WARNING: HTTP/1.1 400 Bad Request Thanks! ------------------------------------------------------- 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 From Tong at keen.com Tue Jan 21 01:20:47 2003 From: Tong at keen.com (Tong Young) Date: Mon, 20 Jan 2003 16:20:47 -0800 Subject: FW: Help with check_http Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FF2E@keenx02.keencorp.keen.com> Nevermind. Seems I always make simple mistakes. All the - flags don't use the = sign, but the -- flags do. -----Original Message----- From: Tong Young Sent: Monday, January 20, 2003 4:04 PM To: 'nagios-users at lists.sourceforge.net' Subject: Help with check_http Does anyone know what the proper use of the -u flag is? I am trying to get the following page tested: /horoscopes/chinesescope_result.asp?sign=Tiger&TID=74Jo8_-N I have tried the following and many variations of it. I have tried using IE6.0 to check the above URL and it works. Check_http -H stgweb01 -p 80 -u=//horoscopes/chinesescope_result.asp?sign=Tiger&TID=74Jo8_-N I have tried with quotations around the url. I have tried with the \ sign before special characters. My output is always the following: Page is 224 characters STATUS: HTTP/1.1 400 Bad Request **** HEADER **** Server: Microsoft-IIS/5.0 Date: Tue, 21 Jan 2003 00:00:17 GMT Content-Type: text/html Content-Length: 87 **** CONTENT **** ErrorThe parameter is incorrect. HTTP WARNING: HTTP/1.1 400 Bad Request Thanks! ------------------------------------------------------- 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 From stanley at szczygiel.net Mon Jan 20 01:28:44 2003 From: stanley at szczygiel.net (Stanis³aw Szczygie³) Date: Mon, 20 Jan 2003 01:28:44 +0100 Subject: check_traffic plugin - another notice References: <001201c2bc18$93a13d90$0200010a@master> <1066766089.20030120193142@irc.pila.pl> Message-ID: <004401c2c01a$e3eae520$0200010a@master> Hello everybody, Adrian was so kind to answer for my letter in polish - it was much easier for me to explain my sugestion during conversation in our native. Of course, im sure that if Adrian find something usefull in my sugestion - it will find the proper place on the forum here. greetings and regards, Stanley ----- Original Message ----- From: "Adrian Wieczorek" To: "Stanis?aw Szczygie?" Sent: Monday, January 20, 2003 7:31 PM Subject: Re: [Nagios-users] re: check_traffic plugin - another notice > Hello Stanis?aw, > > Tuesday, January 14, 2003, 11:02:05 PM, you wrote: > > > I have installed your plugin today for check - and it works very well. > > Especially nice is to use this make-config script - generating services for > > multi ports routers is not very funny. I have no time to check graphics - > > but it is less important to me. Check_traffic for only one router with 9 > > ports made load of procesoor about 95-98% all the time... > > > The main problem for me is the way how your scripts work. All this snmpget, > > snmpwalk commands are very hard for processor state. So generally checking > > all interestig things by snmp is hard for my computer (its only some p-II). > > Few days ago I found very interesting program for nagios (also thanks to > > some mail from nagios forum) - it is snmppd - snmp proxy daemon > > (http://freshmeat.net/projects/snmppd) > > Dzi?ki za Twojo uwagi, przepraszam ?e odpisuje dopiero teraz, ale > przygni?t? mnie nawa? pracy... Pozwol? sobie pisa? po polsku, nie > masz nic przeciwko..? ;) > > Pisz?c ten plugin faktycznie w og?le nie bra?em pod uwag? obci??enia, > jakie mo?e on powodowa?. Zar?wno m?j w?asny serwer, jak i serwery > produkcyjne na kt?rych przeprowadza?em testy, to do?? szybkie maszyny > i ?aden wzrost obci??enia nie by? odczuwalny. Pami?tam jednak, ?e > kilka lat temu, kiedy uruchamia?em (wtedy jeszcze) Netsainta na P150 > z 32MB RAMu dawa?o si? wyra?nie odczu? spowolnienie systemu, wi?c > wierz?, ?e w na s?abszych maszynach check_traffic mo?e nie dzia?a? > zbyt p?ynnie. Je?eli tak jak piszesz sprawdzasz a? 9 interfejs?w, to > oznacza to 18 wywo?a? snmpget'a.. > > Nie analizowa?em jeszcze na jakiej zasadzie dzia?a snpmd proxy i na > ile da si? to wykorzysta? w check_traffic. Teraz ko?cz? prace nad > nast?pn? wersj?, gdzie nie wykorzystuj? ju? utils?w snmpget/walk, > tylko modu? Perla Net::SNMP. Szczerze m?wi?c, nie wiem na ile mo?e to > wp?yn?? na wydajno??, na pierwszy rzut oka skrypt wykonuje si? > d?u?ej, ale to nie musi oznacza?, ?e obci??enie wzrasta.. Dlatego > chcia?bym aby? sprawdzi? to u siebie i przes?a? mi ewentualne wyniki > obserwacji. > > Za??czam wersj? robocz? samego skryptu check_traffic, nie jest on > jeszcze w pe?ni gotowy, ale ewentualne poprawki dotyczy? b?d? raczej > generowania wykres?w, wi?c z powodzeniem mo?esz to przetestowa? zanim > pojawi si? "oficjalna" wersja. > > > > > > -- > pozdrawiam, > ADi ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at ess.nec.de Tue Jan 21 01:31:08 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Tue, 21 Jan 2003 01:31:08 +0100 Subject: Plugin docs In-Reply-To: ; from SRich@apiatech.com on Mon, Jan 20, 2003 at 04:31:36PM -0700 References: Message-ID: <20030121013108.B1465@ess.nec.de> On Mon, Jan 20, 2003 at 04:31:36PM -0700, Scott Rich wrote: > Does anyone know where to find a shred of documentation for the plugins? > i.e. command syntax and examples Do you mean: additionally to ./ -h? Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ofb at budget-tech.com Tue Jan 21 01:37:11 2003 From: ofb at budget-tech.com (Olivier F. Beauchemin (Budget-Tech IT Consulting)) Date: Mon, 20 Jan 2003 19:37:11 -0500 Subject: Scheduled downtime Message-ID: <00b001c2c0e5$3e3cf020$0201a8c0@boston> I've a question: Suppose one sets a 2 hour downtime window, and then thinks better of it. He deletes the note that was created when the downtime was set. The host or service is still in the downtime period, and nagios still reports it in the downtime period ... how does one unset scheduled downtime? vi downtime.log? Olivier ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rcolley at cardaccess.com.au Tue Jan 21 03:44:48 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Tue, 21 Jan 2003 13:44:48 +1100 Subject: Scheduled downtime Message-ID: On the left frame, click on the "Downtime" link. You will be taken to a screen that lets you delete the downtime entry. -----Original Message----- From: Olivier F. Beauchemin (Budget-Tech IT Consulting) [mailto:ofb at budget-tech.com] Sent: Tuesday, 21 January 2003 11:37 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Scheduled downtime I've a question: Suppose one sets a 2 hour downtime window, and then thinks better of it. He deletes the note that was created when the downtime was set. The host or service is still in the downtime period, and nagios still reports it in the downtime period ... how does one unset scheduled downtime? vi downtime.log? Olivier ------------------------------------------------------- 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Tong at keen.com Tue Jan 21 06:42:18 2003 From: Tong at keen.com (Tong Young) Date: Mon, 20 Jan 2003 21:42:18 -0800 Subject: check_http and https Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FF4B@keenx02.keencorp.keen.com> I am stumped again. Is there a way to check an HTTPS:// webpage with check_http? I tried to use port 443 with the -f option, but I get no data. I don't think there is any redirect when trying http://www.blah.com:443 on the actual webserver. I can check port 443 with the check_tcp command, but I wanted to search a page on a secure website for a phrase. Thanks. ------------------------------------------------------- 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 Jan 21 09:39:14 2003 From: magnus.pettersson at eds.com (Pettersson, Magnus) Date: Tue, 21 Jan 2003 08:39:14 -0000 Subject: check_http and https Message-ID: <5917FD47436E784D8B08F132F0AC506151E56D@sessm201> check_http --ssl -H www.blah.com You have to have the plugin compiled with s?sl support though. But if you don't it will spit out an error message about just that. /magnus -----Original Message----- From: Tong Young [mailto:Tong at keen.com] Sent: 21 January 2003 06:42 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] check_http and https I am stumped again. Is there a way to check an HTTPS:// webpage with check_http? I tried to use port 443 with the -f option, but I get no data. I don't think there is any redirect when trying http://www.blah.com:443 on the actual webserver. I can check port 443 with the check_tcp command, but I wanted to search a page on a secure website for a phrase. 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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From fernando at puc-campinas.edu.br Tue Jan 21 11:27:10 2003 From: fernando at puc-campinas.edu.br (Fernando Ribeiro) Date: Tue, 21 Jan 2003 08:27:10 -0200 Subject: check_disk_smb command References: <000101c2c108$c4c74cd0$0300a8c0@sunguruz.com> Message-ID: <001101c2c137$a83394f0$0ffb88c8@cifernando> For monitoring diferent shares using the same "check_command" you can use arguments. Like this: define service{ ..... check_command check_disk_smb!ports ... } define command{ command_name check_disk_smb command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -W SUNGURUZ -u nagios -p 222222 } Check the Docs. for more details.... Fernando ----- Original Message ----- From: rvelez To: 'Fernando Ribeiro' Sent: Tuesday, January 21, 2003 2:51 AM Subject: RE: [Nagios-users] check_disk_smb command Cool LOL fixed that part and at the command line I am running from the libexec dir: ./check_disk_smb -H nspdc2 -s ports -W SUNGURUZ -u nagios -p 222222 which is working and gives me a warning about how it is below the default. So that is a start. But my question now is how would or where would I enter this string so that I can enter multiple entries of this server in services.cfg to check different shares. Understand what I am saying. Thanks for your help!!! :) Regards, Radames -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fernando Ribeiro Sent: Monday, January 20, 2003 7:41 AM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] check_disk_smb command Hello, Try removing the "./" from the "check_command" parameter in the services file. In this parameter you have to specify the name of your command that is defined in the commands config file (usually checkcommands.cfg) The name of your command is "check_disk_smb" and Nagios is looking for "./check_disk_smb". Good luck! Fernando ----- Original Message ----- From: rvelez To: nagios-users at lists.sourceforge.net Sent: Monday, January 20, 2003 4:51 AM Subject: [Nagios-users] check_disk_smb command Hey guys, I am trying to get my nagios to check disk space on my NT server using the check_disk_smb command. In my nagios.cfg file I have # Service definition define service{ use generic-service ; Name of service template to use host_name nspdc2.sunguruz.com service_description C Free Space is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups SystemAdmins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command ./check_disk_smb } And in my misccommands.cfg I have define command{ command_name check_disk_smb command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ } When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am getting an error saying Checking services... Error: Service check command './check_disk_smb' specified in service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined anywhere! Now I know that there are some flags that I need to specify inorder for nagios to get this info but I am not sure where I need to specify them or what the syntax would be, could someone help me out and show me how? Thanks for your help guys -Radames -------------- next part -------------- An HTML attachment was scrubbed... URL: From Craig.Emsley at document.co.uk Tue Jan 21 11:42:01 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Tue, 21 Jan 2003 10:42:01 -0000 Subject: 'Null' Status Information Message-ID: Hi I cannot get NSClient 1.0.7.1 to report back to the web browser all I get is 'Null' in the Status Information all other checks are ok and NSClient runs fine from the commandline. So I think I am probably missing something in my Nagios configuration I have read through the config files and available documentation but seem no closer to finding the answer. Can someone please help me by pointing me in the right direction. Craig Apprentice Nagios User ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jgking at packetstorm.org Tue Jan 21 14:04:45 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Tue, 21 Jan 2003 07:04:45 -0600 (CST) Subject: postnuke block Message-ID: Here is one of the blocks. I havent opened up the monitor site cause i keep trying tofind better ways to implement it. Im currently thinking of ways to install Perl, NetSNMP, rrdtool, NMIS, snort and other things all under a single user directory so that everything (perl mods and all) are seperate from the core linux rpm distros. -Greg 'blocks_nghs_block', 'func_update' => 'blocks_nghs_update', 'text_type' => 'nghs', 'text_type_long' => 'NGHS Menu', 'allow_multiple' => false, 'form_content' => false, 'form_refresh' => false, 'show_preview' => true ); pnSecAddSchema('nghsblock::', 'Block title::'); function blocks_nghs_block($row) { $nagios_url = "yourdom.ain/nagios/cgi-bin/status.cgi?hostgroup=all&style=grid"; $is_htaccess = 'true'; // eventually have a check for this $nagios_user = "******"; $nagios_password = '*****'; $retval = ''; if(!($nagios_page = fopen("http://$nagios_user:$nagios_password@$nagios_url/","r"))) { print("Unable to open $nagios_url"); } while(!feof($nagios_page)) { $current_line = (fgets($nagios_page,255)); if(preg_match("/Host Status Totals/",$current_line)) { $current_line = (fgets($nagios_page,255));$current_line = (fgets($nagios_page,255)); for($i = 0; $i <= 12; $i++) { $retval .= $current_line = (fgets($nagios_page,255)); } } } fclose($nagios_page); $retval .= ""; $temp = ereg_replace("HREF='","HREF='nagios/cgi-bin/",$retval); $row['content'] = ereg_replace("ing|able",'',$temp); return themesideblock($row); } ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jgking at packetstorm.org Tue Jan 21 14:32:59 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Tue, 21 Jan 2003 07:32:59 -0600 (CST) Subject: Plugins v1.3.0 Beta2 on sourceforge question In-Reply-To: References: Message-ID: I noticed that theres an md5 checksum for Nagios Plugins v1.3 Beta1 but not for beta 2 on the download area. Im not sure why but would guess its because beta2 is updated alot so an md5check is always one beta-rev behind. Anyhow, not that an md5 check is much since if the code was changed the person could just as easily change the md5 sig as well. I would like to make a request for pgp signatures as well please. -Greg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rvelez at sunguruz.com Tue Jan 21 14:39:51 2003 From: rvelez at sunguruz.com (rvelez) Date: Tue, 21 Jan 2003 08:39:51 -0500 Subject: check_disk_smb command In-Reply-To: <001101c2c137$a83394f0$0ffb88c8@cifernando> References: <000101c2c108$c4c74cd0$0300a8c0@sunguruz.com> <001101c2c137$a83394f0$0ffb88c8@cifernando> Message-ID: <20030121133952.572.qmail@nsmx1.sunguruz.com> Thanks I will give it a shit. Thanks for your help Regards, Radames Fernando Ribeiro writes: > For monitoring diferent shares using the same "check_command" you can use arguments. > Like this: > > > define service{ > > ..... > > check_command check_disk_smb!ports > > ... > > } > > > > define command{ > > command_name check_disk_smb > > command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -W SUNGURUZ -u nagios -p 222222 > > } > > > Check the Docs. for more details.... > > Fernando > > > ----- Original Message ----- > From: rvelez > To: 'Fernando Ribeiro' > Sent: Tuesday, January 21, 2003 2:51 AM > Subject: RE: [Nagios-users] check_disk_smb command > > > Cool LOL fixed that part and at the command line I am running from the libexec dir: > > > > ./check_disk_smb -H nspdc2 -s ports -W SUNGURUZ -u nagios -p 222222 > > > > which is working and gives me a warning about how it is below the default. So that is a start. But my question now is how would or where would I enter this string so that I can enter multiple entries of this server in services.cfg to check different shares. Understand what I am saying. Thanks for your help!!! :) > > > > > > Regards, > > > > Radames > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fernando Ribeiro > Sent: Monday, January 20, 2003 7:41 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk_smb command > > > > Hello, > > > > Try removing the "./" from the "check_command" parameter in the services file. In this parameter you have to specify the name of your command that is defined in the commands config file (usually checkcommands.cfg) > > The name of your command is "check_disk_smb" and Nagios is looking for "./check_disk_smb". > > > > > > Good luck! > > > > Fernando > > > > > > > ----- Original Message ----- > > From: rvelez > > To: nagios-users at lists.sourceforge.net > > Sent: Monday, January 20, 2003 4:51 AM > > Subject: [Nagios-users] check_disk_smb command > > > > Hey guys, > > > > I am trying to get my nagios to check disk space on my NT server using the check_disk_smb command. In my nagios.cfg file I have > > > > # Service definition > > define service{ > > use generic-service ; Name of service template to use > > > > host_name nspdc2.sunguruz.com > > service_description C Free Space > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups SystemAdmins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command ./check_disk_smb > > } > > > > > > And in my misccommands.cfg I have > > > > define command{ > > command_name check_disk_smb > > command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ > > } > > > > When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am getting an error saying > > Checking services... > > Error: Service check command './check_disk_smb' specified in service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined anywhere! > > > > > > Now I know that there are some flags that I need to specify inorder for nagios to get this info but I am not sure where I need to specify them or what the syntax would be, could someone help me out and show me how? Thanks for your help guys > > > > -Radames > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From tim at mintoskatingclub.com Tue Jan 21 15:12:00 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Tue, 21 Jan 2003 09:12:00 -0500 (EST) Subject: 'Null' Status Information Message-ID: <200301211412.h0LEC0W2005017@webmail1.magma.ca> Craig: Start by looking at the status.log file which is read by the cgi scripts (/usr/local/nagios/var/status.log in a default install). See the actual line the NSClient plugin is returning. If it is running fine from the command line then the problem is usually in your command definition in checkcommands.cfg - double check all spelling, etc. If your problem persists post the line from checkcommands.cfg. /Tim Shouldice On Jan 21, Craig Emsley wrote: > > Hi > > I cannot get NSClient 1.0.7.1 to report back to the web browser all I get is > 'Null' in the Status Information all other checks are ok and NSClient runs > fine from the commandline. So I think I am probably missing something in my > Nagios configuration I have read through the config files and available > documentation but seem no closer to finding the answer. Can someone please > help me by pointing me in the right direction. > > Craig > Apprentice Nagios User > > > ------------------------------------------------------- > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mailing at bgs-ing.de Tue Jan 21 15:19:58 2003 From: mailing at bgs-ing.de (mailing at bgs-ing.de) Date: Tue, 21 Jan 2003 15:19:58 +0100 Subject: Archiv-logfiles are wrong name? Message-ID: Hi, I tried without rdate script, but it doesn't work. Nicole ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jhp at addix.net Tue Jan 21 15:44:44 2003 From: jhp at addix.net (Jan-Hendrik Palic) Date: Tue, 21 Jan 2003 15:44:44 +0100 Subject: Checking log files ... Message-ID: <20030121144444.GA1253@addix.net> Hi .. I just want to ask, how your experiences with checking the logfiles are ... I played around with check_log and check_log2 from nagiosplugins-1.3/contrib but I cannot check my logs sensefully ... We are goingt to drop logwatch from our server and check the logs with nagios. I just looked for a intro for using check_log*, but did not find anything except --help. Are you using check_log and how? What is the best way? Thnx for your hints ... :) Jan ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Tue Jan 21 16:21:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 09:21:54 -0600 Subject: Monitoring cross-server services? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1336@PKDWB03C.ad.sprint.com> Depends. Is it a service dependency you're looking to define, or a host dependency? jc > -----Original Message----- > From: Steven Grimm [mailto:koreth-nagios at midwinter.com] > Sent: Monday, January 20, 2003 6:02 PM > To: nagios-users at sourceforge.net > Subject: Re: [Nagios-users] Monitoring cross-server services? > > > That looked good at first, but I don't think it's quite > right. Say I have > hosts A, B, and C again. Host C has died completely. Hosts > A and B are > still up, but aren't talking to each other. If I use service > dependencies, > the fact that host C is known to be offline will cause the > notification > about the problems between hosts A and B to be suppressed. > > Or am I just misreading the documentation? > > -Steve > > P.S. Anyone know what's up with the list archives on > SourceForge? They > only go up to January 15. > > > On Mon, Jan 20, 2003 at 05:39:18PM -0600, Carroll, Jim P > [Contractor] wrote: > > Sounds like defining service dependencies might be the route to go: > > > > http://nagios.sourceforge.net/docs/1_0/dependencies.html > > > > jc > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jesper at rooth.com Tue Jan 21 16:34:01 2003 From: jesper at rooth.com (jesper at rooth.com) Date: Tue, 21 Jan 2003 15:34:01 GMT Subject: Service check stops Message-ID: Hi! We have an enviroment with about 550 service checks on 450 hosts. When setting the inter-delay check method to "smart" Nagios runs all my tests once and then stops. I've now configured the inter delay check as; inter_check_delay_method=0.15 service_interleave_factor=s max_concurrent_checks=0 service_reaper_frequency=5 ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jsm at inpro.net Tue Jan 21 17:17:40 2003 From: jsm at inpro.net (Jeff McKeon) Date: 21 Jan 2003 11:17:40 -0500 Subject: mailq In-Reply-To: <000501c2c050$7c185000$0300a8c0@sunguruz.com> References: <000501c2c050$7c185000$0300a8c0@sunguruz.com> Message-ID: <1043165861.28573.16.camel@rh80-jsm.telaurus.net> haven't tried yet but it's on my agenda. If you figure it out please post to the list! On Mon, 2003-01-20 at 01:52, rvelez wrote: > Has anyone gotten mailq to check qmail using qmail-qstat? I have tried > to modify the script but it is not working for me. Thanks for the help > > -Radames > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From stevelml1 at scee.sony.co.uk Tue Jan 21 17:06:41 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Tue, 21 Jan 2003 16:06:41 -0000 Subject: A huge thank you... Message-ID: <014e01c2c167$15f400e0$f5c8dfc2@niltxp> Just a quick email to say a HUGE thank you to Ethan and the team for my latest discovery in the Nagios world: Event Handlers. Easy to use, easy to understand, easy to write the handlers in pretty much any programming language you choose.... had custom handlers running in less than 30 minutes.... You guys rock!! -- Steve ------------------------------------------------- Steve Loughran, Network Infrastructure Manager Sony Computer Entertainment Europe (Cambridge) Yamaha YZF1000R Thunderace ICQ#: 104426046 ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mpowell at ena.com Tue Jan 21 17:22:44 2003 From: mpowell at ena.com (Marc Powell) Date: Tue, 21 Jan 2003 10:22:44 -0600 Subject: Service check stops Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED15E@mismail.ena.com> What do you have check_period, max_check_attempts, normal_check_interval, and retry_check_interval set to for your service definitions? What does your Scheduling Queue page show? Is there anything interesting in your nagios.log? It might also be useful for us to see a host and service definition that you are using. Below are the templates I use for my hosts and services but YMMV: # Generic host definition template define host{ name generic-host notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 0 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts check_command check-host-alive max_check_attempts 10 notification_interval 0 notification_period none notification_options d,r register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } # Generic service definition template define service{ name generic-service notifications_enabled 1 ; Service notifications are enabled active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 0 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' 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 0 ; Retain status information across program restarts retain_nonstatus_information 1 ; Retain non-status information across program restarts is_volatile 0 check_period 24x7 max_check_attempts 5 normal_check_interval 5 retry_check_interval 3 notification_interval 0 notification_period none notification_options c,r register 0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } -- Marc > -----Original Message----- > From: jesper at rooth.com [mailto:jesper at rooth.com] > Sent: Tuesday, January 21, 2003 9:34 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service check stops > > Hi! We have an enviroment with about 550 service checks on 450 hosts. > When setting the inter-delay check method to "smart" Nagios runs all > my tests once and then stops. > > I've now configured the inter delay check as; > inter_check_delay_method=0.15 > service_interleave_factor=s > max_concurrent_checks=0 > service_reaper_frequency=5 > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Tue Jan 21 17:13:55 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 10:13:55 -0600 Subject: postnuke block Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1339@PKDWB03C.ad.sprint.com> Forgive me for asking, but what does postnuke do? I went to the website and there was no "this is the essence of postnuke" info page. jc > -----Original Message----- > From: jgking at packetstorm.org [mailto:jgking at packetstorm.org] > Sent: Tuesday, January 21, 2003 7:05 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] postnuke block > > > > Here is one of the blocks. I havent opened up the monitor > site cause i > keep trying tofind better ways to implement it. Im currently > thinking of > ways to install Perl, NetSNMP, rrdtool, NMIS, snort and other > things all > under a single user directory so that everything (perl mods > and all) are > seperate from the core linux rpm distros. > > -Greg > > // $Id: text.php,v 1.1.1.1 2002/09/15 22:26:15 root Exp $ $Name: $ > // > ---------------------------------------------------------------------- > // POST-NUKE Content Management System > // Copyright (C) 2001 by the Post-Nuke Development Team. > // http://www.postnuke.com/ > // > ---------------------------------------------------------------------- > // Based on: > // PHP-NUKE Web Portal System - http://phpnuke.org/ > // Thatware - http://thatware.org/ > // > ---------------------------------------------------------------------- > // LICENSE > // > // This program is free software; you can redistribute it and/or > // modify it under the terms of the GNU General Public License (GPL) > // 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. > // > // To read the license please visit > http://www.gnu.org/copyleft/gpl.html > // > ---------------------------------------------------------------------- > // Original Author of file: Greg King > // Purpose of file: Display a Nagios Block for HOst Status > // See www.nagios.org for more information on Nagios > // > ---------------------------------------------------------------------- > // > /* Installation > The file must be placed in : ../html/includes/blocks/nghs.php > The filename must be named nghs.php or the block will not > register in > the admin area properly > Set the permissions accordingly to the uid and gid of the web > owner/group > Set the nagios_url, nagios_user and nagios_password variables > Go to the admin/block section and add the block > > Overview > This is a down-and-dirty method to yank the html data produced by > nagios. I would prefer > to read the status log files and generate the data without > using the > current mechanism and > that is planned. > > I chose this method for the following reasons: > 1. It got a sample block up pretty quick so i could see > how it would > look > 2. Websites do not have to worry about safe mode and > opendirectory php > restrictions. All that has to be allowed > is the fopenurl function. > 3. I wanted something very lightweight codewise, this > block is not > that many lines > > > Problem I need help with > 1. With this block and the other variants the biggest > issue is the CSS > stuff from the postnuke data and the Nagios data messing > with each other. If someone finds a way to combine > them that would > be great. > > > */ > > > $blocks_modules['nghs'] = array( > 'func_display' => 'blocks_nghs_block', > 'func_update' => 'blocks_nghs_update', > 'text_type' => 'nghs', > 'text_type_long' => 'NGHS Menu', > 'allow_multiple' => false, > 'form_content' => false, > 'form_refresh' => false, > 'show_preview' => true > ); > > pnSecAddSchema('nghsblock::', 'Block title::'); > > function blocks_nghs_block($row) > { > > $nagios_url = > "yourdom.ain/nagios/cgi-bin/status.cgi?hostgroup=all&style=grid"; > $is_htaccess = 'true'; // eventually have a check for this > $nagios_user = "******"; > $nagios_password = '*****'; > $retval = ''; > > if(!($nagios_page = > fopen("http://$nagios_user:$nagios_password@$nagios_url/","r"))) > { print("Unable to open $nagios_url"); } > > while(!feof($nagios_page)) > { > $current_line = (fgets($nagios_page,255)); > if(preg_match("/Host Status Totals/",$current_line)) > { > $current_line = > (fgets($nagios_page,255));$current_line = > (fgets($nagios_page,255)); > for($i = 0; $i <= 12; $i++) > { $retval .= $current_line = > (fgets($nagios_page,255)); } > } > } > fclose($nagios_page); > $retval .= ""; > $temp = ereg_replace("HREF='","HREF='nagios/cgi-bin/",$retval); > $row['content'] = ereg_replace("ing|able",'',$temp); > > return themesideblock($row); > } > > > > ------------------------------------------------------- > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Trace.McQuaig at usunwired.com Tue Jan 21 17:27:37 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Tue, 21 Jan 2003 10:27:37 -0600 Subject: nagios-stat on solaris 8 Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9AD5@usuexch02.usunwired.com> # python nagios-stat Traceback (most recent call last): File "nagios-stat", line 3, in ? import getopt, re, socket, sys File "/usr/local/lib/python2.1/socket.py", line 41, in ? from _socket import * ImportError: ld.so.1: python: fatal: libssl.so.0.9.6: open failed: No such file or directory # I installed this package from sunfreeware but it didn't help: openssl-0.9.6g-sol8-sparc-local.gz Wish I could search the mailing list but search doesn't work for me :( Any help would be appreciated Best Regards, Trace ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From koreth-nagios at midwinter.com Tue Jan 21 17:38:47 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Tue, 21 Jan 2003 08:38:47 -0800 Subject: Monitoring cross-server services? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1336@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Tue, Jan 21, 2003 at 09:21:54AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB014E1336@PKDWB03C.ad.sprint.com> Message-ID: <20030121083847.A23232@cadge.midwinter.com> A service dependency, really; I want to catch any situations where my app isn't connected to its peers even if all the hosts involved are alive and otherwise working fine. Service dependencies seem like they'd work if I treated the connection between each unique pair of hosts as a separate service; in that case I could make each of those pseudo-services dependent on the services I define for my app as a whole on its two hosts. But I think that'd clutter up my service detail page pretty quickly. -Steve On Tue, Jan 21, 2003 at 09:21:54AM -0600, Carroll, Jim P [Contractor] wrote: > Depends. > > Is it a service dependency you're looking to define, or a host dependency? > > jc ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Tue Jan 21 17:39:14 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 10:39:14 -0600 Subject: Checking log files ... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F250E@PKDWB03C.ad.sprint.com> I'm using check_log2, but I also created a check_log3 based on it. The latter is a CRITICAL version of the former. (I know, this is a kludge, it should really be rewritten to accept either a -w and/or a -c switch.) To wit: $ diff check_log2 check_log3 146c146 < exit $ERRORS{'WARNING'}; --- > exit $ERRORS{'CRITICAL'}; Here are a couple sample snippets from my nrpe.cfg: command[linux_log_warn]=/home/nagios/libexec/check_log2 -l /var/log/messages \ -s /home/nagios/.messages_warn.seek -p "WARN|Warn|warn|httpd.conf" command[linux_log_err]=/home/nagios/libexec/check_log3 -l /var/log/messages \ -s /home/nagios/.messages_err.seek \ -p "ERR|Err|err|PANIC|Panic|panic|File system full" \ -n " nrpe| sshd|httpd.conf" [Pardon the linewrap.] The reason I created a CRITICAL based on the WARNING version should be self-evident. Page me and e-mail me if it's critical, just e-mail me if it's a warning. HTH. jc > -----Original Message----- > From: Jan-Hendrik Palic [mailto:jhp at addix.net] > Sent: Tuesday, January 21, 2003 8:45 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Checking log files ... > > > Hi .. > > I just want to ask, how your experiences with checking the > logfiles are > ... > > I played around with check_log and check_log2 from > nagiosplugins-1.3/contrib > but I cannot check my logs sensefully ... > > We are goingt to drop logwatch from our server and check the logs with > nagios. > > I just looked for a intro for using check_log*, but did not find > anything except --help. > > Are you using check_log and how? What is the best way? > > Thnx for your hints ... :) > > > Jan > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From emann at questinc.org Tue Jan 21 18:01:45 2003 From: emann at questinc.org (Evan Mann) Date: Tue, 21 Jan 2003 12:01:45 -0500 Subject: qpage doesn't work through nagios, help!! Message-ID: I can't figure out why qpage doesn't actually SEND the page when it's run through nagios. This is what /var/log/syslog says: Jan 21 11:57:10 linux qpage[25317]: connection from [anonymous]@localhost Jan 21 11:57:10 linux qpage[25317]: disconnect from [anonymous]@localhost Jan 21 11:57:10 linux qpage[21486]: processing the page queue This is what happens when I run qpage manually as root: Jan 21 11:58:10 linux qpage[25433]: connection from [anonymous]@localhost Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, from=root Jan 21 11:58:10 linux qpage[21486]: processing the page queue Jan 21 11:58:10 linux qpage[25433]: disconnect from [anonymous]@localhost /usr/local/bin/qpage was set user/group as root/root so I changed it to root/nagios but still no luck. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Tue Jan 21 18:18:33 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 11:18:33 -0600 Subject: Monitoring cross-server services? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F250F@PKDWB03C.ad.sprint.com> I've got quite a number of service dependencies defined, and they add absolutely nothing to the service detail page. Basically I set up a rudimentary check for NRPE ('echo "NRPE is OK"' in nrpe.cfg), and made all the other NRPE checks for that host dependent on the rudimentary check. If NRPE is down, I want *one* page, not however many NRPE checks I'm doing. Ordinarily I wouldn't expect NRPE to be down (since it's kicked off from (x)inetd), but if an admin rebuilds a host or makes some other unfortunate change to (x)inetd, we don't want to be flooded with notifications; a simple "um... excuse me? NRPE doesn't seem to be up" is just fine. My case differs from your case in that my dependencies occur on the same host, and yours occur on different hosts. Having said that, if I acknowledge that NRPE is down (the depended-on service), that doesn't automatically flag any other services, or the host itself for that matter, as being down/acknowledged/ignored. If you're still uncertain, your best bet is to create a trivial case on 2 or 3 of your lesser hosts. Use netcat to listen on some arbitrary ports, and have Nagios poke at those 'services'. Then kill netcat on the 'depended-on' host. Wait for Nagios to notify you. Acknowledge it. Kill netcat on one of the 'dependent' hosts. Wait for Nagios to notify you. And wait and wait, because you shouldn't hear a peep. Bring netcat back up on the first host. Eventually you should get a notification that the 'service' on the second host is down. In this scenario, any other services should be completely independent; Nagios should still notify you if one of those goes down. (Feel free to test this in whatever permutations/combinations with this scenario, as well.) HTH. jc > -----Original Message----- > From: Steven Grimm [mailto:koreth-nagios at midwinter.com] > Sent: Tuesday, January 21, 2003 10:39 AM > To: nagios-users at sourceforge.net > Subject: Re: [Nagios-users] Monitoring cross-server services? > > > A service dependency, really; I want to catch any situations > where my app > isn't connected to its peers even if all the hosts involved > are alive and > otherwise working fine. > > Service dependencies seem like they'd work if I treated the connection > between each unique pair of hosts as a separate service; in > that case I > could make each of those pseudo-services dependent on the services I > define for my app as a whole on its two hosts. But I think > that'd clutter > up my service detail page pretty quickly. > > -Steve > > > On Tue, Jan 21, 2003 at 09:21:54AM -0600, Carroll, Jim P > [Contractor] wrote: > > Depends. > > > > Is it a service dependency you're looking to define, or a > host dependency? > > > > jc > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Stanley.G.Martin at mail.sprint.com Tue Jan 21 18:43:57 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Tue, 21 Jan 2003 11:43:57 -0600 Subject: qpage doesn't work through nagios, help!! Message-ID: I didn't have to make any changes from Netsaint to Nagios to use qpage. My qpage executable looks like this: -rwxrwxr-x 1 root root 122693 Nov 22 10:00 qpage and my command entry in Nagios looks like this: # 'host-notify-by-qpage' command definition define command{ command_name host-notify-by-qpage command_line /usr/bin/printf "Host: '$HOSTNAME$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTim e: $DATETIME$" | /usr/local/bin/qpage -d -p $CONTACTPAGER$ } Hope this helps. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: emann [mailto:emann at questinc.org] Sent: Tuesday, January 21, 2003 11:02 AM To: nagios-users Subject: [Nagios-users] qpage doesn't work through nagios, help!! I can't figure out why qpage doesn't actually SEND the page when it's run through nagios. This is what /var/log/syslog says: Jan 21 11:57:10 linux qpage[25317]: connection from [anonymous]@localhost Jan 21 11:57:10 linux qpage[25317]: disconnect from [anonymous]@localhost Jan 21 11:57:10 linux qpage[21486]: processing the page queue This is what happens when I run qpage manually as root: Jan 21 11:58:10 linux qpage[25433]: connection from [anonymous]@localhost Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, from=root Jan 21 11:58:10 linux qpage[21486]: processing the page queue Jan 21 11:58:10 linux qpage[25433]: disconnect from [anonymous]@localhost /usr/local/bin/qpage was set user/group as root/root so I changed it to root/nagios but still no luck. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From stevelml1 at scee.sony.co.uk Tue Jan 21 18:49:55 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Tue, 21 Jan 2003 17:49:55 -0000 Subject: qpage doesn't work through nagios, help!! References: Message-ID: <01bc01c2c175$81ecf640$f5c8dfc2@niltxp> access permissions on serial port (if sending via modem)? qpage spitting out something to console when run? (I think i remember something about needing it to run in quiet mode "-q", with no output to console) Steve ----- Original Message ----- From: "Evan Mann" To: Sent: Tuesday, January 21, 2003 5:01 PM Subject: [Nagios-users] qpage doesn't work through nagios, help!! > I can't figure out why qpage doesn't actually SEND the page when it's run > through nagios. This is what /var/log/syslog says: > > Jan 21 11:57:10 linux qpage[25317]: connection from [anonymous]@localhost > Jan 21 11:57:10 linux qpage[25317]: disconnect from [anonymous]@localhost > Jan 21 11:57:10 linux qpage[21486]: processing the page queue > > This is what happens when I run qpage manually as root: > > Jan 21 11:58:10 linux qpage[25433]: connection from [anonymous]@localhost > Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, from=root > Jan 21 11:58:10 linux qpage[21486]: processing the page queue > Jan 21 11:58:10 linux qpage[25433]: disconnect from [anonymous]@localhost > > /usr/local/bin/qpage was set user/group as root/root so I changed it to > root/nagios but still no luck. > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From HarlanRichardC at JohnDeere.com Tue Jan 21 18:50:58 2003 From: HarlanRichardC at JohnDeere.com (Harlan Richard C) Date: Tue, 21 Jan 2003 11:50:58 -0600 Subject: TempTrax and Return code out of bounds Message-ID: <88DBF0F5824B31449104920BF89A758F1EBA19@edxmb3.jdnet.deere.com> I am running into a problem I have set up TempTrax to monitor the computer room temp, and for the most part it works great. Just every once in awhile the system will return an error code 126 is out of bounds or plugin missing. A little later the plugin works again. Attach is the TempTrax command. Thanks /usr/lib/nagios/plugins/check_temptrax -w $ARG1$ -c $ARG2$ -S $ARG3$ -f $ARG4$ Richard Harlan Network Engineer John Deere JDAMC 11145 Thompson Ave. Lenexa, KS 66219 Phone: 913-310-8626 Fax: 913-310-8348 HarlanRichardC at JohnDeere.com ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mcochra at remc7.k12.mi.us Tue Jan 21 19:05:43 2003 From: mcochra at remc7.k12.mi.us (Mike Cochran) Date: Tue, 21 Jan 2003 13:05:43 -0500 Subject: qpage doesn't work through nagios, help!! In-Reply-To: References: Message-ID: <000801c2c177$b738fef0$f9184acf@wolverine> I'm having a similar problem, but I'm using yaps (yet another pager software) instead of qpage. When I run it (from the command line) using under root, it all works fine. Then when I try it using user nagios it doesn't work... it gives me the following output: << > /usr/local/bin/yaps -vvvvv -t mike 'test' Found service D1 for 616xxxxxxx Sending following message: mike (D1, 616xxxxxxx): test -nagios Trying to open /dev/cua/b for modem standard Unable to dial D1 >> Has anybody had a similar problem or know what it might be? I would assume that it would be a permissions problem, but I'm not sure which permissions to check. The yaps permissions seem fine, since the program starts up fine. Thanks for any help... -mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann Sent: Tuesday, January 21, 2003 12:02 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] qpage doesn't work through nagios, help!! I can't figure out why qpage doesn't actually SEND the page when it's run through nagios. This is what /var/log/syslog says: Jan 21 11:57:10 linux qpage[25317]: connection from [anonymous]@localhost Jan 21 11:57:10 linux qpage[25317]: disconnect from [anonymous]@localhost Jan 21 11:57:10 linux qpage[21486]: processing the page queue This is what happens when I run qpage manually as root: Jan 21 11:58:10 linux qpage[25433]: connection from [anonymous]@localhost Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, from=root Jan 21 11:58:10 linux qpage[21486]: processing the page queue Jan 21 11:58:10 linux qpage[25433]: disconnect from [anonymous]@localhost /usr/local/bin/qpage was set user/group as root/root so I changed it to root/nagios but still no luck. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From rvelez at sunguruz.com Tue Jan 21 19:01:54 2003 From: rvelez at sunguruz.com (rvelez) Date: Tue, 21 Jan 2003 13:01:54 -0500 Subject: mailq In-Reply-To: <1043165861.28573.16.camel@rh80-jsm.telaurus.net> References: <000501c2c050$7c185000$0300a8c0@sunguruz.com> <1043165861.28573.16.camel@rh80-jsm.telaurus.net> Message-ID: <20030121180154.6983.qmail@nsmx1.sunguruz.com> You got it, working on it as we speak so I see some progression i will let you know. thanks Radames Jeff McKeon writes: > haven't tried yet but it's on my agenda. If you figure it out please > post to the list! > > On Mon, 2003-01-20 at 01:52, rvelez wrote: >> Has anyone gotten mailq to check qmail using qmail-qstat? I have tried >> to modify the script but it is not working for me. Thanks for the help >> >> -Radames >> > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From ryan.henry at EPSIIA.com Tue Jan 21 19:20:04 2003 From: ryan.henry at EPSIIA.com (Ryan Henry) Date: Tue, 21 Jan 2003 12:20:04 -0600 Subject: qpage doesn't work through nagios, help!! In-Reply-To: <000801c2c177$b738fef0$f9184acf@wolverine> References: <000801c2c177$b738fef0$f9184acf@wolverine> Message-ID: <3E2D8F54.5090607@EPSIIA.com> make sure the nagios user has permissions to write to the modem device - /dev/cua/b or whatever it is. -Ryan Mike Cochran wrote: >I'm having a similar problem, but I'm using yaps (yet another pager >software) instead of qpage. When I run it (from the command line) using >under root, it all works fine. Then when I try it using user nagios it >doesn't work... it gives me the following output: > ><< > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' >> >> >Found service D1 for 616xxxxxxx >Sending following message: >mike (D1, 616xxxxxxx): test -nagios >Trying to open /dev/cua/b for modem standard >Unable to dial D1 > > > >Has anybody had a similar problem or know what it might be? I would >assume that it would be a permissions problem, but I'm not sure which >permissions to check. The yaps permissions seem fine, since the program >starts up fine. Thanks for any help... > >-mike > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann >Sent: Tuesday, January 21, 2003 12:02 PM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > >I can't figure out why qpage doesn't actually SEND the page when it's >run >through nagios. This is what /var/log/syslog says: > >Jan 21 11:57:10 linux qpage[25317]: connection from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[25317]: disconnect from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > >This is what happens when I run qpage manually as root: > >Jan 21 11:58:10 linux qpage[25433]: connection from >[anonymous]@localhost >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, >from=root >Jan 21 11:58:10 linux qpage[21486]: processing the page queue >Jan 21 11:58:10 linux qpage[25433]: disconnect from >[anonymous]@localhost > >/usr/local/bin/qpage was set user/group as root/root so I changed it to >root/nagios but still no luck. > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From emann at questinc.org Tue Jan 21 19:43:50 2003 From: emann at questinc.org (Evan Mann) Date: Tue, 21 Jan 2003 13:43:50 -0500 Subject: qpage doesn't work through nagios, help!! Message-ID: Can someone help me here. Here is the relevant files. I know it's not a problem with printf since my notify-by-email's use that fine. I can't figure else what else it can be. qpage is not accepting the page went sent through nagios. crwxrwxrwx 1 root dialout 4, 64 Jan 21 11:58 /dev/ttyS0 -rwxrwxrwx 1 nagios nagios 91687 Dec 31 09:40 /usr/local/bin/qpage* -rwxr-xr-x 1 root root 16348 Jul 26 2001 /usr/bin/printf* drwxr-xr-x 9 root root 21504 Jan 20 15:40 dev/ # 'host-notify-by-qpage' command definition define command{ command_name host-notify-by-qpage command_line /usr/bin/printf "$HOSTNAME$/$HOSTSTATE$ $OUTPUT$" | /usr/local/bin/qpage -d -p $CONTACTPAGER$ } -----Original Message----- From: Ryan Henry [mailto:ryan.henry at EPSIIA.com] Sent: Tuesday, January 21, 2003 1:20 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! make sure the nagios user has permissions to write to the modem device - /dev/cua/b or whatever it is. -Ryan Mike Cochran wrote: >I'm having a similar problem, but I'm using yaps (yet another pager >software) instead of qpage. When I run it (from the command line) using >under root, it all works fine. Then when I try it using user nagios it >doesn't work... it gives me the following output: > ><< > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' >> >> >Found service D1 for 616xxxxxxx >Sending following message: >mike (D1, 616xxxxxxx): test -nagios >Trying to open /dev/cua/b for modem standard >Unable to dial D1 > > > >Has anybody had a similar problem or know what it might be? I would >assume that it would be a permissions problem, but I'm not sure which >permissions to check. The yaps permissions seem fine, since the program >starts up fine. Thanks for any help... > >-mike > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann >Sent: Tuesday, January 21, 2003 12:02 PM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > >I can't figure out why qpage doesn't actually SEND the page when it's >run >through nagios. This is what /var/log/syslog says: > >Jan 21 11:57:10 linux qpage[25317]: connection from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[25317]: disconnect from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > >This is what happens when I run qpage manually as root: > >Jan 21 11:58:10 linux qpage[25433]: connection from >[anonymous]@localhost >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, >from=root >Jan 21 11:58:10 linux qpage[21486]: processing the page queue >Jan 21 11:58:10 linux qpage[25433]: disconnect from >[anonymous]@localhost > >/usr/local/bin/qpage was set user/group as root/root so I changed it to >root/nagios but still no luck. > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Stanley.G.Martin at mail.sprint.com Tue Jan 21 19:55:14 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Tue, 21 Jan 2003 12:55:14 -0600 Subject: qpage doesn't work through nagios, help!! Message-ID: Here's what my device looks like: crw-rw-rw- 1 root uucp 4, 68 Apr 11 2002 /dev/ttyS4 Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: ryan.henry [mailto:ryan.henry at EPSIIA.com] Sent: Tuesday, January 21, 2003 12:20 PM To: nagios-users Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! make sure the nagios user has permissions to write to the modem device - /dev/cua/b or whatever it is. -Ryan Mike Cochran wrote: >I'm having a similar problem, but I'm using yaps (yet another pager >software) instead of qpage. When I run it (from the command line) using >under root, it all works fine. Then when I try it using user nagios it >doesn't work... it gives me the following output: > ><< > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' >> >> >Found service D1 for 616xxxxxxx >Sending following message: >mike (D1, 616xxxxxxx): test -nagios >Trying to open /dev/cua/b for modem standard >Unable to dial D1 > > > >Has anybody had a similar problem or know what it might be? I would >assume that it would be a permissions problem, but I'm not sure which >permissions to check. The yaps permissions seem fine, since the program >starts up fine. Thanks for any help... > >-mike > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann >Sent: Tuesday, January 21, 2003 12:02 PM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > >I can't figure out why qpage doesn't actually SEND the page when it's >run >through nagios. This is what /var/log/syslog says: > >Jan 21 11:57:10 linux qpage[25317]: connection from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[25317]: disconnect from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > >This is what happens when I run qpage manually as root: > >Jan 21 11:58:10 linux qpage[25433]: connection from >[anonymous]@localhost >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, >from=root >Jan 21 11:58:10 linux qpage[21486]: processing the page queue >Jan 21 11:58:10 linux qpage[25433]: disconnect from >[anonymous]@localhost > >/usr/local/bin/qpage was set user/group as root/root so I changed it to >root/nagios but still no luck. > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jsm at inpro.net Tue Jan 21 19:49:38 2003 From: jsm at inpro.net (Jeff McKeon) Date: 21 Jan 2003 13:49:38 -0500 Subject: Statusmap error In-Reply-To: <1043175178.978.32.camel@krull> References: <1042850729.4184.349.camel@krull> <002f01c2be8c$6b01bc90$984476d8@xphome> <1042853027.3988.370.camel@krull> <1043153627.28573.10.camel@rh80-jsm.telaurus.net> <1043175178.978.32.camel@krull> Message-ID: <1043174979.1265.0.camel@rh80-jsm.telaurus.net> Jayson, send me your extended info cfg file in the body of an email... jeff On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote: > Hello Jeff, > > Thank you for your input it has been extremely appreciated, I did find > the reference to extended info for the hosts in the documentation that > you had mentioned, I added the required lines to the cgi.cfg file, and > created the new cfg files..it appears to work (kind of),my status map > still shows no icons (I just get out lined box for "nagios process" and > and outlined box for the "host" machine with the green active circle > around it) the info box that pops up when you roll your mouse over it > shows the icon (thank you) as well as the other cgi's , including the > statuswrl (however the icon is "blocky" I will keep tooling around with > it hopefully I will find the problem. Thank you again for you time and > help. > > Jayson > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote: > > jayson, > > > > sorry but I was out on the road yesterday. > > > > to get the images correct you need to place the image files in the > > > > /usr/local/nagios/share/images/logos/ > > > > directory and then you need to create a whole new .cfg file for the > > extended attributes of the hosts. you can name this file anything you > > want and put it in the .../nagios/etc directory with all the rest of the > > cfg files. The documentation has the file information but there isn't a > > sample file included that I know of. > > > > after that file is created you must change the line in the cgi.cfg to > > point to it. > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg > > > > As for the httpd.conf line and what it does, I'm not totally sure. > > Someone helped me out with that last week. It's apparently not in the > > nagios docs. I believe it just tells httpd where to find the libs for > > the cgi code. > > > > enjoy! > > > > Jeff > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote: > > > Thank YOU! That did it,that gave me the layout, but for some reason the > > > icons don't show? Maybe I just have to tweak that file a little more > > > ....more importantly, what exactly did that addition to the httpd.conf > > > file do, put the the lib dir in the httpd path? Thanks again ..now I can > > > almost go home.. > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote: > > > > There's a line you need to add to your httpd.conf file. Just went throught > > > > this last week. > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > just add it to the end of the file and it may do the trick... > > > > > > > > ----- Original Message ----- > > > > From: "Jayson Kliger" > > > > To: > > > > Sent: Friday, January 17, 2003 7:45 PM > > > > Subject: [Nagios-users] Statusmap error > > > > > > > > > > > > > Hello, > > > > > > > > > > I currently have running Nagios running on a RH8 machine, and it is > > > > > monitoring the test box that I have set up, I have read the docs, and > > > > > mailing-list archives, but I am still having issues with the > > > > > statsmap.cgi. I have made the (what I feel are the correct, but probably > > > > > aren't) changes to the cgi.cfg file and > > > > > sections .the default_statusmap/default_statuswrl layouts have been set > > > > > to default 4 (circular).. When ever I try to access statusmap I get an > > > > > error 500 Premature end of script? Any hints as to where I should begin > > > > > to track down the problem? I believe that I have all the required libs > > > > > installed...I am kind of stuck at this point, any ideas? > > > > > > > > > > Thanks in advance > > > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From dack at msi.umn.edu Tue Jan 21 19:52:30 2003 From: dack at msi.umn.edu (Dack Anderson) Date: Tue, 21 Jan 2003 12:52:30 -0600 (CST) Subject: qpage doesn't work through nagios, help!! In-Reply-To: References: Message-ID: try /usr/bin/printf "%b" On Tue, 21 Jan 2003, Evan Mann wrote: > > Can someone help me here. Here is the relevant files. I know it's not a > problem with printf since my notify-by-email's use that fine. I can't > figure else what else it can be. qpage is not accepting the page went sent > through nagios. > > crwxrwxrwx 1 root dialout 4, 64 Jan 21 11:58 /dev/ttyS0 > -rwxrwxrwx 1 nagios nagios 91687 Dec 31 09:40 > /usr/local/bin/qpage* > -rwxr-xr-x 1 root root 16348 Jul 26 2001 /usr/bin/printf* > drwxr-xr-x 9 root root 21504 Jan 20 15:40 dev/ > > # 'host-notify-by-qpage' command definition > define command{ > command_name host-notify-by-qpage > command_line /usr/bin/printf "$HOSTNAME$/$HOSTSTATE$ $OUTPUT$" | > /usr/local/bin/qpage -d -p $CONTACTPAGER$ > } > > -----Original Message----- > From: Ryan Henry [mailto:ryan.henry at EPSIIA.com] > Sent: Tuesday, January 21, 2003 1:20 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! > > > make sure the nagios user has permissions to write to the modem device - > /dev/cua/b or whatever it is. > > -Ryan > > Mike Cochran wrote: > > >I'm having a similar problem, but I'm using yaps (yet another pager > >software) instead of qpage. When I run it (from the command line) using > >under root, it all works fine. Then when I try it using user nagios it > >doesn't work... it gives me the following output: > > > ><< > > > > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' > >> > >> > >Found service D1 for 616xxxxxxx > >Sending following message: > >mike (D1, 616xxxxxxx): test -nagios > >Trying to open /dev/cua/b for modem standard > >Unable to dial D1 > > > > > > > >Has anybody had a similar problem or know what it might be? I would > >assume that it would be a permissions problem, but I'm not sure which > >permissions to check. The yaps permissions seem fine, since the program > >starts up fine. Thanks for any help... > > > >-mike > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann > >Sent: Tuesday, January 21, 2003 12:02 PM > >To: 'nagios-users at lists.sourceforge.net' > >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > > > >I can't figure out why qpage doesn't actually SEND the page when it's > >run > >through nagios. This is what /var/log/syslog says: > > > >Jan 21 11:57:10 linux qpage[25317]: connection from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[25317]: disconnect from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > > > >This is what happens when I run qpage manually as root: > > > >Jan 21 11:58:10 linux qpage[25433]: connection from > >[anonymous]@localhost > >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, > >from=root > >Jan 21 11:58:10 linux qpage[21486]: processing the page queue > >Jan 21 11:58:10 linux qpage[25433]: disconnect from > >[anonymous]@localhost > > > >/usr/local/bin/qpage was set user/group as root/root so I changed it to > >root/nagios but still no luck. > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Dack ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mcochra at remc7.k12.mi.us Tue Jan 21 20:21:17 2003 From: mcochra at remc7.k12.mi.us (Mike Cochran) Date: Tue, 21 Jan 2003 14:21:17 -0500 Subject: qpage doesn't work through nagios, help!! In-Reply-To: References: Message-ID: <001901c2c182$459b7380$f9184acf@wolverine> Here's what my permissions look like: /dev/cua/b: lrwxrwxrwx 1 root nagios 55 Jan 30 2002 b -> ../../devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu /devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu: crw-rw-rw- 1 uucp nagios 20,131073 Jan 21 13:50 /devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu /usr/local/bin/yaps: -rwxr-xr-x 1 root other 359184 Jan 15 09:44 yaps /etc/yaps.rc: -rw-r--r-- 1 root other 8805 Jan 20 16:03 yaps.rc do these look ok? Is there anything else I should be checking?? Thanks for the replies :) -mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stanley.G.Martin at mail.sprint.com Sent: Tuesday, January 21, 2003 1:55 PM To: nagios-users at lists.sourceforge.net; ryan.henry at EPSIIA.com Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! Here's what my device looks like: crw-rw-rw- 1 root uucp 4, 68 Apr 11 2002 /dev/ttyS4 Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: ryan.henry [mailto:ryan.henry at EPSIIA.com] Sent: Tuesday, January 21, 2003 12:20 PM To: nagios-users Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! make sure the nagios user has permissions to write to the modem device - /dev/cua/b or whatever it is. -Ryan Mike Cochran wrote: >I'm having a similar problem, but I'm using yaps (yet another pager >software) instead of qpage. When I run it (from the command line) using >under root, it all works fine. Then when I try it using user nagios it >doesn't work... it gives me the following output: > ><< > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' >> >> >Found service D1 for 616xxxxxxx >Sending following message: >mike (D1, 616xxxxxxx): test -nagios >Trying to open /dev/cua/b for modem standard >Unable to dial D1 > > > >Has anybody had a similar problem or know what it might be? I would >assume that it would be a permissions problem, but I'm not sure which >permissions to check. The yaps permissions seem fine, since the program >starts up fine. Thanks for any help... > >-mike > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann >Sent: Tuesday, January 21, 2003 12:02 PM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > >I can't figure out why qpage doesn't actually SEND the page when it's >run >through nagios. This is what /var/log/syslog says: > >Jan 21 11:57:10 linux qpage[25317]: connection from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[25317]: disconnect from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > >This is what happens when I run qpage manually as root: > >Jan 21 11:58:10 linux qpage[25433]: connection from >[anonymous]@localhost >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, >from=root >Jan 21 11:58:10 linux qpage[21486]: processing the page queue >Jan 21 11:58:10 linux qpage[25433]: disconnect from >[anonymous]@localhost > >/usr/local/bin/qpage was set user/group as root/root so I changed it to >root/nagios but still no luck. > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From emann at questinc.org Tue Jan 21 20:26:45 2003 From: emann at questinc.org (Evan Mann) Date: Tue, 21 Jan 2003 14:26:45 -0500 Subject: qpage doesn't work through nagios, help!! Message-ID: No suggestions thus far seem to work. I am baffled. I logged in as the nagios user and I can run qpage from command line fine. it just yacks when it runs through nagios. -----Original Message----- From: Dack Anderson [mailto:dack at msi.umn.edu] Sent: Tuesday, January 21, 2003 1:53 PM To: Evan Mann Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! try /usr/bin/printf "%b" On Tue, 21 Jan 2003, Evan Mann wrote: > > Can someone help me here. Here is the relevant files. I know it's not a > problem with printf since my notify-by-email's use that fine. I can't > figure else what else it can be. qpage is not accepting the page went sent > through nagios. > > crwxrwxrwx 1 root dialout 4, 64 Jan 21 11:58 /dev/ttyS0 > -rwxrwxrwx 1 nagios nagios 91687 Dec 31 09:40 > /usr/local/bin/qpage* > -rwxr-xr-x 1 root root 16348 Jul 26 2001 /usr/bin/printf* > drwxr-xr-x 9 root root 21504 Jan 20 15:40 dev/ > > # 'host-notify-by-qpage' command definition > define command{ > command_name host-notify-by-qpage > command_line /usr/bin/printf "$HOSTNAME$/$HOSTSTATE$ $OUTPUT$" | > /usr/local/bin/qpage -d -p $CONTACTPAGER$ > } > > -----Original Message----- > From: Ryan Henry [mailto:ryan.henry at EPSIIA.com] > Sent: Tuesday, January 21, 2003 1:20 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! > > > make sure the nagios user has permissions to write to the modem device - > /dev/cua/b or whatever it is. > > -Ryan > > Mike Cochran wrote: > > >I'm having a similar problem, but I'm using yaps (yet another pager > >software) instead of qpage. When I run it (from the command line) using > >under root, it all works fine. Then when I try it using user nagios it > >doesn't work... it gives me the following output: > > > ><< > > > > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' > >> > >> > >Found service D1 for 616xxxxxxx > >Sending following message: > >mike (D1, 616xxxxxxx): test -nagios > >Trying to open /dev/cua/b for modem standard > >Unable to dial D1 > > > > > > > >Has anybody had a similar problem or know what it might be? I would > >assume that it would be a permissions problem, but I'm not sure which > >permissions to check. The yaps permissions seem fine, since the program > >starts up fine. Thanks for any help... > > > >-mike > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann > >Sent: Tuesday, January 21, 2003 12:02 PM > >To: 'nagios-users at lists.sourceforge.net' > >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > > > >I can't figure out why qpage doesn't actually SEND the page when it's > >run > >through nagios. This is what /var/log/syslog says: > > > >Jan 21 11:57:10 linux qpage[25317]: connection from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[25317]: disconnect from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > > > >This is what happens when I run qpage manually as root: > > > >Jan 21 11:58:10 linux qpage[25433]: connection from > >[anonymous]@localhost > >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, > >from=root > >Jan 21 11:58:10 linux qpage[21486]: processing the page queue > >Jan 21 11:58:10 linux qpage[25433]: disconnect from > >[anonymous]@localhost > > > >/usr/local/bin/qpage was set user/group as root/root so I changed it to > >root/nagios but still no luck. > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Dack ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Stanley.G.Martin at mail.sprint.com Tue Jan 21 20:49:17 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Tue, 21 Jan 2003 13:49:17 -0600 Subject: Contacts Confusion Message-ID: I've been dinking with my config files and I've thought myself into a state of confusion as to how to create contacts and groups. I have 'jdoe' and 'jim' who are sysadmins. I have services that are being monitored that some require notification 24x7 and some don't. On some services, 'jdoe' should be notified 24x7 and 'jim' only workhours and vice versa My question is, how does everyone handle this? Do I create separate contact entries for 'jdoe' for every timeperiod possible , (ex. jdoe-24x7, jdoe-work, jdoe-nonwork) and the same for 'jim'? And then create contactgroups to fit (ex. nt-admins-24x7)? Stanley G. Martin Sprint - EIS? Customer Care Stanley.G.Martin at mail.sprint.com ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From emann at questinc.org Tue Jan 21 20:48:56 2003 From: emann at questinc.org (Evan Mann) Date: Tue, 21 Jan 2003 14:48:56 -0500 Subject: qpage doesn't work through nagios, help!! Message-ID: I feel stupid. I figured my problem out. In the pager definition for my contact's I was using first names, but my qpage.cf was using userid's, so they didn't match. DUH. -----Original Message----- From: Evan Mann Sent: Tuesday, January 21, 2003 2:27 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! No suggestions thus far seem to work. I am baffled. I logged in as the nagios user and I can run qpage from command line fine. it just yacks when it runs through nagios. -----Original Message----- From: Dack Anderson [mailto:dack at msi.umn.edu] Sent: Tuesday, January 21, 2003 1:53 PM To: Evan Mann Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! try /usr/bin/printf "%b" On Tue, 21 Jan 2003, Evan Mann wrote: > > Can someone help me here. Here is the relevant files. I know it's not a > problem with printf since my notify-by-email's use that fine. I can't > figure else what else it can be. qpage is not accepting the page went sent > through nagios. > > crwxrwxrwx 1 root dialout 4, 64 Jan 21 11:58 /dev/ttyS0 > -rwxrwxrwx 1 nagios nagios 91687 Dec 31 09:40 > /usr/local/bin/qpage* > -rwxr-xr-x 1 root root 16348 Jul 26 2001 /usr/bin/printf* > drwxr-xr-x 9 root root 21504 Jan 20 15:40 dev/ > > # 'host-notify-by-qpage' command definition > define command{ > command_name host-notify-by-qpage > command_line /usr/bin/printf "$HOSTNAME$/$HOSTSTATE$ $OUTPUT$" | > /usr/local/bin/qpage -d -p $CONTACTPAGER$ > } > > -----Original Message----- > From: Ryan Henry [mailto:ryan.henry at EPSIIA.com] > Sent: Tuesday, January 21, 2003 1:20 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! > > > make sure the nagios user has permissions to write to the modem device - > /dev/cua/b or whatever it is. > > -Ryan > > Mike Cochran wrote: > > >I'm having a similar problem, but I'm using yaps (yet another pager > >software) instead of qpage. When I run it (from the command line) using > >under root, it all works fine. Then when I try it using user nagios it > >doesn't work... it gives me the following output: > > > ><< > > > > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' > >> > >> > >Found service D1 for 616xxxxxxx > >Sending following message: > >mike (D1, 616xxxxxxx): test -nagios > >Trying to open /dev/cua/b for modem standard > >Unable to dial D1 > > > > > > > >Has anybody had a similar problem or know what it might be? I would > >assume that it would be a permissions problem, but I'm not sure which > >permissions to check. The yaps permissions seem fine, since the program > >starts up fine. Thanks for any help... > > > >-mike > > > >-----Original Message----- > >From: nagios-users-admin at lists.sourceforge.net > >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann > >Sent: Tuesday, January 21, 2003 12:02 PM > >To: 'nagios-users at lists.sourceforge.net' > >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > > > >I can't figure out why qpage doesn't actually SEND the page when it's > >run > >through nagios. This is what /var/log/syslog says: > > > >Jan 21 11:57:10 linux qpage[25317]: connection from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[25317]: disconnect from > >[anonymous]@localhost > >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > > > >This is what happens when I run qpage manually as root: > > > >Jan 21 11:58:10 linux qpage[25433]: connection from > >[anonymous]@localhost > >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, > >from=root > >Jan 21 11:58:10 linux qpage[21486]: processing the page queue > >Jan 21 11:58:10 linux qpage[25433]: disconnect from > >[anonymous]@localhost > > > >/usr/local/bin/qpage was set user/group as root/root so I changed it to > >root/nagios but still no luck. > > > > > > > > > >------------------------------------------------------- > >This SF.net email is sponsored by: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > >Can't afford IT training? All 2003 ictp students receive scholarships. > >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > >www.ictp.com/training/sourceforge.asp > >_______________________________________________ > >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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > -- Dack ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mcochra at remc7.k12.mi.us Tue Jan 21 21:15:43 2003 From: mcochra at remc7.k12.mi.us (Mike Cochran) Date: Tue, 21 Jan 2003 15:15:43 -0500 Subject: qpage doesn't work through nagios, help!! (and yaps) In-Reply-To: <001901c2c182$459b7380$f9184acf@wolverine> References: <001901c2c182$459b7380$f9184acf@wolverine> Message-ID: <001c01c2c189$e0574050$f9184acf@wolverine> I found the answer to my problem on some german message board... thank the good Lord for free online translators!! :) even if they do get half of the words backwards. :) Basically all I had to do was a chmod 4755 yaps Which changed -rwxr-xr-x to -rwsr-xr-x thanks a lot to everyone who gave suggestions, because odds are some of those other permissions weren't right either... -mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Mike Cochran Sent: Tuesday, January 21, 2003 2:21 PM To: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! Here's what my permissions look like: /dev/cua/b: lrwxrwxrwx 1 root nagios 55 Jan 30 2002 b -> ../../devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu /devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu: crw-rw-rw- 1 uucp nagios 20,131073 Jan 21 13:50 /devices/pci at 1f,0/pci at 1,1/ebus at 1/se at 14,400000:b,cu /usr/local/bin/yaps: -rwxr-xr-x 1 root other 359184 Jan 15 09:44 yaps /etc/yaps.rc: -rw-r--r-- 1 root other 8805 Jan 20 16:03 yaps.rc do these look ok? Is there anything else I should be checking?? Thanks for the replies :) -mike -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Stanley.G.Martin at mail.sprint.com Sent: Tuesday, January 21, 2003 1:55 PM To: nagios-users at lists.sourceforge.net; ryan.henry at EPSIIA.com Subject: RE: [Nagios-users] qpage doesn't work through nagios, help!! Here's what my device looks like: crw-rw-rw- 1 root uucp 4, 68 Apr 11 2002 /dev/ttyS4 Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: ryan.henry [mailto:ryan.henry at EPSIIA.com] Sent: Tuesday, January 21, 2003 12:20 PM To: nagios-users Subject: Re: [Nagios-users] qpage doesn't work through nagios, help!! make sure the nagios user has permissions to write to the modem device - /dev/cua/b or whatever it is. -Ryan Mike Cochran wrote: >I'm having a similar problem, but I'm using yaps (yet another pager >software) instead of qpage. When I run it (from the command line) using >under root, it all works fine. Then when I try it using user nagios it >doesn't work... it gives me the following output: > ><< > > >>/usr/local/bin/yaps -vvvvv -t mike 'test' >> >> >Found service D1 for 616xxxxxxx >Sending following message: >mike (D1, 616xxxxxxx): test -nagios >Trying to open /dev/cua/b for modem standard >Unable to dial D1 > > > >Has anybody had a similar problem or know what it might be? I would >assume that it would be a permissions problem, but I'm not sure which >permissions to check. The yaps permissions seem fine, since the program >starts up fine. Thanks for any help... > >-mike > >-----Original Message----- >From: nagios-users-admin at lists.sourceforge.net >[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Evan Mann >Sent: Tuesday, January 21, 2003 12:02 PM >To: 'nagios-users at lists.sourceforge.net' >Subject: [Nagios-users] qpage doesn't work through nagios, help!! > >I can't figure out why qpage doesn't actually SEND the page when it's >run >through nagios. This is what /var/log/syslog says: > >Jan 21 11:57:10 linux qpage[25317]: connection from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[25317]: disconnect from >[anonymous]@localhost >Jan 21 11:57:10 linux qpage[21486]: processing the page queue > >This is what happens when I run qpage manually as root: > >Jan 21 11:58:10 linux qpage[25433]: connection from >[anonymous]@localhost >Jan 21 11:58:10 linux qpage[25433]: page submitted, id=AUQ60070, >from=root >Jan 21 11:58:10 linux qpage[21486]: processing the page queue >Jan 21 11:58:10 linux qpage[25433]: disconnect from >[anonymous]@localhost > >/usr/local/bin/qpage was set user/group as root/root so I changed it to >root/nagios but still no luck. > > > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From GPotter at MarathonOil.com Tue Jan 21 21:42:46 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 21 Jan 2003 14:42:46 -0600 Subject: Statusmap error Message-ID: What is your OS, on my Solaris Installation I have to make an entry in the httpd.conf file to set the LD_LIBRARY_PATH to /usr/local/lib. The entry looks like the following: SetENV LD_LIBRARY_PATH /usr/local/lib Let me know if this helps. On Linux I think there is a file called /etc/ld.conf or something like that that does something similar. Greg > -----Original Message----- > From: Jeff McKeon [mailto:jsm at inpro.net] > Sent: Tuesday, January 21, 2003 12:50 PM > To: Jayson Kliger > Cc: Nagios List > Subject: Re: [Nagios-users] Statusmap error > > > Jayson, > > send me your extended info cfg file in the body of an email... > > jeff > > On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote: > > Hello Jeff, > > > > Thank you for your input it has been extremely appreciated, > I did find > > the reference to extended info for the hosts in the > documentation that > > you had mentioned, I added the required lines to the > cgi.cfg file, and > > created the new cfg files..it appears to work (kind of),my > status map > > still shows no icons (I just get out lined box for "nagios > process" and > > and outlined box for the "host" machine with the green active circle > > around it) the info box that pops up when you roll your > mouse over it > > shows the icon (thank you) as well as the other cgi's , > including the > > statuswrl (however the icon is "blocky" I will keep tooling > around with > > it hopefully I will find the problem. Thank you again for > you time and > > help. > > > > Jayson > > > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote: > > > jayson, > > > > > > sorry but I was out on the road yesterday. > > > > > > to get the images correct you need to place the image > files in the > > > > > > /usr/local/nagios/share/images/logos/ > > > > > > directory and then you need to create a whole new .cfg > file for the > > > extended attributes of the hosts. you can name this file > anything you > > > want and put it in the .../nagios/etc directory with all > the rest of the > > > cfg files. The documentation has the file information > but there isn't a > > > sample file included that I know of. > > > > > > after that file is created you must change the line in > the cgi.cfg to > > > point to it. > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg > > > > > > As for the httpd.conf line and what it does, I'm not > totally sure. > > > Someone helped me out with that last week. It's > apparently not in the > > > nagios docs. I believe it just tells httpd where to find > the libs for > > > the cgi code. > > > > > > enjoy! > > > > > > Jeff > > > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote: > > > > Thank YOU! That did it,that gave me the layout, but for > some reason the > > > > icons don't show? Maybe I just have to tweak that file > a little more > > > > ....more importantly, what exactly did that addition to > the httpd.conf > > > > file do, put the the lib dir in the httpd path? Thanks > again ..now I can > > > > almost go home.. > > > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote: > > > > > There's a line you need to add to your httpd.conf > file. Just went throught > > > > > this last week. > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > just add it to the end of the file and it may do the trick... > > > > > > > > > > ----- Original Message ----- > > > > > From: "Jayson Kliger" > > > > > To: > > > > > Sent: Friday, January 17, 2003 7:45 PM > > > > > Subject: [Nagios-users] Statusmap error > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > I currently have running Nagios running on a RH8 > machine, and it is > > > > > > monitoring the test box that I have set up, I have > read the docs, and > > > > > > mailing-list archives, but I am still having issues with the > > > > > > statsmap.cgi. I have made the (what I feel are the > correct, but probably > > > > > > aren't) changes to the cgi.cfg file > and > > > > > > sections .the default_statusmap/default_statuswrl > layouts have been set > > > > > > to default 4 (circular).. When ever I try to access > statusmap I get an > > > > > > error 500 Premature end of script? Any hints as to > where I should begin > > > > > > to track down the problem? I believe that I have > all the required libs > > > > > > installed...I am kind of stuck at this point, any ideas? > > > > > > > > > > > > Thanks in advance > > > > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Tue Jan 21 22:23:51 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 21 Jan 2003 16:23:51 -0500 Subject: Statusmap error In-Reply-To: References: Message-ID: <1043184231.978.80.camel@krull> Thanks Greg, Thats exactly what Jeff had helped me with and it fixed the problem, however the problem that I am having now is the icons for the status map are not showing up, all I get is an outlined box with "Nagios Process" and an outlined box with green "up" circle and no icon for my host. I have added the extra cfg file for hostextinfo.All of the other cgi display icons except for the statusmap. On Tue, 2003-01-21 at 15:42, Potter, G M (Greg) wrote: > What is your OS, on my Solaris Installation I have to make an entry > in the httpd.conf file to set the LD_LIBRARY_PATH to /usr/local/lib. > The entry looks like the following: > > SetENV LD_LIBRARY_PATH /usr/local/lib > > Let me know if this helps. On Linux I think there is a file called > /etc/ld.conf or something like that that does something similar. > > Greg > > > -----Original Message----- > > From: Jeff McKeon [mailto:jsm at inpro.net] > > Sent: Tuesday, January 21, 2003 12:50 PM > > To: Jayson Kliger > > Cc: Nagios List > > Subject: Re: [Nagios-users] Statusmap error > > > > > > Jayson, > > > > send me your extended info cfg file in the body of an email... > > > > jeff > > > > On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote: > > > Hello Jeff, > > > > > > Thank you for your input it has been extremely appreciated, > > I did find > > > the reference to extended info for the hosts in the > > documentation that > > > you had mentioned, I added the required lines to the > > cgi.cfg file, and > > > created the new cfg files..it appears to work (kind of),my > > status map > > > still shows no icons (I just get out lined box for "nagios > > process" and > > > and outlined box for the "host" machine with the green active circle > > > around it) the info box that pops up when you roll your > > mouse over it > > > shows the icon (thank you) as well as the other cgi's , > > including the > > > statuswrl (however the icon is "blocky" I will keep tooling > > around with > > > it hopefully I will find the problem. Thank you again for > > you time and > > > help. > > > > > > Jayson > > > > > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote: > > > > jayson, > > > > > > > > sorry but I was out on the road yesterday. > > > > > > > > to get the images correct you need to place the image > > files in the > > > > > > > > /usr/local/nagios/share/images/logos/ > > > > > > > > directory and then you need to create a whole new .cfg > > file for the > > > > extended attributes of the hosts. you can name this file > > anything you > > > > want and put it in the .../nagios/etc directory with all > > the rest of the > > > > cfg files. The documentation has the file information > > but there isn't a > > > > sample file included that I know of. > > > > > > > > after that file is created you must change the line in > > the cgi.cfg to > > > > point to it. > > > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg > > > > > > > > As for the httpd.conf line and what it does, I'm not > > totally sure. > > > > Someone helped me out with that last week. It's > > apparently not in the > > > > nagios docs. I believe it just tells httpd where to find > > the libs for > > > > the cgi code. > > > > > > > > enjoy! > > > > > > > > Jeff > > > > > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote: > > > > > Thank YOU! That did it,that gave me the layout, but for > > some reason the > > > > > icons don't show? Maybe I just have to tweak that file > > a little more > > > > > ....more importantly, what exactly did that addition to > > the httpd.conf > > > > > file do, put the the lib dir in the httpd path? Thanks > > again ..now I can > > > > > almost go home.. > > > > > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote: > > > > > > There's a line you need to add to your httpd.conf > > file. Just went throught > > > > > > this last week. > > > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > > > just add it to the end of the file and it may do the trick... > > > > > > > > > > > > ----- Original Message ----- > > > > > > From: "Jayson Kliger" > > > > > > To: > > > > > > Sent: Friday, January 17, 2003 7:45 PM > > > > > > Subject: [Nagios-users] Statusmap error > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > I currently have running Nagios running on a RH8 > > machine, and it is > > > > > > > monitoring the test box that I have set up, I have > > read the docs, and > > > > > > > mailing-list archives, but I am still having issues with the > > > > > > > statsmap.cgi. I have made the (what I feel are the > > correct, but probably > > > > > > > aren't) changes to the cgi.cfg file > > and > > > > > > > sections .the default_statusmap/default_statuswrl > > layouts have been set > > > > > > > to default 4 (circular).. When ever I try to access > > statusmap I get an > > > > > > > error 500 Premature end of script? Any hints as to > > where I should begin > > > > > > > to track down the problem? I believe that I have > > all the required libs > > > > > > > installed...I am kind of stuck at this point, any ideas? > > > > > > > > > > > > > > Thanks in advance > > > > > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > 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: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From GPotter at MarathonOil.com Tue Jan 21 22:37:42 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 21 Jan 2003 15:37:42 -0600 Subject: Statusmap error Message-ID: Do you get an error message in the apache error log file about statusmap.cgi exiting prematurely? I had a problem with that, and I believe the problem was in the order I installed/compiled the pieces that gd uses. I.E. libpng, libjpeg, and libgd. Greg > -----Original Message----- > From: Jayson Kliger [mailto:jayson at sonictrading.com] > Sent: Tuesday, January 21, 2003 3:24 PM > To: Potter, G M (Greg) > Cc: Jeff McKeon; Nagios List > Subject: RE: [Nagios-users] Statusmap error > > > Thanks Greg, > Thats exactly what Jeff had helped me with and it fixed the problem, > however the problem that I am having now is the icons for the > status map > are not showing up, all I get is an outlined box with "Nagios Process" > and an outlined box with green "up" circle and no icon for my host. I > have added the extra cfg file for hostextinfo.All of the other cgi > display icons except for the statusmap. > > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Tue Jan 21 22:44:43 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 15:44:43 -0600 Subject: Contacts Confusion Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2511@PKDWB03C.ad.sprint.com> You can set notification limitations based on the service. For example, your template might specify 24x7, but for one particular service definition you can have: notification_period workhours That should do the trick. Leave your sysadmin(s)/contact list(s) set for 24x7 (if that's the way you work it there). Another way of looking at it is as a truth table: Service && Contact = Notification ------- ------- ------------ 0 0 0 0 1 0 1 0 0 1 1 1 HTH. jc > -----Original Message----- > From: Martin, Stanley G > Sent: Tuesday, January 21, 2003 1:49 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Contacts Confusion > > > I've been dinking with my config files and I've thought myself into a > state of confusion as to how to create contacts and groups. > > I have 'jdoe' and 'jim' who are sysadmins. > I have services that are being monitored that some require > notification > 24x7 and some don't. > On some services, 'jdoe' should be notified 24x7 and 'jim' only > workhours and vice versa > My question is, how does everyone handle this? Do I create separate > contact entries for 'jdoe' for every timeperiod possible , (ex. > jdoe-24x7, jdoe-work, jdoe-nonwork) and the same for 'jim'? And then > create contactgroups to fit (ex. nt-admins-24x7)? > > > > Stanley G. Martin > Sprint - EIS? Customer Care > Stanley.G.Martin at mail.sprint.com > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From rvelez at sunguruz.com Tue Jan 21 22:56:33 2003 From: rvelez at sunguruz.com (rvelez) Date: Tue, 21 Jan 2003 16:56:33 -0500 Subject: check_disk_smb command In-Reply-To: <20030121133952.572.qmail@nsmx1.sunguruz.com> References: <20030121133952.572.qmail@nsmx1.sunguruz.com> Message-ID: <000a01c2c197$f66cc0a0$0300a8c0@sunguruz.com> Typo I meant give it a shot :) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of rvelez Sent: Tuesday, January 21, 2003 8:40 AM To: Fernando Ribeiro Cc: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Re: check_disk_smb command Thanks I will give it a shit. Thanks for your help Regards, Radames Fernando Ribeiro writes: > For monitoring diferent shares using the same "check_command" you can use arguments. > Like this: > > > define service{ > > ..... > > check_command check_disk_smb!ports > > ... > > } > > > > define command{ > > command_name check_disk_smb > > command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ -s $ARG1$ -W SUNGURUZ -u nagios -p 222222 > > } > > > Check the Docs. for more details.... > > Fernando > > > ----- Original Message ----- > From: rvelez > To: 'Fernando Ribeiro' > Sent: Tuesday, January 21, 2003 2:51 AM > Subject: RE: [Nagios-users] check_disk_smb command > > > Cool LOL fixed that part and at the command line I am running from the libexec dir: > > > > ./check_disk_smb -H nspdc2 -s ports -W SUNGURUZ -u nagios -p 222222 > > > > which is working and gives me a warning about how it is below the default. So that is a start. But my question now is how would or where would I enter this string so that I can enter multiple entries of this server in services.cfg to check different shares. Understand what I am saying. Thanks for your help!!! :) > > > > > > Regards, > > > > Radames > > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Fernando Ribeiro > Sent: Monday, January 20, 2003 7:41 AM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_disk_smb command > > > > Hello, > > > > Try removing the "./" from the "check_command" parameter in the services file. In this parameter you have to specify the name of your command that is defined in the commands config file (usually checkcommands.cfg) > > The name of your command is "check_disk_smb" and Nagios is looking for "./check_disk_smb". > > > > > > Good luck! > > > > Fernando > > > > > > > ----- Original Message ----- > > From: rvelez > > To: nagios-users at lists.sourceforge.net > > Sent: Monday, January 20, 2003 4:51 AM > > Subject: [Nagios-users] check_disk_smb command > > > > Hey guys, > > > > I am trying to get my nagios to check disk space on my NT server using the check_disk_smb command. In my nagios.cfg file I have > > > > # Service definition > > define service{ > > use generic-service ; Name of service template to use > > > > host_name nspdc2.sunguruz.com > > service_description C Free Space > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups SystemAdmins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command ./check_disk_smb > > } > > > > > > And in my misccommands.cfg I have > > > > define command{ > > command_name check_disk_smb > > command_line /usr/local/nagios/libexec/check_disk_smb -H $HOSTADDRESS$ > > } > > > > When I run /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg I am getting an error saying > > Checking services... > > Error: Service check command './check_disk_smb' specified in service 'C Free Space' for host 'nspdc2.sunguruz.com' not defined anywhere! > > > > > > Now I know that there are some flags that I need to specify inorder for nagios to get this info but I am not sure where I need to specify them or what the syntax would be, could someone help me out and show me how? Thanks for your help guys > > > > -Radames > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Tue Jan 21 22:57:07 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 21 Jan 2003 16:57:07 -0500 Subject: Statusmap error In-Reply-To: References: Message-ID: <1043186227.5977.89.camel@krull> actually no I don't, I can access and view the statusmap cgi just fine, its just not showing the icons, On Tue, 2003-01-21 at 16:37, Potter, G M (Greg) wrote: > Do you get an error message in the apache error log file about > statusmap.cgi exiting prematurely? I had a problem with that, > and I believe the problem was in the order I installed/compiled > the pieces that gd uses. I.E. libpng, libjpeg, and libgd. > > Greg > > > -----Original Message----- > > From: Jayson Kliger [mailto:jayson at sonictrading.com] > > Sent: Tuesday, January 21, 2003 3:24 PM > > To: Potter, G M (Greg) > > Cc: Jeff McKeon; Nagios List > > Subject: RE: [Nagios-users] Statusmap error > > > > > > Thanks Greg, > > Thats exactly what Jeff had helped me with and it fixed the problem, > > however the problem that I am having now is the icons for the > > status map > > are not showing up, all I get is an outlined box with "Nagios Process" > > and an outlined box with green "up" circle and no icon for my host. I > > have added the extra cfg file for hostextinfo.All of the other cgi > > display icons except for the statusmap. > > > > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From dviner at yahoo-inc.com Tue Jan 21 23:27:39 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Tue, 21 Jan 2003 14:27:39 -0800 Subject: check_http and page size? Message-ID: Hi, From looking at check_http, it looks like it records the pagesize (in bytes) and reports it when in verbose mode. But I'd like to use a minimum size as a threshold for warning. Currently the warning/critical parameters are used for timeouts. Would it be sensible to add another parameter that would allow the user to specify a minimum page size in addition? dave ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Wed Jan 22 00:22:06 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 21 Jan 2003 18:22:06 -0500 Subject: Statusmap error In-Reply-To: <1043186227.5977.89.camel@krull> References: <1043186227.5977.89.camel@krull> Message-ID: <1043191327.5977.98.camel@krull> I think my problem is I am unable to view the gd2 icons (captain obvious), I have gd-2.0.10 installed, could it be a path issue for gd? GD is (or so I thought)configured correctly, any ideas as to how I could confirm everything is in its proper place? In advance, Thank you Jayson On Tue, 2003-01-21 at 16:57, Jayson Kliger wrote: > actually no I don't, I can access and view the statusmap cgi just fine, > its just not showing the icons, > > > On Tue, 2003-01-21 at 16:37, Potter, G M (Greg) wrote: > > Do you get an error message in the apache error log file about > > statusmap.cgi exiting prematurely? I had a problem with that, > > and I believe the problem was in the order I installed/compiled > > the pieces that gd uses. I.E. libpng, libjpeg, and libgd. > > > > Greg > > > > > -----Original Message----- > > > From: Jayson Kliger [mailto:jayson at sonictrading.com] > > > Sent: Tuesday, January 21, 2003 3:24 PM > > > To: Potter, G M (Greg) > > > Cc: Jeff McKeon; Nagios List > > > Subject: RE: [Nagios-users] Statusmap error > > > > > > > > > Thanks Greg, > > > Thats exactly what Jeff had helped me with and it fixed the problem, > > > however the problem that I am having now is the icons for the > > > status map > > > are not showing up, all I get is an outlined box with "Nagios Process" > > > and an outlined box with green "up" circle and no icon for my host. I > > > have added the extra cfg file for hostextinfo.All of the other cgi > > > display icons except for the statusmap. > > > > > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Wed Jan 22 00:54:55 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 22 Jan 2003 00:54:55 +0100 Subject: nrpe for windows Message-ID: <1043193293.11207.46.camel@peitha> Hi, A small question.. is there a nrpe version that can be runned under windows (NT/2000/XP)? Thanx, Lennard ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Trace.McQuaig at usunwired.com Wed Jan 22 01:30:27 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Tue, 21 Jan 2003 18:30:27 -0600 Subject: nrpe for windows Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADA@usuexch02.usunwired.com> Why not use NSClient? http://nsclient.ready2run.nl/ -----Original Message----- From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] Sent: Tuesday, January 21, 2003 5:55 PM To: Nagios List Subject: [Nagios-users] nrpe for windows Hi, A small question.. is there a nrpe version that can be runned under windows (NT/2000/XP)? Thanx, Lennard ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Wed Jan 22 01:33:55 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 21 Jan 2003 18:33:55 -0600 Subject: nrpe for windows Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1352@PKDWB03C.ad.sprint.com> http://nsclient.ready2run.nl Requires that you run check_nt, not check_nrpe. jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Tuesday, January 21, 2003 5:55 PM > To: Nagios List > Subject: [Nagios-users] nrpe for windows > > > > Hi, > > A small question.. > is there a nrpe version that can be runned under windows (NT/2000/XP)? > > Thanx, > > Lennard > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Trace.McQuaig at usunwired.com Wed Jan 22 01:54:27 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Tue, 21 Jan 2003 18:54:27 -0600 Subject: Solaris 8 - nagios-statd | apan Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADB@usuexch02.usunwired.com> Guys I need a shove in the right direction. Solaris 8 host. Trying to trend disk space. Using Apan 0.2.0. I have installed python from sunfreeware.com and also the latest openssl-0.9.6g from sunfreeware. This is what I am seeing when I try to run nagios-statd: # python nagios-statd Traceback (most recent call last): File "nagios-statd", line 3, in ? import getopt, os, sys, signal, SocketServer File "/usr/local/lib/python2.1/SocketServer.py", line 131, in ? import socket File "/usr/local/lib/python2.1/socket.py", line 41, in ? from _socket import * ImportError: ld.so.1: python: fatal: libssl.so.0.9.6: open failed: No such file or directory # python Python 2.1.1 (#1, Aug 25 2001, 04:19:08) [GCC 3.0.1] on sunos5 Type "copyright", "credits" or "license" for more information. >>> # But as you can see python runs just find on its own. Is there anyway to make it not try to load ssl? Maybe that would be a good solution. However have yet to see how to do that. I googled for python: fatal: libssl.so.0.9.6 and libssl.so.0.9.6 but no real leads on anything. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From r1p6os402 at sneakemail.com Wed Jan 22 01:49:27 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Tue, 21 Jan 2003 16:49:27 -0800 (PST) Subject: Statusmap error In-Reply-To: <1043191327.5977.98.camel@krull> References: <1043191327.5977.98.camel@krull> Message-ID: <30841-11089@sneakemail.com> On 21 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > I think my problem is I am unable to view the gd2 icons (captain > obvious), I have gd-2.0.10 installed, could it be a path issue for gd? > GD is (or so I thought)configured correctly, any ideas as to how I > could confirm everything is in its proper place? In advance, Thank you I made the mistake of building a gd-2.0.10 version of "pngtogd2" against my gd-1.8.4 install on RedHat 7.3. That produced gd2 images that Nagios could not load. (Try converting the gd2 images back to PNG and verify that they look OK. That was how I found this problem.) My fix was to build "pngtogd2" from the gd-1.8.4 source. Once I re-converted my PNG images everything was happy. This version of gd does not support the PNG alpha channel so I had to create indexed color images from my original PNGs and use a single color transparency instead of alpha. -- Steve ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From sean.knox at sbcglobal.net Wed Jan 22 03:05:01 2003 From: sean.knox at sbcglobal.net (Sean Knox) Date: Tue, 21 Jan 2003 18:05:01 -0800 Subject: [Apan-users] Solaris 8 - nagios-statd | apan In-Reply-To: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADB@usuexch02.usunwired.com> References: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADB@usuexch02.usunwired.com> Message-ID: <3E2DFC4D.7090506@sbcglobal.net> Trace McQuaig wrote: >Guys I need a shove in the right direction. Solaris 8 host. Trying to trend >disk space. Using Apan 0.2.0. I have installed python from sunfreeware.com >and also the latest openssl-0.9.6g from sunfreeware. > > > Hi Trace (cool name!), How did you build python? I've seen problems with the python packages from sunfreeware.com. Try compiling python with gcc instead of Sun's compiler, if you haven't already. -Sean ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From koreth-nagios at midwinter.com Wed Jan 22 06:56:12 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Tue, 21 Jan 2003 21:56:12 -0800 Subject: Monitoring cross-server services? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F250F@PKDWB03C.ad.sprint.com>; from jcarro10@sprintspectrum.com on Tue, Jan 21, 2003 at 11:18:33AM -0600 References: <74D428BDBFD5D04CB54E84499ECA29DB2F250F@PKDWB03C.ad.sprint.com> Message-ID: <20030121215612.A30334@cadge.midwinter.com> Ran a quick test with service dependencies as you suggested, and I'm now convinced they aren't sufficient for monitoring a peer-to-peer application. And really there's no way they can be, because they don't take the details of error reports into account. Here's what happens with service dependencies, again using hosts A, B, and C which are all connected to each other. I kill the app on host B as you describe, and Nagios notifies me that it's died. Host A reports an error condition because it isn't connected to host B, and thanks to the service dependency, that error doesn't cause a second notification. So far so good. Now I tweak host A so the app there can't reach its counterpart on host C, a condition which *should* trigger a notification. (The monitoring host can still reach the app on host C.) Host A reports that it can't reach hosts B or C. And notification of that error gets suppressed by the dependency on host B's service, which is still down. Nagios knows that host A's service is broken and sees that a depended-on service isn't running, so therefore it suppresses the notification without regard to *why* the failure is happening. Hope that example makes more sense than my previous ones. What I need here is a "service" that's really a comparison between Nagios' view of the current state of the world (whether the P2P app looks alive on all peers from the point of view of the monitoring host) and a plugin's view of the state of the world (whether the app looks alive on all peers from the point of view of the particular host being checked.) If the plugin and Nagios agree about what's up and what's down, it's not a failure, but any discrepancy between those two views of the world *does* indicate a problem. Even setting aside my particular setup, that ability would be of value on large networks with complex routing, anywhere it's possible for hosts to lose connectivity to each other while remaining reachable from the monitoring host. Like I said in my original message, I can work around this by parsing the status file myself, not a big problem. Once it's in a presentable state I'll post my workaround, which this discussion has convinced me to make a bit more general-purpose than I'd originally planned. -Steve On Tue, Jan 21, 2003 at 11:18:33AM -0600, Carroll, Jim P [Contractor] wrote: > I've got quite a number of service dependencies defined, and they add > absolutely nothing to the service detail page. Basically I set up a > rudimentary check for NRPE ('echo "NRPE is OK"' in nrpe.cfg), and made all > the other NRPE checks for that host dependent on the rudimentary check. If > NRPE is down, I want *one* page, not however many NRPE checks I'm doing. > Ordinarily I wouldn't expect NRPE to be down (since it's kicked off from > (x)inetd), but if an admin rebuilds a host or makes some other unfortunate > change to (x)inetd, we don't want to be flooded with notifications; a simple > "um... excuse me? NRPE doesn't seem to be up" is just fine. > > My case differs from your case in that my dependencies occur on the same > host, and yours occur on different hosts. Having said that, if I > acknowledge that NRPE is down (the depended-on service), that doesn't > automatically flag any other services, or the host itself for that matter, > as being down/acknowledged/ignored. > > If you're still uncertain, your best bet is to create a trivial case on 2 or > 3 of your lesser hosts. Use netcat to listen on some arbitrary ports, and > have Nagios poke at those 'services'. Then kill netcat on the 'depended-on' > host. Wait for Nagios to notify you. Acknowledge it. Kill netcat on one > of the 'dependent' hosts. Wait for Nagios to notify you. And wait and > wait, because you shouldn't hear a peep. Bring netcat back up on the first > host. Eventually you should get a notification that the 'service' on the > second host is down. > > In this scenario, any other services should be completely independent; > Nagios should still notify you if one of those goes down. (Feel free to > test this in whatever permutations/combinations with this scenario, as > well.) > > HTH. > > jc ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From thomas.soupault at intrinsec.com Wed Jan 22 09:47:35 2003 From: thomas.soupault at intrinsec.com (Thomas Soupault) Date: Wed, 22 Jan 2003 09:47:35 +0100 Subject: Host without service ? Message-ID: <20030122085837.7BDE04E5DF@INTRINsec.com> Hi all, I tried to monitor some hosts without defining any service, just using the check-host-alive command, but the check is still "PENDING" after a very long time, and no check has been done. Is this normal ? Is it possible to monitor the "alive" or "dead" of the host state without defining a service for it ? Thanks for reply Thomas Soupault France ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From rico at noris.net Wed Jan 22 10:04:59 2003 From: rico at noris.net (Rico Gloeckner) Date: Wed, 22 Jan 2003 10:04:59 +0100 Subject: Host without service ? In-Reply-To: <20030122085837.7BDE04E5DF@INTRINsec.com>; from thomas.soupault@intrinsec.com on Wed, Jan 22, 2003 at 09:47:35AM +0100 References: <20030122085837.7BDE04E5DF@INTRINsec.com> Message-ID: <20030122100459.T4143@noris.de> On Wed, Jan 22, 2003 at 09:47:35AM +0100, Thomas Soupault wrote: > I tried to monitor some hosts without defining any service, just using the > check-host-alive command, but the check is still "PENDING" after a very long > time, and no check has been done. Is this normal ? Is it possible to monitor > the "alive" or "dead" of the host state without defining a service for it ? http://www.nagios.org/faqs/viewfaq.php?faq_id=39&expand=false&showdesc=true regards, -rg ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From karoly.vegh at uta.at Wed Jan 22 10:08:13 2003 From: karoly.vegh at uta.at (VEGH Karoly) Date: Wed, 22 Jan 2003 10:08:13 +0100 (CET) Subject: check_by_ssh and Nagios communication In-Reply-To: References: Message-ID: Hi all, Im still having the same problme, by hand executed it works just fine, but i dont know how to strace nagios's actions. How to search the error? On Mon, 20 Jan 2003, VEGH Karoly wrote: > I run Nagios on a debian linux, and up to now i could solve all my > problems, but one: the check_by_ssh plugin works just perfect, if i call > it by hand, but in the webfrontend i see an errormessage, just like in the > log. > > Executed by hand: > > newmx4:/opt/nagios# su - nagios > nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ > '/opt/nagios/libexec/check_disk -w 15% -c 5%' > DISK OK - [6951632 kB (95%) free on /dev/md0] [17208 kB (78%) free on > /dev/md1] [2301668 kB (91%) free on /dev/md2] > nagios at newmx4:~$ > > in my checkommands.cfg file is: > > # 'ssh_disk' command definition > command_name ssh_disk > command_line command[ssh_disk]=/opt/nagios/libexec/check_by_ssh > -H $HOSTADDRESS$ -C '/opt/nagios/libexec/check_disk -w 15% -c 5%' > newmx4:/opt/nagios# > > but in /opt/nagios/var/log/nagios.log: > > [1043069066] Warning: Return code of 127 for check of service > 'REMOTE-DISK' on host 'newmx4' was out of bounds. Make sure the plugin > you're trying to run actually exists. > > I use: > > nagios-1.0 > nagios-plugins-1.3.0-beta2 > kernel 2.4.18-ac3 > OpenSSH3.4p1 > > the nagios user can authenticate itself between the machines wit RSA > public key. > > what do i do wrong? > > any help is appreciated. > > tia > > charlie -- Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI Cynics says that Hungarians created America's Hollywood before other Hungarians less destructively created America's A-bomb. http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Craig.Emsley at document.co.uk Wed Jan 22 10:27:24 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Wed, 22 Jan 2003 09:27:24 -0000 Subject: 'Null' Status Information Message-ID: Tim You were quite right the problem lay in a syntax error in the checkcommands.cfg file. After correction all checks now report back to the browser fine. Cheers Craig -----Original Message----- From: Tim Shouldice [mailto:tim at mintoskatingclub.com] Sent: Tuesday, January 21, 2003 2:12 PM To: Craig Emsley; Nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] 'Null' Status Information Craig: Start by looking at the status.log file which is read by the cgi scripts (/usr/local/nagios/var/status.log in a default install). See the actual line the NSClient plugin is returning. If it is running fine from the command line then the problem is usually in your command definition in checkcommands.cfg - double check all spelling, etc. If your problem persists post the line from checkcommands.cfg. /Tim Shouldice On Jan 21, Craig Emsley wrote: > > Hi > > I cannot get NSClient 1.0.7.1 to report back to the web browser all I get is > 'Null' in the Status Information all other checks are ok and NSClient runs > fine from the commandline. So I think I am probably missing something in my > Nagios configuration I have read through the config files and available > documentation but seem no closer to finding the answer. Can someone please > help me by pointing me in the right direction. > > Craig > Apprentice Nagios User > > > ------------------------------------------------------- > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From stevelml1 at scee.sony.co.uk Wed Jan 22 10:59:26 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Wed, 22 Jan 2003 09:59:26 -0000 Subject: Host without service ? References: <20030122085837.7BDE04E5DF@INTRINsec.com> Message-ID: <008101c2c1fc$f2744260$f5c8dfc2@niltxp> Host-alive service is only run when a service check fails... so no services == no host check. Add a ping service check to the hosts and it will start working Steve ----- Original Message ----- From: "Thomas Soupault" To: "Naios List (E-mail)" Sent: Wednesday, January 22, 2003 8:47 AM Subject: [Nagios-users] Host without service ? > Hi all, > > I tried to monitor some hosts without defining any service, just using the > check-host-alive command, but the check is still "PENDING" after a very long > time, and no check has been done. Is this normal ? Is it possible to monitor > the "alive" or "dead" of the host state without defining a service for it ? > > Thanks for reply > > Thomas Soupault > France > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mloftis at wgops.com Wed Jan 22 11:01:13 2003 From: mloftis at wgops.com (Michael Loftis) Date: Wed, 22 Jan 2003 02:01:13 -0800 Subject: check_by_ssh and Nagios communication In-Reply-To: References: Message-ID: <203858913.1043200873@[10.1.2.77]> Error 127 generally means it couldn't execute, check the executable permissions on the check_by_ssh (needs to be executable by whomever is doing ssh checks) check_by_ssh also has the path to ssh hard coded into it, so check to make sure it's looking for the right SSH executable and that this is also runnable by the right user, you'll need to probably do a strings /path/to/your/check_by_ssh and look for something like /usr/bin/ssh (as on my FreeBSD box). Lemme know if this is more helpful! --On Wednesday, January 22, 2003 10:08 AM +0100 VEGH Karoly wrote: > > Hi all, > > Im still having the same problme, by hand executed it works just fine, but > i dont know how to strace nagios's actions. How to search the error? > > On Mon, 20 Jan 2003, VEGH Karoly wrote: > >> I run Nagios on a debian linux, and up to now i could solve all my >> problems, but one: the check_by_ssh plugin works just perfect, if i call >> it by hand, but in the webfrontend i see an errormessage, just like in >> the log. >> >> Executed by hand: >> >> newmx4:/opt/nagios# su - nagios >> nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ >> '/opt/nagios/libexec/check_disk -w 15% -c 5%' >> DISK OK - [6951632 kB (95%) free on /dev/md0] [17208 kB (78%) free on >> /dev/md1] [2301668 kB (91%) free on /dev/md2] >> nagios at newmx4:~$ >> >> in my checkommands.cfg file is: >> >> # 'ssh_disk' command definition >> command_name ssh_disk >> command_line >> command[ssh_disk]=/opt/nagios/libexec/check_by_ssh -H >> $HOSTADDRESS$ -C '/opt/nagios/libexec/check_disk -w 15% -c 5%' >> newmx4:/opt/nagios# >> >> but in /opt/nagios/var/log/nagios.log: >> >> [1043069066] Warning: Return code of 127 for check of service >> 'REMOTE-DISK' on host 'newmx4' was out of bounds. Make sure the plugin >> you're trying to run actually exists. >> >> I use: >> >> nagios-1.0 >> nagios-plugins-1.3.0-beta2 >> kernel 2.4.18-ac3 >> OpenSSH3.4p1 >> >> the nagios user can authenticate itself between the machines wit RSA >> public key. >> >> what do i do wrong? >> >> any help is appreciated. >> >> tia >> >> charlie > > -- > Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI > Cynics says that Hungarians created America's Hollywood before > other Hungarians less destructively created America's A-bomb. > http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mat at avedya.com Wed Jan 22 13:00:29 2003 From: mat at avedya.com (Matthieu Parisot) Date: Wed, 22 Jan 2003 13:00:29 +0100 Subject: Monitoring cross-server services? In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F250F@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F250F@PKDWB03C.ad.sprint.com> <20030121215612.A30334@cadge.midwinter.com> Message-ID: <3E2E87DD.10109@avedya.com> Hi, Maybe you can have a look to that plugin I've written. It allows you to create what I call metaservices, which status is dependent of several other services states; By putting no notification for services and notifications only for metaservices, you should be able to do what you want. Best regards, Matthieu Steven Grimm wrote: >Ran a quick test with service dependencies as you suggested, and I'm now >convinced they aren't sufficient for monitoring a peer-to-peer application. >And really there's no way they can be, because they don't take the details >of error reports into account. > >Here's what happens with service dependencies, again using hosts A, B, and >C which are all connected to each other. I kill the app on host B as you >describe, and Nagios notifies me that it's died. Host A reports an error >condition because it isn't connected to host B, and thanks to the service >dependency, that error doesn't cause a second notification. So far so good. > >Now I tweak host A so the app there can't reach its counterpart on host C, >a condition which *should* trigger a notification. (The monitoring host >can still reach the app on host C.) Host A reports that it can't reach >hosts B or C. And notification of that error gets suppressed by the >dependency on host B's service, which is still down. Nagios knows that >host A's service is broken and sees that a depended-on service isn't >running, so therefore it suppresses the notification without regard to >*why* the failure is happening. > >Hope that example makes more sense than my previous ones. > >What I need here is a "service" that's really a comparison between Nagios' >view of the current state of the world (whether the P2P app looks alive >on all peers from the point of view of the monitoring host) and a plugin's >view of the state of the world (whether the app looks alive on all peers >from the point of view of the particular host being checked.) If the >plugin and Nagios agree about what's up and what's down, it's not a >failure, but any discrepancy between those two views of the world *does* >indicate a problem. > >Even setting aside my particular setup, that ability would be of value on >large networks with complex routing, anywhere it's possible for hosts to >lose connectivity to each other while remaining reachable from the >monitoring host. > >Like I said in my original message, I can work around this by parsing >the status file myself, not a big problem. Once it's in a presentable >state I'll post my workaround, which this discussion has convinced me >to make a bit more general-purpose than I'd originally planned. > >-Steve > > > > >On Tue, Jan 21, 2003 at 11:18:33AM -0600, Carroll, Jim P [Contractor] wrote: > > >>I've got quite a number of service dependencies defined, and they add >>absolutely nothing to the service detail page. Basically I set up a >>rudimentary check for NRPE ('echo "NRPE is OK"' in nrpe.cfg), and made all >>the other NRPE checks for that host dependent on the rudimentary check. If >>NRPE is down, I want *one* page, not however many NRPE checks I'm doing. >>Ordinarily I wouldn't expect NRPE to be down (since it's kicked off from >>(x)inetd), but if an admin rebuilds a host or makes some other unfortunate >>change to (x)inetd, we don't want to be flooded with notifications; a simple >>"um... excuse me? NRPE doesn't seem to be up" is just fine. >> >>My case differs from your case in that my dependencies occur on the same >>host, and yours occur on different hosts. Having said that, if I >>acknowledge that NRPE is down (the depended-on service), that doesn't >>automatically flag any other services, or the host itself for that matter, >>as being down/acknowledged/ignored. >> >>If you're still uncertain, your best bet is to create a trivial case on 2 or >>3 of your lesser hosts. Use netcat to listen on some arbitrary ports, and >>have Nagios poke at those 'services'. Then kill netcat on the 'depended-on' >>host. Wait for Nagios to notify you. Acknowledge it. Kill netcat on one >>of the 'dependent' hosts. Wait for Nagios to notify you. And wait and >>wait, because you shouldn't hear a peep. Bring netcat back up on the first >>host. Eventually you should get a notification that the 'service' on the >>second host is down. >> >>In this scenario, any other services should be completely independent; >>Nagios should still notify you if one of those goes down. (Feel free to >>test this in whatever permutations/combinations with this scenario, as >>well.) >> >>HTH. >> >>jc >> >> > > >------------------------------------------------------- >This SF.net email is sponsored by: Scholarships for Techies! >Can't afford IT training? All 2003 ictp students receive scholarships. >Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >www.ictp.com/training/sourceforge.asp >_______________________________________________ >Nagios-users mailing list >Nagios-users at lists.sourceforge.net >https://lists.sourceforge.net/lists/listinfo/nagios-users > > -------------- next part -------------- A non-text attachment was scrubbed... Name: check_meta-0.1.tgz Type: application/x-compressed Size: 3712 bytes Desc: not available URL: From karoly.vegh at uta.at Wed Jan 22 13:04:29 2003 From: karoly.vegh at uta.at (VEGH Karoly) Date: Wed, 22 Jan 2003 13:04:29 +0100 (CET) Subject: check_by_ssh and Nagios communication In-Reply-To: <203858913.1043200873@[10.1.2.77]> References: <203858913.1043200873@[10.1.2.77]> Message-ID: On Wed, 22 Jan 2003, Michael Loftis wrote: > Error 127 generally means it couldn't execute, check the executable > permissions on the check_by_ssh (needs to be executable by whomever is > doing ssh checks) as i wrote, executed by hand it works fine: newmx4:/var/spool/exim/input# su - nagios nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ '~/libexec/check_disk -w 15% -c 5%' DISK OK - [6950540 kB (95%) free on /dev/md0] [17208 kB (78%) free on /dev/md1] [2343592 kB (92%) free on /dev/md2] nagios at newmx4:~$ exactly this stands in my checkcommands.cfg: newmx4:/opt/nagios# grep check_by_ssh etc/checkcommands.cfg command_line command[ssh_disk]=/opt/nagios/libexec/check_by_ssh -H $HOSTADDRESS$ -C '~/libexec/check_disk -w 15% -c 5%' newmx4:/opt/nagios# > check_by_ssh also has the path to ssh hard coded into > it, so check to make sure it's looking for the right SSH executable and > that this is also runnable by the right user, newmx4:/opt/nagios# which ssh /usr/bin/ssh newmx4:/opt/nagios# newmx4:/opt/nagios# strings libexec/check_by_ssh | grep ssh /usr/bin/ssh check_by_ssh -f tells ssh to fork rather than create a tty tell ssh to use IPv4 tell ssh to use IPv6 check_by_ssh [-f46] [-t timeout] [-i identity] [-l user] -H -C check_by_ssh -V prints version info check_by_ssh -h prints more detailed help newmx4:/opt/nagios# seems to be OK... newmx4:/opt/nagios# ls -la /usr/bin/ssh -rwxr-xr-x 1 root root 230248 Jun 28 2002 /usr/bin/ssh newmx4:/opt/nagios# su - nagios nagios at newmx4:~$ ssh newmx4 Linux newmx4 2.4.19-ac4 #1 Wed Sep 18 10:45:42 CEST 2002 i686 unknown Most of the programs included with the Debian GNU/Linux system are freely redistributable; the exact distribution terms for each program are described in the individual files in /usr/share/doc/*/copyright Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. You have new mail. Last login: Wed Jan 22 12:20:02 2003 from newmx4 nagios at newmx4:~$ > you'll need to probably do a > strings /path/to/your/check_by_ssh and look for something like /usr/bin/ssh > (as on my FreeBSD box). > > Lemme know if this is more helpful! well, i dont know, how to get on weiter, how to see how nagios tries to execute the plugin... how to see more debug, i mean more that errpr 127 plugin may be missing, which is impossible because as u see i try check_bye_ssh on the server itself, only over ssh... thanks for your help, any ideas more maybe? charlie -- Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI Cynics says that Hungarians created America's Hollywood before other Hungarians less destructively created America's A-bomb. http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From pete.dewell at VoltEurope.com Wed Jan 22 13:27:19 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 22 Jan 2003 12:27:19 +0000 Subject: Temperature monitoring using TempTrax Message-ID: Hi, Is there anybody out there who has a TempTrax unit plugged into a Windows machine, which then has Nagios monitoring the temperature as an active check ? If so, how did you get it to work ? I can see no way of doing this other than writing a Windows prog to return the data, either as nrpe-type response, or as a passive check. I would rather plug the device straight into a Linux box and use nrpe, but *have* to be able to use Windows. 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From GPotter at MarathonOil.com Wed Jan 22 14:56:27 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Wed, 22 Jan 2003 07:56:27 -0600 Subject: [Nagios-users] Solaris 8 - nagios-statd | apan Message-ID: libssl.so is in the /usr/local/ssl/lib directory not /usr/local/lib. What is your LD_LIBRARY_PATH set to? I had a similar problem with snmpwalk until I added the ssl lib directory to my LD_LIBRARY_PATH. Greg > -----Original Message----- > From: Trace McQuaig [mailto:Trace.McQuaig at usunwired.com] > Sent: Tuesday, January 21, 2003 6:54 PM > To: Apan-Users (E-mail); 'Nagios-Users (E-mail); > Netsaint-Users (E-mail) > Subject: [Nagios-users] Solaris 8 - nagios-statd | apan > > > Guys I need a shove in the right direction. Solaris 8 host. > Trying to trend > disk space. Using Apan 0.2.0. I have installed python from > sunfreeware.com > and also the latest openssl-0.9.6g from sunfreeware. > > This is what I am seeing when I try to run nagios-statd: > > # python nagios-statd > Traceback (most recent call last): > File "nagios-statd", line 3, in ? > import getopt, os, sys, signal, SocketServer > File "/usr/local/lib/python2.1/SocketServer.py", line 131, in ? > import socket > File "/usr/local/lib/python2.1/socket.py", line 41, in ? > from _socket import * > ImportError: ld.so.1: python: fatal: libssl.so.0.9.6: open > failed: No such > file or directory > # python > Python 2.1.1 (#1, Aug 25 2001, 04:19:08) > [GCC 3.0.1] on sunos5 > Type "copyright", "credits" or "license" for more information. > >>> > # > > But as you can see python runs just find on its own. Is there > anyway to make > it not try to load ssl? Maybe that would be a good solution. > However have > yet to see how to do that. I googled for python: fatal: > libssl.so.0.9.6 and > libssl.so.0.9.6 but no real leads on anything. > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From AHKAPLAN at PARTNERS.ORG Wed Jan 22 15:33:48 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 22 Jan 2003 09:33:48 -0500 Subject: Tektronix Phaser 750 Printers Message-ID: <5593DA408212D511B0910002A513501F01D288B0@phsexch20.mgh.harvard.edu> Hi there, Has anyone been able to monitor Tektronix Phaser 750 printers? If so, what plug-in and arguments did you use? Thanks. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mlang at delysid.org Wed Jan 22 15:46:00 2003 From: mlang at delysid.org (Mario Lang) Date: Wed, 22 Jan 2003 15:46:00 +0100 Subject: Service checks disabled -- All the time Message-ID: <87n0ltxmxj.fsf@lexx.delysid.org> Hi. I'm a fairly new nagios users, installed it today. Now, all seems quite fine, except, I cant seem to get it to do service checks and/or notifications. After clicking at Service Details for example, I see at the top: - Notifications are disabled - Service checks are disabled But I have the following in /etc/nagios/nagios.cfg: execute_service_checks=1 If I use nagios -s /etc/nagios/nagios.cfg, it reports that it is going to schedule 3 service checks in the next 2 minutes. But nothing like that ever happens... Can anyone give me a hint what I might have overlooked? -- Thanks, Mario ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jsm at inpro.net Wed Jan 22 15:58:05 2003 From: jsm at inpro.net (Jeff McKeon) Date: 22 Jan 2003 09:58:05 -0500 Subject: Statusmap error In-Reply-To: <1043242701.976.0.camel@krull> References: <1042850729.4184.349.camel@krull> <002f01c2be8c$6b01bc90$984476d8@xphome> <1042853027.3988.370.camel@krull> <1043153627.28573.10.camel@rh80-jsm.telaurus.net> <1043175178.978.32.camel@krull> <1043174979.1265.0.camel@rh80-jsm.telaurus.net> <1043176705.5977.51.camel@krull> <1043176624.1265.10.camel@rh80-jsm.telaurus.net> <1043179860.5977.70.camel@krull> <1043240760.5294.0.camel@rh80-jsm.telaurus.net> <1043242701.976.0.camel@krull> Message-ID: <1043247486.5295.3.camel@rh80-jsm.telaurus.net> Double check the directory you have your images in, make sure the file permissions on those files are set to nagios:nagios the icons should be in: /usr/local/nagios/share/images/logos/ On Wed, 2003-01-22 at 08:38, Jayson Kliger wrote: > Yes, I removed that entry.. > > On Wed, 2003-01-22 at 08:06, Jeff McKeon wrote: > > Did you remove the entry pointing to it from the cgi.cfg? That's where > > the problem is, not the file itself. > > > > On Tue, 2003-01-21 at 15:11, Jayson Kliger wrote: > > > I removed the second cfg file, reload/restart..status map is still > > > showing the same view, no icons...is it possible that I missed something > > > in the main cgi.cfg file? > > > > > > > > > > > > On Tue, 2003-01-21 at 14:17, Jeff McKeon wrote: > > > > I only use one file. I don't think you need two and even if you did, > > > > you have the same cgi.cfg attribute pointing to two different files. it > > > > will probably use the second one (figureing it would overwrite the first > > > > entry) and you don't have a statusmap_image setting in that one. get > > > > rid of you second entry in cgi.cfg and do a reload on nagios > > > > > > > > /etc/init.d/nagios reload > > > > /etc/init.d/nagios restart > > > > > > > > On Tue, 2003-01-21 at 14:18, Jayson Kliger wrote: > > > > > going by the documentation I created two cfg's > > > > > the first one: > > > > > hostextinfo.cfg > > > > > define hostextinfo{ > > > > > host_name krull > > > > > icon_image redhat.png > > > > > icon_image_alt redhat.gif > > > > > vrml_image redhat.png > > > > > statusmap_image redhat.gd2 > > > > > } > > > > > > > > > > the second: > > > > > serviceextinfo.cfg > > > > > define serviceextinfo{ > > > > > host_name krull > > > > > service_description PING > > > > > icon_image redhat.png > > > > > icon_image_alt redhat.gif > > > > > } > > > > > > > > > > and the two entries that I have added to the end of the cgi.cfg: > > > > > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg > > > > > xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg > > > > > > > > > > > > > > > On Tue, 2003-01-21 at 13:49, Jeff McKeon wrote: > > > > > > Jayson, > > > > > > > > > > > > send me your extended info cfg file in the body of an email... > > > > > > > > > > > > jeff > > > > > > > > > > > > On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote: > > > > > > > Hello Jeff, > > > > > > > > > > > > > > Thank you for your input it has been extremely appreciated, I did find > > > > > > > the reference to extended info for the hosts in the documentation that > > > > > > > you had mentioned, I added the required lines to the cgi.cfg file, and > > > > > > > created the new cfg files..it appears to work (kind of),my status map > > > > > > > still shows no icons (I just get out lined box for "nagios process" and > > > > > > > and outlined box for the "host" machine with the green active circle > > > > > > > around it) the info box that pops up when you roll your mouse over it > > > > > > > shows the icon (thank you) as well as the other cgi's , including the > > > > > > > statuswrl (however the icon is "blocky" I will keep tooling around with > > > > > > > it hopefully I will find the problem. Thank you again for you time and > > > > > > > help. > > > > > > > > > > > > > > Jayson > > > > > > > > > > > > > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote: > > > > > > > > jayson, > > > > > > > > > > > > > > > > sorry but I was out on the road yesterday. > > > > > > > > > > > > > > > > to get the images correct you need to place the image files in the > > > > > > > > > > > > > > > > /usr/local/nagios/share/images/logos/ > > > > > > > > > > > > > > > > directory and then you need to create a whole new .cfg file for the > > > > > > > > extended attributes of the hosts. you can name this file anything you > > > > > > > > want and put it in the .../nagios/etc directory with all the rest of the > > > > > > > > cfg files. The documentation has the file information but there isn't a > > > > > > > > sample file included that I know of. > > > > > > > > > > > > > > > > after that file is created you must change the line in the cgi.cfg to > > > > > > > > point to it. > > > > > > > > > > > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg > > > > > > > > > > > > > > > > As for the httpd.conf line and what it does, I'm not totally sure. > > > > > > > > Someone helped me out with that last week. It's apparently not in the > > > > > > > > nagios docs. I believe it just tells httpd where to find the libs for > > > > > > > > the cgi code. > > > > > > > > > > > > > > > > enjoy! > > > > > > > > > > > > > > > > Jeff > > > > > > > > > > > > > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote: > > > > > > > > > Thank YOU! That did it,that gave me the layout, but for some reason the > > > > > > > > > icons don't show? Maybe I just have to tweak that file a little more > > > > > > > > > ....more importantly, what exactly did that addition to the httpd.conf > > > > > > > > > file do, put the the lib dir in the httpd path? Thanks again ..now I can > > > > > > > > > almost go home.. > > > > > > > > > > > > > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote: > > > > > > > > > > There's a line you need to add to your httpd.conf file. Just went throught > > > > > > > > > > this last week. > > > > > > > > > > > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > > > > > > > > > > > just add it to the end of the file and it may do the trick... > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > From: "Jayson Kliger" > > > > > > > > > > To: > > > > > > > > > > Sent: Friday, January 17, 2003 7:45 PM > > > > > > > > > > Subject: [Nagios-users] Statusmap error > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > I currently have running Nagios running on a RH8 machine, and it is > > > > > > > > > > > monitoring the test box that I have set up, I have read the docs, and > > > > > > > > > > > mailing-list archives, but I am still having issues with the > > > > > > > > > > > statsmap.cgi. I have made the (what I feel are the correct, but probably > > > > > > > > > > > aren't) changes to the cgi.cfg file and > > > > > > > > > > > sections .the default_statusmap/default_statuswrl layouts have been set > > > > > > > > > > > to default 4 (circular).. When ever I try to access statusmap I get an > > > > > > > > > > > error 500 Premature end of script? Any hints as to where I should begin > > > > > > > > > > > to track down the problem? I believe that I have all the required libs > > > > > > > > > > > installed...I am kind of stuck at this point, any ideas? > > > > > > > > > > > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Wed Jan 22 16:51:22 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 09:51:22 -0600 Subject: check_by_ssh and Nagios communication Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1357@PKDWB03C.ad.sprint.com> Try making these changes to your command_line in checkcommands.cfg: command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C './libexec/check_disk -w 15% -c 5%' jc > -----Original Message----- > From: VEGH Karoly [mailto:karoly.vegh at uta.at] > Sent: Wednesday, January 22, 2003 6:04 AM > To: Michael Loftis > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_by_ssh and Nagios communication > > > On Wed, 22 Jan 2003, Michael Loftis wrote: > > > Error 127 generally means it couldn't execute, check the executable > > permissions on the check_by_ssh (needs to be executable by > whomever is > > doing ssh checks) > > > as i wrote, executed by hand it works fine: > > > newmx4:/var/spool/exim/input# su - nagios > nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ > '~/libexec/check_disk -w 15% -c 5%' > DISK OK - [6950540 kB (95%) free on /dev/md0] [17208 kB (78%) free on > /dev/md1] [2343592 kB (92%) free on /dev/md2] > nagios at newmx4:~$ > > > exactly this stands in my checkcommands.cfg: > > > newmx4:/opt/nagios# grep check_by_ssh etc/checkcommands.cfg > command_line > command[ssh_disk]=/opt/nagios/libexec/check_by_ssh > -H $HOSTADDRESS$ -C '~/libexec/check_disk -w 15% -c 5%' > newmx4:/opt/nagios# > > > > check_by_ssh also has the path to ssh hard coded into > > it, so check to make sure it's looking for the right SSH > executable and > > that this is also runnable by the right user, > > newmx4:/opt/nagios# which ssh > /usr/bin/ssh > newmx4:/opt/nagios# > newmx4:/opt/nagios# strings libexec/check_by_ssh | grep ssh > /usr/bin/ssh > check_by_ssh > -f tells ssh to fork rather than create a tty > tell ssh to use IPv4 > tell ssh to use IPv6 > check_by_ssh [-f46] [-t timeout] [-i identity] [-l user] -H -C > > check_by_ssh -V prints version info > check_by_ssh -h prints more detailed help > newmx4:/opt/nagios# > > seems to be OK... > > newmx4:/opt/nagios# ls -la /usr/bin/ssh > -rwxr-xr-x 1 root root 230248 Jun 28 2002 /usr/bin/ssh > newmx4:/opt/nagios# su - nagios > nagios at newmx4:~$ ssh newmx4 > Linux newmx4 2.4.19-ac4 #1 Wed Sep 18 10:45:42 CEST 2002 i686 unknown > > Most of the programs included with the Debian GNU/Linux system are > freely redistributable; the exact distribution terms for each program > are described in the individual files in /usr/share/doc/*/copyright > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent > permitted by applicable law. > You have new mail. > Last login: Wed Jan 22 12:20:02 2003 from newmx4 > nagios at newmx4:~$ > > > you'll need to probably do a > > strings /path/to/your/check_by_ssh and look for something > like /usr/bin/ssh > > (as on my FreeBSD box). > > > > Lemme know if this is more helpful! > > well, i dont know, how to get on weiter, how to see how > nagios tries to > execute the plugin... how to see more debug, i mean more that > errpr 127 > plugin may be missing, which is impossible because as u see i try > check_bye_ssh on the server itself, only over ssh... > > > thanks for your help, any ideas more maybe? > > charlie > > -- > Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI > Cynics says that Hungarians created America's Hollywood before > other Hungarians less destructively created America's A-bomb. > http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From twebster at daksoft.com Wed Jan 22 17:37:37 2003 From: twebster at daksoft.com (twebster at daksoft.com) Date: Wed, 22 Jan 2003 09:37:37 -0700 Subject: % Time Undetermined is 100% after upgrade Message-ID: We just installed a new Nagios server. We were using Nagios 1.0b5 for several months and upgraded to version 1.0 on the new server. Installation went well, the Nagios service checks are working great but the Trends, Availability and Histogram reports have false data. The best way to explain what is happening, is by following the following. 1. Click on Availability. 2. Select Hosts. 3. Select ** ALL HOSTS ** 4. Select Last 7 Days. Upon viewing the availability report, approximately half the hosts data is correct, uptime ranging from 99.919 to 99.972 with 0.028% undetermined. But the other half of the Hosts, report 100.00% time undetermined, changing the "Report Period" to say This Month or Last Year, does yield more hosts with correct information, but many are still very incorrect. 1. Why are these hosts being reported time undetermined, when they have been monitored correctly for over 1 year? 2. Why do some hosts work and others don't? tony ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jbenney at dot.state.ny.us Wed Jan 22 17:26:42 2003 From: jbenney at dot.state.ny.us (Jack Benney) Date: Wed, 22 Jan 2003 11:26:42 -0500 Subject: Nagios and PHPNuke Message-ID: Greetings, Does anyone out there have or know of a Nagios Module or block to use with phpnuke? I remember seeing something earlier this week about a postnuke block. Thanks, Jack Benney webmaster http://pajonet.com ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Wed Jan 22 17:17:08 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 10:17:08 -0600 Subject: Temperature monitoring using TempTrax Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2513@PKDWB03C.ad.sprint.com> I'm not using TempTrax at all, but I'm vaguely familiar with it and a couple other temperature/humidity solutions. I'm hoping to get clarification, in order that you end up with a workable solution. If you're saying, "I have been constrained by management to make TempTrax work on Windows, and have Nagios work with them," you might be hard pressed to find someone doing this. (If someone jumps in and has a solution, great! Then perhaps it could be thusly noted on Ethan's site. :) Having said that, I don't know whether there's any Windows software which will monitor a TempTrax device and dovetail with perfmon. If so, then NSClient should be able to monitor that. If the above doesn't work, some options: - build out a low-end Linux box and dovetail it with TempTrax - purchase a hardware solution, and use check_snmp One possible example of the latter: http://www.akcpinc.com/company/price_list.html Get the black box (or blue, in this case), a temperature sensor, optionally a humidity sensor, assign an IP, set up check_snmp and you should be good to go. (Using an old Pentium running Linux might end up being cheaper, but you might save some time going the black box route.) Food for thought. jc > -----Original Message----- > From: Pete Dewell [mailto:pete.dewell at VoltEurope.com] > Sent: Wednesday, January 22, 2003 6:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Temperature monitoring using TempTrax > > > Hi, > > Is there anybody out there who has a TempTrax unit plugged into a > Windows machine, which then has Nagios monitoring the > temperature as an > active check ? If so, how did you get it to work ? > I can see no way of doing this other than writing a Windows prog to > return the data, either as nrpe-type response, or as a passive check. > > I would rather plug the device straight into a Linux box and use nrpe, > but *have* to be able to use Windows. > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Trace.McQuaig at usunwired.com Wed Jan 22 17:32:37 2003 From: Trace.McQuaig at usunwired.com (Trace McQuaig) Date: Wed, 22 Jan 2003 10:32:37 -0600 Subject: [Apan-users] Solaris 8 - nagios-statd | apan Message-ID: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADD@usuexch02.usunwired.com> This appears to have fixed the problem as I can run nagios-stat without the ssl errors. However when I run the nagios-statd appears to daemonize. But insted it just dies and exits. Is there any sort of debug or logging that I can look at to get an idea as to what is happening? Appears to do the same thing on my redhat 7.3 box so I could very well be doing something simply wrong. Regards -----Original Message----- From: Sean Knox [mailto:sean.knox at sbcglobal.net] Sent: Tuesday, January 21, 2003 8:05 PM To: Trace McQuaig Cc: Apan-Users (E-mail); 'Nagios-Users (E-mail) Subject: Re: [Apan-users] Solaris 8 - nagios-statd | apan Trace McQuaig wrote: >Guys I need a shove in the right direction. Solaris 8 host. Trying to trend >disk space. Using Apan 0.2.0. I have installed python from sunfreeware.com >and also the latest openssl-0.9.6g from sunfreeware. > > > Hi Trace (cool name!), How did you build python? I've seen problems with the python packages from sunfreeware.com. Try compiling python with gcc instead of Sun's compiler, if you haven't already. -Sean ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ Apan-users mailing list Apan-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/apan-users ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From mlang at delysid.org Wed Jan 22 17:51:14 2003 From: mlang at delysid.org (Mario Lang) Date: Wed, 22 Jan 2003 17:51:14 +0100 Subject: Service checks disabled -- All the time In-Reply-To: <20030122153155.4EEFB4E5A3@INTRINsec.com> (Thomas Soupault's message of "Wed, 22 Jan 2003 16:20:35 +0100") References: <20030122153155.4EEFB4E5A3@INTRINsec.com> Message-ID: <87fzrlxh4t.fsf@lexx.delysid.org> Thomas Soupault writes: > you should enable "service check" for each service in service.cfg I already did that, and it didnt help. I now figured what it was: / had 0% free space. Seems some code in nagios is auto-disabling notifications and service checks if this happens (makes sense). But it apparently did not write this to any logfile, or at least I did not find it. I found it by "accident". Anyway, works now. -- CYa, Mario | Get my public key via finger mlang at db.debian.org | 1024D/7FC1A0854909BCCDBE6C102DDFFC022A6B113E44 ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From dviner at yahoo-inc.com Wed Jan 22 17:58:44 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Wed, 22 Jan 2003 08:58:44 -0800 Subject: check_by_ssh and Nagios communication In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1357@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1357@PKDWB03C.ad.sprint.com> Message-ID: you also might want to replace the ~ in the command with the actual path. i don't know if that is the cause of your problem, but its one more variable that could cause problems. dave -----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: Wednesday, January 22, 2003 7:51 AM To: 'VEGH Karoly' Cc: nagios-users at lists.sourceforge.net Subject: RE: [Nagios-users] check_by_ssh and Nagios communication Try making these changes to your command_line in checkcommands.cfg: command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C './libexec/check_disk -w 15% -c 5%' jc > -----Original Message----- > From: VEGH Karoly [mailto:karoly.vegh at uta.at] > Sent: Wednesday, January 22, 2003 6:04 AM > To: Michael Loftis > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] check_by_ssh and Nagios communication > > > On Wed, 22 Jan 2003, Michael Loftis wrote: > > > Error 127 generally means it couldn't execute, check the executable > > permissions on the check_by_ssh (needs to be executable by > whomever is > > doing ssh checks) > > > as i wrote, executed by hand it works fine: > > > newmx4:/var/spool/exim/input# su - nagios > nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ > '~/libexec/check_disk -w 15% -c 5%' > DISK OK - [6950540 kB (95%) free on /dev/md0] [17208 kB (78%) free on > /dev/md1] [2343592 kB (92%) free on /dev/md2] > nagios at newmx4:~$ > > > exactly this stands in my checkcommands.cfg: > > > newmx4:/opt/nagios# grep check_by_ssh etc/checkcommands.cfg > command_line > command[ssh_disk]=/opt/nagios/libexec/check_by_ssh > -H $HOSTADDRESS$ -C '~/libexec/check_disk -w 15% -c 5%' > newmx4:/opt/nagios# > > > > check_by_ssh also has the path to ssh hard coded into > > it, so check to make sure it's looking for the right SSH > executable and > > that this is also runnable by the right user, > > newmx4:/opt/nagios# which ssh > /usr/bin/ssh > newmx4:/opt/nagios# > newmx4:/opt/nagios# strings libexec/check_by_ssh | grep ssh > /usr/bin/ssh > check_by_ssh > -f tells ssh to fork rather than create a tty > tell ssh to use IPv4 > tell ssh to use IPv6 > check_by_ssh [-f46] [-t timeout] [-i identity] [-l user] -H -C > > check_by_ssh -V prints version info > check_by_ssh -h prints more detailed help > newmx4:/opt/nagios# > > seems to be OK... > > newmx4:/opt/nagios# ls -la /usr/bin/ssh > -rwxr-xr-x 1 root root 230248 Jun 28 2002 /usr/bin/ssh > newmx4:/opt/nagios# su - nagios > nagios at newmx4:~$ ssh newmx4 > Linux newmx4 2.4.19-ac4 #1 Wed Sep 18 10:45:42 CEST 2002 i686 unknown > > Most of the programs included with the Debian GNU/Linux system are > freely redistributable; the exact distribution terms for each program > are described in the individual files in /usr/share/doc/*/copyright > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent > permitted by applicable law. > You have new mail. > Last login: Wed Jan 22 12:20:02 2003 from newmx4 > nagios at newmx4:~$ > > > you'll need to probably do a > > strings /path/to/your/check_by_ssh and look for something > like /usr/bin/ssh > > (as on my FreeBSD box). > > > > Lemme know if this is more helpful! > > well, i dont know, how to get on weiter, how to see how > nagios tries to > execute the plugin... how to see more debug, i mean more that > errpr 127 > plugin may be missing, which is impossible because as u see i try > check_bye_ssh on the server itself, only over ssh... > > > thanks for your help, any ideas more maybe? > > charlie > > -- > Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI > Cynics says that Hungarians created America's Hollywood before > other Hungarians less destructively created America's A-bomb. > http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From pete.dewell at VoltEurope.com Wed Jan 22 18:27:07 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 22 Jan 2003 17:27:07 +0000 Subject: Temperature monitoring using TempTrax Message-ID: In response to your request for clarification :- Carroll, Jim P [Contractor] wrote: > > If you're saying, "I have been constrained by management to make TempTrax > work on Windows, and have Nagios work with them," That's an awfully polite way of putting it, but yes; in essence, this is what is required. > you might be hard pressed > to find someone doing this. (If someone jumps in and has a solution, great! > Then perhaps it could be thusly noted on Ethan's site. :) Please. Anybody? > Having said that, > I don't know whether there's any Windows software which will monitor a > TempTrax device and dovetail with perfmon. If so, then NSClient should be > able to monitor that. I have had a look at the TempTrax software, which is pretty good in itself, but doesn't seem to link directly to perfmon. I suspect I could probably get it to fit with perfmon - it does allow you to run a program as an "alert", but this may well entail writing a bit of code to do this. I am quite happy to use nsclient to do the monitoring if possible. I will investigate this further - I don't really know windows, so I may be some time. > > If the above doesn't work, some options: > > - build out a low-end Linux box and dovetail it with TempTrax > - purchase a hardware solution, and use check_snmp > I am trying to persuade people to go for the low-end Linux box. It would only really need to run nrpe, or return a passive check to nsca. However (see 1st problem) managment would much prefer to use a Windows solution. Thanks for the idea about perfmon - will check it out. Pete Dewell > > >>-----Original Message----- >>From: Pete Dewell [mailto:pete.dewell at VoltEurope.com] >>Sent: Wednesday, January 22, 2003 6:27 AM >>To: nagios-users at lists.sourceforge.net >>Subject: [Nagios-users] Temperature monitoring using TempTrax >> >> >>Hi, >> >>Is there anybody out there who has a TempTrax unit plugged into a >>Windows machine, which then has Nagios monitoring the >>temperature as an >>active check ? If so, how did you get it to work ? >>I can see no way of doing this other than writing a Windows prog to >>return the data, either as nrpe-type response, or as a passive check. >> >>I would rather plug the device straight into a Linux box and use nrpe, >>but *have* to be able to use Windows. >> >>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: Scholarships for Techies! >>Can't afford IT training? All 2003 ictp students receive scholarships. >>Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. >>www.ictp.com/training/sourceforge.asp >>_______________________________________________ >>Nagios-users mailing list >>Nagios-users at lists.sourceforge.net >>https://lists.sourceforge.net/lists/listinfo/nagios-users >> > -- 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jragle at unm.edu Wed Jan 22 18:23:49 2003 From: jragle at unm.edu (Jamin) Date: Wed, 22 Jan 2003 10:23:49 -0700 (MST) Subject: attempt recovery on service CRITICAL with nrpe Message-ID: Hey all, I was wondering if any of you have tried to use nrpe to fix problems on systems before any paging occurs. Basically I have an LDAP service running on a remote machine and I would like to set up nagios with nrpe to try to restart the service when it detects that it has gone down. I know that this is kind of a hack, but we need our LDAP server up and we can't sit there and watch it 24x7. The vendor has been contacted to determine what is causing the instability of the program, but in the mean time I need something that will try to do some triage. Have any of you set up anything like this? I would be very interested in any solutions that you have tried for similar problems on your systems. Thanks, -Jamin Ragle SA at CIRT/DSYS University of New Mexico ---------------------------------------------------------------------- #include int main(void){char*s="\xA\x2C\0005ofczgei*e~*xo~~oh*mdcb~sdk*o|kb*\ \177es*~-deN",*i;for(i=s+*(s+1);i-s-1;)printf("%c",*i--^*s);return 0;} ______________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From ramog at starcalif.com Wed Jan 22 18:41:27 2003 From: ramog at starcalif.com (Rochel Amog) Date: Wed, 22 Jan 2003 09:41:27 -0800 Subject: Error Running Nagios-statd on SCO Openserver 5.0.5 Message-ID: <020f01c2c23d$7da0a9b0$0d1fa8c0@sysadmin.starcalif.com> Hello, I have installed python2.2 in a SCO Openserver 5.0.5 system and when I run nagios-statd, I got the following error: # ./nagios-statd Traceback (most recent call last): File "./nagios-statd", line 3, in ? import getopt, os, sys, signal, SocketServer File "/usr/local/lib/python2.2/SocketServer.py", line 131, in ? import socket File "/usr/local/lib/python2.2/socket.py", line 41, in ? from _socket import * ImportError: No module named _socket Can anybody help me what the problem is.. Python 2.2 seems to be running fine.... # python2.2 Python 2.2.2 (#1, Jan 21 2003, 13:58:38) [C] on sco_sv3 Type "help", "copyright", "credits" or "license" for more information. >>> Thanks -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Wed Jan 22 18:56:34 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 22 Jan 2003 12:56:34 -0500 Subject: Monitoring Processes Message-ID: <5593DA408212D511B0910002A513501F01D288B1@phsexch20.mgh.harvard.edu> Hi there, Is it possible for NSClient to monitor processes that appear in Task Manager? If so, what is the syntax needed to accomplish this? The machine in question is a Windows 2000 Professional workstation. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From pete.dewell at VoltEurope.com Wed Jan 22 19:22:12 2003 From: pete.dewell at VoltEurope.com (Pete Dewell) Date: Wed, 22 Jan 2003 18:22:12 +0000 Subject: Monitoring Processes Message-ID: Hi, It is indeed possible - at least on NT 4, I haven't tried it on W2K yet. The syntax I use for check_nt is :- check_command check_nt!program_name1,program_name2, etc etc Where progran_name is the name of the program as it appears in the task manager. This will return an alert if *any* of the programs stop running. If you want to monitor lots and know whether any have stopped, this is fine, otherwise create a service for each program you want to monitor. Pete Dewell Kaplan, Andrew H. wrote: > Hi there, > > Is it possible for NSClient to monitor processes that appear in Task Manager? If > so, what is the syntax needed to accomplish this? > > The machine in question is a Windows 2000 Professional workstation. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users -- 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Michael_Searcy at adp.com Wed Jan 22 19:38:16 2003 From: Michael_Searcy at adp.com (Searcy, Michael) Date: Wed, 22 Jan 2003 13:38:16 -0500 Subject: NRPE on Mainframes? Message-ID: <3C779389071CD611A2E10060943F4CC92A8F94@CPLEXPO1> Just curious. Does anyone have experience with porting/running NRPE on MVS or VM? Michael Searcy *E-mail: Michael_Searcy at adp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From Pete.Shelfo at itron.com Wed Jan 22 19:45:56 2003 From: Pete.Shelfo at itron.com (Shelfo, Pete) Date: Wed, 22 Jan 2003 13:45:56 -0500 Subject: Check_SNMP and MIB Name Message-ID: <5038D89BA36AB94F8025722996882EE7ABAC60@raleigh-mx1.eis.itron.com> Can I use a MIB name in the check_snmp syntax in place of the numerical OID number as required by the -o option? If so what is the correct way of writing the statement using the MIB name? -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Wed Jan 22 19:29:33 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 12:29:33 -0600 Subject: Monitoring Processes Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E135E@PKDWB03C.ad.sprint.com> We're using check_nt_procstate to monitor McShield.exe. Service definition includes: check_command check_nt_procstate!xxxxxxxx!McShield.exe where xxxxxxxx is the password that NSClient is using. HTH. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Wednesday, January 22, 2003 11:57 AM > To: 'rubiyz1047 at swyz.com' > Cc: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Monitoring Processes > > > Hi there, > > Is it possible for NSClient to monitor processes that appear > in Task Manager? If > so, what is the syntax needed to accomplish this? > > The machine in question is a Windows 2000 Professional workstation. > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Wed Jan 22 19:53:37 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 22 Jan 2003 19:53:37 +0100 Subject: nrpe for windows In-Reply-To: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADA@usuexch02.usunwired.com> References: <19C21F9E0DE1914EA5E20E37D0E10A7B3E9ADA@usuexch02.usunwired.com> Message-ID: <1043261615.11212.52.camel@peitha> On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > Why not use NSClient? > > http://nsclient.ready2run.nl/ nsclient could check serveral windows releated stuff. I need to check a few programs install on a windows machine. I have to test them with different inputs. I have already made perl scripts that can do these checkd for me, and give a nagios compatible output (one line of comment, and a correct errorlevel). Now i have to call them local on that windows machine. If there is no nrpe for windows i will write something that will be compatibe with current nrpe 1.5 that will run as a windows service... But why do something if it is already there.. > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Tuesday, January 21, 2003 5:55 PM > To: Nagios List > Subject: [Nagios-users] nrpe for windows > A small question.. > is there a nrpe version that can be runned under windows (NT/2000/XP)? ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Wed Jan 22 20:16:23 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 13:16:23 -0600 Subject: nrpe for windows Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1360@PKDWB03C.ad.sprint.com> NRPE requires that you run plugins. Are you going to port all the plugins too? I think many (myself included) would jump at the opportunity for a more homogenous solution (ie, NRPE), but it sounds like quite the task. More power to you if you can do it! jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Wednesday, January 22, 2003 12:54 PM > To: Nagios List > Cc: Trace McQuaig > Subject: RE: [Nagios-users] nrpe for windows > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > Why not use NSClient? > > > > http://nsclient.ready2run.nl/ > > nsclient could check serveral windows releated stuff. > I need to check a few programs install on a windows machine. I have to > test them with different inputs. > > I have already made perl scripts that can do these checkd for me, and > give a nagios compatible output (one line of comment, and a correct > errorlevel). Now i have to call them local on that windows machine. > > If there is no nrpe for windows i will write something that will be > compatibe with current nrpe 1.5 that will run as a windows service... > > But why do something if it is already there.. > > > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Tuesday, January 21, 2003 5:55 PM > > To: Nagios List > > Subject: [Nagios-users] nrpe for windows > > > A small question.. > > is there a nrpe version that can be runned under windows > (NT/2000/XP)? > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Wed Jan 22 20:56:06 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 22 Jan 2003 14:56:06 -0500 Subject: Statusmap error In-Reply-To: <1043247486.5295.3.camel@rh80-jsm.telaurus.net> References: <1042850729.4184.349.camel@krull> <002f01c2be8c$6b01bc90$984476d8@xphome> <1042853027.3988.370.camel@krull> <1043153627.28573.10.camel@rh80-jsm.telaurus.net> <1043175178.978.32.camel@krull> <1043174979.1265.0.camel@rh80-jsm.telaurus.net> <1043176705.5977.51.camel@krull> <1043176624.1265.10.camel@rh80-jsm.telaurus.net> <1043179860.5977.70.camel@krull> <1043240760.5294.0.camel@rh80-jsm.telaurus.net> <1043242701.976.0.camel@krull> <1043247486.5295.3.camel@rh80-jsm.telaurus.net> Message-ID: <1043265366.976.11.camel@krull> Yes the permissions are correct for those files nagios:nagios, and the path is correct as well /usr/local/nagios/share/images/logos....thank you for helping me with this...... On Wed, 2003-01-22 at 09:58, Jeff McKeon wrote: > Double check the directory you have your images in, make sure the file > permissions on those files are set to nagios:nagios > > the icons should be in: > > /usr/local/nagios/share/images/logos/ > > On Wed, 2003-01-22 at 08:38, Jayson Kliger wrote: > > Yes, I removed that entry.. > > > > On Wed, 2003-01-22 at 08:06, Jeff McKeon wrote: > > > Did you remove the entry pointing to it from the cgi.cfg? That's where > > > the problem is, not the file itself. > > > > > > On Tue, 2003-01-21 at 15:11, Jayson Kliger wrote: > > > > I removed the second cfg file, reload/restart..status map is still > > > > showing the same view, no icons...is it possible that I missed something > > > > in the main cgi.cfg file? > > > > > > > > > > > > > > > > On Tue, 2003-01-21 at 14:17, Jeff McKeon wrote: > > > > > I only use one file. I don't think you need two and even if you did, > > > > > you have the same cgi.cfg attribute pointing to two different files. it > > > > > will probably use the second one (figureing it would overwrite the first > > > > > entry) and you don't have a statusmap_image setting in that one. get > > > > > rid of you second entry in cgi.cfg and do a reload on nagios > > > > > > > > > > /etc/init.d/nagios reload > > > > > /etc/init.d/nagios restart > > > > > > > > > > On Tue, 2003-01-21 at 14:18, Jayson Kliger wrote: > > > > > > going by the documentation I created two cfg's > > > > > > the first one: > > > > > > hostextinfo.cfg > > > > > > define hostextinfo{ > > > > > > host_name krull > > > > > > icon_image redhat.png > > > > > > icon_image_alt redhat.gif > > > > > > vrml_image redhat.png > > > > > > statusmap_image redhat.gd2 > > > > > > } > > > > > > > > > > > > the second: > > > > > > serviceextinfo.cfg > > > > > > define serviceextinfo{ > > > > > > host_name krull > > > > > > service_description PING > > > > > > icon_image redhat.png > > > > > > icon_image_alt redhat.gif > > > > > > } > > > > > > > > > > > > and the two entries that I have added to the end of the cgi.cfg: > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/serviceextinfo.cfg > > > > > > > > > > > > > > > > > > On Tue, 2003-01-21 at 13:49, Jeff McKeon wrote: > > > > > > > Jayson, > > > > > > > > > > > > > > send me your extended info cfg file in the body of an email... > > > > > > > > > > > > > > jeff > > > > > > > > > > > > > > On Tue, 2003-01-21 at 13:52, Jayson Kliger wrote: > > > > > > > > Hello Jeff, > > > > > > > > > > > > > > > > Thank you for your input it has been extremely appreciated, I did find > > > > > > > > the reference to extended info for the hosts in the documentation that > > > > > > > > you had mentioned, I added the required lines to the cgi.cfg file, and > > > > > > > > created the new cfg files..it appears to work (kind of),my status map > > > > > > > > still shows no icons (I just get out lined box for "nagios process" and > > > > > > > > and outlined box for the "host" machine with the green active circle > > > > > > > > around it) the info box that pops up when you roll your mouse over it > > > > > > > > shows the icon (thank you) as well as the other cgi's , including the > > > > > > > > statuswrl (however the icon is "blocky" I will keep tooling around with > > > > > > > > it hopefully I will find the problem. Thank you again for you time and > > > > > > > > help. > > > > > > > > > > > > > > > > Jayson > > > > > > > > > > > > > > > > On Tue, 2003-01-21 at 07:53, Jeff McKeon wrote: > > > > > > > > > jayson, > > > > > > > > > > > > > > > > > > sorry but I was out on the road yesterday. > > > > > > > > > > > > > > > > > > to get the images correct you need to place the image files in the > > > > > > > > > > > > > > > > > > /usr/local/nagios/share/images/logos/ > > > > > > > > > > > > > > > > > > directory and then you need to create a whole new .cfg file for the > > > > > > > > > extended attributes of the hosts. you can name this file anything you > > > > > > > > > want and put it in the .../nagios/etc directory with all the rest of the > > > > > > > > > cfg files. The documentation has the file information but there isn't a > > > > > > > > > sample file included that I know of. > > > > > > > > > > > > > > > > > > after that file is created you must change the line in the cgi.cfg to > > > > > > > > > point to it. > > > > > > > > > > > > > > > > > > xedtemplate_config_file=/usr/local/nagios/etc/filename.cfg > > > > > > > > > > > > > > > > > > As for the httpd.conf line and what it does, I'm not totally sure. > > > > > > > > > Someone helped me out with that last week. It's apparently not in the > > > > > > > > > nagios docs. I believe it just tells httpd where to find the libs for > > > > > > > > > the cgi code. > > > > > > > > > > > > > > > > > > enjoy! > > > > > > > > > > > > > > > > > > Jeff > > > > > > > > > > > > > > > > > > On Fri, 2003-01-17 at 20:23, Jayson Kliger wrote: > > > > > > > > > > Thank YOU! That did it,that gave me the layout, but for some reason the > > > > > > > > > > icons don't show? Maybe I just have to tweak that file a little more > > > > > > > > > > ....more importantly, what exactly did that addition to the httpd.conf > > > > > > > > > > file do, put the the lib dir in the httpd path? Thanks again ..now I can > > > > > > > > > > almost go home.. > > > > > > > > > > > > > > > > > > > > On Fri, 2003-01-17 at 19:55, jsm at inpro.net wrote: > > > > > > > > > > > There's a line you need to add to your httpd.conf file. Just went throught > > > > > > > > > > > this last week. > > > > > > > > > > > > > > > > > > > > > > SetENV LD_LIBRARY_PATH /usr/local/lib > > > > > > > > > > > > > > > > > > > > > > just add it to the end of the file and it may do the trick... > > > > > > > > > > > > > > > > > > > > > > ----- Original Message ----- > > > > > > > > > > > From: "Jayson Kliger" > > > > > > > > > > > To: > > > > > > > > > > > Sent: Friday, January 17, 2003 7:45 PM > > > > > > > > > > > Subject: [Nagios-users] Statusmap error > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Hello, > > > > > > > > > > > > > > > > > > > > > > > > I currently have running Nagios running on a RH8 machine, and it is > > > > > > > > > > > > monitoring the test box that I have set up, I have read the docs, and > > > > > > > > > > > > mailing-list archives, but I am still having issues with the > > > > > > > > > > > > statsmap.cgi. I have made the (what I feel are the correct, but probably > > > > > > > > > > > > aren't) changes to the cgi.cfg file and > > > > > > > > > > > > sections .the default_statusmap/default_statuswrl layouts have been set > > > > > > > > > > > > to default 4 (circular).. When ever I try to access statusmap I get an > > > > > > > > > > > > error 500 Premature end of script? Any hints as to where I should begin > > > > > > > > > > > > to track down the problem? I believe that I have all the required libs > > > > > > > > > > > > installed...I am kind of stuck at this point, any ideas? > > > > > > > > > > > > > > > > > > > > > > > > Thanks in advance > > > > > > > > > > > > Jay > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > > > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From dviner at yahoo-inc.com Wed Jan 22 20:56:58 2003 From: dviner at yahoo-inc.com (Dave Viner) Date: Wed, 22 Jan 2003 11:56:58 -0800 Subject: nrpe for windows In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1360@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1360@PKDWB03C.ad.sprint.com> Message-ID: one thought I had on that issue is to use the new Apache Portable Runtime for nrpe. http://apr.apache.org/ This would allow the same (nrpe) code to run on win32 and unix. We could then slowly port the plugins themselves to use this library when someone requests a win32 version of a plugin. It might not be perfect, but at least we could move towards a more OS-independent codebase, even if we move very slowly. dave -----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: Wednesday, January 22, 2003 11:16 AM To: 'Lennard Bakker'; Nagios List Cc: Trace McQuaig Subject: RE: [Nagios-users] nrpe for windows NRPE requires that you run plugins. Are you going to port all the plugins too? I think many (myself included) would jump at the opportunity for a more homogenous solution (ie, NRPE), but it sounds like quite the task. More power to you if you can do it! jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Wednesday, January 22, 2003 12:54 PM > To: Nagios List > Cc: Trace McQuaig > Subject: RE: [Nagios-users] nrpe for windows > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > Why not use NSClient? > > > > http://nsclient.ready2run.nl/ > > nsclient could check serveral windows releated stuff. > I need to check a few programs install on a windows machine. I have to > test them with different inputs. > > I have already made perl scripts that can do these checkd for me, and > give a nagios compatible output (one line of comment, and a correct > errorlevel). Now i have to call them local on that windows machine. > > If there is no nrpe for windows i will write something that will be > compatibe with current nrpe 1.5 that will run as a windows service... > > But why do something if it is already there.. > > > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Tuesday, January 21, 2003 5:55 PM > > To: Nagios List > > Subject: [Nagios-users] nrpe for windows > > > A small question.. > > is there a nrpe version that can be runned under windows > (NT/2000/XP)? > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Wed Jan 22 21:07:47 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 22 Jan 2003 15:07:47 -0500 Subject: Statusmap error In-Reply-To: <30841-11089@sneakemail.com> References: <30841-11089@sneakemail.com> Message-ID: <1043266067.1382.22.camel@krull> Thanks Steve, ok..I took the gd2 image that I had and used: gd2topng to convert it back to see if the png image was ok..it was.., so if my situation is the same as what you went through, I should use the gd-1.8.4 "pngtogd2", is it possible to just compile that specific utillity or would I have to compile the whole version ..Thanks again for you advice Jay On Tue, 2003-01-21 at 19:49, Steve Bonds wrote: > On 21 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > > > I think my problem is I am unable to view the gd2 icons (captain > > obvious), I have gd-2.0.10 installed, could it be a path issue for gd? > > GD is (or so I thought)configured correctly, any ideas as to how I. > > could confirm everything is in its proper place? In advance, Thank you > > I made the mistake of building a gd-2.0.10 version of "pngtogd2" against > my gd-1.8.4 install on RedHat 7.3. That produced gd2 images that Nagios > could not load. (Try converting the gd2 images back to PNG and verify > that they look OK. That was how I found this problem.) > > My fix was to build "pngtogd2" from the gd-1.8.4 source. Once I > re-converted my PNG images everything was happy. > > This version of gd does not support the PNG alpha channel so I had to > create indexed color images from my original PNGs and use a single color > transparency instead of alpha. > > -- Steve > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From HarlanRichardC at JohnDeere.com Wed Jan 22 21:14:44 2003 From: HarlanRichardC at JohnDeere.com (Harlan Richard C) Date: Wed, 22 Jan 2003 14:14:44 -0600 Subject: Temperature monitoring using TempTrax Message-ID: <88DBF0F5824B31449104920BF89A758F1EBA29@edxmb3.jdnet.deere.com> TempTrax now has a Ethernet version of it device. That way you would only have to use SNMP to talk to it, and everyone should be happy since you are meeting there requirements. -----Original Message----- From: Pete Dewell [mailto:pete.dewell at VoltEurope.com] Sent: Wednesday, January 22, 2003 6:27 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Temperature monitoring using TempTrax Hi, Is there anybody out there who has a TempTrax unit plugged into a Windows machine, which then has Nagios monitoring the temperature as an active check ? If so, how did you get it to work ? I can see no way of doing this other than writing a Windows prog to return the data, either as nrpe-type response, or as a passive check. I would rather plug the device straight into a Linux box and use nrpe, but *have* to be able to use Windows. 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Kelly.Setzer at placemark.com Wed Jan 22 21:26:25 2003 From: Kelly.Setzer at placemark.com (Kelly Setzer) Date: Wed, 22 Jan 2003 14:26:25 -0600 Subject: Check_SNMP and MIB Name In-Reply-To: References: Message-ID: <20030122202625.GA13691@placemark.com> On Wed, Jan 22, 2003 at 12:08:53PM -0800, nagios-users-request at lists.sourceforge.net wrote: > > This is a multi-part message in MIME format. Is it really necessary to send a message to the mailing list in both HTML and text? How about just text - some of us read the digest, after all. > Can I use a MIB name in the check_snmp syntax in place of the numerical > OID number as required by the -o option? If so what is the correct way > of writing the statement using the MIB name? The check_snmp module just calls snmpget and snmpget doesn't care if you use numeric or named OIDs. You can even shorten them: laLoad.1 dskPercent.2 If you want to specifiy a MIB, you will need to edit the check_snmp.c source and recompile it. By default, check_snmp calls snmpget with '-M ALL' parameter which causes snmpget to load all available mibs. Kelly -- Kelly Setzer, System Administrator/Architect - Placemark Investments 14180 Dallas Pkwy, Suite 200, Dallas, TX 75240 kelly.setzer at placemark.com http://www.placemark.com (972)404-8100x41 (work) (214) 287-3464 (cell) ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From r1p6os402 at sneakemail.com Wed Jan 22 22:06:57 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 22 Jan 2003 13:06:57 -0800 (PST) Subject: Statusmap error In-Reply-To: <1043266067.1382.22.camel@krull> References: <1043266067.1382.22.camel@krull> Message-ID: <22505-37201@sneakemail.com> On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > ok..I took the gd2 image that I had and used: gd2topng to convert it > back to see if the png image was ok..it was.., so if my situation is > the same as what you went through, I should use the gd-1.8.4 > "pngtogd2", is it possible to just compile that specific utillity or > would I have to compile the whole version ..Thanks again for you > advice If that worked, then it's likely that the gd2 image is valid. (gd2topng coredumped on me when I tried it.) The only other thing I can think of is perhaps Nagios' statusmap CGI was built against an older version of gd, in which case using the older pngtogd2 will probably help. If you installed Nagios as binaries it's likely this is causing your problems. Since you do not have the older libraries installed you would have to build the whole gd-1.8.4 set in order to make pngtogd2. (If you look at the source for this utility you can see it's just making GD calls and really nothing else.) So I would try (in order): + Rebuild Nagios from source on the system where you'll be running iy to ensure that it links with the right GD libraries. + Build gd 1.8.4 and re-convert your PNGs using the older converter. -- Steve ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From lists at unbeatenpath.net Wed Jan 22 23:12:14 2003 From: lists at unbeatenpath.net (Cameron Moore) Date: Wed, 22 Jan 2003 16:12:14 -0600 Subject: Temperature monitoring using TempTrax In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2513@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2513@PKDWB03C.ad.sprint.com> Message-ID: <20030122221214.GB32325@unbeatenpath.net> * jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) [2003.01.22 10:49]: > If the above doesn't work, some options: > > - build out a low-end Linux box and dovetail it with TempTrax > - purchase a hardware solution, and use check_snmp > > One possible example of the latter: > > http://www.akcpinc.com/company/price_list.html > > Get the black box (or blue, in this case), a temperature sensor, optionally > a humidity sensor, assign an IP, set up check_snmp and you should be good to > go. (Using an old Pentium running Linux might end up being cheaper, but you > might save some time going the black box route.) > > Food for thought. Yuck. Here's some more food for thought and it's cholesterol free. I just purchased a DigiTemp kit from Brian Lane for $37. Hooked it into my monitoring station yesterday (there are Win32 binaries, but I run Linux), and it's working great. Nagios is watching it, and I've got RRDTool CGI graphs going. -- Cameron Moore bash$ :(){ :|:&};: ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From GPotter at MarathonOil.com Wed Jan 22 23:29:38 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Wed, 22 Jan 2003 16:29:38 -0600 Subject: Statusmap error Message-ID: I am using png images for my icons. Is there a reason to use gd2 instead? I guess I missed that in the setup docs. Greg > -----Original Message----- > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > Sent: Wednesday, January 22, 2003 3:07 PM > To: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Statusmap error > > > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > |Nagios| wrote: > > > ok..I took the gd2 image that I had and used: gd2topng to convert it > > back to see if the png image was ok..it was.., so if my situation is > > the same as what you went through, I should use the gd-1.8.4 > > "pngtogd2", is it possible to just compile that specific utillity or > > would I have to compile the whole version ..Thanks again for you > > advice > > ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Wed Jan 22 23:43:53 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 22 Jan 2003 23:43:53 +0100 Subject: nrpe for windows In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1360@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1360@PKDWB03C.ad.sprint.com> Message-ID: <1043275431.11212.57.camel@peitha> On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > NRPE requires that you run plugins. Are you going to port all the plugins > too? No, with it could check the things i need on that windows host. Even if it not would run windows, but a nrpe compatible OS, that i would write the plugins myself. The task these plugins are gonne do, are system specific, only for 1 purpose only. > I think many (myself included) would jump at the opportunity for a more > homogenous solution (ie, NRPE), but it sounds like quite the task. More > power to you if you can do it! This plugins would be useless to anybody else, so why bother the homogenous solution. > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Wednesday, January 22, 2003 12:54 PM > > To: Nagios List > > Cc: Trace McQuaig > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > Why not use NSClient? > > > > > > http://nsclient.ready2run.nl/ > > > > nsclient could check serveral windows releated stuff. > > I need to check a few programs install on a windows machine. I have to > > test them with different inputs. > > > > I have already made perl scripts that can do these checkd for me, and > > give a nagios compatible output (one line of comment, and a correct > > errorlevel). Now i have to call them local on that windows machine. > > > > If there is no nrpe for windows i will write something that will be > > compatibe with current nrpe 1.5 that will run as a windows service... > > > > But why do something if it is already there.. > > > > > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > To: Nagios List > > > Subject: [Nagios-users] nrpe for windows > > > > > A small question.. > > > is there a nrpe version that can be runned under windows > > (NT/2000/XP)? > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Wed Jan 22 23:49:49 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 22 Jan 2003 23:49:49 +0100 Subject: nrpe for windows In-Reply-To: References: Message-ID: <1043275785.11209.65.camel@peitha> On Wed, 2003-01-22 at 20:56, Dave Viner wrote: > one thought I had on that issue is to use the new Apache Portable Runtime > for nrpe. http://apr.apache.org/ This would allow the same (nrpe) code to > run on win32 and unix. We could then slowly port the plugins themselves to > use this library when someone requests a win32 version of a plugin. It > might not be perfect, but at least we could move towards a more > OS-independent codebase, even if we move very slowly. Than is the question, why not use java.. No futher replies on this, that would result in a 'which language is better and os independend' war... But, if you want to know why not this solution at this moment.. 1) i want to have the winnrpe running after this weekend :) 2) i don't know Apache Portable Runtime 3) I don't want to install to much stuff, to get something else running. Lennard > -----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: Wednesday, January 22, 2003 11:16 AM > To: 'Lennard Bakker'; Nagios List > Cc: Trace McQuaig > Subject: RE: [Nagios-users] nrpe for windows > > > NRPE requires that you run plugins. Are you going to port all the plugins > too? > > I think many (myself included) would jump at the opportunity for a more > homogenous solution (ie, NRPE), but it sounds like quite the task. More > power to you if you can do it! > > jc > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Wednesday, January 22, 2003 12:54 PM > > To: Nagios List > > Cc: Trace McQuaig > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > Why not use NSClient? > > > > > > http://nsclient.ready2run.nl/ > > > > nsclient could check serveral windows releated stuff. > > I need to check a few programs install on a windows machine. I have to > > test them with different inputs. > > > > I have already made perl scripts that can do these checkd for me, and > > give a nagios compatible output (one line of comment, and a correct > > errorlevel). Now i have to call them local on that windows machine. > > > > If there is no nrpe for windows i will write something that will be > > compatibe with current nrpe 1.5 that will run as a windows service... > > > > But why do something if it is already there.. > > > > > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > To: Nagios List > > > Subject: [Nagios-users] nrpe for windows > > > > > A small question.. > > > is there a nrpe version that can be runned under windows > > (NT/2000/XP)? > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From rplewe at ess.nec.de Thu Jan 23 00:16:12 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Thu, 23 Jan 2003 00:16:12 +0100 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: ; from jragle@unm.edu on Wed, Jan 22, 2003 at 10:23:49AM -0700 References: Message-ID: <20030123001612.A1670@ess.nec.de> Hello, On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > Hey all, > I was wondering if any of you have tried to use nrpe to fix > problems on systems before any paging occurs. Basically I have an LDAP > service running on a remote machine and I would like to set up nagios with > nrpe to try to restart the service when it detects that it has gone down. if you don't mind an example without the context, where you have to extract the principle yourself: #!/bin/sh ERS=`ps -eaf | grep ersjsf | wc -l` if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] then /bin/echo "ERS OK - ERS running" exit 0 fi if [ $ERS -eq 1 ] then sleep 20 ERSLATE=`ps -eaf | grep ersjsf | wc -l` if [ $ERSLATE -eq 1 ] then /etc/rc2.d/S99ers start else /bin/echo "ERS OK - ERS running" exit 0 fi /bin/echo "ERS CRITICAL - not running, attempted to restart" exit 2 fi Regards, Rasmus ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Thu Jan 23 00:02:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 17:02:03 -0600 Subject: nrpe for windows Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1369@PKDWB03C.ad.sprint.com> So in essence, you're going to build some sort of monolithic code which is perhaps similar to NSClient in design, but it uses the NRPE protocols? jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Wednesday, January 22, 2003 4:44 PM > To: Nagios List > Cc: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] nrpe for windows > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > NRPE requires that you run plugins. Are you going to port > all the plugins > > too? > > No, with it could check the things i need on that windows host. > Even if it not would run windows, but a nrpe compatible OS, > that i would > write the plugins myself. The task these plugins are gonne do, are > system specific, only for 1 purpose only. > > > > I think many (myself included) would jump at the > opportunity for a more > > homogenous solution (ie, NRPE), but it sounds like quite > the task. More > > power to you if you can do it! > > This plugins would be useless to anybody else, so why bother the > homogenous solution. > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > To: Nagios List > > > Cc: Trace McQuaig > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > Why not use NSClient? > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > nsclient could check serveral windows releated stuff. > > > I need to check a few programs install on a windows > machine. I have to > > > test them with different inputs. > > > > > > I have already made perl scripts that can do these checkd > for me, and > > > give a nagios compatible output (one line of comment, and > a correct > > > errorlevel). Now i have to call them local on that > windows machine. > > > > > > If there is no nrpe for windows i will write something > that will be > > > compatibe with current nrpe 1.5 that will run as a > windows service... > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > -----Original Message----- > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > To: Nagios List > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > A small question.. > > > > is there a nrpe version that can be runned under windows > > > (NT/2000/XP)? > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Scholarships for Techies! > > > Can't afford IT training? All 2003 ictp students receive > scholarships. > > > Get hands-on training in Microsoft, Cisco, Sun, > Linux/UNIX, and more. > > > www.ictp.com/training/sourceforge.asp > > > _______________________________________________ > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Wed Jan 22 23:58:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 16:58:46 -0600 Subject: Temperature monitoring using TempTrax Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E1368@PKDWB03C.ad.sprint.com> Sounds interesting. Do the Win32 binaries keep perfmon updated? If so, this might solve his problem (with the help of NSClient). If you're feeling inspired, perhaps you could add this to the FAQ on www.nagios.org, complete with config file fragments and any other finessing you did to glue it all together. jc > Yuck. Here's some more food for thought and it's cholesterol free. I > just purchased a DigiTemp kit from Brian Lane for $37. Hooked it into > my monitoring station yesterday (there are Win32 binaries, but I run > Linux), and it's working great. Nagios is watching it, and I've got > RRDTool CGI graphs going. > -- > Cameron Moore > bash$ :(){ :|:&};: ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jayson at sonictrading.com Thu Jan 23 00:38:50 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 22 Jan 2003 18:38:50 -0500 Subject: Statusmap error In-Reply-To: References: Message-ID: <1043278731.1382.37.camel@krull> I was just going by the recommendations to use gd2 to save cpu time, but I would think that its not necessary, I edited my hostextinfo.cfg file to change the statusmap imaged to png..reload/restart still no go..? I have confirmed that the physical_html_path=/usr/local/nagios/share/images/logos.. and the images are there.... On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: > I am using png images for my icons. Is there a reason to use gd2 instead? > I guess I missed that in the setup docs. > > Greg > > > -----Original Message----- > > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > > Sent: Wednesday, January 22, 2003 3:07 PM > > To: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Statusmap error > > > > > > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > > |Nagios| wrote: > > > > > ok..I took the gd2 image that I had and used: gd2topng to convert it > > > back to see if the png image was ok..it was.., so if my situation is > > > the same as what you went through, I should use the gd-1.8.4 > > > "pngtogd2", is it possible to just compile that specific utillity or > > > would I have to compile the whole version ..Thanks again for you > > > advice > > > > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Thu Jan 23 00:58:06 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 23 Jan 2003 00:58:06 +0100 Subject: nrpe for windows In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E1369@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E1369@PKDWB03C.ad.sprint.com> Message-ID: <1043279884.11207.70.camel@peitha> On Thu, 2003-01-23 at 00:02, Carroll, Jim P [Contractor] wrote: > So in essence, you're going to build some sort of monolithic code which is > perhaps similar to NSClient in design, but it uses the NRPE protocols? No. Some code like, NRPE. A service that listens at port 5666, uses the nrpe protocol, uses the same nrpe configfile and also calls external file to do a check. It doesn't nothing more than the nrpe daemon, only windows-service compatible. The NSClient runs it own checks and no external 'plugin'. Lennard > > jc > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Wednesday, January 22, 2003 4:44 PM > > To: Nagios List > > Cc: Carroll, Jim P [Contractor] > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > > NRPE requires that you run plugins. Are you going to port > > all the plugins > > > too? > > > > No, with it could check the things i need on that windows host. > > Even if it not would run windows, but a nrpe compatible OS, > > that i would > > write the plugins myself. The task these plugins are gonne do, are > > system specific, only for 1 purpose only. > > > > > > > I think many (myself included) would jump at the > > opportunity for a more > > > homogenous solution (ie, NRPE), but it sounds like quite > > the task. More > > > power to you if you can do it! > > > > This plugins would be useless to anybody else, so why bother the > > homogenous solution. > > > > > > > > -----Original Message----- > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > > To: Nagios List > > > > Cc: Trace McQuaig > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > > Why not use NSClient? > > > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > > > nsclient could check serveral windows releated stuff. > > > > I need to check a few programs install on a windows > > machine. I have to > > > > test them with different inputs. > > > > > > > > I have already made perl scripts that can do these checkd > > for me, and > > > > give a nagios compatible output (one line of comment, and > > a correct > > > > errorlevel). Now i have to call them local on that > > windows machine. > > > > > > > > If there is no nrpe for windows i will write something > > that will be > > > > compatibe with current nrpe 1.5 that will run as a > > windows service... > > > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > > To: Nagios List > > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > > > A small question.. > > > > > is there a nrpe version that can be runned under windows > > > > (NT/2000/XP)? > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > Can't afford IT training? All 2003 ictp students receive > > scholarships. > > > > Get hands-on training in Microsoft, Cisco, Sun, > > Linux/UNIX, and more. > > > > www.ictp.com/training/sourceforge.asp > > > > _______________________________________________ > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From donavan at 4wx.net Thu Jan 23 00:58:08 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 22 Jan 2003 17:58:08 -0600 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <20030123001612.A1670@ess.nec.de> References: <20030123001612.A1670@ess.nec.de> Message-ID: <20030122235808.M7676@4wx.net> I'll try this again and include the list :) I would really clean up the following a bit. ERS=`ps -eaf | grep ersjsf | wc -l` This removes the ambiguity of counting the grep process ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` Because the way your script is written, the first grep could return 0 and you would fall out and exit with 0. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Rasmus Plewe To: nagios-users at lists.sourceforge.net Sent: Thu, 23 Jan 2003 00:16:12 +0100 Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > Hello, > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > Hey all, > > I was wondering if any of you have tried to use nrpe to fix > > problems on systems before any paging occurs. Basically I have an LDAP > > service running on a remote machine and I would like to set up nagios with > > nrpe to try to restart the service when it detects that it has gone down. > > if you don't mind an example without the context, where you have to > extract the principle yourself: > > #!/bin/sh > > ERS=`ps -eaf | grep ersjsf | wc -l` > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > then > /bin/echo "ERS OK - ERS running" > exit 0 > fi > > if [ $ERS -eq 1 ] > then > sleep 20 > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > if [ $ERSLATE -eq 1 ] > then > /etc/rc2.d/S99ers start > else > /bin/echo "ERS OK - ERS running" > exit 0 > fi > /bin/echo "ERS CRITICAL - not running, attempted to restart" > exit 2 > fi > > Regards, > Rasmus > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From drich at employees.org Thu Jan 23 01:05:25 2003 From: drich at employees.org (Dan Rich) Date: Wed, 22 Jan 2003 16:05:25 -0800 (PST) Subject: Statusmap error In-Reply-To: <1043278731.1382.37.camel@krull> References: <1043278731.1382.37.camel@krull> Message-ID: <49188.63.237.201.12.1043280325.squirrel@www.lapseofthought.com> Jayson Kliger said: > I was just going by the recommendations to use gd2 to save cpu time, but > I would think that its not necessary, I edited my hostextinfo.cfg file > to change the statusmap imaged to png..reload/restart still no go..? I > have confirmed that the > physical_html_path=/usr/local/nagios/share/images/logos.. and the images > are there.... I can think of two things to check, since I spent some time trying to figure out some odd image problems on my system as well. The most obvious, make sure your web server has permission to read the files. The less obvious, look for errors in your extended information configuration. If you are using templates, make sure you haven't defined a template with one name and used it with another. I've found that a single error in the extended information can cause statusmap (and other cgis that display images) to behave oddly. For example, I had the following in my hostextinfo.cfg file earlier today: define hostextinfo{ name windowshost icon_image win40.png icon_image_alt Windows host vrml_image win40.jpg gd2_image win40.gd2 register 0 } define hostextinfo{ use windows-host host_name papyrus icon_image_alt papyrus } The mismatch between the name and use statements caused not only the windows hosts to not display but for some reason about half of my routers and switches (the other half displayed fine). Correcting this one typo made everything that was displaying as a ? display with the correct graphics. Also, if you look at the status summary and click on a host, do you see the icons there? > On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: >> I am using png images for my icons. Is there a reason to use gd2 >> instead? I guess I missed that in the setup docs. >> >> Greg >> >> > -----Original Message----- >> > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] >> > Sent: Wednesday, January 22, 2003 3:07 PM >> > To: nagios-users at lists.sourceforge.net >> > Subject: RE: [Nagios-users] Statusmap error >> > >> > >> > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com >> > |Nagios| wrote: >> > >> > > ok..I took the gd2 image that I had and used: gd2topng to convert >> it back to see if the png image was ok..it was.., so if my >> situation is the same as what you went through, I should use the >> gd-1.8.4 "pngtogd2", is it possible to just compile that specific >> utillity or would I have to compile the whole version ..Thanks >> again for you advice -- Dan Rich | http://www.employees.org/~drich/ | "Step up to red alert!" "Are you sure, sir? | It means changing the bulb in the sign..." | - Red Dwarf (BBC) ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jcarro10 at sprintspectrum.com Thu Jan 23 01:04:24 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 22 Jan 2003 18:04:24 -0600 Subject: nrpe for windows Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E136A@PKDWB03C.ad.sprint.com> What sorts of plugins will winnrpe call? And who will create them? I think I missed something somewhere.... jc > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Wednesday, January 22, 2003 5:58 PM > To: Nagios List > Cc: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] nrpe for windows > > > On Thu, 2003-01-23 at 00:02, Carroll, Jim P [Contractor] wrote: > > So in essence, you're going to build some sort of > monolithic code which is > > perhaps similar to NSClient in design, but it uses the NRPE > protocols? > > No. Some code like, NRPE. A service that listens at port > 5666, uses the > nrpe protocol, uses the same nrpe configfile and also calls external > file to do a check. > > It doesn't nothing more than the nrpe daemon, only windows-service > compatible. The NSClient runs it own checks and no external 'plugin'. > > Lennard > > > > > > jc > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Wednesday, January 22, 2003 4:44 PM > > > To: Nagios List > > > Cc: Carroll, Jim P [Contractor] > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > > > NRPE requires that you run plugins. Are you going to port > > > all the plugins > > > > too? > > > > > > No, with it could check the things i need on that windows host. > > > Even if it not would run windows, but a nrpe compatible OS, > > > that i would > > > write the plugins myself. The task these plugins are gonne do, are > > > system specific, only for 1 purpose only. > > > > > > > > > > I think many (myself included) would jump at the > > > opportunity for a more > > > > homogenous solution (ie, NRPE), but it sounds like quite > > > the task. More > > > > power to you if you can do it! > > > > > > This plugins would be useless to anybody else, so why bother the > > > homogenous solution. > > > > > > > > > > > -----Original Message----- > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > > > To: Nagios List > > > > > Cc: Trace McQuaig > > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > > > Why not use NSClient? > > > > > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > > > > > nsclient could check serveral windows releated stuff. > > > > > I need to check a few programs install on a windows > > > machine. I have to > > > > > test them with different inputs. > > > > > > > > > > I have already made perl scripts that can do these checkd > > > for me, and > > > > > give a nagios compatible output (one line of comment, and > > > a correct > > > > > errorlevel). Now i have to call them local on that > > > windows machine. > > > > > > > > > > If there is no nrpe for windows i will write something > > > that will be > > > > > compatibe with current nrpe 1.5 that will run as a > > > windows service... > > > > > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > > > To: Nagios List > > > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > > > > > A small question.. > > > > > > is there a nrpe version that can be runned under windows > > > > > (NT/2000/XP)? > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > > Can't afford IT training? All 2003 ictp students receive > > > scholarships. > > > > > Get hands-on training in Microsoft, Cisco, Sun, > > > Linux/UNIX, and more. > > > > > www.ictp.com/training/sourceforge.asp > > > > > _______________________________________________ > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From donavan at 4wx.net Thu Jan 23 01:11:05 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 22 Jan 2003 18:11:05 -0600 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <20030123010339.B1670@ess.nec.de> References: <20030123001612.A1670@ess.nec.de> <20030122235452.M48854@4wx.net> <20030123010339.B1670@ess.nec.de> Message-ID: <20030123001105.M34494@4wx.net> actually, I've never worked on a platform that consistantly showed the grep, solaris, aix, linux, hp .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Rasmus Plewe To: donavan nelson Sent: Thu, 23 Jan 2003 01:03:39 +0100 Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > Hello, > > On Wed, Jan 22, 2003 at 05:54:52PM -0600, donavan nelson wrote: > > I would really clean up the following a bit. > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > This removes the ambiguity of counting the grep process > > > > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` > > thanks for the hint. I admit that your way is more elegant, no > question. Since the grep process will show up everytime it then is > simply a constant for the counting, so it worked and never fell offer > to optimisation... ;-/ > > Will change it tomorrow; as it is 1 am I wouldn't dream of changing > anything in the monitoring of the production system. Especially since > it's me who is on call tonight. > > Regards, > Rasmus ------- End of Original Message ------- ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From bakkerl at lamp.xs4all.nl Thu Jan 23 01:28:32 2003 From: bakkerl at lamp.xs4all.nl (Lennard Bakker) Date: 23 Jan 2003 01:28:32 +0100 Subject: nrpe for windows In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E136A@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E136A@PKDWB03C.ad.sprint.com> Message-ID: <1043281707.11208.80.camel@peitha> On Thu, 2003-01-23 at 01:04, Carroll, Jim P [Contractor] wrote: > What sorts of plugins will winnrpe call? And who will create them? The sort plugins is perl scripts, or (console)executables (.exe/.com files). Or anything that can be executed on a windows system. The same that you can use anything to create a plugin on linux as long it can be executed on linux. And these scripts are custum made for me, or i will created them myself. Mostly it will be perl scripts, that need to be started with test data as input. These scripts wil process the (test)data and check the result if it is as expected. These scripts are already made that the output is nagios compatible (1 line of output, and a errorlevel as result). command[check_dummyOK]=c:\winnrpe\check_dummy.exe -CRIT > > I think I missed something somewhere.... > > jc > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Wednesday, January 22, 2003 5:58 PM > > To: Nagios List > > Cc: Carroll, Jim P [Contractor] > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > On Thu, 2003-01-23 at 00:02, Carroll, Jim P [Contractor] wrote: > > > So in essence, you're going to build some sort of > > monolithic code which is > > > perhaps similar to NSClient in design, but it uses the NRPE > > protocols? > > > > No. Some code like, NRPE. A service that listens at port > > 5666, uses the > > nrpe protocol, uses the same nrpe configfile and also calls external > > file to do a check. > > > > It doesn't nothing more than the nrpe daemon, only windows-service > > compatible. The NSClient runs it own checks and no external 'plugin'. > > > > Lennard > > > > > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > Sent: Wednesday, January 22, 2003 4:44 PM > > > > To: Nagios List > > > > Cc: Carroll, Jim P [Contractor] > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > > > > NRPE requires that you run plugins. Are you going to port > > > > all the plugins > > > > > too? > > > > > > > > No, with it could check the things i need on that windows host. > > > > Even if it not would run windows, but a nrpe compatible OS, > > > > that i would > > > > write the plugins myself. The task these plugins are gonne do, are > > > > system specific, only for 1 purpose only. > > > > > > > > > > > > > I think many (myself included) would jump at the > > > > opportunity for a more > > > > > homogenous solution (ie, NRPE), but it sounds like quite > > > > the task. More > > > > > power to you if you can do it! > > > > > > > > This plugins would be useless to anybody else, so why bother the > > > > homogenous solution. > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > > > > To: Nagios List > > > > > > Cc: Trace McQuaig > > > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > > > > Why not use NSClient? > > > > > > > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > > > > > > > nsclient could check serveral windows releated stuff. > > > > > > I need to check a few programs install on a windows > > > > machine. I have to > > > > > > test them with different inputs. > > > > > > > > > > > > I have already made perl scripts that can do these checkd > > > > for me, and > > > > > > give a nagios compatible output (one line of comment, and > > > > a correct > > > > > > errorlevel). Now i have to call them local on that > > > > windows machine. > > > > > > > > > > > > If there is no nrpe for windows i will write something > > > > that will be > > > > > > compatibe with current nrpe 1.5 that will run as a > > > > windows service... > > > > > > > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > > > > To: Nagios List > > > > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > > > > > > > A small question.. > > > > > > > is there a nrpe version that can be runned under windows > > > > > > (NT/2000/XP)? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > > > Can't afford IT training? All 2003 ictp students receive > > > > scholarships. > > > > > > Get hands-on training in Microsoft, Cisco, Sun, > > > > Linux/UNIX, and more. > > > > > > www.ictp.com/training/sourceforge.asp > > > > > > _______________________________________________ > > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jragle at unm.edu Thu Jan 23 01:30:12 2003 From: jragle at unm.edu (Jamin) Date: Wed, 22 Jan 2003 17:30:12 -0700 (MST) Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <20030123001612.A1670@ess.nec.de> References: <20030123001612.A1670@ess.nec.de> Message-ID: Thanks man! I can use that! -Jamin On Thu, 23 Jan 2003, Rasmus Plewe wrote: > Hello, > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > Hey all, > > I was wondering if any of you have tried to use nrpe to fix > > problems on systems before any paging occurs. Basically I have an LDAP > > service running on a remote machine and I would like to set up nagios with > > nrpe to try to restart the service when it detects that it has gone down. > > if you don't mind an example without the context, where you have to > extract the principle yourself: > > > #!/bin/sh > > ERS=`ps -eaf | grep ersjsf | wc -l` > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > then > /bin/echo "ERS OK - ERS running" > exit 0 > fi > > if [ $ERS -eq 1 ] > then > sleep 20 > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > if [ $ERSLATE -eq 1 ] > then > /etc/rc2.d/S99ers start > else > /bin/echo "ERS OK - ERS running" > exit 0 > fi > /bin/echo "ERS CRITICAL - not running, attempted to restart" > exit 2 > fi > > > Regards, > Rasmus > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ---------------------------------------------------------------------- "Mmmm, I like my Cloneaid with extra sugar." http://www.clonaid.com/ -- Mike Nord. ---------------------------------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jragle at unm.edu Thu Jan 23 01:38:40 2003 From: jragle at unm.edu (Jamin) Date: Wed, 22 Jan 2003 17:38:40 -0700 (MST) Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <20030122235808.M7676@4wx.net> References: <20030122235808.M7676@4wx.net> Message-ID: Since I'm checking an ldap service (iplanet) I changed the code like so. Since I could I went ahead and returned the number of supposed processes running minus the grep count. here is my modified script: #!/bin/sh ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` if [ $ERS -gt 1 ] then /bin/echo "LDAP OK - LDAP running $ERS processes" exit 0 fi if [ $ERS -eq 0 ] then sleep 10 ERSLATE=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` if [ $ERSLATE -eq 0 ] then /sbin/service ldap start else /bin/echo "LDAP OK - LDAP running $ERS processes" exit 0 fi /bin/echo "LDAP CRITICAL - not running, attempted to restart" exit 2 fi IT seems to be working great. We shall see... Hopefully we get this bug tracted down why the iplanet server keeps crashing... -Jamin On Wed, 22 Jan 2003, donavan nelson wrote: > I'll try this again and include the list :) > > I would really clean up the following a bit. > > ERS=`ps -eaf | grep ersjsf | wc -l` > > This removes the ambiguity of counting the grep process > > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` > > Because the way your script is written, the first grep could return 0 and you > would fall out and exit with 0. > > .dn > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Rasmus Plewe > To: nagios-users at lists.sourceforge.net > Sent: Thu, 23 Jan 2003 00:16:12 +0100 > Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > > > Hello, > > > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > > Hey all, > > > I was wondering if any of you have tried to use nrpe to fix > > > problems on systems before any paging occurs. Basically I have an LDAP > > > service running on a remote machine and I would like to set up nagios with > > > nrpe to try to restart the service when it detects that it has gone down. > > > > if you don't mind an example without the context, where you have to > > extract the principle yourself: > > > > #!/bin/sh > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > > then > > /bin/echo "ERS OK - ERS running" > > exit 0 > > fi > > > > if [ $ERS -eq 1 ] > > then > > sleep 20 > > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > > if [ $ERSLATE -eq 1 ] > > then > > /etc/rc2.d/S99ers start > > else > > /bin/echo "ERS OK - ERS running" > > exit 0 > > fi > > /bin/echo "ERS CRITICAL - not running, attempted to restart" > > exit 2 > > fi > > > > Regards, > > Rasmus > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive > > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp > _______________________________________________ > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ---------------------------------------------------------------------- Jesus must have been a party animal that none could match to this day. Think about it. When I get slobering drunk I sometimes wake up face down in the hallway in the Hokona dorm. He woke up on a cross. Man, that hang over must have sucked. No wonder people thought he was dead. -- March 12th, 1999 ---------------------------------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From donavan at 4wx.net Thu Jan 23 01:42:07 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 22 Jan 2003 18:42:07 -0600 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: References: <20030122235808.M7676@4wx.net> Message-ID: <20030123004207.M96045@4wx.net> you have that backwards... ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` should be ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` the second grep "could" make an appearance. -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Jamin To: donavan nelson Sent: Wed, 22 Jan 2003 17:38:40 -0700 (MST) Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > Since I'm checking an ldap service (iplanet) I changed the code like > so. Since I could I went ahead and returned the number of supposed > processes running minus the grep count. > > here is my modified script: > #!/bin/sh > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > if [ $ERS -gt 1 ] > then > /bin/echo "LDAP OK - LDAP running $ERS processes" > exit 0 > fi > > if [ $ERS -eq 0 ] > then > sleep 10 > ERSLATE=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > if [ $ERSLATE -eq 0 ] > then > /sbin/service ldap start > else > /bin/echo "LDAP OK - LDAP running $ERS processes" > exit 0 > fi > /bin/echo "LDAP CRITICAL - not running, attempted to restart" > exit 2 > fi > > IT seems to be working great. We shall see... > Hopefully we get this bug tracted down why the iplanet server keeps > crashing... > -Jamin > > On Wed, 22 Jan 2003, donavan nelson wrote: > > > I'll try this again and include the list :) > > > > I would really clean up the following a bit. > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > This removes the ambiguity of counting the grep process > > > > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` > > > > Because the way your script is written, the first grep could return 0 and you > > would fall out and exit with 0. > > > > .dn > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: Rasmus Plewe > > To: nagios-users at lists.sourceforge.net > > Sent: Thu, 23 Jan 2003 00:16:12 +0100 > > Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > > > > > Hello, > > > > > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > > > Hey all, > > > > I was wondering if any of you have tried to use nrpe to fix > > > > problems on systems before any paging occurs. Basically I have an LDAP > > > > service running on a remote machine and I would like to set up nagios with > > > > nrpe to try to restart the service when it detects that it has gone down. > > > > > > if you don't mind an example without the context, where you have to > > > extract the principle yourself: > > > > > > #!/bin/sh > > > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > > > then > > > /bin/echo "ERS OK - ERS running" > > > exit 0 > > > fi > > > > > > if [ $ERS -eq 1 ] > > > then > > > sleep 20 > > > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > > > if [ $ERSLATE -eq 1 ] > > > then > > > /etc/rc2.d/S99ers start > > > else > > > /bin/echo "ERS OK - ERS running" > > > exit 0 > > > fi > > > /bin/echo "ERS CRITICAL - not running, attempted to restart" > > > exit 2 > > > fi > > > > > > Regards, > > > Rasmus > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Scholarships for Techies! > > > Can't afford IT training? All 2003 ictp students receive > > > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > > > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > > 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: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ---------------------------------------------------------------------- > Jesus must have been a party animal that none could match to this > day. Think about it. When I get slobering drunk I sometimes wake up > face down in the hallway in the Hokona dorm. He woke up on a cross. > Man, that hang over must have sucked. No wonder people thought he > was dead. -- March > 12th, 1999 > ---------------------------------------------------------------------- ------- End of Original Message ------- ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jragle at unm.edu Thu Jan 23 01:54:02 2003 From: jragle at unm.edu (Jamin) Date: Wed, 22 Jan 2003 17:54:02 -0700 (MST) Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: <20030123004207.M96045@4wx.net> References: <20030123004207.M96045@4wx.net> Message-ID: It does not matter the order in this case. Test it out. As long as the grep is striped out before you do the word count, you are cool. -Jamin On Wed, 22 Jan 2003, donavan nelson wrote: > you have that backwards... > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > should be > ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` > > the second grep "could" make an appearance. > > -- > Donavan Nelson > 4wx Networks > www.4wx.net > > ---------- Original Message ----------- > From: Jamin > To: donavan nelson > Sent: Wed, 22 Jan 2003 17:38:40 -0700 (MST) > Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > > > Since I'm checking an ldap service (iplanet) I changed the code like > > so. Since I could I went ahead and returned the number of supposed > > processes running minus the grep count. > > > > here is my modified script: > > #!/bin/sh > > > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > > > if [ $ERS -gt 1 ] > > then > > /bin/echo "LDAP OK - LDAP running $ERS processes" > > exit 0 > > fi > > > > if [ $ERS -eq 0 ] > > then > > sleep 10 > > ERSLATE=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > if [ $ERSLATE -eq 0 ] > > then > > /sbin/service ldap start > > else > > /bin/echo "LDAP OK - LDAP running $ERS processes" > > exit 0 > > fi > > /bin/echo "LDAP CRITICAL - not running, attempted to restart" > > exit 2 > > fi > > > > IT seems to be working great. We shall see... > > Hopefully we get this bug tracted down why the iplanet server keeps > > crashing... > > -Jamin > > > > On Wed, 22 Jan 2003, donavan nelson wrote: > > > > > I'll try this again and include the list :) > > > > > > I would really clean up the following a bit. > > > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > > > This removes the ambiguity of counting the grep process > > > > > > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` > > > > > > Because the way your script is written, the first grep could return 0 and you > > > would fall out and exit with 0. > > > > > > .dn > > > -- > > > Donavan Nelson > > > 4wx Networks > > > www.4wx.net > > > > > > ---------- Original Message ----------- > > > From: Rasmus Plewe > > > To: nagios-users at lists.sourceforge.net > > > Sent: Thu, 23 Jan 2003 00:16:12 +0100 > > > Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > > > > > > > Hello, > > > > > > > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > > > > Hey all, > > > > > I was wondering if any of you have tried to use nrpe to fix > > > > > problems on systems before any paging occurs. Basically I have an LDAP > > > > > service running on a remote machine and I would like to set up nagios > with > > > > > nrpe to try to restart the service when it detects that it has gone down. > > > > > > > > if you don't mind an example without the context, where you have to > > > > extract the principle yourself: > > > > > > > > #!/bin/sh > > > > > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > > > > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > > > > then > > > > /bin/echo "ERS OK - ERS running" > > > > exit 0 > > > > fi > > > > > > > > if [ $ERS -eq 1 ] > > > > then > > > > sleep 20 > > > > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > > > > if [ $ERSLATE -eq 1 ] > > > > then > > > > /etc/rc2.d/S99ers start > > > > else > > > > /bin/echo "ERS OK - ERS running" > > > > exit 0 > > > > fi > > > > /bin/echo "ERS CRITICAL - not running, attempted to restart" > > > > exit 2 > > > > fi > > > > > > > > Regards, > > > > Rasmus > > > > > > > > ------------------------------------------------------- > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > Can't afford IT training? All 2003 ictp students receive > > > > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > > > > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp > > > _______________________________________________ > > > > 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: Scholarships for Techies! > > > Can't afford IT training? All 2003 ictp students receive scholarships. > > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > > www.ictp.com/training/sourceforge.asp > > > _______________________________________________ > > > Nagios-users mailing list > > > Nagios-users at lists.sourceforge.net > > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > > > > ---------------------------------------------------------------------- > > Jesus must have been a party animal that none could match to this > > day. Think about it. When I get slobering drunk I sometimes wake up > > face down in the hallway in the Hokona dorm. He woke up on a cross. > > Man, that hang over must have sucked. No wonder people thought he > > was dead. -- March > > 12th, 1999 > > ---------------------------------------------------------------------- > ------- End of Original Message ------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ______________________________________________________________________ Tautology -- "A tautology is a thing which is tautological." -- Unknown ______________________________________________________________________ ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From jragle at unm.edu Thu Jan 23 02:05:15 2003 From: jragle at unm.edu (Jamin) Date: Wed, 22 Jan 2003 18:05:15 -0700 (MST) Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: References: Message-ID: Oh yeah, by the way, I did this before I put this script in place, but I trigger the script to run via a hack of a notification command and nrpe for the ldap service so I can still run my check_ldap tests to make sure the ldap server is functioning properly. It would probably be better to set up two service checks, one being the network based check_ldap plugin and the other, a check_ldap_procs check to see if the processes are running and restart the server if needed via nrpe (or whatever). My nrpe check only gets called on a service notification event now. I should probably change it to something like I described above so it is more responsive... I made a fake contact person and contact group and everything. muhaha I shouldn't abuse nagios like this... poor poor nagios. I know, I'm sick. Thanks for the help guys. -Jamin On Wed, 22 Jan 2003, Jamin wrote: > Since I'm checking an ldap service (iplanet) I changed the code like so. > Since I could I went ahead and returned the number of supposed processes > running minus the grep count. > > here is my modified script: > #!/bin/sh > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > if [ $ERS -gt 1 ] > then > /bin/echo "LDAP OK - LDAP running $ERS processes" > exit 0 > fi > > if [ $ERS -eq 0 ] > then > sleep 10 > ERSLATE=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > if [ $ERSLATE -eq 0 ] > then > /sbin/service ldap start > else > /bin/echo "LDAP OK - LDAP running $ERS processes" > exit 0 > fi > /bin/echo "LDAP CRITICAL - not running, attempted to restart" > exit 2 > fi > > IT seems to be working great. We shall see... > Hopefully we get this bug tracted down why the iplanet server keeps > crashing... > -Jamin > > > On Wed, 22 Jan 2003, donavan nelson wrote: > > > I'll try this again and include the list :) > > > > I would really clean up the following a bit. > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > This removes the ambiguity of counting the grep process > > > > ERS=`ps -ef | grep ersjsf | grep -v "grep" -c` > > > > Because the way your script is written, the first grep could return 0 and you > > would fall out and exit with 0. > > > > .dn > > -- > > Donavan Nelson > > 4wx Networks > > www.4wx.net > > > > ---------- Original Message ----------- > > From: Rasmus Plewe > > To: nagios-users at lists.sourceforge.net > > Sent: Thu, 23 Jan 2003 00:16:12 +0100 > > Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > > > > > Hello, > > > > > > On Wed, Jan 22, 2003 at 10:23:49AM -0700, Jamin wrote: > > > > Hey all, > > > > I was wondering if any of you have tried to use nrpe to fix > > > > problems on systems before any paging occurs. Basically I have an LDAP > > > > service running on a remote machine and I would like to set up nagios with > > > > nrpe to try to restart the service when it detects that it has gone down. > > > > > > if you don't mind an example without the context, where you have to > > > extract the principle yourself: > > > > > > #!/bin/sh > > > > > > ERS=`ps -eaf | grep ersjsf | wc -l` > > > > > > if [ $ERS -eq 2 ] || [ $ERS -eq 3 ] > > > then > > > /bin/echo "ERS OK - ERS running" > > > exit 0 > > > fi > > > > > > if [ $ERS -eq 1 ] > > > then > > > sleep 20 > > > ERSLATE=`ps -eaf | grep ersjsf | wc -l` > > > if [ $ERSLATE -eq 1 ] > > > then > > > /etc/rc2.d/S99ers start > > > else > > > /bin/echo "ERS OK - ERS running" > > > exit 0 > > > fi > > > /bin/echo "ERS CRITICAL - not running, attempted to restart" > > > exit 2 > > > fi > > > > > > Regards, > > > Rasmus > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Scholarships for Techies! > > > Can't afford IT training? All 2003 ictp students receive > > > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > > > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > > 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: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > Nagios-users mailing list > > Nagios-users at lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > > > ---------------------------------------------------------------------- > Jesus must have been a party animal that none could match to this day. > Think about it. When I get slobering drunk I sometimes wake up face down > in the hallway in the Hokona dorm. He woke up on a cross. Man, that hang > over must have sucked. No wonder people thought he was dead. > -- March 12th, 1999 > ---------------------------------------------------------------------- > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagios-users mailing list > Nagios-users at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ---------------------------------------------------------------------- "I had to perform an act of faith. I had to prove to myself that I was a man. Not just a producing-consuming economical animal ... but a man." -- Robert A. Heinlein ---------------------------------------------------------------------- ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From r1p6os402 at sneakemail.com Thu Jan 23 03:31:58 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 22 Jan 2003 18:31:58 -0800 (PST) Subject: Statusmap error In-Reply-To: <1043278731.1382.37.camel@krull> References: <1043278731.1382.37.camel@krull> Message-ID: <3958-23787@sneakemail.com> On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > I was just going by the recommendations to use gd2 to save cpu time, > but I would think that its not necessary, I edited my hostextinfo.cfg > file to change the statusmap imaged to png..reload/restart still no > go..? I have confirmed that the > physical_html_path=/usr/local/nagios/share/images/logos.. and the > images are there.... If the base PNG images don't work, then you have some problems that are not directly related to GD. Look over your templates closely and follow the chain of references starting at your nagios.cfg file to ensure that everything is where you think it is. I had several problems related to me changing a config file that wasn't even referenced anywhere. ("Now why didn't that change anything? *scratches head*"). As was already suggested, look close for typos. Try reducing the extended host info to its bare minimum. In particular verify: cgi.cfg: should have the line "xedtemplate_config_file=/etc/nagios/hostextinfo.cfg" or something similar hostextinfo.cfg: Simplify this file so it only has one entry similar to: define hostextinfo{ host_name testhost icon_image testhost.png icon_image_alt testhost image statusmap_image testhost.png } You should not have to reload Nagios to see the change-- just reload the CGI in your browser. I doubt your problems are GD related if the PNG files won't display either. -- Steve ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From r1p6os402 at sneakemail.com Thu Jan 23 03:40:22 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 22 Jan 2003 18:40:22 -0800 (PST) Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: References: Message-ID: <2884-74307@sneakemail.com> This is probably drifting dangerously offtopic into "stupid grep tricks", but here's what I use: Instead of: ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` use: ERS=`ps -eaf | grep [n]s-slapd | wc -l` The [] is normally used to match one of many chars. In this case it only matches one. The "[n]" literal shows up in the process list on the grep command. However, [n] evaluated by grep down to become "n" does not match the "[n]" it sees in the process list so your grep won't show up. It'll make more sense if you just try it. ;-) -- Steve On Wed, 22 Jan 2003, Jamin jragle-at-unm.edu |Nagios| wrote: > It does not matter the order in this case. > Test it out. As long as the grep is striped out before you do the word > count, you are cool. > > -Jamin > > On Wed, 22 Jan 2003, donavan nelson wrote: > > > you have that backwards... > > > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > > > should be > > ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` > > > > the second grep "could" make an appearance. ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From rcolley at cardaccess.com.au Thu Jan 23 03:42:13 2003 From: rcolley at cardaccess.com.au (Richard Colley) Date: Thu, 23 Jan 2003 13:42:13 +1100 Subject: nrpe for windows Message-ID: Wouldn't statd be a reasonable alternative to nrpe here. Given it is written in Python, it should be reasonably portable. -----Original Message----- From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] Sent: Thursday, 23 January 2003 11:29 AM To: Nagios List Cc: Carroll, Jim P " "[Contractor] Subject: RE: [Nagios-users] nrpe for windows On Thu, 2003-01-23 at 01:04, Carroll, Jim P [Contractor] wrote: > What sorts of plugins will winnrpe call? And who will create them? The sort plugins is perl scripts, or (console)executables (.exe/.com files). Or anything that can be executed on a windows system. The same that you can use anything to create a plugin on linux as long it can be executed on linux. And these scripts are custum made for me, or i will created them myself. Mostly it will be perl scripts, that need to be started with test data as input. These scripts wil process the (test)data and check the result if it is as expected. These scripts are already made that the output is nagios compatible (1 line of output, and a errorlevel as result). command[check_dummyOK]=c:\winnrpe\check_dummy.exe -CRIT > > I think I missed something somewhere.... > > jc > > > -----Original Message----- > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > Sent: Wednesday, January 22, 2003 5:58 PM > > To: Nagios List > > Cc: Carroll, Jim P [Contractor] > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > On Thu, 2003-01-23 at 00:02, Carroll, Jim P [Contractor] wrote: > > > So in essence, you're going to build some sort of > > monolithic code which is > > > perhaps similar to NSClient in design, but it uses the NRPE > > protocols? > > > > No. Some code like, NRPE. A service that listens at port > > 5666, uses the > > nrpe protocol, uses the same nrpe configfile and also calls external > > file to do a check. > > > > It doesn't nothing more than the nrpe daemon, only windows-service > > compatible. The NSClient runs it own checks and no external > > 'plugin'. > > > > Lennard > > > > > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > Sent: Wednesday, January 22, 2003 4:44 PM > > > > To: Nagios List > > > > Cc: Carroll, Jim P [Contractor] > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > > > > NRPE requires that you run plugins. Are you going to port > > > > all the plugins > > > > > too? > > > > > > > > No, with it could check the things i need on that windows host. > > > > Even if it not would run windows, but a nrpe compatible OS, that > > > > i would write the plugins myself. The task these plugins are > > > > gonne do, are system specific, only for 1 purpose only. > > > > > > > > > > > > > I think many (myself included) would jump at the > > > > opportunity for a more > > > > > homogenous solution (ie, NRPE), but it sounds like quite > > > > the task. More > > > > > power to you if you can do it! > > > > > > > > This plugins would be useless to anybody else, so why bother the > > > > homogenous solution. > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > > > > To: Nagios List > > > > > > Cc: Trace McQuaig > > > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > > > > Why not use NSClient? > > > > > > > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > > > > > > > nsclient could check serveral windows releated stuff. I need > > > > > > to check a few programs install on a windows > > > > machine. I have to > > > > > > test them with different inputs. > > > > > > > > > > > > I have already made perl scripts that can do these checkd > > > > for me, and > > > > > > give a nagios compatible output (one line of comment, and > > > > a correct > > > > > > errorlevel). Now i have to call them local on that > > > > windows machine. > > > > > > > > > > > > If there is no nrpe for windows i will write something > > > > that will be > > > > > > compatibe with current nrpe 1.5 that will run as a > > > > windows service... > > > > > > > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > > > > To: Nagios List > > > > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > > > > > > > A small question.. > > > > > > > is there a nrpe version that can be runned under windows > > > > > > (NT/2000/XP)? > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > > > Can't afford IT training? All 2003 ictp students receive > > > > scholarships. > > > > > > Get hands-on training in Microsoft, Cisco, Sun, > > > > Linux/UNIX, and more. > > > > > > www.ictp.com/training/sourceforge.asp > > > > > > _______________________________________________ > > > > > > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ 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.443 / Virus Database: 248 - Release Date: 10/01/2003 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.443 / Virus Database: 248 - Release Date: 10/01/2003 ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From the_tick at brok3n.org Thu Jan 23 04:15:15 2003 From: the_tick at brok3n.org (Christopher Forsythe) Date: Wed, 22 Jan 2003 21:15:15 -0600 Subject: Help installing on osx Message-ID: Hi, I'm trying to install the plugins on osx. I've got nagios running, but when I try to install the plugins, I get the problem bellow. I have tried to reinstall openssl, it's at version 0.9.6, via fink, but I am just stumped on this. I have tried the version linked on sourceforge, as well as the version of the plugins in the cvs. Any help would be appreciated. I have osx 10.2.3, with fink, if this helps anyone. I appreciate any feedback. Chris: [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# make all Making all in plugins gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap -g -O2 -c check_disk.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap -g -O2 -c utils.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap -g -O2 -c popen.c gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap -g -O2 -c ./getopt.c -o getopt.o gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap -g -O2 -c ./getopt1.c -o getopt1.o ar -r libgetopt.a getopt.o getopt1.o ar: creating archive libgetopt.a gcc -g -O2 -L. -L/sw/bin/openssl/lib -o check_disk check_disk.o utils.o popen. o -lkvm -lgetopt ld: warning -L: directory name (/sw/bin/openssl/lib) does not exist ld: archive: ./libgetopt.a has no table of contents, add one with ranlib(1) (can 't load from it) make[1]: *** [check_disk] Error 1 make: *** [all-recursive] Error 1 [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# make all Making all in plugins gcc -g -O2 -L. -L/sw/bin/openssl/lib -o check_disk check_disk.o utils.o popen. o -lkvm -lgetopt ld: warning -L: directory name (/sw/bin/openssl/lib) does not exist ld: archive: ./libgetopt.a has no table of contents, add one with ranlib(1) (can 't load from it) make[1]: *** [check_disk] Error 1 make: *** [all-recursive] Error 1 [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# whereis opens sl /usr/bin/openssl ------------------------------------------------------- This SF.net email is sponsored by: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From donavan at 4wx.net Thu Jan 23 05:25:58 2003 From: donavan at 4wx.net (donavan nelson) Date: Wed, 22 Jan 2003 22:25:58 -0600 Subject: Stupid Geek Tricks (was Re: attempt recovery on service CRITICAL with nrpe) In-Reply-To: <2884-74307@sneakemail.com> References: <2884-74307@sneakemail.com> Message-ID: <20030123042558.M79268@4wx.net> way cool, now I'd get rid of the wc -l and use the grep -c option and you save another fork. .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Steve Bonds" To: nagios-users at lists.sourceforge.net Sent: Wed, 22 Jan 2003 18:40:22 -0800 (PST) Subject: Re: [Nagios-users] attempt recovery on service CRITICAL with nrpe > This is probably drifting dangerously offtopic into "stupid grep > tricks", but here's what I use: > > Instead of: > > ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` > > use: > > ERS=`ps -eaf | grep [n]s-slapd | wc -l` > > The [] is normally used to match one of many chars. In this case it > only matches one. The "[n]" literal shows up in the process list on > the grep command. However, [n] evaluated by grep down to become "n" > does not match the "[n]" it sees in the process list so your grep > won't show up. > > It'll make more sense if you just try it. ;-) > > -- Steve > > On Wed, 22 Jan 2003, Jamin jragle-at-unm.edu |Nagios| wrote: > > > It does not matter the order in this case. > > Test it out. As long as the grep is striped out before you do the word > > count, you are cool. > > > > -Jamin > > > > On Wed, 22 Jan 2003, donavan nelson wrote: > > > > > you have that backwards... > > > > > > ERS=`ps -eaf | grep -v grep | grep ns-slapd | wc -l` > > > > > > should be > > > ERS=`ps -eaf | grep ns-slapd | grep -v "grep" | wc -l` > > > > > > the second grep "could" make an appearance. > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive > scholarships. Get hands-on training in Microsoft, Cisco, Sun, > Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From nagios at nagios.org Thu Jan 23 06:35:56 2003 From: nagios at nagios.org (Ethan Galstad) Date: Wed, 22 Jan 2003 23:35:56 -0600 Subject: Temperature monitoring using TempTrax In-Reply-To: <88DBF0F5824B31449104920BF89A758F1EBA29@edxmb3.jdnet.deere.com> References: <88DBF0F5824B31449104920BF89A758F1EBA29@edxmb3.jdnet.deere.com> Message-ID: <3E2F2ADC.3837.1CD76F5@localhost> Actually, the Ethernet version doesn't speak SNMP - just HTTP, so you'd have to parse the HTML you get back from the device. I just wrote a plugin to do this for the Model E (Ethernet version), as well as a new plugin for the Model F (serial port version). I've only tested the Model E plugin on a 4-port version, but it should work on the 8- and 16-port versions as well. Both plugins should be available on the Sensatronics website soon, but for now can be found at: http://nagios.sourceforge.net/download/contrib/plugins/ On 22 Jan 2003 at 14:14, Harlan Richard C wrote: > TempTrax now has a Ethernet version of it device. That way you would only > have to use SNMP to talk to it, and everyone should be happy since you are > meeting there requirements. > > -----Original Message----- > From: Pete Dewell [mailto:pete.dewell at VoltEurope.com] > Sent: Wednesday, January 22, 2003 6:27 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Temperature monitoring using TempTrax > > > Hi, > > Is there anybody out there who has a TempTrax unit plugged into a > Windows machine, which then has Nagios monitoring the temperature as an > active check ? If so, how did you get it to work ? > I can see no way of doing this other than writing a Windows prog to > return the data, either as nrpe-type response, or as a passive check. > > I would rather plug the device straight into a Linux box and use nrpe, > but *have* to be able to use Windows. > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Volker.Aust at premiere.de Thu Jan 23 08:58:30 2003 From: Volker.Aust at premiere.de (Volker.Aust at premiere.de) Date: Thu, 23 Jan 2003 08:58:30 +0100 Subject: nrpe for windows Message-ID: Hi Lennard, I have compiled NRPE v1.5 with cygwin, but it is not tested. A quick test starting the daemon from the command line and use the check 'command[check_nrpe]=echo "NRPE is OK"' succeeded. With cygrunsrv you can possibly start it as service in daemon-mode. A second possibility is to install a SSH Service on NT4/W2K and use check_by_ssh. And a third possibility is to install "Remote Shell Service" from the resource kit and use rsh to execute your checks. I do not know, if rsh is returning the error-code of your check. If it does not you have to wrap the rsh-call in a script that parse the return-string and build an error-code on the Nagios host. -vol > -----Original Message----- > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > Sent: Thursday, January 23, 2003 12:58 AM > To: Nagios List > Cc: Carroll, Jim P " "[Contractor] > Subject: RE: [Nagios-users] nrpe for windows > > > On Thu, 2003-01-23 at 00:02, Carroll, Jim P [Contractor] wrote: > > So in essence, you're going to build some sort of > monolithic code which is > > perhaps similar to NSClient in design, but it uses the NRPE > protocols? > > No. Some code like, NRPE. A service that listens at port > 5666, uses the > nrpe protocol, uses the same nrpe configfile and also calls external > file to do a check. > > It doesn't nothing more than the nrpe daemon, only windows-service > compatible. The NSClient runs it own checks and no external 'plugin'. > > Lennard > > > > > > jc > > > > > -----Original Message----- > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > Sent: Wednesday, January 22, 2003 4:44 PM > > > To: Nagios List > > > Cc: Carroll, Jim P [Contractor] > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > On Wed, 2003-01-22 at 20:16, Carroll, Jim P [Contractor] wrote: > > > > NRPE requires that you run plugins. Are you going to port > > > all the plugins > > > > too? > > > > > > No, with it could check the things i need on that windows host. > > > Even if it not would run windows, but a nrpe compatible OS, > > > that i would > > > write the plugins myself. The task these plugins are gonne do, are > > > system specific, only for 1 purpose only. > > > > > > > > > > I think many (myself included) would jump at the > > > opportunity for a more > > > > homogenous solution (ie, NRPE), but it sounds like quite > > > the task. More > > > > power to you if you can do it! > > > > > > This plugins would be useless to anybody else, so why bother the > > > homogenous solution. > > > > > > > > > > > -----Original Message----- > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > Sent: Wednesday, January 22, 2003 12:54 PM > > > > > To: Nagios List > > > > > Cc: Trace McQuaig > > > > > Subject: RE: [Nagios-users] nrpe for windows > > > > > > > > > > > > > > > On Wed, 2003-01-22 at 01:30, Trace McQuaig wrote: > > > > > > Why not use NSClient? > > > > > > > > > > > > http://nsclient.ready2run.nl/ > > > > > > > > > > nsclient could check serveral windows releated stuff. > > > > > I need to check a few programs install on a windows > > > machine. I have to > > > > > test them with different inputs. > > > > > > > > > > I have already made perl scripts that can do these checkd > > > for me, and > > > > > give a nagios compatible output (one line of comment, and > > > a correct > > > > > errorlevel). Now i have to call them local on that > > > windows machine. > > > > > > > > > > If there is no nrpe for windows i will write something > > > that will be > > > > > compatibe with current nrpe 1.5 that will run as a > > > windows service... > > > > > > > > > > But why do something if it is already there.. > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > > > From: Lennard Bakker [mailto:bakkerl at lamp.xs4all.nl] > > > > > > Sent: Tuesday, January 21, 2003 5:55 PM > > > > > > To: Nagios List > > > > > > Subject: [Nagios-users] nrpe for windows > > > > > > > > > > > A small question.. > > > > > > is there a nrpe version that can be runned under windows > > > > > (NT/2000/XP)? > > > > > > > > > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > > > This SF.net email is sponsored by: Scholarships for Techies! > > > > > Can't afford IT training? All 2003 ictp students receive > > > scholarships. > > > > > Get hands-on training in Microsoft, Cisco, Sun, > > > Linux/UNIX, and more. > > > > > www.ictp.com/training/sourceforge.asp > > > > > _______________________________________________ > > > > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! Can't afford IT training? All 2003 ictp students receive scholarships. Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. www.ictp.com/training/sourceforge.asp From Donal.Hunt+nagios-users at dcu.ie Thu Jan 23 10:42:49 2003 From: Donal.Hunt+nagios-users at dcu.ie (Donal Hunt) Date: Thu, 23 Jan 2003 09:42:49 +0000 Subject: Statusmap error References: <1043278731.1382.37.camel@krull> <49188.63.237.201.12.1043280325.squirrel@www.lapseofthought.com> Message-ID: <3E2FB919.26BC257F@dcu.ie> I ran into the same problem over the past few days and i fixed it last night. For the past two days I had tried everything to get images working on the statusmap. Until last night... I had created a PNG using GIMP on Win32 (40 x 40 px) and scp-ed the file over to my test box running nagios. I then converted the PNG to GD2 format using the following command: pngtogd2 pc.png pc.gd2 1 1 (cos i didn't know what the chunk size did). I restarted the nagios process and i still had no images on the statusmap (just the question mark). I searched through the mailing list archives, the FAQ, the documentation for over an hour and finally found a note about pngtogd2. Using the following command: pngtogd2 pc.png pc.gd2 0 1 solved the problem. Nagios seems to what fully uncompressed gd2 images - anything else and it just won't display the image - maybe this is an issue with CPU computation time (i.e. nagios seeing the file is compressed / too big and just not bothering / unable to render it... I've only one issue outstanding and that's a problem with the gd2 image... you can see the problem at this URL: http://www.redbrick.dcu.ie/~redgiant/mangled-image-file.jpg If anyone could advise as to where the problem may be occurring I'ld appreciate it. Regards Donal DCU Dan Rich wrote: > > Jayson Kliger said: > > I was just going by the recommendations to use gd2 to save cpu time, but > > I would think that its not necessary, I edited my hostextinfo.cfg file > > to change the statusmap imaged to png..reload/restart still no go..? I > > have confirmed that the > > physical_html_path=/usr/local/nagios/share/images/logos.. and the images > > are there.... > > I can think of two things to check, since I spent some time trying to > figure out some odd image problems on my system as well. > > The most obvious, make sure your web server has permission to read the files. > > The less obvious, look for errors in your extended information > configuration. If you are using templates, make sure you haven't defined > a template with one name and used it with another. I've found that a > single error in the extended information can cause statusmap (and other > cgis that display images) to behave oddly. For example, I had the > following in my hostextinfo.cfg file earlier today: > define hostextinfo{ > name windowshost > icon_image win40.png > icon_image_alt Windows host > vrml_image win40.jpg > gd2_image win40.gd2 > register 0 > } > define hostextinfo{ > use windows-host > host_name papyrus > icon_image_alt papyrus > } > > The mismatch between the name and use statements caused not only the > windows hosts to not display but for some reason about half of my routers > and switches (the other half displayed fine). Correcting this one typo > made everything that was displaying as a ? display with the correct > graphics. > > Also, if you look at the status summary and click on a host, do you see > the icons there? > > > On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: > >> I am using png images for my icons. Is there a reason to use gd2 > >> instead? I guess I missed that in the setup docs. > >> > >> Greg > >> > >> > -----Original Message----- > >> > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > >> > Sent: Wednesday, January 22, 2003 3:07 PM > >> > To: nagios-users at lists.sourceforge.net > >> > Subject: RE: [Nagios-users] Statusmap error > >> > > >> > > >> > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > >> > |Nagios| wrote: > >> > > >> > > ok..I took the gd2 image that I had and used: gd2topng to convert > >> it back to see if the png image was ok..it was.., so if my > >> situation is the same as what you went through, I should use the > >> gd-1.8.4 "pngtogd2", is it possible to just compile that specific > >> utillity or would I have to compile the whole version ..Thanks > >> again for you advice > > -- > Dan Rich | http://www.employees.org/~drich/ > | "Step up to red alert!" "Are you sure, > sir? > | It means changing the bulb in the sign..." > | - Red Dwarf (BBC) > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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 Ton.Voon at egg.com Thu Jan 23 10:46:20 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Thu, 23 Jan 2003 09:46:20 -0000 Subject: [Nagiosplug-help] Help installing on osx Message-ID: <53104E20A25CD411B556009027E50636064D518C@pnnemp02.pn.egg.com> Check sourceforge for patches: http://sourceforge.net/tracker/?group_id=29880&atid=397599 I've included a set of patches for MacOSX - I think the one you need is the ranlib command in the makefile. Give this a try first then we'll see what the openssl error is. Future replies should go to nagiosplug-help only. > -----Original Message----- > From: Christopher Forsythe [SMTP:the_tick at brok3n.org] > Sent: Thursday, January 23, 2003 3:15 AM > To: nagios-users at lists.sourceforge.net; > nagiosplug-help at lists.sourceforge.net > Subject: [Nagiosplug-help] Help installing on osx > > Hi, > > I'm trying to install the plugins on osx. I've got nagios running, > but > when I try to install the plugins, I get the problem bellow. I have tried > to > reinstall openssl, it's at version 0.9.6, via fink, but I am just stumped > on > this. I have tried the version linked on sourceforge, as well as the > version > of the plugins in the cvs. Any help would be appreciated. I have osx > 10.2.3, > with fink, if this helps anyone. I appreciate any feedback. Chris: > > [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# make > all > Making all in plugins > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap > -g > -O2 -c check_disk.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap > -g > -O2 -c utils.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap > -g > -O2 -c popen.c > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap > -g > -O2 -c ./getopt.c -o getopt.o > gcc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -I/usr/include/ldap > -g > -O2 -c ./getopt1.c -o getopt1.o > ar -r libgetopt.a getopt.o getopt1.o > ar: creating archive libgetopt.a > gcc -g -O2 -L. -L/sw/bin/openssl/lib -o check_disk check_disk.o utils.o > popen. > o -lkvm -lgetopt > ld: warning -L: directory name (/sw/bin/openssl/lib) does not exist > ld: archive: ./libgetopt.a has no table of contents, add one with > ranlib(1) > (can > 't load from it) > make[1]: *** [check_disk] Error 1 > make: *** [all-recursive] Error 1 > [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# make > all > Making all in plugins > gcc -g -O2 -L. -L/sw/bin/openssl/lib -o check_disk check_disk.o utils.o > popen. > o -lkvm -lgetopt > ld: warning -L: directory name (/sw/bin/openssl/lib) does not exist > ld: archive: ./libgetopt.a has no table of contents, add one with > ranlib(1) > (can > 't load from it) > make[1]: *** [check_disk] Error 1 > make: *** [all-recursive] Error 1 > [kermit:chris/Desktop/nagios-plugins-200301222300-snapshot] chris# whereis > opens > sl > /usr/bin/openssl > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > Nagiosplug-help mailing list > Nagiosplug-help at lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagiosplug-help 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 From SchwartzkopffD at Alte-Leipziger.de Thu Jan 23 10:46:33 2003 From: SchwartzkopffD at Alte-Leipziger.de (SchwartzkopffD at Alte-Leipziger.de) Date: Thu, 23 Jan 2003 10:46:33 +0100 Subject: AW: NRPE on Mainframes? Message-ID: Hi Michael - I have ported nrpe 1.7 and send_nsca 2.2 (with and without encrythion) to MVS (OS/390 2.10). I can send you the source and/or the binaries. Regards Dirk Schwartzkopff Alte Leipziger Lebensversicherung Oberursel, Germany -----Originalnachricht----- Von: Searcy, Michael An: 'nagios-users at lists.sourceforge.net' Gesendet: 22.01.2003 19:38 Betreff: [Nagios-users] NRPE on Mainframes? Just curious. Does anyone have experience with porting/running NRPE on MVS or VM? Michael Searcy *E-mail: Michael_Searcy at adp.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From emz at norma.perm.ru Thu Jan 23 11:31:13 2003 From: emz at norma.perm.ru (Eugene M. Zheganin) Date: Thu, 23 Jan 2003 15:31:13 +0500 Subject: postgres 7.3.1 and nagios Message-ID: <64103007562.20030123153113@norma.perm.ru> Hi, all. How can I use postres 7.3.1 with nagios ? I've compiled and installed it instead of nagios v1.b6. Everything were ok with postgres 7.2.1/nagios 1.0b6, but when I do the same thing in complex postres 7.3.1/nagios 1.0 I recieve many error messages in both nagios.log and pgsql.log: nagios.log: ===Cut=== [1042476374] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476389] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476404] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476419] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476434] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476449] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' [1042476464] Error: Could not insert/update status record for program in table 'programstatus' of database 'nagios' ===Cut=== and in pgsql log: ===Cut=== ERROR: Bad timestamp external representation '1042733615' ERROR: Bad timestamp external representation '1042733630' ERROR: Bad timestamp external representation '1042733645' ===Cut=== WBR -- Origin:...and your cities will become your tombs(2:5054/63 at Fidonet) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ice at ford.com Thu Jan 23 13:34:17 2003 From: ice at ford.com (ice) Date: Thu, 23 Jan 2003 13:34:17 +0100 Subject: trend/histogram.cgi produce malformed header Message-ID: <200301231334.17565.ice@ford.com> Hi, after the update from 1.04beta to 1.0 above cgis doesn`t work anylonger. And i don`t no why.... The apache log says: malformed header from script. Bad header= Value is NULL: /usr/local/admin/www/web/nagios/svr/cgi-bin/trends.cgi If i run the cgi within a shell: # ./trends.cgi | grep "Value is NULL" | wc -l # 24 # ./trends.cgi | grep -v "Value is NULL" # Cache-Control: no-store Pragma: no-cache Last-Modified: Thu, 23 Jan 2003 12:29:29 GMT Expires: Thu, 01 Jan 1970 00:00:00 GMT Content-type: text/html Nagios Trends ---------< snip Any Ideas ??? P.S. LD_LIBRARY_PATH is set and statusmap.cgi seems to be working. -- Mit freundlichen Gruessen | with kind regards | Met vriendelijke groeten -- Norbert Bressem Dept D-E/FD-1S UNIX System Administrator Int +49-221-9021148 Ford Werke AG (Pilot Plant Cologne) Fax +49-221-9014045 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Thu Jan 23 14:29:14 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 23 Jan 2003 07:29:14 -0600 Subject: Statusmap error Message-ID: I am setting up Nagios in a new Installation and found an unusual problem. My hosts icons showed up as a question mark. I think this is the unknown.png or perhaps unknown.gdw icon. When I ran nagios -v there were no reported errors, but it turned out one of my hostextinfo entries had a typo. It was a new type of host I had just added and I copied a previous entry and modified it. Well in my modification I left 2 characters from the previous name, causing it not to match the other entries. It was a template definition. Once I fixed the spelling the Icons appeared as before. Just a thought, but you might double check your hostextinfo file, perhaps removing all entries but one. If this works, add them back in until the problem is located. Greg > -----Original Message----- > From: Jayson Kliger [mailto:jayson at sonictrading.com] > Sent: Wednesday, January 22, 2003 5:39 PM > To: Potter, G M (Greg) > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Statusmap error > > > I was just going by the recommendations to use gd2 to save > cpu time, but > I would think that its not necessary, I edited my hostextinfo.cfg file > to change the statusmap imaged to png..reload/restart still no go..? I > have confirmed that the > physical_html_path=/usr/local/nagios/share/images/logos.. and > the images > are there.... > > On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: > > I am using png images for my icons. Is there a reason to > use gd2 instead? > > I guess I missed that in the setup docs. > > > > Greg > > > > > -----Original Message----- > > > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > > > Sent: Wednesday, January 22, 2003 3:07 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: RE: [Nagios-users] Statusmap error > > > > > > > > > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > > > |Nagios| wrote: > > > > > > > ok..I took the gd2 image that I had and used: gd2topng > to convert it > > > > back to see if the png image was ok..it was.., so if my > situation is > > > > the same as what you went through, I should use the gd-1.8.4 > > > > "pngtogd2", is it possible to just compile that > specific utillity or > > > > would I have to compile the whole version ..Thanks again for you > > > > advice > > > > > > > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive > scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, > and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > 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 jgking at packetstorm.org Thu Jan 23 15:24:20 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Thu, 23 Jan 2003 08:24:20 -0600 (CST) Subject: check snmp problem and cant find the reason Message-ID: Ok i have 2 linux systems, one i test on and the other is where i deploy after testing. On the test system everything works just fine. On the production system nagios cannot get a return value from the snmp daemon. OS : Redhat Linux 7.2 SNMP : net-snmp rpm Heres what I have checked so far: 1. Iptables : fine, for kicks i zeroed them out and still got no response 2. Checked the snmpd.conf file. exact same file (different community string though). No problems 3. Tried the net-snmp snmpget and walk commands like so (AS the nagios ID) snmpwalk localhost -c ******* oid which worked fine. 4. So i rechecked my cfg files (checkconfig and services.cfg). Heres an example entry for the services file It works so its not something related to the userid. check_snmp_str!localhost!.1.3.6.1.4.1.2021.10.1.101.1!""!******!"STRING: " I see no problems. 5. So as the nagios id i then run the libexec/check_snmp program passing it the above information. It works as well 6. Recompiled with debug0 and debug5, they dont give that much info. What debug level shows me the function call along with the data passed and the return data recieved? So what could be causing the nagios client to not be able to connect to the snmpdaemon? All im getting back on this box is "SNMP problem - No data recieved from host " Oh i just thought of something else, the test box runs under the nagios id, the production box a different id. In both cases thouhg i can su to the id and run the check_snmp script without a hitch, just not on the production box from nagios. Any ideas? Thanks! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Michael_Searcy at adp.com Thu Jan 23 15:34:33 2003 From: Michael_Searcy at adp.com (Searcy, Michael) Date: Thu, 23 Jan 2003 09:34:33 -0500 Subject: NRPE on Mainframes? Message-ID: <3C779389071CD611A2E10060943F4CC92A8F9A@CPLEXPO1> Dirk, Thanks for the info. If you could, please send the MVS source code. Thanks again. Michael Searcy *E-mail: Michael_Searcy at adp.com -----Original Message----- From: SchwartzkopffD at Alte-Leipziger.de [mailto:SchwartzkopffD at Alte-Leipziger.de] Sent: Thursday, January 23, 2003 1:49 AM To: Michael_Searcy at adp.com Cc: nagios-users at lists.sourceforge.net Subject: AW: [Nagios-users] NRPE on Mainframes? Hi Michael - I have ported nrpe 1.7 and send_nsca 2.2 (with and without encrythion) to MVS (OS/390 2.10). I can send you the source and/or the binaries. Regards Dirk Schwartzkopff Alte Leipziger Lebensversicherung Oberursel, Germany -----Originalnachricht----- Von: Searcy, Michael An: 'nagios-users at lists.sourceforge.net' Gesendet: 22.01.2003 19:38 Betreff: [Nagios-users] NRPE on Mainframes? Just curious. Does anyone have experience with porting/running NRPE on MVS or VM? Michael Searcy *E-mail: Michael_Searcy at adp.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayson at sonictrading.com Thu Jan 23 16:11:08 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 23 Jan 2003 10:11:08 -0500 Subject: Statusmap error In-Reply-To: <49188.63.237.201.12.1043280325.squirrel@www.lapseofthought.com> References: <1043278731.1382.37.camel@krull> <49188.63.237.201.12.1043280325.squirrel@www.lapseofthought.com> Message-ID: <1043334668.976.88.camel@krull> webserver permissions appear to be set, re-re-read the config files, tried to see if there was any thing that I missed, I couldnt find anything..made sure there was no typos in the hostextinfo.cfg, there wasn'nt..changed the hostextinfo.cfg to bare minimum: define hostextinfo{ host_name krull icon_image redhat.png statusmap_image redhat.png } This is the only host that I have in this file, I used just host_name and it displayed the same layout in status map no icon, and the host info window that shows up once you roll the pointer over that host displayed a ?, and no icons in any of the other cgis. Added the icon_image, hostinfo pop up box showed the redhat icon, as well as the other cgi's (except for statusmap and staus summary). Added the png for statusmap, still no change in status map or status summary.... I noticed that in the nagios.cfg under the "Object Confiuration Files" I noticed all of the other cfgs were listed, so I added this to that section: cfg_file=/usr/local/nagios/etc/hostextinfo.cfg and what I got when I tried to access the cgi's, is that most of them gave me a no permissions error, the status map gave me "you have not supplied coordinates..." I could view the tactical overview cgi...so I removed that line and all went back to normal (or at least to where I was) so there is no icons in statusmap or status summary... there is one other thing that I did notice in the cgi.cfg there is a line for back ground... #statusmap_background_image=smbackgound.gd2 now I assumed that this was for you to specify your own "customized background" and that Nagios used maybe built in "default" background...this doesn't need to be specified does it? I really appreciate everyones help on this... Jayson On Wed, 2003-01-22 at 19:05, Dan Rich wrote: > > Jayson Kliger said: > > I was just going by the recommendations to use gd2 to save cpu time, but > > I would think that its not necessary, I edited my hostextinfo.cfg file > > to change the statusmap imaged to png..reload/restart still no go..? I > > have confirmed that the > > physical_html_path=/usr/local/nagios/share/images/logos.. and the images > > are there.... > > I can think of two things to check, since I spent some time trying to > figure out some odd image problems on my system as well. > > The most obvious, make sure your web server has permission to read the files. > > The less obvious, look for errors in your extended information > configuration. If you are using templates, make sure you haven't defined > a template with one name and used it with another. I've found that a > single error in the extended information can cause statusmap (and other > cgis that display images) to behave oddly. For example, I had the > following in my hostextinfo.cfg file earlier today: > define hostextinfo{ > name windowshost > icon_image win40.png > icon_image_alt Windows host > vrml_image win40.jpg > gd2_image win40.gd2 > register 0 > } > define hostextinfo{ > use windows-host > host_name papyrus > icon_image_alt papyrus > } > > The mismatch between the name and use statements caused not only the > windows hosts to not display but for some reason about half of my routers > and switches (the other half displayed fine). Correcting this one typo > made everything that was displaying as a ? display with the correct > graphics. > > Also, if you look at the status summary and click on a host, do you see > the icons there? > > > > On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: > >> I am using png images for my icons. Is there a reason to use gd2 > >> instead? I guess I missed that in the setup docs. > >> > >> Greg > >> > >> > -----Original Message----- > >> > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > >> > Sent: Wednesday, January 22, 2003 3:07 PM > >> > To: nagios-users at lists.sourceforge.net > >> > Subject: RE: [Nagios-users] Statusmap error > >> > > >> > > >> > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > >> > |Nagios| wrote: > >> > > >> > > ok..I took the gd2 image that I had and used: gd2topng to convert > >> it back to see if the png image was ok..it was.., so if my > >> situation is the same as what you went through, I should use the > >> gd-1.8.4 "pngtogd2", is it possible to just compile that specific > >> utillity or would I have to compile the whole version ..Thanks > >> again for you advice > > -- > Dan Rich | http://www.employees.org/~drich/ > | "Step up to red alert!" "Are you sure, > sir? > | It means changing the bulb in the sign..." > | - Red Dwarf (BBC) > > > ------------------------------------------------------- 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 Jan 23 17:11:28 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 23 Jan 2003 11:11:28 -0500 Subject: trend/histogram.cgi produce malformed header References: <200301231334.17565.ice@ford.com> Message-ID: <3E301430.9050108@quadrix.com> Take a look here and see if that gives you a hint to what the problem is. http://www.nagios.org/faqs/viewfaq.php?faq_id=119 Russell Scibetti ice wrote: >Hi, > >after the update from 1.04beta to 1.0 above cgis doesn`t work anylonger. >And i don`t no why.... >The apache log says: > > >malformed header from script. Bad header= Value is NULL: >/usr/local/admin/www/web/nagios/svr/cgi-bin/trends.cgi > > >If i run the cgi within a shell: > > ># ./trends.cgi | grep "Value is NULL" | wc -l ># 24 ># ./trends.cgi | grep -v "Value is NULL" ># Cache-Control: no-store >Pragma: no-cache >Last-Modified: Thu, 23 Jan 2003 12:29:29 GMT >Expires: Thu, 01 Jan 1970 00:00:00 GMT >Content-type: text/html > > > > >Nagios Trends > > > > >---------< snip > > >Any Ideas ??? >P.S. LD_LIBRARY_PATH is set and statusmap.cgi seems to be working. > -- 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 koreth-nagios at midwinter.com Thu Jan 23 18:49:01 2003 From: koreth-nagios at midwinter.com (Steven Grimm) Date: Thu, 23 Jan 2003 09:49:01 -0800 Subject: Passive-only != disabled Message-ID: <20030123094901.A19899@cadge.midwinter.com> I have a bunch of passive-only services (active checks disabled, freshness checks enabled) that get updated by an ssh service on each host. It works fine, but the Web UI seems to make no distinction between a service that's defined as passive-only in the configuration and one for which active checks have been manually disabled using the UI. It shows both types as "disabled," which while technically correct in terms of active checks, is pretty misleading since the passive services are still getting updated as intended. Worse, it draws attention to the passive services, e.g. on the tactical overview page, where there's a big red "N services disabled" block that looks like it's an error indication. Is there any way to get the UI to treat passive-only services as something healthy and not worthy of special attention? -Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dan at remics.net Thu Jan 23 19:38:04 2003 From: dan at remics.net (dan at remics.net) Date: Thu, 23 Jan 2003 13:38:04 -0500 Subject: Command Definitions In-Reply-To: References: Message-ID: I don't know if this is already in the archives (Sourceforge's search engine is currently misbehaving), but I need a little help with host & service command definitions. I was wondering, can command argument macros contain spaces? for instance if I have the following: define command{ command_name check_http command_line /usr/local/nagios/libexec/check_http $ARG1$ } Can I then construct a service definition like this: define service{ host_name host1 service_description Check Virt Server check_command check_http!-H www.mydomain.com -u /testscript.pl ... I know there doesn't seem like a good reason to do this (and that I should just use multiple macro arguments), but I have my reasons. Thanks. Daniel Koffler dan at remics.net http://www.remics.net Tel: 514.497.1411 Fax: 206.600.4642 GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F A874 A2C6 DC83 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Thu Jan 23 21:00:58 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 23 Jan 2003 12:00:58 -0800 (PST) Subject: Command Definitions In-Reply-To: References: Message-ID: <20030123200058.81175.qmail@web21503.mail.yahoo.com> Why not; /usr/local/nagios/libexec/check_http -H $ARG1$ -u $ARG2$ & check_http!www.mydomain.com!testscript.pl dan at remics.net wrote: I don't know if this is already in the archives (Sourceforge's search engine is currently misbehaving), but I need a little help with host & service command definitions. I was wondering, can command argument macros contain spaces? for instance if I have the following: define command{ command_name check_http command_line /usr/local/nagios/libexec/check_http $ARG1$ } Can I then construct a service definition like this: define service{ host_name host1 service_description Check Virt Server check_command check_http!-H www.mydomain.com -u /testscript.pl ... I know there doesn't seem like a good reason to do this (and that I should just use multiple macro arguments), but I have my reasons. Thanks. Daniel Koffler dan at remics.net http://www.remics.net Tel: 514.497.1411 Fax: 206.600.4642 GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F A874 A2C6 DC83 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From Kelly.Setzer at placemark.com Thu Jan 23 21:43:26 2003 From: Kelly.Setzer at placemark.com (Kelly Setzer) Date: Thu, 23 Jan 2003 14:43:26 -0600 Subject: check snmp problem and cant find the reason In-Reply-To: References: Message-ID: <20030123204326.GB6982@placemark.com> > From: jgking at packetstorm.org > > Ok i have 2 linux systems, one i test on and the other is where i deploy > after testing. On the test system everything works just fine. On the > production system nagios cannot get a return value from the snmp daemon. > > 5. So as the nagios id i then run the libexec/check_snmp program passing > it the above information. It works as well > > So what could be causing the nagios client to not be able to connect to > the snmpdaemon? > > All im getting back on this box is "SNMP problem - No data recieved from > host " I am having the same problem - intermittently. I recently added SNMP monitoring to a completely functional nagios installation. I have about 80 services that use check_snmp. On two hosts, I see recurring errors as above, "No data received from host". We have 156 services total that we are monitoring. I've done extensive testing to prove to me that snmpget on the nagios server functions correctly. I also did some load testing against the two problem hosts and was NEVER able to get snmpget to fail. However, by putting a shell-script wrapper around snmpget and using that to log all calls from check_snmp, I am seeing cases where check_snmp *apparently* doesn't get any data back from snmpget. I believe this is an issue with check_snmp. I have tried several versions of the net-snmp/ucd-snmp package on both the nagios server and the affected hosts. That had no effect. I have tried both 1.3.0b2 and 1.3b1 of the nagios-plugins. Persistently "re-scheduling service checks" will cause this problem to disappear, sometimes for several days at a stretch. Kelly ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Thu Jan 23 22:20:14 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Thu, 23 Jan 2003 13:20:14 -0800 (PST) Subject: Command Definitions In-Reply-To: <20030123200058.81175.qmail@web21503.mail.yahoo.com> References: <20030123200058.81175.qmail@web21503.mail.yahoo.com> Message-ID: <18587-52318@sneakemail.com> If spaces could be added it would be helpful for using $ARG1$ to contain a complete optional argument. For example, in this ficticious example suppose a plugin has an "--exclude" option that only some hosts need. Then with embedded spaces you could use: command_line check_service $ARG1$ check_command check_service!--exclude="exluded thing" only on the subset of hosts that needed it without having to define a dedicated command for each possible "--exclude" option. With that said, I haven't tried this to see if it works. ;-) -- Steve On Thu, 23 Jan 2003, Jon Lyons jlyons30-at-yahoo.com |Nagios| wrote: > > Why not; > /usr/local/nagios/libexec/check_http -H $ARG1$ -u $ARG2$ > & > check_http!www.mydomain.com!testscript.pl > dan at remics.net wrote: > I don't know if this is already in the archives (Sourceforge's search engine is currently misbehaving), but I need a little help with host & service command definitions. > > I was wondering, can command argument macros contain spaces? for instance if I have the following: > > define command{ > command_name check_http > command_line /usr/local/nagios/libexec/check_http $ARG1$ > } > > Can I then construct a service definition like this: > > define service{ > host_name host1 > service_description Check Virt Server > check_command check_http!-H www.mydomain.com -u /testscript.pl > ... > > I know there doesn't seem like a good reason to do this (and that I should just use multiple macro arguments), but I have my reasons. > > Thanks. > > Daniel Koffler > dan at remics.net > http://www.remics.net > Tel: 514.497.1411 > Fax: 206.600.4642 > GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F A874 A2C6 DC83 > > > --------------------------------- > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Thu Jan 23 22:25:36 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Thu, 23 Jan 2003 13:25:36 -0800 (PST) Subject: Statusmap error In-Reply-To: <1043334668.976.88.camel@krull> References: <1043334668.976.88.camel@krull> Message-ID: <25885-35544@sneakemail.com> On 23 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > I noticed that in the nagios.cfg under the "Object Confiuration Files" > I noticed all of the other cfgs were listed, so I added this to that > section: cfg_file=/usr/local/nagios/etc/hostextinfo.cfg This config file goes in the cgi.cfg file (the main CGI configuration) and does not go in the main nagios config file. The Nagios core couldn't care less which icons you want to go with which hosts. ;-) Check that this line appears in cgi.cfg: xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg This is documented at: http://nagios.sourceforge.net/docs/1_0/xedtemplate.html "nagios -v" does NOT validate the CGI config and referenced files, so don't count on it to catch typos or other misconfigurations. -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Tong at keen.com Thu Jan 23 22:44:53 2003 From: Tong at keen.com (Tong Young) Date: Thu, 23 Jan 2003 13:44:53 -0800 Subject: Command Definitions Message-ID: <96F2907F6F5F494DA70289DE3B15B11F2810FFEC@keenx02.keencorp.keen.com> You can put spaces in. Check_snmp -H $HOSTADDRESS$ -C blah -o $ARG1$ $ARG2$ $ARG3$ I have that in my config file so I can specify warning and critical on the ones that need it and regex on the ones that need that. So my service has the following: Check_snmp!1.1.1.1.1!-w 500!-c 1000 -----Original Message----- From: Jon Lyons [mailto:jlyons30 at yahoo.com] Sent: Thursday, January 23, 2003 12:01 PM To: dan at remics.net; nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] Command Definitions Why not; /usr/local/nagios/libexec/check_http -H $ARG1$ -u $ARG2$ & check_http!www.mydomain.com!testscript.pl dan at remics.net wrote: I don't know if this is already in the archives (Sourceforge's search engine is currently misbehaving), but I need a little help with host & service command definitions. I was wondering, can command argument macros contain spaces? for instance if I have the following: define command{ command_name check_http command_line /usr/local/nagios/libexec/check_http $ARG1$ } Can I then construct a service definition like this: define service{ host_name host1 service_description Check Virt Server check_command check_http!-H www.mydomain.com -u /testscript.pl ... I know there doesn't seem like a good reason to do this (and that I should just use multiple macro arguments), but I have my reasons. Thanks. Daniel Koffler dan at remics.net http://www.remics.net Tel: 514.497.1411 Fax: 206.600.4642 GPG Key ID: 0xA2C6DC83 Fingerprint: 1FD7 3FDF 8A0D 961F 26A2 3EDA AE8F A874 A2C6 DC83 _____ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jayson at sonictrading.com Thu Jan 23 23:18:22 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 23 Jan 2003 17:18:22 -0500 Subject: Statusmap error In-Reply-To: <25885-35544@sneakemail.com> References: <25885-35544@sneakemail.com> Message-ID: <1043360302.976.463.camel@krull> yes, that line appears in the cgi.cfg file, the only reason I added that line to the nagios cfg, I was just trying different things to maybe isolate the the problem I was having, and again I have double checked the spelling and paths and permissions.... the only two cgi's not showing icons are statusmap and the status summary.. all the other cgi's show the correct icons...once again thanks for your advice On Thu, 2003-01-23 at 16:25, Steve Bonds wrote: > On 23 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > > > I noticed that in the nagios.cfg under the "Object Confiuration Files" > > I noticed all of the other cfgs were listed, so I added this to that > > section: cfg_file=/usr/local/nagios/etc/hostextinfo.cfg > > This config file goes in the cgi.cfg file (the main CGI configuration) and > does not go in the main nagios config file. The Nagios core couldn't care > less which icons you want to go with which hosts. ;-) > > Check that this line appears in cgi.cfg: > > xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg > > This is documented at: > > http://nagios.sourceforge.net/docs/1_0/xedtemplate.html > > "nagios -v" does NOT validate the CGI config and referenced files, so > don't count on it to catch typos or other misconfigurations. > > -- Steve > > > > ------------------------------------------------------- > 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 Daniel_Casey at jbhunt.com Thu Jan 23 23:26:47 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Thu, 23 Jan 2003 16:26:47 -0600 Subject: make all failing on nagios 1.0 Message-ID: This is on an AIX 4.3.3 platform. I've installed Apache, the png, tiff, and jpeg development packages. I've also installed gd and gd-dev, freetype, and zlib. I made it through ./configure o.k., but I've getting some errors during my make all: statusmap.c:42: gd.h: A file or directory in the path name does not exist. statusmap.c:43: gdfonts.h: A file or directory in the path name does not exist. make: 1254-004 The error code from the last command is 1. Stop. make: 1254-004 The error code from the last command is 2. Stop. Thanks. ------------------------------------------------------- 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 Thu Jan 23 23:55:43 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Thu, 23 Jan 2003 16:55:43 -0600 Subject: statusmap.c error during make all Message-ID: This is just a followup to my previous e-mail, here's the output of the ./configure...notice in the middle, it finds the GD lib: loading cache ./config.cache checking for a BSD compatible install... ./install-sh -c checking for gcc... (cached) gcc checking whether the C compiler (gcc ) works... yes checking whether the C compiler (gcc ) is a cross-compiler... no checking whether we are using GNU C... (cached) yes checking whether gcc accepts -g... (cached) yes checking whether make sets ${MAKE}... (cached) yes checking for strip... (cached) /usr/bin/strip checking how to run the C preprocessor... (cached) gcc -E checking for ANSI C header files... (cached) yes checking whether time.h and sys/time.h may both be included... (cached) yes checking for sys/wait.h that is POSIX.1 compatible... (cached) yes checking for ctype.h... (cached) yes checking for dirent.h... (cached) yes checking for errno.h... (cached) yes checking for fcntl.h... (cached) yes checking for getopt.h... (cached) no checking for grp.h... (cached) yes checking for limits.h... (cached) yes checking for math.h... (cached) yes checking for pwd.h... (cached) yes checking for signal.h... (cached) yes checking for strings.h... (cached) yes checking for string.h... (cached) yes checking for syslog.h... (cached) yes checking for unistd.h... (cached) yes checking for uio.h... (cached) no checking for sys/types.h... (cached) yes checking for sys/time.h... (cached) yes checking for sys/resource.h... (cached) yes checking for sys/wait.h... (cached) yes checking for sys/stat.h... (cached) yes checking for sys/ipc.h... (cached) yes checking for sys/msg.h... (cached) yes checking for working const... (cached) yes checking whether struct tm is in sys/time.h or time.h... (cached) time.h checking for tm_zone in struct tm... (cached) no checking for tzname... (cached) yes checking for mode_t... (cached) yes checking for pid_t... (cached) yes checking for size_t... (cached) yes checking return type of signal handlers... (cached) void checking for uid_t in sys/types.h... (cached) yes checking type of array argument to getgroups... (cached) gid_t checking for strdup... (cached) yes checking for strstr... (cached) yes checking for strtoul... (cached) yes checking for initgroups... (cached) yes checking for type of socket size... size_t checking for mail... (cached) /usr/bin/mail Init script directory: /etc/rc.d We'll use default routines (in xdata/xsddefault.*) for status data I/O... We'll use default routines (in xdata/xcddefault.*) for comment data I/O... We'll use template-based routines (in xdata/xedtemplate.*) for extended data I/O... We'll use default routines (in xdata/xrddefault.*) for retention data I/O... We'll use template-based routines (in xdata/xodtemplate.*) for object data I/O... We'll use default routines (in xdata/xpddefault.*) for performance data I/O... We'll use default routines (in xdata/xdddefault.*) for scheduled downtime data I/O... checking for gdImagePng in -lgd (order 1)... (cached) yes GD library was found! checking for traceroute... (cached) /usr/bin/traceroute checking for snprintf... (cached) yes checking for type va_list... yes checking for perl... (cached) /usr/bin/perl creating ./config.status creating Makefile creating subst creating pkginfo creating base/Makefile creating common/Makefile creating contrib/Makefile creating cgi/Makefile creating html/Makefile creating xdata/Makefile creating daemon-init creating html/index.html creating html/side.html creating common/config.h common/config.h is unchanged creating common/snprintf.h common/snprintf.h is unchanged creating base/nagios.h creating cgi/cgiutils.h cgi/cgiutils.h is unchanged Creating sample config files in sample-config/ ... *** 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: /etc/rc.d Web Interface Options: ------------------------ HTML URL: http://localhost/nagios/ CGI URL: http://localhost/nagios/cgi-bin/ Traceroute (used by WAP): /usr/bin/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. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Fri Jan 24 00:33:04 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 23 Jan 2003 18:33:04 -0500 (EST) Subject: check snmp problem and cant find the reason In-Reply-To: <20030123204326.GB6982@placemark.com> References: <20030123204326.GB6982@placemark.com> Message-ID: Can you try running the plugin with a "-v" option (verbose mode - not documented) - it prints the command and the output of the command. -sg On Thu, 23 Jan 2003, Kelly Setzer wrote: > > From: jgking at packetstorm.org > > > > Ok i have 2 linux systems, one i test on and the other is where i deploy > > after testing. On the test system everything works just fine. On the > > production system nagios cannot get a return value from the snmp daemon. > > > > 5. So as the nagios id i then run the libexec/check_snmp program passing > > it the above information. It works as well > > > > So what could be causing the nagios client to not be able to connect to > > the snmpdaemon? > > > > All im getting back on this box is "SNMP problem - No data recieved from > > host " > > I am having the same problem - intermittently. I recently added SNMP > monitoring to a completely functional nagios installation. I have > about 80 services that use check_snmp. On two hosts, I see recurring > errors as above, "No data received from host". We have 156 services > total that we are monitoring. > > I've done extensive testing to prove to me that snmpget on the nagios > server functions correctly. I also did some load testing against the > two problem hosts and was NEVER able to get snmpget to fail. > > However, by putting a shell-script wrapper around snmpget and using that > to log all calls from check_snmp, I am seeing cases where check_snmp > *apparently* doesn't get any data back from snmpget. I believe this > is an issue with check_snmp. > > I have tried several versions of the net-snmp/ucd-snmp package on > both the nagios server and the affected hosts. That had no effect. > I have tried both 1.3.0b2 and 1.3b1 of the nagios-plugins. Persistently > "re-scheduling service checks" will cause this problem to disappear, > sometimes for several days at a stretch. > > Kelly > > > > ------------------------------------------------------- > 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 Fri Jan 24 00:58:45 2003 From: wangee at linuxbe.org (Christian Vanguers) Date: Fri, 24 Jan 2003 00:58:45 +0100 Subject: make all failing on nagios 1.0 In-Reply-To: References: Message-ID: <20030123235845.GA4219@skynet.be> On Thu, Jan 23, 2003 at 04:26:47PM -0600, Daniel_Casey at jbhunt.com wrote: > statusmap.c:42: gd.h: A file or directory in the path name does not exist. > statusmap.c:43: gdfonts.h: A file or directory in the path name does not > exist. Did you provide --with-gd-inc= ??? 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 Jarett_DeAngelis at fujifilm.com Fri Jan 24 01:56:35 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Thu, 23 Jan 2003 19:56:35 -0500 Subject: New install apache authentication problem? Message-ID: (Please reply-all to this so my home email gets any answers as well) Hi all, I should begin by saying "thank you in advance" for any help you can give me. :) I'd also like to add as a warning that I am a complete newbie with respect to network monitoring and even web server configuration. I figured, however, that if I could read, I could configure. Looks like I figured dead wrong. I've gotten this far, but now I seem to be running into a brick wall. I've followed the directions in the manual about enabling authentication in Apache. I have the definitions in httpd.conf from setting up the aliases earlier in the "setting up for web access" directions. The only differences I can find are the fact that the name of the directory is not in quotes here in the "Authentication and Authorization in the CGIs" section and there is no Options None setting in the definition in the "Authentication etc." Do I need two of these definitions? That doesn't sound right... Then it says to create identical .htaccess files in /usr/local/nagios/sbin and /usr/local/nagios/share with contents according to the manual, which I did. Then it says to use htpasswd to create users for htpasswd.users and set their passes, which I did. Now when I attempt to access the webserver it never accepts my password on either of the two users I created. Does there HAVE to be a user called "nagiosadmin?" Is that what I'm doing wrong? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sushah at dc.com Fri Jan 24 07:39:58 2003 From: sushah at dc.com (Shah, Suleman (ZA - Johannesburg)) Date: Fri, 24 Jan 2003 08:39:58 +0200 Subject: New install apache authentication problem? Message-ID: Hello I had similar problems as well, eventually I looked at the error_logs for Apache and found that the permissions were incorrect for the htpasswd file in the /usr/local/nagios/etc/ directory. Hope that helps. -----Original Message----- From: Jarett DeAngelis [mailto:Jarett_DeAngelis at fujifilm.com] Sent: 24 January 2003 02:57 To: Nagios-users at lists.sourceforge.net Cc: starkruzr at starkruzr.com Subject: [Nagios-users] New install apache authentication problem? (Please reply-all to this so my home email gets any answers as well) Hi all, I should begin by saying "thank you in advance" for any help you can give me. :) I'd also like to add as a warning that I am a complete newbie with respect to network monitoring and even web server configuration. I figured, however, that if I could read, I could configure. Looks like I figured dead wrong. I've gotten this far, but now I seem to be running into a brick wall. I've followed the directions in the manual about enabling authentication in Apache. I have the definitions in httpd.conf from setting up the aliases earlier in the "setting up for web access" directions. The only differences I can find are the fact that the name of the directory is not in quotes here in the "Authentication and Authorization in the CGIs" section and there is no Options None setting in the definition in the "Authentication etc." Do I need two of these definitions? That doesn't sound right... Then it says to create identical .htaccess files in /usr/local/nagios/sbin and /usr/local/nagios/share with contents according to the manual, which I did. Then it says to use htpasswd to create users for htpasswd.users and set their passes, which I did. Now when I attempt to access the webserver it never accepts my password on either of the two users I created. Does there HAVE to be a user called "nagiosadmin?" Is that what I'm doing wrong? ------------------------------------------------------- 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 message (including any attachments) contains confidential information intended for a specific individual and purpose, and is protected by law. - If you are not the intended recipient, you should delete this message and are hereby notified that any disclosure, copying, or distribution of this message, or the taking of any action based on it, is strictly prohibited. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Fri Jan 24 09:07:15 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Fri, 24 Jan 2003 09:07:15 +0100 Subject: Redhat 8.0 and trends.c compilation problem Message-ID: <8761c7e4626b497387d88f2a67792463@atlas.cz> Hi, I just compiled nagios 1.0 and i have problem with compileing cgi script trends. in the output of ./configure I have checking for gdImagePng in -lgd (order 1)... (cached) no checking for gdImagePng in -lgd (order 2)... (cached) no checking for gdImagePng in -lgd (order 3)... (cached) no *** GD, PNG, and/or JPEG libraries could not be located... ********* Boutell's GD library is required to compile the statusmap, trends and histogram CGIs. Get it from http://www.boutell.com/gd/, compile it, and use the --with-gd-lib and --with-gd-inc arguments to specify the locations of the GD library and include files. but the gd lib i have installed [zbynek at HCTest nagios-1.0]$ rpm -q gd gd-devel gd-1.8.4-9 gd-devel-1.8.4-9 and the library is in /usr/lib/libgd.a /usr/lib/libgd.so I have tried to download the newest version from http://www.boutell.com/gd/ and compile it but it has no effect on compiling trens.c I was looking in mailing list archive and there was some questions same as my but no answer. Did i miss something? thanks for help ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mat at avedya.com Fri Jan 24 12:53:55 2003 From: mat at avedya.com (Matthieu Parisot) Date: Fri, 24 Jan 2003 12:53:55 +0100 Subject: NSCA and nagios Macros inconsistency In-Reply-To: References: Message-ID: <3E312953.6010107@avedya.com> Hi list, I use nsca to get results from my production environement; I've created a checkcommand like this: # 'export_nsca' command definition define command{ command_name export_nsca command_line echo -e "$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$OUTPUT$" | [..path..]/send_nsca mydomain.com -p myport myconfig } that way I just have to add everytime the same service_definition option : event_handler export_nsca Unhopefully, $SERVICESTATE$ is replaced by a string ("OK", "CRITICAL" ...) and as nsca is waiting for an integer, it does not work. For now, I'm using a shell trick so that it works, but I think that Nagios should definitly has a $SERVICESTATEVALUE$ macro or whatever, which would be usable eveywhere that $SERVICESTATE$ is... The alternative is also to modify nsca and send_nsca, but at the end of the day, it could be more usefull in nagios itself. Any comments / Thoughts ? Matthieu Parisot PS: Please reply on the user list, i've not suscribed to devel list. ------------------------------------------------------- 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 Fri Jan 24 13:26:56 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Fri, 24 Jan 2003 12:26:56 +0000 Subject: New User Message-ID: Hi, I successfully installed redhat8 and gunzipped the files but it said i didnt have gd libraries and the documentation is not clear at all as to what to do with these...or how to run/install them I am new to linux and am using nagios as a project to get to know more about.. I can at least now naviage around linux and find out how to do things but stuck on this GD bit...doesnt linux have support for png/jpegs in it like windows does? I want to believe in open source so lets see how it goes. 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jgking at packetstorm.org Fri Jan 24 13:56:07 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Fri, 24 Jan 2003 06:56:07 -0600 (CST) Subject: statusmap.c error during make all In-Reply-To: References: Message-ID: Check the faq or the docs (i forget which) it lists that along with gd you need the jpg and png libs as well. I had the same issue until I loaded the extra libraries. -Greg On Thu, 23 Jan 2003 Daniel_Casey at jbhunt.com wrote: > This is just a followup to my previous e-mail, here's the output of the > ./configure...notice in the middle, it finds the GD lib: > > loading cache ./config.cache > checking for a BSD compatible install... ./install-sh -c > checking for gcc... (cached) gcc > checking whether the C compiler (gcc ) works... yes > checking whether the C compiler (gcc ) is a cross-compiler... no > checking whether we are using GNU C... (cached) yes > checking whether gcc accepts -g... (cached) yes > checking whether make sets ${MAKE}... (cached) yes > checking for strip... (cached) /usr/bin/strip > checking how to run the C preprocessor... (cached) gcc -E > checking for ANSI C header files... (cached) yes > checking whether time.h and sys/time.h may both be included... (cached) yes > checking for sys/wait.h that is POSIX.1 compatible... (cached) yes > checking for ctype.h... (cached) yes > checking for dirent.h... (cached) yes > checking for errno.h... (cached) yes > checking for fcntl.h... (cached) yes > checking for getopt.h... (cached) no > checking for grp.h... (cached) yes > checking for limits.h... (cached) yes > checking for math.h... (cached) yes > checking for pwd.h... (cached) yes > checking for signal.h... (cached) yes > checking for strings.h... (cached) yes > checking for string.h... (cached) yes > checking for syslog.h... (cached) yes > checking for unistd.h... (cached) yes > checking for uio.h... (cached) no > checking for sys/types.h... (cached) yes > checking for sys/time.h... (cached) yes > checking for sys/resource.h... (cached) yes > checking for sys/wait.h... (cached) yes > checking for sys/stat.h... (cached) yes > checking for sys/ipc.h... (cached) yes > checking for sys/msg.h... (cached) yes > checking for working const... (cached) yes > checking whether struct tm is in sys/time.h or time.h... (cached) time.h > checking for tm_zone in struct tm... (cached) no > checking for tzname... (cached) yes > checking for mode_t... (cached) yes > checking for pid_t... (cached) yes > checking for size_t... (cached) yes > checking return type of signal handlers... (cached) void > checking for uid_t in sys/types.h... (cached) yes > checking type of array argument to getgroups... (cached) gid_t > checking for strdup... (cached) yes > checking for strstr... (cached) yes > checking for strtoul... (cached) yes > checking for initgroups... (cached) yes > checking for type of socket size... size_t > checking for mail... (cached) /usr/bin/mail > Init script directory: /etc/rc.d > We'll use default routines (in xdata/xsddefault.*) for status data I/O... > We'll use default routines (in xdata/xcddefault.*) for comment data I/O... > We'll use template-based routines (in xdata/xedtemplate.*) for extended > data I/O... > We'll use default routines (in xdata/xrddefault.*) for retention data > I/O... > We'll use template-based routines (in xdata/xodtemplate.*) for object data > I/O... > We'll use default routines (in xdata/xpddefault.*) for performance data > I/O... > We'll use default routines (in xdata/xdddefault.*) for scheduled downtime > data I/O... > checking for gdImagePng in -lgd (order 1)... (cached) yes > GD library was found! > checking for traceroute... (cached) /usr/bin/traceroute > checking for snprintf... (cached) yes > checking for type va_list... yes > checking for perl... (cached) /usr/bin/perl > creating ./config.status > creating Makefile > creating subst > creating pkginfo > creating base/Makefile > creating common/Makefile > creating contrib/Makefile > creating cgi/Makefile > creating html/Makefile > creating xdata/Makefile > creating daemon-init > creating html/index.html > creating html/side.html > creating common/config.h > common/config.h is unchanged > creating common/snprintf.h > common/snprintf.h is unchanged > creating base/nagios.h > creating cgi/cgiutils.h > cgi/cgiutils.h is unchanged > > Creating sample config files in sample-config/ ... > > > *** 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: /etc/rc.d > > Web Interface Options: > ------------------------ > HTML URL: http://localhost/nagios/ > CGI URL: http://localhost/nagios/cgi-bin/ > Traceroute (used by WAP): /usr/bin/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. > > > > > ------------------------------------------------------- > 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 jgking at packetstorm.org Fri Jan 24 14:03:23 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Fri, 24 Jan 2003 07:03:23 -0600 (CST) Subject: check snmp problem and cant find the reason In-Reply-To: References: Message-ID: Ok thats strange, the test box the -v switch works and on the production i get an invalid switch. I had downloaded both plugin sets so maybe i have uploaded the wrong one to the production system. On Thu, 23 Jan 2003, Subhendu Ghosh wrote: > > Can you try running the plugin with a "-v" option (verbose mode - not > documented) - it prints the command and the output of the command. > > -sg > > > On Thu, 23 Jan 2003, Kelly Setzer wrote: > > > > From: jgking at packetstorm.org > > > > > > Ok i have 2 linux systems, one i test on and the other is where i deploy > > > after testing. On the test system everything works just fine. On the > > > production system nagios cannot get a return value from the snmp daemon. > > > > > > 5. So as the nagios id i then run the libexec/check_snmp program passing > > > it the above information. It works as well > > > > > > So what could be causing the nagios client to not be able to connect to > > > the snmpdaemon? > > > > > > All im getting back on this box is "SNMP problem - No data recieved from > > > host " > > > > I am having the same problem - intermittently. I recently added SNMP > > monitoring to a completely functional nagios installation. I have > > about 80 services that use check_snmp. On two hosts, I see recurring > > errors as above, "No data received from host". We have 156 services > > total that we are monitoring. > > > > I've done extensive testing to prove to me that snmpget on the nagios > > server functions correctly. I also did some load testing against the > > two problem hosts and was NEVER able to get snmpget to fail. > > > > However, by putting a shell-script wrapper around snmpget and using that > > to log all calls from check_snmp, I am seeing cases where check_snmp > > *apparently* doesn't get any data back from snmpget. I believe this > > is an issue with check_snmp. > > > > I have tried several versions of the net-snmp/ucd-snmp package on > > both the nagios server and the affected hosts. That had no effect. > > I have tried both 1.3.0b2 and 1.3b1 of the nagios-plugins. Persistently > > "re-scheduling service checks" will cause this problem to disappear, > > sometimes for several days at a stretch. > > > > Kelly > > > > > > > > ------------------------------------------------------- > > 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 chris.walker at band-x.net Fri Jan 24 14:11:04 2003 From: chris.walker at band-x.net (Chris Walker) Date: 24 Jan 2003 13:11:04 +0000 Subject: Redhat 8.0 and trends.c compilation problem In-Reply-To: <8761c7e4626b497387d88f2a67792463@atlas.cz> References: <8761c7e4626b497387d88f2a67792463@atlas.cz> Message-ID: <1043413863.2796.142.camel@localhost.localdomain> hi, what does your /etc/ld.so.conf look like make sure it has /usr/lib in it and run ldconfig. cheers, Chris Walker On Fri, 2003-01-24 at 08:07, Zbynek Matousek wrote: > Hi, > I just compiled nagios 1.0 and i have problem with compileing cgi script trends. > > in the output of ./configure I have > > checking for gdImagePng in -lgd (order 1)... (cached) no > checking for gdImagePng in -lgd (order 2)... (cached) no > checking for gdImagePng in -lgd (order 3)... (cached) no > > > *** GD, PNG, and/or JPEG libraries could not be located... ********* > > Boutell's GD library is required to compile the statusmap, trends > and histogram CGIs. Get it from http://www.boutell.com/gd/, compile > it, and use the --with-gd-lib and --with-gd-inc arguments to specify > the locations of the GD library and include files. > > but the gd lib i have installed > [zbynek at HCTest nagios-1.0]$ rpm -q gd gd-devel > gd-1.8.4-9 > gd-devel-1.8.4-9 > > and the library is in > /usr/lib/libgd.a > /usr/lib/libgd.so > > > I have tried to download the newest version from http://www.boutell.com/gd/ and compile it but it has no effect on compiling trens.c > > I was looking in mailing list archive and there was some questions same as my but no answer. > > Did i miss something? > > thanks for 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 Markus.Kraus.hp at sysde.eads.net Fri Jan 24 14:15:50 2003 From: Markus.Kraus.hp at sysde.eads.net (Kraus, Markus) Date: Fri, 24 Jan 2003 14:15:50 +0100 Subject: Bug in check_disk plugin ?! Message-ID: Hello @, after getting wrong warning messages from check_disk I' ve compared different versions of it. I get a warning/ critical status when I have more than xy% free diskspace!!! After reading check_disk --help the confusion is complete. Extract from the actual plugins version 1.3.0 beta 2: -w, --warning=INTEGER Exit with WARNING status if less than INTEGER kilobytes of disk are free -w, --warning=PERCENT% Exit with WARNING status if more than PERCENT of disk space is free ^^^^^^ -c, --critical=INTEGER Exit with CRITICAL status if less than INTEGER kilobytes of disk are free -c, --critical=PERCENT% Exit with CRITCAL status if more than PERCENT of disk space is free ^^^^^^ In an older version of the plugins it's quite vice versa for the percental statement. I never be worry about having to much diskspace ;-) Best regards Markus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Fri Jan 24 14:43:32 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Fri, 24 Jan 2003 14:43:32 +0100 Subject: Redhat 8.0 and trends.c compilation problem Message-ID: <969fde0ef87e4fc09f928b3d6dbb1bad@atlas.cz> >hi, > >what does your /etc/ld.so.conf look like >make sure it has /usr/lib in it and run ldconfig. [matousek at HCTest etc]$ cat ld.so.conf /usr/lib /usr/kerberos/lib /usr/X11R6/lib /usr/lib/qt-3.0.5/lib /opt/oracle/product/9.2.0/lib /usr/local/lib all packages are installed from rpm : [root at HCTest nagios-1.0]# rpm -q gd gd-devel libpng libpng-devel libjpeg libjpeg-devel gd-1.8.4-9 gd-devel-1.8.4-9 libpng-1.2.2-8 libpng-devel-1.2.2-8 libjpeg-6b-21 libjpeg-devel-6b-21 (i manualy run /sbin/ldconfig for be sure) but I still have checking for gdImagePng in -lgd (order 1)... (cached) no checking for gdImagePng in -lgd (order 2)... (cached) no checking for gdImagePng in -lgd (order 3)... (cached) no do I need something more? any other lib? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jayson at sonictrading.com Fri Jan 24 14:41:46 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 24 Jan 2003 08:41:46 -0500 Subject: New install apache authentication problem? In-Reply-To: References: Message-ID: <1043415707.4056.28.camel@krull> I dont know if you are having the same problem as I encountered (everytime I would enter a uid/pass the request box would keep coming back up asking for it again..and never accept) I check the error_log for httpd, and I saw "user permission denied" (or something to that effect)..I checked the cgi.cfg file to make sure my users were in all the authentication lines (and removed hash signs)but it still wasnt authenticating.. so I confirmed what packages were installed for apache, and I noticed that mod_auth_pgsql "basic authentication for Apache Web server using a PostgreSQL Database" .I installed that and it worked, I am running RH8, you didnt specify what you were running but maybe this will help.. -Jay On Thu, 2003-01-23 at 19:56, Jarett DeAngelis wrote: > (Please reply-all to this so my home email gets any answers as well) > > Hi all, > > I should begin by saying "thank you in advance" for any help you can give me. :) I'd also like to add as a warning that I am a complete newbie with respect to network monitoring and even web server configuration. > > I figured, however, that if I could read, I could configure. Looks like I figured dead wrong. I've gotten this far, but now I seem to be running into a brick wall. > > I've followed the directions in the manual about enabling authentication in Apache. I have the definitions in httpd.conf from setting up the aliases earlier in the "setting up for web access" directions. The only differences I can find are the fact that the name of the directory is not in quotes here in the "Authentication and Authorization in the CGIs" section and there is no Options None setting in the definition in the "Authentication etc." Do I need two of these definitions? That doesn't sound right... > > Then it says to create identical .htaccess files in /usr/local/nagios/sbin and /usr/local/nagios/share with contents according to the manual, which I did. > > Then it says to use htpasswd to create users for htpasswd.users and set their passes, which I did. > > Now when I attempt to access the webserver it never accepts my password on either of the two users I created. > > Does there HAVE to be a user called "nagiosadmin?" Is that what I'm doing wrong? > > > > > ------------------------------------------------------- > 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 jsm at inpro.net Fri Jan 24 14:51:04 2003 From: jsm at inpro.net (Jeff McKeon) Date: 24 Jan 2003 08:51:04 -0500 Subject: New User In-Reply-To: References: Message-ID: <1043416264.4704.12.camel@rh80-jsm.telaurus.net> Raj, If you're new to linux you may want to check out www.linuxnewbie.org and get an account there (it's free). It's a great message board for general linux and they cater to newbies. Lots of great information. I believe (but I could be wrong so someone correct me if so) that the gd libraries will be loaded if you install the development packages in RH8.0 from the start menu, goto "system settings" and then packages (and I assume you have a gui install) Jeff On Fri, 2003-01-24 at 07:26, Raj Mudhar wrote: > Hi, > > I successfully installed redhat8 and gunzipped the files but it said i didnt have gd libraries and the documentation is not clear at all as to what to do with these...or how to run/install them > > I am new to linux and am using nagios as a project to get to know more about.. I can at least now naviage around linux and find out how to do things but stuck on this GD bit...doesnt linux have support for png/jpegs in it like windows does? > > I want to believe in open source so lets see how it goes. > > 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: > 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 freddy.frouin at fluxus.net Fri Jan 24 14:52:38 2003 From: freddy.frouin at fluxus.net (Freddy Frouin) Date: Fri, 24 Jan 2003 14:52:38 +0100 Subject: Redhat 8.0 and trends.c compilation problem In-Reply-To: <969fde0ef87e4fc09f928b3d6dbb1bad@atlas.cz> References: <969fde0ef87e4fc09f928b3d6dbb1bad@atlas.cz> Message-ID: <20030124145238.13d22c14.freddy.frouin@fluxus.net> the problem looks like comming from the configure cache ... try : # rm config.cache # ./configure --with-your-favorites-options let me know. On Fri, 24 Jan 2003 14:43:32 +0100 "Zbynek Matousek" wrote: > > > > >hi, > > > >what does your /etc/ld.so.conf look like > >make sure it has /usr/lib in it and run ldconfig. > > [matousek at HCTest etc]$ cat ld.so.conf > /usr/lib > /usr/kerberos/lib > /usr/X11R6/lib > /usr/lib/qt-3.0.5/lib > /opt/oracle/product/9.2.0/lib > /usr/local/lib > > all packages are installed from rpm : > > [root at HCTest nagios-1.0]# rpm -q gd gd-devel libpng libpng-devel libjpeg libjpeg-devel > gd-1.8.4-9 > gd-devel-1.8.4-9 > libpng-1.2.2-8 > libpng-devel-1.2.2-8 > libjpeg-6b-21 > libjpeg-devel-6b-21 > > (i manualy run /sbin/ldconfig for be sure) but I still have > > checking for gdImagePng in -lgd (order 1)... (cached) no > checking for gdImagePng in -lgd (order 2)... (cached) no > checking for gdImagePng in -lgd (order 3)... (cached) no > > do I need something more? any other lib? > > > > > ------------------------------------------------------- > 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 > > -- Freddy Frouin Responsable Supervision British Telecom / Fluxus 30, rue du Ch?teau des Rentiers 75013 Paris T?l: +33 (0)1 44 97 70 00 Fax: +33 (0)1 44 97 70 07 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From xmatous1 at atlas.cz Fri Jan 24 14:56:08 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Fri, 24 Jan 2003 14:56:08 +0100 Subject: Redhat 8.0 and trends.c compilation problem Message-ID: <855617736c1e42249458cc32c9fbe9d7@atlas.cz> >It says: >checking for gdImagePng in -lgd (order 1)... (cached) no >The "(cached)" means it is using your config.cache rather than rerunning the >test. My guess is you installed gd after the first configure. >rm config.cache and then rerun configure. > yes it was it. Thanks! ------------------------------------------------------- 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 Jan 24 15:08:04 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Fri, 24 Jan 2003 15:08:04 +0100 Subject: New User References: Message-ID: <3E3148C4.7EF5EC6B@gcc.dhl.com> rpm -Uvh ftp://fr2.rpmfind.net/linux/redhat/8.0/en/os/i386/RedHat/RPMS/gd-1.8.4-9.i386.rpm Raj Mudhar wrote: > > Hi, > > I successfully installed redhat8 and gunzipped the files but it said i didnt have gd libraries and the documentation is not clear at all as to what to do with these...or how to run/install them > > I am new to linux and am using nagios as a project to get to know more about.. I can at least now naviage around linux and find out how to do things but stuck on this GD bit...doesnt linux have support for png/jpegs in it like windows does? > > I want to believe in open source so lets see how it goes. > > 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: > 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 chris.walker at band-x.net Fri Jan 24 15:16:39 2003 From: chris.walker at band-x.net (Chris Walker) Date: 24 Jan 2003 14:16:39 +0000 Subject: Redhat 8.0 and trends.c compilation problem In-Reply-To: <969fde0ef87e4fc09f928b3d6dbb1bad@atlas.cz> References: <969fde0ef87e4fc09f928b3d6dbb1bad@atlas.cz> Message-ID: <1043417799.6332.3.camel@localhost.localdomain> Hi, Those checks are cached, try deleting the config.cache file. cheers, chris On Fri, 2003-01-24 at 13:43, Zbynek Matousek wrote: > > > >hi, > > > >what does your /etc/ld.so.conf look like > >make sure it has /usr/lib in it and run ldconfig. > > [matousek at HCTest etc]$ cat ld.so.conf > /usr/lib > /usr/kerberos/lib > /usr/X11R6/lib > /usr/lib/qt-3.0.5/lib > /opt/oracle/product/9.2.0/lib > /usr/local/lib > > all packages are installed from rpm : > > [root at HCTest nagios-1.0]# rpm -q gd gd-devel libpng libpng-devel libjpeg libjpeg-devel > gd-1.8.4-9 > gd-devel-1.8.4-9 > libpng-1.2.2-8 > libpng-devel-1.2.2-8 > libjpeg-6b-21 > libjpeg-devel-6b-21 > > (i manualy run /sbin/ldconfig for be sure) but I still have > > checking for gdImagePng in -lgd (order 1)... (cached) no > checking for gdImagePng in -lgd (order 2)... (cached) no > checking for gdImagePng in -lgd (order 3)... (cached) no > > do I need something more? any other lib? > > > > > ------------------------------------------------------- > 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 Fri Jan 24 15:35:25 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 24 Jan 2003 09:35:25 -0500 Subject: Correct Syntax for check_flexlm Message-ID: <5593DA408212D511B0910002A513501F01D288B8@phsexch20.mgh.harvard.edu> 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 Fri Jan 24 16:21:18 2003 From: xmatous1 at atlas.cz (Zbynek Matousek) Date: Fri, 24 Jan 2003 16:21:18 +0100 Subject: New User Message-ID: <08bafd0e967943d188d567d731a48fce@atlas.cz> I has the solved the same problem today. You need more then gd , you need the gd-devel too and many others try write in terminal rpm -q gd gd-devel libpng libpng-devel libjpeg libjpeg-devel (rpm is the redhat software package manager and the params are only to ask if there are these packs) and the output may be like this gd-1.8.4-9 gd-devel-1.8.4-9 libpng-1.2.2-8 libpng-devel-1.2.2-8 libjpeg-6b-21 libjpeg-devel-6b-21 if you dont have some - try www.rpmfind.org to download. BW: you can make nagios without gd - only two cgi scripts will be missing. Try make all and make install (and reed the mailing list archive) Bye >> Hi, >> >> I successfully installed redhat8 and gunzipped the files but it said i didnt have gd libraries and the documentation is not clear at all as to what to do with these...or how to run/install them >> >> I am new to linux and am using nagios as a project to get to know more about.. I can at least now naviage around linux and find out how to do things but stuck on this GD bit...doesnt linux have support for png/jpegs in it like windows does? ------------------------------------------------------- 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 Fri Jan 24 16:23:02 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 09:23:02 -0600 Subject: make all failing on nagios 1.0 Message-ID: That did it...this is what I ended up doing: ./configure --with-gd-inc=/usr/opt/freeware/include --with-png-inc=/usr/opt/freeware/include --with-jpeg-inc=/usr/opt/freeware/include --with-tiff-inc=/usr/opt/freeware/include Thanks. Now I'm on my way to the next step. :-D |---------+----------------------------------------> | | Christian Vanguers | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/23/2003 17:58 | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: Daniel_Casey at jbhunt.com | | cc: nagios-users at lists.sourceforge.net | | Subject: Re: [Nagios-users] make all failing on nagios 1.0 | >----------------------------------------------------------------------------------------------------------------------------------------------| On Thu, Jan 23, 2003 at 04:26:47PM -0600, Daniel_Casey at jbhunt.com wrote: > statusmap.c:42: gd.h: A file or directory in the path name does not exist. > statusmap.c:43: gdfonts.h: A file or directory in the path name does not > exist. Did you provide --with-gd-inc= ??? 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 _______________________________________________ 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 jgking at packetstorm.org Fri Jan 24 17:04:32 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Fri, 24 Jan 2003 10:04:32 -0600 (CST) Subject: check snmp problem and cant find the reason In-Reply-To: References: Message-ID: ok this is getting on the wierd side. After finding out that plugin versions were different on the systems, I updated the production box and still had the same error even though the -v switch does work now. So i wanted to really be sure the code was the same so i compared md5 checksums on both tarballs. Both match. I then look at the check_snmp.c and check_snmp.o files and got this -rwxr-xr-x 1 root root 93038 Jan 21 07:35 check_snmp -rw-r--r-- 1 5313 5313 26494 Nov 15 23:06 check_snmp.c -rw-r--r-- 1 root root 58648 Jan 21 07:35 check_snmp.o -rwxr-xr-x 1 root root 90143 Jan 24 07:07 check_snmp -rw-r--r-- 1 5313 5313 26494 Nov 15 23:06 check_snmp.c -rw-r--r-- 1 root root 63092 Jan 24 07:07 check_snmp.o So i ran a diff on the check_snmp.c file and it all compares fine. As for the other 2 binary files, they dont matchup. There is a hardware difference (first is a single processor and the second is from the production dual processor) and Im going to start looking at the rpm versions for the RedHat base to see what could be causing the filesize diff on the compiled results. To save me some time though, anyone know offhand if the hardware differences would result in the larger binaries? BTW the production box is still "in-dev" and not plugged into a public network and no tripwire alerts have been flagged >From testing check_snmp the "hang" issue gets fixed if i remove the -d option. Heres a before and after [ nagios]$ libexec/check_snmp -v -H localhost -o .1.3.6.1.4.1.2021.10.1.101.1,.1.3.6.1.4.1.2021.10.1.101.2,.1.3.6.1.4.1.2021.10.1.101.3 -s "" -d "STRING: " -C ******* /usr/bin/snmpget -m ALL -v 1 -c ***** localhost:161 .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 .1.3.6.1.4.1.2021.10.1.101.3 enterprises.ucdavis.laTable.laEntry.laErrMessage.1 = enterprises.ucdavis.laTable.laEntry.laErrMessage.2 = enterprises.ucdavis.laTable.laEntry.laErrMessage.3 = SNMP problem - No data recieved from host CMD: /usr/bin/snmpget -m ALL -v 1 -c ****** localhost:161 .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 .1.3.6.1.4.1.2021.10.1.101.3 remove the switch and voila! libexec/check_snmp -v -H localhost -o .1.3.6.1.4.1.2021.10.1.101.1,.1.3.6.1.4.1.2021.10.1.101.2,.1.3.6.1.4.1.2021.10.1.101.3 -s "" -C ***** /usr/bin/snmpget -m ALL -v 1 -c ***** localhost:161 .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 .1.3.6.1.4.1.2021.10.1.101.3 enterprises.ucdavis.laTable.laEntry.laErrMessage.1 = enterprises.ucdavis.laTable.laEntry.laErrMessage.2 = enterprises.ucdavis.laTable.laEntry.laErrMessage.3 = SNMP OK - Anyhow, im gonna start looking at possible rpm variances now :) -Greg On Thu, 23 Jan 2003, Subhendu Ghosh wrote: > > Can you try running the plugin with a "-v" option (verbose mode - not > documented) - it prints the command and the output of the command. > > -sg > > > On Thu, 23 Jan 2003, Kelly Setzer wrote: > > > > From: jgking at packetstorm.org > > > > > > Ok i have 2 linux systems, one i test on and the other is where i deploy > > > after testing. On the test system everything works just fine. On the > > > production system nagios cannot get a return value from the snmp daemon. > > > > > > 5. So as the nagios id i then run the libexec/check_snmp program passing > > > it the above information. It works as well > > > > > > So what could be causing the nagios client to not be able to connect to > > > the snmpdaemon? > > > > > > All im getting back on this box is "SNMP problem - No data recieved from > > > host " > > > > I am having the same problem - intermittently. I recently added SNMP > > monitoring to a completely functional nagios installation. I have > > about 80 services that use check_snmp. On two hosts, I see recurring > > errors as above, "No data received from host". We have 156 services > > total that we are monitoring. > > > > I've done extensive testing to prove to me that snmpget on the nagios > > server functions correctly. I also did some load testing against the > > two problem hosts and was NEVER able to get snmpget to fail. > > > > However, by putting a shell-script wrapper around snmpget and using that > > to log all calls from check_snmp, I am seeing cases where check_snmp > > *apparently* doesn't get any data back from snmpget. I believe this > > is an issue with check_snmp. > > > > I have tried several versions of the net-snmp/ucd-snmp package on > > both the nagios server and the affected hosts. That had no effect. > > I have tried both 1.3.0b2 and 1.3b1 of the nagios-plugins. Persistently > > "re-scheduling service checks" will cause this problem to disappear, > > sometimes for several days at a stretch. > > > > Kelly > > > > > > > > ------------------------------------------------------- > > 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 chris.stankaitis at datawire.net Fri Jan 24 17:30:17 2003 From: chris.stankaitis at datawire.net (Chris Stankaitis) Date: Fri, 24 Jan 2003 11:30:17 -0500 Subject: dependancy's and notification macro's In-Reply-To: References: Message-ID: <3E316A19.7060503@datawire.net> Hey there; We have Nagios setup so that if a parent router goes down the "children" don't notify, so that we only get 1 e-mail about the router rather then 21 from the router + the 20 servers behind it. We would like to have it setup that when a notification goes out that it also lists the dependancies of the host that is down... to say something like "Router A is down the following hosts are dependant on that router - HOST1, HOST2, ETC.." I looked in the docs about USING MACRO's and didn't see a macro for dependancy's Does anyone know if there is a way to get Nagios to notify in the way I have described above?? Thanks --Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From drich at employees.org Fri Jan 24 17:42:45 2003 From: drich at employees.org (Dan Rich) Date: Fri, 24 Jan 2003 08:42:45 -0800 (PST) Subject: Correct Syntax for check_flexlm In-Reply-To: <5593DA408212D511B0910002A513501F01D288B8@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288B8@phsexch20.mgh.harvard.edu> Message-ID: <34656.63.237.201.12.1043426565.squirrel@www.lapseofthought.com> Kaplan, Andrew H. said: > I want to monitor the flexlm server on a Linux box. I am currently > receiving the error message: > > cannot find "lmstat" Take a look in libexec/utils.pm and make sure you have set PATH_TO_LMSTAT. The configure script in the plugins source will try and set this, but can't if it doesn't find lmstat in your path. > Here is what I have so far: > Nagios client machine: > > nrpe.cfg: > > command[check_flexlm]=/usr/local/nagios/libexec/check_flexlm -F > /exports/apps/matlab/etc/lmstat The -F argument isn't use for specifying the path to lmstat, but to the license file. -- Dan Rich | http://www.employees.org/~drich/ | "Step up to red alert!" "Are you sure, sir? | It means changing the bulb in the sign..." | - Red Dwarf (BBC) ------------------------------------------------------- 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 Fri Jan 24 17:52:40 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Fri, 24 Jan 2003 11:52:40 -0500 Subject: New install apache authentication problem? Message-ID: Hi, I am running RH8, actually, but not Postgre... were you? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jayson at sonictrading.com Fri Jan 24 18:35:46 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 24 Jan 2003 12:35:46 -0500 Subject: New install apache authentication problem? In-Reply-To: References: Message-ID: <1043429747.4056.266.camel@krull> no, but once I installed the mod_auth_pgsql in the webserver packages, it worked -Jay On Fri, 2003-01-24 at 11:52, Jarett DeAngelis wrote: > Hi, > > I am running RH8, actually, but not Postgre... were 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 twebster at daksoft.com Fri Jan 24 18:37:10 2003 From: twebster at daksoft.com (twebster at daksoft.com) Date: Fri, 24 Jan 2003 10:37:10 -0700 Subject: State Retention Usage? Message-ID: Our newly upgraded Nagios 1.0 server has been having problems displaying the correct information in the Availability cgi screen. If I select All hosts for Today, most of the host have the correct 99.997 uptime, but many others either repot 100% undetermined or approx 95% down, when in actuality all host should be report up near 100% for the day. In try to figure out a solution, I noticed that if I change the Assume State Retention to no, then all host are reported with accurate %time up. We are using state retention and it was working prior to this upgrade. questions: What does this Assume State Retention button do? How can I fix all my hosts such that they are reported correctly? Tony ------------------------------------------------------- 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 Jan 24 19:06:25 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 24 Jan 2003 12:06:25 -0600 Subject: dependancy's and notification macro's Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F251E@PKDWB03C.ad.sprint.com> The immediate problem with what you propose, is that certain devices (eg, pagers, SMS) are incapable of receiving long messages. One of the design goals of defining parents (IMHO, through observation) was to cut down on notifications. Suggesting to make a trade-off by increasing the verbosity of a single notification seems to me to be a step backwards. But what about this: In the host definition for the router, why not put something meaningful in the alias declaration? Something like: define host { host_name router01 use router-tmpl alias Router for 20 critical hosts address 1.2.3.4 } Alternatively, make alias something like: alias Router for host1-host20 or perhaps: alias Router responsible for sleepless nights Surely you can put something in there which is a pleasant balance between 'brief' and 'informative'. Food for thought. jc > -----Original Message----- > From: Chris Stankaitis [mailto:chris.stankaitis at datawire.net] > Sent: Friday, January 24, 2003 10:30 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] dependancy's and notification macro's > > > > Hey there; > > We have Nagios setup so that if a parent router goes down the > "children" > don't notify, so that we only get 1 e-mail about the router > rather then > 21 from the router + the 20 servers behind it. We would like > to have it > setup that when a notification goes out that it also lists the > dependancies of the host that is down... to say something like > > "Router A is down the following hosts are dependant on that router - > HOST1, HOST2, ETC.." > > I looked in the docs about USING MACRO's and didn't see a macro for > dependancy's > > Does anyone know if there is a way to get Nagios to notify in > the way I > have described above?? > > Thanks > > > --Chris > > > > ------------------------------------------------------- > 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 Kelly.Setzer at placemark.com Fri Jan 24 19:47:16 2003 From: Kelly.Setzer at placemark.com (Kelly Setzer) Date: Fri, 24 Jan 2003 12:47:16 -0600 Subject: check snmp problem and cant find the reason In-Reply-To: References: Message-ID: <20030124184716.GE14137@placemark.com> > Date: Thu, 23 Jan 2003 18:33:04 -0500 (EST) > From: Subhendu Ghosh > > Can you try running the plugin with a "-v" option (verbose mode - not > documented) - it prints the command and the output of the command. /opt/net-snmp/bin/snmpget -O Q -m ALL -v 1 -c community athena:161 laLoad.2 UCD-SNMP-MIB::laLoad.2 = 0.01 SNMP OK - 0.01 This is an intermittent problem. I did the following to prove to me that snmpget and snmpd on the target box is reliable: while [ 1 ]; do /check_snmp ../etc/checkcommands.cfg -H athena -t 15 -o laLoad.2 -v done I let it run for several minutes and observed no failures. Kelly ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Fri Jan 24 19:58:36 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 24 Jan 2003 13:58:36 -0500 Subject: Changing the Community Name in net-snmp Message-ID: <5593DA408212D511B0910002A513501F01D288BA@phsexch20.mgh.harvard.edu> Question: After net-snmp has been installed on the Nagios server, what is the easiest way to change the community name it uses? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Fri Jan 24 20:07:52 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 24 Jan 2003 14:07:52 -0500 Subject: Changing the Community Name in net-snmp Message-ID: <5593DA408212D511B0910002A513501F01D288BB@phsexch20.mgh.harvard.edu> This is an update to the e-mail I previously sent out. Correct me if I'm wrong, but the answer to the question I asked is within the checkcommands.cfg file. The value after the -C option should be the community name. Correct? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tolerance at dotsystems.net Fri Jan 24 20:37:52 2003 From: tolerance at dotsystems.net (Matthew Baltera) Date: Fri, 24 Jan 2003 19:37:52 +0000 Subject: Fw: Statusmap.cgi missing from /usr/local/nagios/sbin ?? Message-ID: <20030124.89P.17654800@mail.dotsystems.net> forward - original mail: From "Matthew Baltera" Date 01/24/2003 - 01:24:40 pm Subject Statusmap.cgi missing from /usr/local/nagios/sbin ?? -------------- next part -------------- An embedded message was scrubbed... From: "Matthew Baltera" Subject: Statusmap.cgi missing from /usr/local/nagios/sbin ?? Date: Fri, 24 Jan 2003 19:24:39 +0000 Size: 1956 URL: From mchurch at corillian.com Fri Jan 24 20:52:33 2003 From: mchurch at corillian.com (Michael Church) Date: Fri, 24 Jan 2003 11:52:33 -0800 Subject: Host Availability Report Message-ID: most of my reports always have the majority % of time being undetermined. I've looked, poked, and prodded to find out why and I can't. We have been running nagios for about 2 months and still get the same results. Does anyone know why this is? -------------- next part -------------- An HTML attachment was scrubbed... URL: From kurt at twoface.shiftmanager.net Fri Jan 24 21:09:11 2003 From: kurt at twoface.shiftmanager.net (Kurt Werle) Date: Fri, 24 Jan 2003 12:09:11 -0800 (PST) Subject: Nagios config -- not xml? In-Reply-To: References: Message-ID: <20030124120711.Y48203-100000@twoface.shiftmanager.net> I've recently installed nagios and really like it. That said, configuring it is a royal pain. I'm wondering why the config files are the traditional unix block style -- it seems like it would be really nice to have it in xml. This would make it much easier to write configuration tools. Thanks for a great tool, Kurt --- kwerle at pobox.com http://www.pobox.com/~kwerle/ Tired of spam? Control your Mailserver (or .forward)? http://tess.sf.net ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From chris at new.net Fri Jan 24 21:31:56 2003 From: chris at new.net (Chris Steinke) Date: Fri, 24 Jan 2003 12:31:56 -0800 Subject: syntax errors compiling snmppd module Message-ID: <3E31A2BC.6030405@new.net> Hi, I'm not sure if this is an apprpriate forum/list for asking questions about modules. I thought I would bug the list before bugging the author though. I am trying to compile the SNMPPD module under FreeBSD-4.7-current with gcc-2.95.4 with net-snmp-5.0.7 . This is to be used with the latest edition of Nagios. I get the following error during a 'gmake'. gmake[1]: Entering directory `/usr/local/src/snmppd-0.4.1/snmppd' gcc -DHAVE_CONFIG_H -I. -I. -I../config -I/usr/local/include -I/usr/local/include/ucd-snmp -g -O2 -c snmppd_snmp.c In file included from snmppd_snmp.c:2: snmppd.h:51: syntax error before `pthread_t' gmake[1]: *** [snmppd_snmp.o] Error 1 gmake[1]: Leaving directory `/usr/local/src/snmppd-0.4.1/snmppd' gmake: *** [all-recursive] Error 1 Has anyone else had this problem under FreeBSD or gotten around this? The code looks fine, so I'm not sure what is happening, maybe something I'm missing? Thanks in advance and apologies if this list is innappropriate. Chris ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twebster at daksoft.com Fri Jan 24 21:41:34 2003 From: twebster at daksoft.com (twebster at daksoft.com) Date: Fri, 24 Jan 2003 13:41:34 -0700 Subject: Host Availability Report Message-ID: We are also have this problem, please pass on any information you may receive. thanks Tony |---------+----------------------------------------> | | "Michael Church" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/24/2003 12:52 PM | | | | |---------+----------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] Host Availability Report | >------------------------------------------------------------------------------------------------------------------------------| most of my reports always have the majority % of time being undetermined. I've looked, poked, and prodded to find out why and I can't. We have been running nagios for about 2 months and still get the same results. Does anyone know why this is? ------------------------------------------------------- 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 Fri Jan 24 21:42:14 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 14:42:14 -0600 Subject: unable to access online service detail Message-ID: If I click on Tactical Overview I get this in the browser: It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. I put the following in the httpd.conf per the documentation AllowOverride AuthConfig order allow,deny allow from all Options ExecCGI And AllowOverride AuthConfig order allow,deny allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user I created the .htaccess file and ran the htpasswd command as described. I'm never prompted for a user/pass when I click through the pages. Just for grins, I commented out all that stuff I put in and restarted the webserver, I'm still getting the error. Does the order/placement matter for these? Also, just an FYI, the archives appear to be down. I click the link to here: http://sourceforge.net/mailarchive/forum.php?forum_id=1873 And get an "ERROR Forum not found" ------------------------------------------------------- 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 Fri Jan 24 21:44:17 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 14:44:17 -0600 Subject: Nagios config -- not xml? Message-ID: I second your first comment about it being a pain. But, not knowing too much about XML, how would that make it easier? Is there something about XML that would be particularly useful? Would you still have to have all the different .cfg files or would that change with XML? I understand that XML is "self-describing" data, correct? How would that fit into configuring Nagios? Thanks. |---------+----------------------------------------> | | Kurt Werle | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/24/2003 14:09 | | | Please respond to Kurt Werle | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: nagios-users at lists.sourceforge.net | | cc: | | Subject: [Nagios-users] Nagios config -- not xml? | >----------------------------------------------------------------------------------------------------------------------------------------------| I've recently installed nagios and really like it. That said, configuring it is a royal pain. I'm wondering why the config files are the traditional unix block style -- it seems like it would be really nice to have it in xml. This would make it much easier to write configuration tools. Thanks for a great tool, Kurt --- kwerle at pobox.com http://www.pobox.com/~kwerle/ Tired of spam? Control your Mailserver (or .forward)? http://tess.sf.net ------------------------------------------------------- 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 Daniel_Casey at jbhunt.com Fri Jan 24 21:54:49 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 14:54:49 -0600 Subject: cgi execution authentication Message-ID: I have changed the cgi.cfg use_authentication to 0 so now I can run the CGI's. But, any idea what was happening before? With that set to 1, why couldn't I access any of the CGI generated pages? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Fri Jan 24 22:16:45 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 24 Jan 2003 16:16:45 -0500 Subject: Correct Syntax for check_flexlm Message-ID: <5593DA408212D511B0910002A513501F01D288BC@phsexch20.mgh.harvard.edu> > -----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 mchurch at corillian.com Fri Jan 24 22:22:44 2003 From: mchurch at corillian.com (Michael Church) Date: Fri, 24 Jan 2003 13:22:44 -0800 Subject: cgi execution authentication Message-ID: I had this problem to. If you have created your .htaccess files make sure that they are readable by the webserver same with your htpasswd.users file. This haunted me for 2 days. Michael E. Church -----Original Message----- From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] Sent: Friday, January 24, 2003 12:55 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] cgi execution authentication I have changed the cgi.cfg use_authentication to 0 so now I can run the CGI's. But, any idea what was happening before? With that set to 1, why couldn't I access any of the CGI generated pages? ------------------------------------------------------- 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 brandon at roguetrader.com Fri Jan 24 22:27:31 2003 From: brandon at roguetrader.com (Brandon Gillespie) Date: Fri, 24 Jan 2003 14:27:31 -0700 Subject: Nagios config -- not xml? In-Reply-To: References: Message-ID: <3E31AFC3.1020604@roguetrader.com> Daniel_Casey at jbhunt.com wrote: > I second your first comment about it being a pain. But, not knowing too > much about XML, how would that make it > easier? Is there something about XML that would be particularly useful? > Would you still have to have all the > different .cfg files or would that change with XML? > > I understand that XML is "self-describing" data, correct? How would that > fit into configuring Nagios? I think the more important point was 'being able to write third party tools to edit the config files'. By being in XML you just load an XML parser and you are done. As it is now, you have to have custom magic to understand the current format, which is not reusable anywhere else. I do concur, XML would be VERY nice. BTW, are there any other admin tools for Nagios? I used one on netsaint, which is not available for nagios. I'm not liking the nagat one currently available--it doesn't import everything I've typed in, and I find the import/export process cumbersome and annoying. -Brandon Gillespie ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From gillespie at iomega.com Fri Jan 24 22:34:43 2003 From: gillespie at iomega.com (Brandon Gillespie) Date: Fri, 24 Jan 2003 14:34:43 -0700 Subject: multiple host names per host Message-ID: <3E31B173.6080507@iomega.com> Is it possible or planned to be possible to have mulitple host names allowed per host? In our environment we ALWAYS use service names, so a host will have the base host name 'musashi' on one IP address, but will have three or four other service addresses, with things like 'www', 'apps' etc. I dont like having to create seperate host entries for each one--they are, afterall, on the same host. perhaps instead of host_name, a host_names=musashi,www,apps or some such would work. This way in services I can direct http tests to the www service address, and some other test against the apps address, and system level tests against the base nodename address. -Brandon Gillespie ------------------------------------------------------- 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 Fri Jan 24 22:31:05 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 15:31:05 -0600 Subject: cgi execution authentication Message-ID: This is what is shows: -rw-r--r-- 1 root system 109 Jan 24 10:59 old.htaccess It was created as root, but I have read access for everyone. |---------+----------------------------> | | "Michael Church" | | | | | | | | | 01/24/2003 15:22 | | | | |---------+----------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: , | | cc: | | Subject: RE: [Nagios-users] cgi execution authentication | >----------------------------------------------------------------------------------------------------------------------------------------------| I had this problem to. If you have created your .htaccess files make sure that they are readable by the webserver same with your htpasswd.users file. This haunted me for 2 days. Michael E. Church -----Original Message----- From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] Sent: Friday, January 24, 2003 12:55 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] cgi execution authentication I have changed the cgi.cfg use_authentication to 0 so now I can run the CGI's. But, any idea what was happening before? With that set to 1, why couldn't I access any of the CGI generated pages? ------------------------------------------------------- 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 Jan 24 22:24:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 24 Jan 2003 15:24:10 -0600 Subject: unable to access online service detail Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2520@PKDWB03C.ad.sprint.com> You've stated that the following block is in your httpd.conf file: AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users require valid-user Don't do that. Put those lines in .htaccess for /usr/local/nagios/sbin/.htaccess as well as /usr/local/nagios/share/.htaccess and that they're world readable (and that the directories they reside in are world readable/executable). If that has no effect, take a look at your Apache error logfile for ideas. jc > -----Original Message----- > From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] > Sent: Friday, January 24, 2003 2:42 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] unable to access online service detail > > > If I click on Tactical Overview I get this in the browser: > > It appears as though you do not have permission to view > information for > any of the services you requested... > If you believe this is an error, check the HTTP server > authentication > requirements for accessing this CGI > and check the authorization options in your CGI > configuration file. > > I put the following in the httpd.conf per the documentation > > > AllowOverride AuthConfig > order allow,deny > allow from all > Options ExecCGI > > > And > > > AllowOverride AuthConfig > order allow,deny > allow from all > > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/local/nagios/etc/htpasswd.users > require valid-user > > I created the .htaccess file and ran the htpasswd command as > described. > > I'm never prompted for a user/pass when I click through the > pages. Just > for grins, I commented out all that > stuff I put in and restarted the webserver, I'm still getting > the error. > > Does the order/placement matter for these? > > > Also, just an FYI, the archives appear to be down. I click > the link to > here: > > http://sourceforge.net/mailarchive/forum.php?forum_id=1873 > > And get an "ERROR Forum not found" > > > > > ------------------------------------------------------- > 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 Fri Jan 24 22:47:04 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 24 Jan 2003 16:47:04 -0500 (EST) Subject: Nagios config -- not xml? In-Reply-To: <20030124120711.Y48203-100000@twoface.shiftmanager.net> References: <20030124120711.Y48203-100000@twoface.shiftmanager.net> Message-ID: On Fri, 24 Jan 2003, Kurt Werle wrote: > I've recently installed nagios and really like it. That said, configuring > it is a royal pain. I'm wondering why the config files are the > traditional unix block style -- it seems like it would be really nice to > have it in xml. This would make it much easier to write configuration > tools. > > Thanks for a great tool, > Kurt > --- XML adds another layer of coding complexity. If you are planning on generating the config files by scripts, generating XML versus unix block makes no difference. If you are editng the config files by hand - XML is more keystrokes ;) -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From steve at sliderule.demon.co.uk Fri Jan 24 22:46:57 2003 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Fri, 24 Jan 2003 21:46:57 +0000 Subject: Nagios config -- not xml? References: <3E31AFC3.1020604@roguetrader.com> Message-ID: <3E31B451.100CE98B@sliderule.demon.co.uk> Brandon Gillespie wrote: > > Daniel_Casey at jbhunt.com wrote: > > I second your first comment about it being a pain. But, not knowing too > > much about XML, how would that make it > > easier? Is there something about XML that would be particularly useful? > > Would you still have to have all the > > different .cfg files or would that change with XML? > > > > I understand that XML is "self-describing" data, correct? How would that > > fit into configuring Nagios? > > I think the more important point was 'being able to write third party > tools to edit the config files'. By being in XML you just load an XML > parser and you are done. As it is now, you have to have custom magic to > understand the current format, which is not reusable anywhere else. > > I do concur, XML would be VERY nice. > But for those of us who just configure it, having to type all the xml froth would be a royal pain. Also the present system is self describing, the description is at the beginning of the line. The context is in the name of the config. file, if you use multiple files and the namespace is nagios. Steve. > BTW, are there any other admin tools for Nagios? I used one on > netsaint, which is not available for nagios. I'm not liking the nagat > one currently available--it doesn't import everything I've typed in, and > I find the import/export process cumbersome and annoying. > > -Brandon Gillespie > > ------------------------------------------------------- > 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 -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Fri Jan 24 22:43:05 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 24 Jan 2003 16:43:05 -0500 (EST) Subject: Correct Syntax for check_flexlm In-Reply-To: <5593DA408212D511B0910002A513501F01D288BC@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288BC@phsexch20.mgh.harvard.edu> Message-ID: 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 > _______________________________________________ > 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 Daniel_Casey at jbhunt.com Fri Jan 24 22:41:24 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 15:41:24 -0600 Subject: executing local plugins on remote servers... Message-ID: Am I correct in thinking that you have to have one of the following to execute the plugins on remote servers: This will let you have the plugins on the main server, but execute them locally and remotely? Nagios Remote Plugin Executor (NRPE) 1.8 And with these, you have to have the plugins on each server? Nagios Java System (nsjs) Nagios Service Check Acceptor (NSCA) 2.2 Anyone have any thoughts/prefs? I like the idea of using local commands/plugins to check remote resources. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Fri Jan 24 22:46:13 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Fri, 24 Jan 2003 16:46:13 -0500 Subject: Changing the Community Name in net-snmp Message-ID: <5593DA408212D511B0910002A513501F01D288BE@phsexch20.mgh.harvard.edu> -----Original Message----- From: Kaplan, Andrew H. Sent: Friday, January 24, 2003 1:59 PM To: Nagios-Users (E-mail) Subject: [Nagios-users] Changing the Community Name in net-snmp Question: After net-snmp has been installed on the Nagios server, what is the easiest way to change the community name it uses? ------------------------------------------------------- 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 Fri Jan 24 22:50:36 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 24 Jan 2003 16:50:36 -0500 (EST) Subject: check snmp problem and cant find the reason In-Reply-To: <20030124184716.GE14137@placemark.com> References: <20030124184716.GE14137@placemark.com> Message-ID: On Fri, 24 Jan 2003, Kelly Setzer wrote: > > Date: Thu, 23 Jan 2003 18:33:04 -0500 (EST) > > From: Subhendu Ghosh > > > > Can you try running the plugin with a "-v" option (verbose mode - not > > documented) - it prints the command and the output of the command. > > /opt/net-snmp/bin/snmpget -O Q -m ALL -v 1 -c community athena:161 > laLoad.2 > UCD-SNMP-MIB::laLoad.2 = 0.01 > > SNMP OK - 0.01 > > > This is an intermittent problem. I did the following to prove to me > that snmpget and snmpd on the target box is reliable: > > while [ 1 ]; do > /check_snmp ../etc/checkcommands.cfg -H athena -t 15 -o laLoad.2 -v > done > > > I let it run for several minutes and observed no failures. > > Kelly > It may be a load/timeout issue on the nagios server. Try using the -m "" option (not loading the MIB files) and using the actual oid. -- -sg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From groups at thinlayer.co.uk Fri Jan 24 22:49:29 2003 From: groups at thinlayer.co.uk (Thinlayer) Date: 24 Jan 2003 21:49:29 +0000 Subject: Nagios config -- not xml? In-Reply-To: <20030124120711.Y48203-100000@twoface.shiftmanager.net> References: <20030124120711.Y48203-100000@twoface.shiftmanager.net> Message-ID: <1043444969.9627.1677.camel@servalon> so obvious, yet brilliant! i second that. Ethan? On Fri, 2003-01-24 at 20:09, Kurt Werle wrote: > I've recently installed nagios and really like it. That said, configuring > it is a royal pain. I'm wondering why the config files are the > traditional unix block style -- it seems like it would be really nice to > have it in xml. This would make it much easier to write configuration > tools. > > Thanks for a great tool, > Kurt > --- > kwerle at pobox.com > http://www.pobox.com/~kwerle/ > Tired of spam? Control your Mailserver (or .forward)? http://tess.sf.net > > > > ------------------------------------------------------- > 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 Fri Jan 24 22:58:52 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 24 Jan 2003 16:58:52 -0500 (EST) Subject: multiple host names per host In-Reply-To: <3E31B173.6080507@iomega.com> References: <3E31B173.6080507@iomega.com> Message-ID: On Fri, 24 Jan 2003, Brandon Gillespie wrote: > Is it possible or planned to be possible to have mulitple host names > allowed per host? In our environment we ALWAYS use service names, so a > host will have the base host name 'musashi' on one IP address, but will > have three or four other service addresses, with things like 'www', > 'apps' etc. I dont like having to create seperate host entries for each > one--they are, afterall, on the same host. perhaps instead of > host_name, a host_names=musashi,www,apps or some such would work. This > way in services I can direct http tests to the www service address, and > some other test against the apps address, and system level tests against > the base nodename address. > > -Brandon Gillespie > No - use the base host name for the host definition define new commands that take one of the ARGx macros instead of the HOSTADDRESS macro defines service checks of the host using the ARGx macro to pass the appropriate address. -- -sg ------------------------------------------------------- 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 Jan 24 23:03:05 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 24 Jan 2003 14:03:05 -0800 (PST) Subject: # CONTEXT-SENSITIVE HELP? Cgi.cfg In-Reply-To: References: Message-ID: <20030124220305.54889.qmail@web21505.mail.yahoo.com> Anyone have any help html files?! # CONTEXT-SENSITIVE HELP # This option determines whether or not a context-sensitive # help icon will be displayed for most of the CGIs. # Values: 0 = disables context-sensitive help # 1 = enables context-sensitive help show_context_help=1 --------------------------------- Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now -------------- next part -------------- An HTML attachment was scrubbed... URL: From jlyons30 at yahoo.com Fri Jan 24 23:12:16 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Fri, 24 Jan 2003 14:12:16 -0800 (PST) Subject: Host Availability Report In-Reply-To: References: Message-ID: <20030124221216.29449.qmail@web21508.mail.yahoo.com> Is this just for the Hosts? Change the First assumed host state: to UP.. Remember, hosts are only checked when a service fails, (ie hosts are rarely checked). Service should give the information you're looking for.... twebster at daksoft.com wrote: We are also have this problem, please pass on any information you may receive. thanks Tony |---------+----------------------------------------> | | "Michael Church" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/24/2003 12:52 PM | | | | |---------+----------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] Host Availability Report | >------------------------------------------------------------------------------------------------------------------------------| most of my reports always have the majority % of time being undetermined. I've looked, poked, and prodded to find out why and I can't. We have been running nagios for about 2 months and still get the same results. Does anyone know why this is? ------------------------------------------------------- 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 jcarro10 at sprintspectrum.com Fri Jan 24 23:06:46 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 24 Jan 2003 16:06:46 -0600 Subject: multiple host names per host Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E138A@PKDWB03C.ad.sprint.com> The solution is to skip the 'address' definition in the host declaration, and leverage hostname/alias entries using either /etc/hosts or DNS. jc > -----Original Message----- > From: Brandon Gillespie [mailto:gillespie at iomega.com] > Sent: Friday, January 24, 2003 3:35 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] multiple host names per host > > > Is it possible or planned to be possible to have mulitple host names > allowed per host? In our environment we ALWAYS use service > names, so a > host will have the base host name 'musashi' on one IP > address, but will > have three or four other service addresses, with things like 'www', > 'apps' etc. I dont like having to create seperate host > entries for each > one--they are, afterall, on the same host. perhaps instead of > host_name, a host_names=musashi,www,apps or some such would > work. This > way in services I can direct http tests to the www service > address, and > some other test against the apps address, and system level > tests against > the base nodename address. > > -Brandon Gillespie > > > > ------------------------------------------------------- > 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 at szczygiel.net Thu Jan 23 23:28:30 2003 From: stanley at szczygiel.net (Stanislaw Szczygiel) Date: Thu, 23 Jan 2003 23:28:30 +0100 Subject: Statusmap error References: Message-ID: <002501c2c32e$c2042a40$0200010a@master> Hello, I have the same situation - question marks... My story is a little different: I had fully (with icons) working Nagios .9beta (last one befer 1.0), and I made upgrade from this to full 1. And... Nagios is working, but all icons desapeared. I made no change to Nagios config files during upgrade. I listen to all sugestions on forum, but after many different actions I have no change of situation... Can anyone help? Stanley ----- Original Message ----- From: "Potter, G M (Greg)" To: "Jayson Kliger" Cc: Sent: Thursday, January 23, 2003 2:29 PM Subject: RE: [Nagios-users] Statusmap error > I am setting up Nagios in a new Installation and found an unusual problem. > My hosts icons showed up as a question mark. I think this is the unknown.png > or perhaps unknown.gdw icon. When I ran nagios -v there were no reported > errors, but it turned out one of my hostextinfo entries had a typo. It was a > new type of host I had just added and I copied a previous entry and modified it. > Well in my modification I left 2 characters from the previous name, causing it > not to match the other entries. It was a template definition. Once I fixed > the spelling the Icons appeared as before. > > Just a thought, but you might double check your hostextinfo file, perhaps removing > all entries but one. If this works, add them back in until the problem is located. > > Greg > > > -----Original Message----- > > From: Jayson Kliger [mailto:jayson at sonictrading.com] > > Sent: Wednesday, January 22, 2003 5:39 PM > > To: Potter, G M (Greg) > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] Statusmap error > > > > > > I was just going by the recommendations to use gd2 to save > > cpu time, but > > I would think that its not necessary, I edited my hostextinfo.cfg file > > to change the statusmap imaged to png..reload/restart still no go..? I > > have confirmed that the > > physical_html_path=/usr/local/nagios/share/images/logos.. and > > the images > > are there.... > > > > On Wed, 2003-01-22 at 17:29, Potter, G M (Greg) wrote: > > > I am using png images for my icons. Is there a reason to > > use gd2 instead? > > > I guess I missed that in the setup docs. > > > > > > Greg > > > > > > > -----Original Message----- > > > > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > > > > Sent: Wednesday, January 22, 2003 3:07 PM > > > > To: nagios-users at lists.sourceforge.net > > > > Subject: RE: [Nagios-users] Statusmap error > > > > > > > > > > > > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com > > > > |Nagios| wrote: > > > > > > > > > ok..I took the gd2 image that I had and used: gd2topng > > to convert it > > > > > back to see if the png image was ok..it was.., so if my > > situation is > > > > > the same as what you went through, I should use the gd-1.8.4 > > > > > "pngtogd2", is it possible to just compile that > > specific utillity or > > > > > would I have to compile the whole version ..Thanks again for you > > > > > advice > > > > > > > > > > > > > > > > > ------------------------------------------------------- > > > This SF.net email is sponsored by: Scholarships for Techies! > > > Can't afford IT training? All 2003 ictp students receive > > scholarships. > > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, > > and more. > > > www.ictp.com/training/sourceforge.asp > > > _______________________________________________ > > > 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 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 Jan 24 23:29:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 24 Jan 2003 16:29:59 -0600 Subject: executing local plugins on remote servers... Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2521@PKDWB03C.ad.sprint.com> You need the plugins compiled for the architecture of the client host and install them there, regardless. I prefer NRPE. Others prefer using check_by_ssh. Still others prefer using check_snmp. Some use NSCA, but primarily for running a child Nagios server, sending the results to the main Nagios server. (Still others prefer nagios_statd.) For Windows clients, you have a choice of NSClient. Or to get creative. :^) At least one individual has tried to get NRPE to work under Cygwin. (I'm not too sure how far he got. I do wonder what he would have used for plugins.) Quite recently, Lennard Bakker has indicated that he intends to write a version of NRPE for Windows, then create plugins for that environment. Stay tuned. With the exception of NSClient, it pretty much boils down to using whatever fits your needs. check_by_ssh can leverage pre-existing 'permit ssh' rules in firewalls, but doesn't scale well because of the computational overhead. You might find that you'll need to attemt a trivial case of at least a few options, just to see which ones seem pretty reasonable, and which ones seem to require more hand crafting. For example, I avoided nagios_statd, because it required installing Python. Not because I have anything against Python, but rather to save having to maintain another language environment across all hosts. I've created NRPE tarballs: One for Solaris 2.6, one for Solaris8, and one for RH Linux. Whenever a new host needs this, I drop it in place and push the latest nrpe.cfg file to it. (Eventually these should get added to the Jumpstart/Kickstart servers, as appropriate.) Just to set your expectations: prepare to get a handful of differing opinions on this, dabble a little, then pick the one that's right for *you*. jc > -----Original Message----- > From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] > Sent: Friday, January 24, 2003 3:41 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] executing local plugins on remote servers... > > > Am I correct in thinking that you have to have one of the following to > execute the plugins on remote servers: > > This will let you have the plugins on the main server, but > execute them > locally and remotely? > Nagios Remote Plugin Executor (NRPE) 1.8 > > And with these, you have to have the plugins on each server? > Nagios Java System (nsjs) > Nagios Service Check Acceptor (NSCA) 2.2 > > Anyone have any thoughts/prefs? I like the idea of using local > commands/plugins to check remote resources. > > > > > ------------------------------------------------------- > 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 brandon at roguetrader.com Fri Jan 24 23:45:50 2003 From: brandon at roguetrader.com (Brandon Gillespie) Date: Fri, 24 Jan 2003 15:45:50 -0700 Subject: Nagios config -- not xml? In-Reply-To: <3E31B451.100CE98B@sliderule.demon.co.uk> References: <3E31AFC3.1020604@roguetrader.com> <3E31B451.100CE98B@sliderule.demon.co.uk> Message-ID: <3E31C21E.7020101@roguetrader.com> Steve Burton wrote: > But for those of us who just configure it, having to type all the xml > froth would be a royal pain. Also the present system is self describing, > the description is at the beginning of the line. The context is in the > name of the config. file, if you use multiple files and the namespace is > nagios. I don't think there would be much of a problem, especially since a lot of people are already familiar with an XML/HTML like syntax. Yes, it would be different. The 'template' stuff is already builtin to XML, so those would all just be tossed into a dtd somewhere. The nice thing is you wouldn't HAVE to have seperate files. You would also gain additional bonuses, such as nesting or even includes, as: -Brandon Gillespie ------------------------------------------------------- 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 Sat Jan 25 00:14:00 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 24 Jan 2003 17:14:00 -0600 Subject: check_disk plugin error: Message-ID: CRITICAL: (Return code of 110 is out of bounds) I'm using this with NRPE. In my nrpe.cfg, I have: command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -w This works fine from the command line, although, I'm not sure if the plugin is doing some additional calculations and is coming up with some weird values like 110? Output from command run manually: $ ./check_disk -w 20 -c 10 -m DISK OK - [8040 kB (32%) free on /] [129744 kB (11%) free on /usr] [24768 kB (60%) free on /var] [118552 kB (96%) free on /tmp] [1388316 kB (92%) free on /home] [548332 kB (33%) free on /apps] [801260 kB (53%) free on /sybase_dumps] ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jcarro10 at sprintspectrum.com Sat Jan 25 00:26:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 24 Jan 2003 17:26:30 -0600 Subject: Nagios config -- not xml? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2522@PKDWB03C.ad.sprint.com> Looks interesting. But for my needs, I'd rather not consolidate all the definitions into one mondo config file. If anything, I'm trying to break my overall config into the smallest chunks possible. Once 2.0 is released, I intend to create hostname directories (using the recursion feature of cfg_dir which is expected to be available), e.g.: /usr/local/nagios/etc/configs/Solaris/myhost01 and within that directory, there would be fragments such as host.cfg, ssh.cfg, http.cfg and whatever other services/dependencies I can put in there. It would be quite nice if there were some other level of inheritance, so as to save modifying each/every definition with the required hostname. Create a new host directory, drop in the definitions, and you're pretty much done. But I digress. Coding the XML definitions by hand shouldn't be too painful. It should require some enhancements to the pre-flight check, so that additional XML-type syntax errors are caught. (Alternatively, if there are already any tools out there which can already do this, all the better for us.) I'm sure that some sort of configuration tools will help out the more generic environments, but it might be somewhat limiting. Ultimately, the configuration tool I'm using is 'vi'. Put me down for, "Yeah, looks interesting, I'll definitely give it a go once it's available, but the lack of XML today isn't hampering me." jc > -----Original Message----- > From: Brandon Gillespie [mailto:brandon at roguetrader.com] > Sent: Friday, January 24, 2003 4:46 PM > To: nagios-users at lists.sourceforge.net; > nagios-users-admin at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios config -- not xml? > > > Steve Burton wrote: > > But for those of us who just configure it, having to type > all the xml > > froth would be a royal pain. Also the present system is > self describing, > > the description is at the beginning of the line. The > context is in the > > name of the config. file, if you use multiple files and the > namespace is > > nagios. > > I don't think there would be much of a problem, especially > since a lot > of people are already familiar with an XML/HTML like syntax. Yes, it > would be different. The 'template' stuff is already builtin > to XML, so > those would all just be tossed into a dtd somewhere. The > nice thing is > you wouldn't HAVE to have seperate files. You would also gain > additional bonuses, such as nesting or even includes, as: > > > description="HTTP" > maxCheckAttempts="3" > normalCheckInterval="5" > contactGroups="serverAdmin" > checkCommand="check_http"/> > > > > -Brandon Gillespie > > > > > ------------------------------------------------------- > 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 jragle at unm.edu Sat Jan 25 00:36:44 2003 From: jragle at unm.edu (Jamin) Date: Fri, 24 Jan 2003 16:36:44 -0700 (MST) Subject: [off topic] forums for nagios mail lists Message-ID: Seeing how active this mail list is, it seems to me that a online forum would help curb a whole lot of repeat questions to the lists. Has anyone thought of setting one up? There are some really nice free opensource forums programs out there. AtomicBoard looks pretty cool. http://freshmeat.net/projects/atomicboard/?topic_id=95 Just an idea. -Jamin ------------------------------------------------------- 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 Jan 25 01:07:13 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Fri, 24 Jan 2003 19:07:13 -0500 (EST) Subject: Changing the Community Name in net-snmp In-Reply-To: <5593DA408212D511B0910002A513501F01D288BB@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288BB@phsexch20.mgh.harvard.edu> Message-ID: On Fri, 24 Jan 2003, Kaplan, Andrew H. wrote: > This is an update to the e-mail I previously sent out. Correct me if I'm wrong, > but the answer to the question I asked > is within the checkcommands.cfg file. The value after the -C option should be > the community name. Correct? > the -C option to check_snmp and all the snmp based plugins is for the community. If you have a relatively consistent community string(s) across devices on your net AND/OR your are concerned about operator types/(anyone with config viewing privileges) knowing the community string, you can use the USERx macros. define a USERx macros for the community string in resource.cfg and then replace the "-C community" with "-C $USERx$". Then the community string is managed centrally and is not viewable on the web interface. -- -sg ------------------------------------------------------- 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 Sat Jan 25 01:03:55 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Fri, 24 Jan 2003 19:03:55 -0500 Subject: [off topic] forums for nagios mail lists Message-ID: Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? -Jarett ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From steve at sliderule.demon.co.uk Sat Jan 25 01:20:45 2003 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Sat, 25 Jan 2003 00:20:45 +0000 Subject: Nagios config -- not xml? References: <3E31AFC3.1020604@roguetrader.com> <3E31B451.100CE98B@sliderule.demon.co.uk> <3E31C21E.7020101@roguetrader.com> Message-ID: <3E31D85D.ACAAB8CA@sliderule.demon.co.uk> Brandon Gillespie wrote: > > Steve Burton wrote: > > But for those of us who just configure it, having to type all the xml > > froth would be a royal pain. Also the present system is self describing, > > the description is at the beginning of the line. The context is in the > > name of the config. file, if you use multiple files and the namespace is > > nagios. > > I don't think there would be much of a problem, especially since a lot > of people are already familiar with an XML/HTML like syntax. Yes, it > would be different. The 'template' stuff is already builtin to XML, so > those would all just be tossed into a dtd somewhere. The nice thing is > you wouldn't HAVE to have seperate files. You would also gain > additional bonuses, such as nesting or even includes, as: > > > description="HTTP" > maxCheckAttempts="3" > normalCheckInterval="5" > contactGroups="serverAdmin" > checkCommand="check_http"/> > > > > -Brandon Gillespie In a sense we already have includes but they're called templates. If the xml is really *so* close to what we have now then why bother. Writing a program to use the 'block syntax' used now is not difficult as it's well defined. Ethan can do it. I can do it (and I suspect I'm not half the programmer he is). So why waste time and effort to increase the complexity in the config. The complexity is supposed to be in the software, that's why I use/write software, to hide the complexity so I only have to deal with it once. Steve. > > ------------------------------------------------------- > 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 -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From steve at sliderule.demon.co.uk Sat Jan 25 01:24:42 2003 From: steve at sliderule.demon.co.uk (Steve Burton) Date: Sat, 25 Jan 2003 00:24:42 +0000 Subject: [off topic] forums for nagios mail lists References: Message-ID: <3E31D94A.59D3AE96@sliderule.demon.co.uk> Jamin wrote: > > Seeing how active this mail list is, it seems to me that a online forum > would help curb a whole lot of repeat questions to the lists. Has anyone > thought of setting one up? There are some really nice free opensource > forums programs out there. > > AtomicBoard looks pretty cool. > http://freshmeat.net/projects/atomicboard/?topic_id=95 > > Just an idea. > -Jamin > Or perhaps someone could create a usenet newsgroup? Steve. > ------------------------------------------------------- > 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 -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin at pvamu.edu Sat Jan 25 01:22:21 2003 From: justin at pvamu.edu (Justin) Date: Fri, 24 Jan 2003 18:22:21 -0600 Subject: Yet another NRPE problem Message-ID: <000c01c2c407$f55e0530$2138cf81@hewlettzh2lwo3> I would like to thank Jim Carrol for helping me get this far. I just took a couple of weeks off from nagios and got back to it. I have fixed the infamous "error recieving data from host" problem. Yet I have encountered another problem. [root at whodevil libexec]# ./check_nrpe 129.207.59.32 -c check_users USERS WARNING - 7 users currently logged in As you can see I can run the command just fine from CLI. But recieve this error in my log/gui Jan 24 19:04:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;1;Incorrect command line arguments supplied Jan 24 19:05:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;2;Incorrect command line arguments supplied Jan 24 19:06:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;HARD;3;Incorrect command line arguments supplied Here is my services.cfg # Service definition define service{ use generic-service ; Name of service template to use host_name whodevil service_description USERS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups whodevil-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_users Here is my nrpe.cfgcommand[check_users]=/usr/local/nagios/libexec/check_users 5 10 command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200 Thanks for the help Justin Wedeking -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Sat Jan 25 06:14:41 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 25 Jan 2003 00:14:41 -0500 (EST) Subject: Correct Syntax for check_flexlm (fwd) Message-ID: ---------- 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 sghosh at sghosh.org Sat Jan 25 06:25:12 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 25 Jan 2003 00:25:12 -0500 (EST) Subject: check snmp problem and cant find the reason In-Reply-To: References: Message-ID: On your delimiter - try removing the space. The plugin adjusts of the fact that net-snmp output has a space... The plugin does remove the usual type prefix. If it doeesn't submit a bug for the type. The delimiter parsing may be another bug. -sg On Fri, 24 Jan 2003 jgking at packetstorm.org wrote: > > ok this is getting on the wierd side. After finding out that plugin > versions were different on the systems, I updated the production box and > still had the same error even though the -v switch does work now. > > So i wanted to really be sure the code was the same so i compared > md5 checksums on both tarballs. Both match. > > I then look at the check_snmp.c and check_snmp.o files and got this > > -rwxr-xr-x 1 root root 93038 Jan 21 07:35 check_snmp > -rw-r--r-- 1 5313 5313 26494 Nov 15 23:06 check_snmp.c > -rw-r--r-- 1 root root 58648 Jan 21 07:35 check_snmp.o > > > -rwxr-xr-x 1 root root 90143 Jan 24 07:07 check_snmp > -rw-r--r-- 1 5313 5313 26494 Nov 15 23:06 check_snmp.c > -rw-r--r-- 1 root root 63092 Jan 24 07:07 check_snmp.o > > So i ran a diff on the check_snmp.c file and it all compares fine. As for > the other 2 binary files, they dont matchup. > > There is a hardware difference (first is a single processor and the second > is from the production dual processor) and Im going to start looking at > the rpm > versions for the RedHat base to see what could be causing the filesize > diff on the compiled results. > > To save me some time though, anyone know offhand if the hardware > differences would result in the larger binaries? BTW the production box > is still "in-dev" and not plugged into a public network and no tripwire > alerts have been flagged > > >From testing check_snmp the "hang" issue gets fixed if i remove the -d > option. Heres a before and after > > > [ nagios]$ libexec/check_snmp -v -H localhost -o > .1.3.6.1.4.1.2021.10.1.101.1,.1.3.6.1.4.1.2021.10.1.101.2,.1.3.6.1.4.1.2021.10.1.101.3 > -s "" -d "STRING: " -C ******* > /usr/bin/snmpget -m ALL -v 1 -c ***** localhost:161 > .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 > .1.3.6.1.4.1.2021.10.1.101.3 > enterprises.ucdavis.laTable.laEntry.laErrMessage.1 = > enterprises.ucdavis.laTable.laEntry.laErrMessage.2 = > enterprises.ucdavis.laTable.laEntry.laErrMessage.3 = > > SNMP problem - No data recieved from host > CMD: /usr/bin/snmpget -m ALL -v 1 -c ****** localhost:161 > .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 > .1.3.6.1.4.1.2021.10.1.101.3 > > remove the switch and voila! > > libexec/check_snmp -v -H localhost -o > .1.3.6.1.4.1.2021.10.1.101.1,.1.3.6.1.4.1.2021.10.1.101.2,.1.3.6.1.4.1.2021.10.1.101.3 > -s "" -C ***** > /usr/bin/snmpget -m ALL -v 1 -c ***** localhost:161 > .1.3.6.1.4.1.2021.10.1.101.1 .1.3.6.1.4.1.2021.10.1.101.2 > .1.3.6.1.4.1.2021.10.1.101.3 > enterprises.ucdavis.laTable.laEntry.laErrMessage.1 = > enterprises.ucdavis.laTable.laEntry.laErrMessage.2 = > enterprises.ucdavis.laTable.laEntry.laErrMessage.3 = > > SNMP OK - > > > > Anyhow, im gonna start looking at possible rpm variances now :) > > > -Greg > > On Thu, 23 Jan 2003, Subhendu Ghosh wrote: > > > > > Can you try running the plugin with a "-v" option (verbose mode - not > > documented) - it prints the command and the output of the command. > > > > -sg > > > > > > On Thu, 23 Jan 2003, Kelly Setzer wrote: > > > > > > From: jgking at packetstorm.org > > > > > > > > Ok i have 2 linux systems, one i test on and the other is where i deploy > > > > after testing. On the test system everything works just fine. On the > > > > production system nagios cannot get a return value from the snmp daemon. > > > > > > > > 5. So as the nagios id i then run the libexec/check_snmp program passing > > > > it the above information. It works as well > > > > > > > > So what could be causing the nagios client to not be able to connect to > > > > the snmpdaemon? > > > > > > > > All im getting back on this box is "SNMP problem - No data recieved from > > > > host " > > > > > > I am having the same problem - intermittently. I recently added SNMP > > > monitoring to a completely functional nagios installation. I have > > > about 80 services that use check_snmp. On two hosts, I see recurring > > > errors as above, "No data received from host". We have 156 services > > > total that we are monitoring. > > > > > > I've done extensive testing to prove to me that snmpget on the nagios > > > server functions correctly. I also did some load testing against the > > > two problem hosts and was NEVER able to get snmpget to fail. > > > > > > However, by putting a shell-script wrapper around snmpget and using that > > > to log all calls from check_snmp, I am seeing cases where check_snmp > > > *apparently* doesn't get any data back from snmpget. I believe this > > > is an issue with check_snmp. > > > > > > I have tried several versions of the net-snmp/ucd-snmp package on > > > both the nagios server and the affected hosts. That had no effect. > > > I have tried both 1.3.0b2 and 1.3b1 of the nagios-plugins. Persistently > > > "re-scheduling service checks" will cause this problem to disappear, > > > sometimes for several days at a stretch. > > > > > > Kelly > > > > > > -- ------------------------------------------------------- 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 Jan 25 06:20:38 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Sat, 25 Jan 2003 00:20:38 -0500 (EST) Subject: Yet another NRPE problem In-Reply-To: <000c01c2c407$f55e0530$2138cf81@hewlettzh2lwo3> References: <000c01c2c407$f55e0530$2138cf81@hewlettzh2lwo3> Message-ID: On Fri, 24 Jan 2003, Justin wrote: > I would like to thank Jim Carrol for helping me get this far. I just took a couple of weeks off from nagios and got back to it. I have fixed the infamous "error recieving data from host" problem. Yet I have encountered another problem. > > [root at whodevil libexec]# ./check_nrpe 129.207.59.32 -c check_users > USERS WARNING - 7 users currently logged in > > As you can see I can run the command just fine from CLI. But recieve this error in my log/gui > > Jan 24 19:04:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;1;Incorrect command line arguments supplied > Jan 24 19:05:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;2;Incorrect command line arguments supplied > Jan 24 19:06:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;HARD;3;Incorrect command line arguments supplied > > > Here is my services.cfg > > # Service definition > define service{ > use generic-service ; Name of service template to use > > host_name whodevil > service_description USERS > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 3 > retry_check_interval 1 > contact_groups whodevil-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command check_nrpe!check_users > > > Here is my nrpe.cfgcommand[check_users]=/usr/local/nagios/libexec/check_users 5 10 > command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30 > command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 > command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb1 > command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z > command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200 > > Thanks for the help > > Justin Wedeking > What is your check_nrpe definition on tha nagios server... -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From brandon at roguetrader.com Sat Jan 25 07:30:54 2003 From: brandon at roguetrader.com (Brandon Gillespie) Date: Fri, 24 Jan 2003 23:30:54 -0700 Subject: Nagios config -- not xml? In-Reply-To: <3E31D85D.ACAAB8CA@sliderule.demon.co.uk> References: <3E31AFC3.1020604@roguetrader.com> <3E31B451.100CE98B@sliderule.demon.co.uk> <3E31C21E.7020101@roguetrader.com> <3E31D85D.ACAAB8CA@sliderule.demon.co.uk> Message-ID: <3E322F1E.5070206@roguetrader.com> Steve Burton wrote: > [..snip..] The complexity is supposed to be in the > software, that's why I use/write software, to hide the complexity so I > only have to deal with it once. Then you of all people should understand the desire to have XML. You reduce complexity even IN the software, by using precooked parsing routines (there are a few open-source XML parsers, expat comes to mind). It also makes it easier for people writing add-on software of ANY variant, to be able to handle the config file format without much grief. As it is now, it becomes more complex because it is a custom/proprietary format. Regardless of the human element, as it is now makes it harder and more complex, not vise versa. Using open/common standards makes it easier and less complex, regardless of if the format itself is a bit more syntactically heavy (which XML is). Carroll, Jim P [Contractor] wrote: > Looks interesting. But for my needs, I'd rather not consolidate all > the definitions into one mondo config file. If anything, I'm trying > to break my overall config into the smallest chunks possible. With the current (or future planned) config format (mind you I still havn't dug into it all that deeply) can you source-in and reuse configs? A lot of my servers fit a standard profile, a common set of services etc. I could probably create three or four common profiles and be able to target 90% of my servers, by just reusing that service list (i.e. ... ). Ultimately, this would make it even smaller chunks. Same thing could be implemented using the current format, really has nothing to do with XML. > Once 2.0 is released, I intend to create hostname directories (using > the recursion feature of cfg_dir which is expected to be available), > e.g.: > > /usr/local/nagios/etc/configs/Solaris/myhost01 > > and within that directory, there would be fragments such as host.cfg, > ssh.cfg, http.cfg and whatever other services/dependencies I can put > in there. It would be quite nice if there were some other level of > inheritance, so as to save modifying each/every definition with the > required hostname. Create a new host directory, drop in the > definitions, and you're pretty much done. But you end up having redundant data, because it is a copy. You will end up getting document-rot (two copies of similar data and it is inevitable you will need to make a common change, and forget to do it in one file... rot). Just having started to dig into nagios, what I have found is configuring it is a bitch--not very well documented (sorry! Lots of docs true, just not very straight forward). The config files have reached a point where it IS easier to manage them with a GUI--some have existed for netsaint and may be ported some day, maybe not. The only one i've seen could use improvement--it is more work to get it going than it is just to edit them by hand (and even then it doesn't work right). Regardless, this is a pain point imho. And I have no idea why I've been dragged into this debate 8) What we do when in the balloon headed haze of cold medicine. I _have_ been through this discussion before on other issues, and I do believe sticking to an XML based standard is better in the long run, all the way around (open standards==good). -Brandon Gillespie (Oh, and I also use vi to edit my configs :) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at ess.nec.de Sat Jan 25 12:54:05 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Sat, 25 Jan 2003 12:54:05 +0100 Subject: [off topic] forums for nagios mail lists In-Reply-To: ; from jragle@unm.edu on Fri, Jan 24, 2003 at 04:36:44PM -0700 References: Message-ID: <20030125125405.D1453@ess.nec.de> On Fri, Jan 24, 2003 at 04:36:44PM -0700, Jamin wrote: > > Seeing how active this mail list is, it seems to me that a online forum > would help curb a whole lot of repeat questions to the lists. Has anyone > thought of setting one up? There are some really nice free opensource > forums programs out there. I thought there already was a FAQ to cover Frequently Asked Questions? Even available online, so you probably can call it an online forum, too, if you like. Have a look at http://www.nagios.org/faqs/. Regards, 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 Sat Jan 25 13:01:53 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 25 Jan 2003 07:01:53 -0500 Subject: check_by_ssh and Nagios communication In-Reply-To: References: Message-ID: <1043496112.4631.6.camel@localhost.localdomain> Also, pay attention to the keys. It look from your command line that you ran the test as the nagios user - the same user that will run the command. So the server will be a known host, I geuss. But to be sure I'd put the host key in the /etc/ssh/ssh_know_host file and specify the key you use explicitly on the command line. On Wed, 2003-01-22 at 11:58, Dave Viner wrote: > you also might want to replace the ~ in the command with the actual path. > i don't know if that is the cause of your problem, but its one more variable > that could cause problems. > > -----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: Wednesday, January 22, 2003 7:51 AM > To: 'VEGH Karoly' > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_by_ssh and Nagios communication > > > Try making these changes to your command_line in checkcommands.cfg: > > command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C > './libexec/check_disk -w 15% -c 5%' > > jc > > > > -----Original Message----- > > From: VEGH Karoly [mailto:karoly.vegh at uta.at] > > Sent: Wednesday, January 22, 2003 6:04 AM > > To: Michael Loftis > > Cc: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] check_by_ssh and Nagios communication > > > > > > On Wed, 22 Jan 2003, Michael Loftis wrote: > > > > > Error 127 generally means it couldn't execute, check the executable > > > permissions on the check_by_ssh (needs to be executable by > > whomever is > > > doing ssh checks) > > > > > > as i wrote, executed by hand it works fine: > > > > > > newmx4:/var/spool/exim/input# su - nagios > > nagios at newmx4:~$ /opt/nagios/libexec/check_by_ssh -H newmx4 -C \ > > '~/libexec/check_disk -w 15% -c 5%' > > DISK OK - [6950540 kB (95%) free on /dev/md0] [17208 kB (78%) free on > > /dev/md1] [2343592 kB (92%) free on /dev/md2] > > nagios at newmx4:~$ > > > > > > exactly this stands in my checkcommands.cfg: > > > > > > newmx4:/opt/nagios# grep check_by_ssh etc/checkcommands.cfg > > command_line > > command[ssh_disk]=/opt/nagios/libexec/check_by_ssh > > -H $HOSTADDRESS$ -C '~/libexec/check_disk -w 15% -c 5%' > > newmx4:/opt/nagios# > > > > > > > check_by_ssh also has the path to ssh hard coded into > > > it, so check to make sure it's looking for the right SSH > > executable and > > > that this is also runnable by the right user, > > > > newmx4:/opt/nagios# which ssh > > /usr/bin/ssh > > newmx4:/opt/nagios# > > newmx4:/opt/nagios# strings libexec/check_by_ssh | grep ssh > > /usr/bin/ssh > > check_by_ssh > > -f tells ssh to fork rather than create a tty > > tell ssh to use IPv4 > > tell ssh to use IPv6 > > check_by_ssh [-f46] [-t timeout] [-i identity] [-l user] -H -C > > > > check_by_ssh -V prints version info > > check_by_ssh -h prints more detailed help > > newmx4:/opt/nagios# > > > > seems to be OK... > > > > newmx4:/opt/nagios# ls -la /usr/bin/ssh > > -rwxr-xr-x 1 root root 230248 Jun 28 2002 /usr/bin/ssh > > newmx4:/opt/nagios# su - nagios > > nagios at newmx4:~$ ssh newmx4 > > Linux newmx4 2.4.19-ac4 #1 Wed Sep 18 10:45:42 CEST 2002 i686 unknown > > > > Most of the programs included with the Debian GNU/Linux system are > > freely redistributable; the exact distribution terms for each program > > are described in the individual files in /usr/share/doc/*/copyright > > > > Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent > > permitted by applicable law. > > You have new mail. > > Last login: Wed Jan 22 12:20:02 2003 from newmx4 > > nagios at newmx4:~$ > > > > > you'll need to probably do a > > > strings /path/to/your/check_by_ssh and look for something > > like /usr/bin/ssh > > > (as on my FreeBSD box). > > > > > > Lemme know if this is more helpful! > > > > well, i dont know, how to get on weiter, how to see how > > nagios tries to > > execute the plugin... how to see more debug, i mean more that > > errpr 127 > > plugin may be missing, which is impossible because as u see i try > > check_bye_ssh on the server itself, only over ssh... > > > > > > thanks for your help, any ideas more maybe? > > > > charlie > > > > -- > > Vegh Karoly - System Engineer - UTA - TIS.SAS.SDI > > Cynics says that Hungarians created America's Hollywood before > > other Hungarians less destructively created America's A-bomb. > > http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html > > > > > > ------------------------------------------------------- > > This SF.net email is sponsored by: Scholarships for Techies! > > Can't afford IT training? All 2003 ictp students receive scholarships. > > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > > www.ictp.com/training/sourceforge.asp > > _______________________________________________ > > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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 karl at debisschop.net Sat Jan 25 13:51:57 2003 From: karl at debisschop.net (Karl DeBisschop) Date: 25 Jan 2003 07:51:57 -0500 Subject: check_disk plugin error: In-Reply-To: References: Message-ID: <1043499117.4631.25.camel@localhost.localdomain> On Fri, 2003-01-24 at 18:14, Daniel_Casey at jbhunt.com wrote: > CRITICAL: (Return code of 110 is out of bounds) > > I'm using this with NRPE. In my nrpe.cfg, I have: > > command[check_disk]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -w You have a -w here, which is not valid - you want a -m like you have below, I think. > This works fine from the command line, although, I'm not sure if the plugin > is doing some additional calculations > and is coming up with some weird values like 110? > > > Output from command run manually: > > $ ./check_disk -w 20 -c 10 -m > > DISK OK - [8040 kB (32%) free on /] [129744 kB (11%) free on /usr] [24768 > kB (60%) free on /var] [118552 kB (96%) free on /tmp] > [1388316 kB (92%) free on /home] [548332 kB (33%) free on /apps] [801260 kB > (53%) free on /sybase_dumps] > > > > > > ------------------------------------------------------- > 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 justin at pvamu.edu Sat Jan 25 23:43:50 2003 From: justin at pvamu.edu (Justin) Date: Sat, 25 Jan 2003 16:43:50 -0600 Subject: DHCP win Message-ID: <002701c2c4c3$77ef3f30$2138cf81@hewlettzh2lwo3> Has anyone had any success monitoring DHCP services on Windows? I notices NSCLient does not support this feature. I know there is a check_dhcp plugin, but do not know if it will work. Thanks Justin Wedeking ------------------------------------------------------- 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 Sun Jan 26 02:02:28 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Sun, 26 Jan 2003 12:02:28 +1100 Subject: DHCP win In-Reply-To: <002701c2c4c3$77ef3f30$2138cf81@hewlettzh2lwo3>; from justin@pvamu.edu on Sat, Jan 25, 2003 at 04:43:50PM -0600 References: <002701c2c4c3$77ef3f30$2138cf81@hewlettzh2lwo3> Message-ID: <20030126120224.A218@IPAustralia.Gov.AU> Dear Sir, On Sat, Jan 25, 2003 at 04:43:50PM -0600, Justin wrote: > Has anyone had any success monitoring DHCP services on Windows? Do you mean the function of a DHCP server that is providing address leases to Windows client ? Or a DHCP server that happens to be running on a Windows host ? In either case, you can check the service with a plugin that simulates a client leasing an address. > > I notices > NSCLient does not support this feature. I know there is a check_dhcp > plugin, but do not know if it will work. Thanks > The contrib/check_dhcp plugin, contributed by Mr Galstad, works fine providided your Nag/Netsaint monitor is Linux, because IIRC it uses headers that are Linux specific. However, if you search the archives you may find mention of at least two multi-platform Perl plugins that should work anywhere you can run Perl. 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 justin at pvamu.edu Sun Jan 26 04:30:43 2003 From: justin at pvamu.edu (Justin) Date: Sat, 25 Jan 2003 21:30:43 -0600 Subject: DHCP win References: <002701c2c4c3$77ef3f30$2138cf81@hewlettzh2lwo3> <20030126120224.A218@IPAustralia.Gov.AU> Message-ID: <004901c2c4eb$70aa8fe0$2138cf81@hewlettzh2lwo3> Stanley, thanks alot. The check_dhcp plugin I found and compiled in the contrib subdirectory. This is a DHCP server running on a windows host. I got the pluging and ran it. [root at whodevil libexec]# ./check_dhcp -s collins-dhcp.pantherland.arbedu.edu DHCP ok: Received 3 DHCPOFFER(s), max lease time = 0 sec. So the plugin works. I tried using vanilla command. Here is my checkcommands.cfg # 'check_dhcp_collins-dhcp' define command{ command_name check_dhcp_collins-dhcp command_line $USER1$/check_dhcp -s collins-dhcp.pantherland.arbedu.edu } And here is my services.cfg define service{ use generic-service ; Name of service template to use host_name Collins-DHCP service_description DHCP is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups dhcp-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_dhcp_collins-dhcp } Here is the error message. Jan 25 22:17:49 whodevil nagios: SERVICE ALERT: Collins-DHCP;DHCP;UNKNOWN;HARD;3;Error: Could not bind to DHCP socket (port 68)! Check your privileges... I am basically using the commands as if from CLI. It worked from CLI as you see above, but returns this error. Can you see anything I am doing wrong? I searched the archive and found helpfull information, but could not find a resolution to my particular problem. Thanks Justin Wedeking Info Tech ----- Original Message ----- From: "Stanley Hopcroft" To: "Justin" Cc: Sent: Saturday, January 25, 2003 7:02 PM Subject: Re: [Nagios-users] DHCP win > Dear Sir, > > > On Sat, Jan 25, 2003 at 04:43:50PM -0600, Justin wrote: > > Has anyone had any success monitoring DHCP services on Windows? > > Do you mean the function of a DHCP server that is providing address > leases to Windows client ? > > Or a DHCP server that happens to be running on a Windows host ? > > In either case, you can check the service with a plugin that simulates a > client leasing an address. > > > > > I notices > > NSCLient does not support this feature. I know there is a check_dhcp > > plugin, but do not know if it will work. Thanks > > > > The contrib/check_dhcp plugin, contributed by Mr Galstad, works fine > providided your Nag/Netsaint monitor is Linux, because IIRC it uses > headers that are Linux specific. > > However, if you search the archives you may find mention of at least two > multi-platform Perl plugins that should work anywhere you can run Perl. > > > 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 nsedley at dircon.co.uk Sun Jan 26 16:58:15 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Sun, 26 Jan 2003 15:58:15 -0000 Subject: How to stop alerts? Message-ID: <00a501c2c553$bcfd9cd0$0100a8c0@NEIL> I have just upgraded to Nagios 1.0 from Netsaint and converted the config files using the convertcfg utility. At first glance all looks wonderful. However I have a couple of services that have gone down and won't be fixed for a while. How do I stop notifications???? I have done everything I can think of in the GUI. I have acknowledged the problem, I have disabled all service checks (passive and active) I have disabled notifications. But it still sends them!!!!! Is there a new configuration option I have missed? As all notifications are sent as text messages to my phone it is driving me mad!! I can't turn it off as I still need notifications for the services and hosts that are not affected. Help please............ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jt at domainfactory.de Sun Jan 26 20:31:02 2003 From: jt at domainfactory.de (Jochen Tuchbreiter) Date: Sun, 26 Jan 2003 20:31:02 +0100 Subject: Preventing direct state change "hard warning" -> "hard critical" Message-ID: <000501c2c571$76723e10$0201a8c0@schlepptop> Hello, after upgrading from Netsaint (and manually converting our config files) I am observing the following behaviour: Whenever a service that is in hard warning state fails one single check it directly goes into hard critical state and causes notifications to be sent out. This happens regardless of the number of retries configured. As far as I understand this behaviour is expected and documented (http://nagios.sourceforge.net/docs/1_0/statetypes.html), however I would like to have the following behaviour: Whenever a service that is in hard warning state fails a single check it goes into soft critical state and only after failing number-of-retries consecutive checks goes to hard critical. This is how my old Netsaint behaved - I guess I must have configured this somehow but even after doing an extensive search through the confgifiles and documentation/faq I am unable to figure out how to achieve this behaviour again. I'd appreciate some advice on where to look next, unfortunately this thing got me burried in pager messages for the last two days %-) regards, Jochen ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From justin at pvamu.edu Sun Jan 26 20:45:58 2003 From: justin at pvamu.edu (Justin) Date: Sun, 26 Jan 2003 13:45:58 -0600 Subject: hostextinfo.cfg Message-ID: <002001c2c573$acf08530$2138cf81@hewlettzh2lwo3> I have successfully gotten nagios up and running, except for DHCP service checks. And I was wondering if there was a way to have a host with two icons beside its name on the status detail page. As an example a SuSe.jpg and a MailServer.jpg beside the name of a server that runs Suse distro and acts as an maillserver. Thanks Justin Wedeking Info Tech ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ferlatte at cryptio.net Sun Jan 26 21:41:21 2003 From: ferlatte at cryptio.net (Mark Ferlatte) Date: Sun, 26 Jan 2003 12:41:21 -0800 Subject: DHCP win In-Reply-To: <004901c2c4eb$70aa8fe0$2138cf81@hewlettzh2lwo3> References: <002701c2c4c3$77ef3f30$2138cf81@hewlettzh2lwo3> <20030126120224.A218@IPAustralia.Gov.AU> <004901c2c4eb$70aa8fe0$2138cf81@hewlettzh2lwo3> Message-ID: <20030126204121.GA66472@radix.cryptio.net> Justin said on Sat, Jan 25, 2003 at 09:30:43PM -0600: > Jan 25 22:17:49 whodevil nagios: SERVICE ALERT: > Collins-DHCP;DHCP;UNKNOWN;HARD;3;Error: Could not bind to DHCP socket (port > 68)! Check your privileges... > > I am basically using the commands as if from CLI. It worked from CLI as you > see above, but returns this error. Can you see anything I am doing wrong? > I searched the archive and found helpfull information, but could not find a > resolution to my particular problem. Thanks The plugin needs permission to bind to port 68 (ie, needs to be running as root). When you ran it from the command line, it was running as root, and therefor worked. Your nagios installation probably isn't running as root, and therefor the plugin isn't either. Perhaps you could work around this by making the check_dhcp plugin SUID root, and only executable by the nagios group? This would help prevent possible security issues in the check_dhcp plugin, but would allow it to bind to port 68. M -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 187 bytes Desc: not available URL: From willardjwilliams at yahoo.com Sun Jan 26 21:44:50 2003 From: willardjwilliams at yahoo.com (W. J. Williams) Date: Sun, 26 Jan 2003 12:44:50 -0800 (PST) Subject: notification command configuration Message-ID: <20030126204450.23003.qmail@web13505.mail.yahoo.com> I am using FreeBSD 4.7, Sendmail 8.x and Nagios 1.0 Can someone tell me how to configure the host-notify-by-email command in the checkcommand.cfg. It appears I have all the other cfgs configured correctly, but missing the config for actually making the notification get sent through my mail service. Thx for any help Will ===== Will Williams mobile: +49(0) 178-806-7966 ------------------------------------------------------- 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 Jan 26 23:56:13 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Sun, 26 Jan 2003 17:56:13 -0500 Subject: Apache config problem continues... Message-ID: Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? Are we sure the permissions should be nagios/nagios? Shouldn't it be apache/apache? Or am I not grasping something here? -Jarett ------------------------------------------------------- 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 Jan 27 02:30:58 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 27 Jan 2003 12:30:58 +1100 Subject: notification command configuration In-Reply-To: <20030126204450.23003.qmail@web13505.mail.yahoo.com>; from willardjwilliams@yahoo.com on Sun, Jan 26, 2003 at 12:44:50PM -0800 References: <20030126204450.23003.qmail@web13505.mail.yahoo.com> Message-ID: <20030127123052.A214@IPAustralia.Gov.AU> Dear Sir, On Sun, Jan 26, 2003 at 12:44:50PM -0800, W. J. Williams wrote: > I am using FreeBSD 4.7, Sendmail 8.x and Nagios 1.0 > > Can someone tell me how to configure the host-notify-by-email command in > the checkcommand.cfg. It appears I have all the other cfgs configured > correctly, but missing the config for actually making the notification get > sent through my mail service. > These definitions are in my etc/misccommands.cfg file at this FreeBSD site. tsitc> uname -a FreeBSD tsitc.aipo.gov.au 4.7-RELEASE FreeBSD 4.7-RELEASE #2: Thu Nov 7 20:33:03 EST 2002 root at tsitc.aipo.gov.au:/usr/obj/usr/src/sys/TSITC i386 tsitc> sendmail -d0.5 -bp | head -1 Version 8.12.6 tsitc# /usr/local/nagios/bin/nagios -V Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL tsitc> grep -3 host-notify /usr/local/nagios/etc/misccommands.cfg } # 'host-notify-by-email' command definition define command{ command_name host-notify-by-email command_line /usr/bin/printf "%b" "***** Nagios 1.0 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ } # 'host-notify-by-epager' command definition define command{ command_name host-notify-by-epager command_line /usr/bin/printf '%b' '$HOSTNAME$/$HOSTADDRESS$ is $HOSTSTATE$ at $DATETIME$ $OUTPUT$' | /usr/bin/head -c 160 | /usr/bin/mail $CONTACTPAGER$ } tsitc> Does your Nag pass the -v check ? FYI, Smslink/Libmodem also ports to FreeBSD (there may even be an official port by now) so you can use Sendmail to queue notify-by-epager messages for dispatch by an SMS modem or bank of SMS modems - handy if you have that catastrophic NAS, power or Enterprise Storage System failure: everyone can quickly hear about the disaster. 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 Mon Jan 27 02:34:06 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Mon, 27 Jan 2003 12:34:06 +1100 Subject: notification command configuration In-Reply-To: <20030126204450.23003.qmail@web13505.mail.yahoo.com>; from willardjwilliams@yahoo.com on Sun, Jan 26, 2003 at 12:44:50PM -0800 References: <20030126204450.23003.qmail@web13505.mail.yahoo.com> Message-ID: <20030127123400.B214@IPAustralia.Gov.AU> Dear Sir, FWIW, if you are using the FreeBSD port (or package) of Nagios (rather than building from Source), you may want to alert the porter - email address in the Makefile - or ask their opinion. On Sun, Jan 26, 2003 at 12:44:50PM -0800, W. J. Williams wrote: > I am using FreeBSD 4.7, Sendmail 8.x and Nagios 1.0 > > Can someone tell me how to configure the host-notify-by-email command in > the checkcommand.cfg. > > Will 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 ess.nec.de Mon Jan 27 09:49:56 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Mon, 27 Jan 2003 09:49:56 +0100 Subject: How to stop alerts? In-Reply-To: <00a501c2c553$bcfd9cd0$0100a8c0@NEIL>; from nsedley@dircon.co.uk on Sun, Jan 26, 2003 at 03:58:15PM -0000 References: <00a501c2c553$bcfd9cd0$0100a8c0@NEIL> Message-ID: <20030127094956.A1425@ess.nec.de> Hello, On Sun, Jan 26, 2003 at 03:58:15PM -0000, Neil Sedley wrote: > > However I have a couple of services that have gone down and won't be fixed > for a while. > > How do I stop notifications???? > > I have done everything I can think of in the GUI. I have acknowledged the > problem, I have disabled all service checks (passive and active) I have > disabled notifications. Acknowledging would be sufficient and the proper way to do it, IMHO. > But it still sends them!!!!! You probably have more than one instance of Nagios running. Stop Nagios, check the process list for nagios processes (ps -ef | grep nagios) and kill them. Start Nagios again. Regards, Rasmus ------------------------------------------------------- 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 Mon Jan 27 11:33:32 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Mon, 27 Jan 2003 10:33:32 -0000 Subject: Nagios config -- not xml? Message-ID: <35666012DF4CD411BE940090279FA24003CADE39@ppnt41.physics.ox.ac.uk> Very interesting that this XML debate has come up. I spent several days last week re-writing some of my core Nagios config files in XML then using XSLT to transform them into the current Nagios format. What does XML buy you? 1. Ability to write a schema to check that you have your syntax correct. (OK, pre-flight check _probably_ does most of this already, but I'm sure an XML schema with a schema validating parser would be MUCH easier) 2. Single, standard, format, rather than current split format (i.e. some files are flat VARIABLE_NAME VALUE format, and some are pseudo object definitions with "define NAME {...}". 3. Much simpler layout to avoid massive cross-referencing which _does_ do your head in (this was the reason I started re-writing my configs in XML). 4. Collapse 5 different config files into 1 (OK, maybe 2 if you want to keep CGI or Resource separate). Currently there is: i) Main nagios.cfg file ii) resource.cfg file iii) hosts.cfg file (object definitions -- probably pointing to cfg_file and cfg_dir meaning lots of others files are used as well) iv) cgi.cfg v) extended config file. 5. Make use of network definitions for other monitoring or maintenance applications. Below, you can see an example of my new "hosts" file which describes nodes in the network I am monitoring. XML provides a tree structure, but can be "enhanced" to graphs by using cross references. Trees are a perfect starting point for allowing the XML itself to represent the basic network topology. Furthermore, if I want a new service, I just add to the particular node and, voila, that node now has that service defined for it. All the details about the IP address or node name are "in context" from the XML, and the "generic" service template is used. If I want a custom service definition for that node, instead of having I would have Anyway, it seems like there are interested parties in making this happen -- I certainly do not feel that the current configuration system is scalable to extremely large systems (hundreds nodes) quickly and easily. Here is a taste of my XML: admins Computing Element 01
163.1.243.105
Worker Node 01
163.1.243.155
Storage Element 01
163.1.244.55
-- Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/ > -----Original Message----- > From: Kurt Werle [mailto:kurt at twoface.shiftmanager.net] > Sent: 24 January 2003 20:09 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios config -- not xml? > > > I've recently installed nagios and really like it. That > said, configuring > it is a royal pain. I'm wondering why the config files are the > traditional unix block style -- it seems like it would be > really nice to > have it in xml. This would make it much easier to write configuration > tools. > > Thanks for a great tool, > Kurt > --- > kwerle at pobox.com > http://www.pobox.com/~kwerle/ > Tired of spam? Control your Mailserver (or .forward)? http://tess.sf.net ------------------------------------------------------- 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 i.stokes-rees1 at physics.ox.ac.uk Mon Jan 27 12:41:25 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Mon, 27 Jan 2003 11:41:25 -0000 Subject: Performance Data error Message-ID: <35666012DF4CD411BE940090279FA24003CADE3F@ppnt41.physics.ox.ac.uk> I am not getting my performance data being output to the specified file, and am trying to track down exactly why. My xpdfile template has $PERFDATA$ at the end, and when I look in /var/log/messages I can see that the performance data _is_ being passed in by the NRPE call, however it does not appear in the hostperf.log file. Furthermore, the comment on the performance data section talks about "enable_performance_data" option, which the pre-flight check then tells me is illegal. I think this is an error and should be referring to "process_performance_data" instead. My issue is that I don't want to use the processing filters, but I do want to just dump the performance data to a file. Yes, I have re-compiled it with the appropriate option to turn performance data handling "on" (although I don't know how to check to make sure this worked properly). FWIW, here is my config: # 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 xpdfile_host_perfdata_file=/opt/nagios/var/hostperf.log xpdfile_service_perfdata_file=/opt/nagios/var/hostperf.log xpdfile_host_perfdata_template=$TIMET$\t$HOSTNAME$\t$OUTPUT$\t$PERFDATA$ xpdfile_service_perfdata_template=$TIMET$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPU T$\t$PERFDATA$ -- 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 Craig.Emsley at document.co.uk Mon Jan 27 13:57:05 2003 From: Craig.Emsley at document.co.uk (Craig Emsley) Date: Mon, 27 Jan 2003 12:57:05 -0000 Subject: Yet another NRPE problem Message-ID: Justin Could you please enlighten me on how you fixed the infamous "error recieving data from host" problem because I am at present having the same problem and am more than a little confused. Thanks Craig -----Original Message----- From: Justin [mailto:justin at pvamu.edu] Sent: Saturday, January 25, 2003 12:22 AM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Yet another NRPE problem I would like to thank Jim Carrol for helping me get this far. I just took a couple of weeks off from nagios and got back to it. I have fixed the infamous "error recieving data from host" problem. Yet I have encountered another problem. [root at whodevil libexec]# ./check_nrpe 129.207.59.32 -c check_users USERS WARNING - 7 users currently logged in As you can see I can run the command just fine from CLI. But recieve this error in my log/gui Jan 24 19:04:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;1;Incorrect command line arguments supplied Jan 24 19:05:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;SOFT;2;Incorrect command line arguments supplied Jan 24 19:06:01 localhost nagios: SERVICE ALERT: whodevil;USERS;UNKNOWN;HARD;3;Incorrect command line arguments supplied Here is my services.cfg # Service definition define service{ use generic-service ; Name of service template to use host_name whodevil service_description USERS is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 3 retry_check_interval 1 contact_groups whodevil-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nrpe!check_users Here is my nrpe.cfgcommand[check_users]=/usr/local/nagios/libexec/check_users 5 10 command[check_load]=/usr/local/nagios/libexec/check_load 5 10 15 20 25 30 command[check_disk1]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hda1 command[check_disk2]=/usr/local/nagios/libexec/check_disk 80 95 /dev/hdb1 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 5 10 Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs 150 200 Thanks for the help Justin Wedeking -------------- next part -------------- An HTML attachment was scrubbed... URL: From jgking at packetstorm.org Mon Jan 27 15:18:50 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 27 Jan 2003 08:18:50 -0600 (CST) Subject: check_snmp and mulitple oid returns Message-ID: Ive been searching the list archives for the last 30 minutes have been having alot of hits close to it but either im not understanding or its different than what im asking. Instead of having, say 5 seperate snmp check entries in the services.cfg file, i would rather consolidate it into one single check and look for an oid return value that meets the error criteria. For example, disk percent usage. In snmpd.conf i setup the following: disk / 10000 disk /boot 10000 disk /data 10000 disk /home 817928 disk /tmp 10000 disk /usr 10000 disk /var 10000 Now that this will do is set the errorflag field if anything matches .iso.3.6.1.4.1.2021.9.1.101.1 = "" .iso.3.6.1.4.1.2021.9.1.101.2 = "" .iso.3.6.1.4.1.2021.9.1.101.3 = "" .iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" .iso.3.6.1.4.1.2021.9.1.101.5 = "" .iso.3.6.1.4.1.2021.9.1.101.6 = "" In my checkcommands file I have the following: define command{ command_name check_snmp command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ -C $ARG4$ } And in the services file I have this define service{ use generic-service ; Name of service template to use host_name localhost service_description Disk: Usage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_snmp!localhost!.1.3.6.1.4.1.2021.9.1.101.1,.1.3.6.1.4.1.2021.9.1.101.2,.1.3.6.1.4.1.20 21.9.1.101.3,.1.3.6.1.4.1.2021.9.1.101.4,.1.3.6.1.4.1.2021.9.1.101.5,.1.3.6.1.4.1.2021.9.1.101.6!""!******* } Which I find returns an OK unless the last oid checked is the one that fails. So is there a way to have check_snmp return a fail if any oid in the group fails? Thanks! Greg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jgking at packetstorm.org Mon Jan 27 16:00:05 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 27 Jan 2003 09:00:05 -0600 (CST) Subject: check_snmp and mulitple oid returns In-Reply-To: References: Message-ID: Never mind. I found in the help output that only one string is being checked at present. So instead of checking the errorflag string field I think ill check the errflag bit for non zero returns: .iso.3.6.1.4.1.2021.9.1.100.1 = 0 .iso.3.6.1.4.1.2021.9.1.100.2 = 0 .iso.3.6.1.4.1.2021.9.1.100.3 = 0 .iso.3.6.1.4.1.2021.9.1.100.4 = 1 .iso.3.6.1.4.1.2021.9.1.100.5 = 0 .iso.3.6.1.4.1.2021.9.1.100.6 = 0 -Greg On Mon, 27 Jan 2003 jgking at packetstorm.org wrote: > > Ive been searching the list archives for the last 30 minutes have been > having alot of hits close to it but either im not understanding or its > different than what im asking. > > Instead of having, say 5 seperate snmp check entries in the services.cfg > file, i would rather consolidate it into one single check and look for an > oid return value that meets the error criteria. > > For example, disk percent usage. > > In snmpd.conf i setup the following: > > disk / 10000 > disk /boot 10000 > disk /data 10000 > disk /home 817928 > disk /tmp 10000 > disk /usr 10000 > disk /var 10000 > > Now that this will do is set the errorflag field if anything matches > > .iso.3.6.1.4.1.2021.9.1.101.1 = "" > .iso.3.6.1.4.1.2021.9.1.101.2 = "" > .iso.3.6.1.4.1.2021.9.1.101.3 = "" > .iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" > .iso.3.6.1.4.1.2021.9.1.101.5 = "" > .iso.3.6.1.4.1.2021.9.1.101.6 = "" > > > In my checkcommands file I have the following: > > define command{ > command_name check_snmp > command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ > -C $ARG4$ > } > > > And in the services file I have this > > define service{ > use generic-service ; Name of > service template to use > > host_name localhost > service_description Disk: Usage > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_snmp!localhost!.1.3.6.1.4.1.2021.9.1.101.1,.1.3.6.1.4.1.2021.9.1.101.2,.1.3.6.1.4.1.20 > 21.9.1.101.3,.1.3.6.1.4.1.2021.9.1.101.4,.1.3.6.1.4.1.2021.9.1.101.5,.1.3.6.1.4.1.2021.9.1.101.6!""!******* > } > > > Which I find returns an OK unless the last oid checked is the one that > fails. > > So is there a way to have check_snmp return a fail if any oid in the group > fails? > > > Thanks! > Greg > > > > ------------------------------------------------------- > 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 Daniel_Casey at jbhunt.com Mon Jan 27 16:00:42 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 27 Jan 2003 09:00:42 -0600 Subject: Warning message on Status detail screen Message-ID: Warning: Monitoring process may not be running! Click here for more info. What does this mean? Thanks. ------------------------------------------------------- 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 Jan 27 15:00:36 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Mon, 27 Jan 2003 09:00:36 -0500 Subject: check_snmp and mulitple oid returns In-Reply-To: References: Message-ID: jgking at packetstorm.org writes: > > Ive been searching the list archives for the last 30 minutes have been > having alot of hits close to it but either im not understanding or its > different than what im asking. > > Instead of having, say 5 seperate snmp check entries in the services.cfg > file, i would rather consolidate it into one single check and look for an > oid return value that meets the error criteria. > > For example, disk percent usage. > > In snmpd.conf i setup the following: > > disk / 10000 > disk /boot 10000 > disk /data 10000 > disk /home 817928 > disk /tmp 10000 > disk /usr 10000 > disk /var 10000 > > Now that this will do is set the errorflag field if anything matches > > .iso.3.6.1.4.1.2021.9.1.101.1 = "" > .iso.3.6.1.4.1.2021.9.1.101.2 = "" > .iso.3.6.1.4.1.2021.9.1.101.3 = "" > .iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" > .iso.3.6.1.4.1.2021.9.1.101.5 = "" > .iso.3.6.1.4.1.2021.9.1.101.6 = "" > > > In my checkcommands file I have the following: > > define command{ > command_name check_snmp > command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ > -C $ARG4$ > } > > > And in the services file I have this > > define service{ > use generic-service ; Name of > service template to use > > host_name localhost > service_description Disk: Usage > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_snmp!localhost!.1.3.6.1.4.1.2021.9.1.101.1,.1.3.6.1.4.1.2021.9.1.101.2,.1.3.6.1.4.1.20 > 21.9.1.101.3,.1.3.6.1.4.1.2021.9.1.101.4,.1.3.6.1.4.1.2021.9.1.101.5,.1.3.6.1.4.1.2021.9.1.101.6!""!******* > } > > > Which I find returns an OK unless the last oid checked is the one that > fails. > > So is there a way to have check_snmp return a fail if any oid in the group > fails? The string check only applies to one OID - it does not default across the bunch (though on reflection, perhaps it should). This is true of any retrun type. I know from memory that you can read the free bytes and specify multiple critcal and warning thresholds to get the behaviour you want. I don't recall if it works that way for strings, or if it is still to be implemented - read the source to see, I guess. -- Karl ------------------------------------------------------- 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 Jan 27 15:56:48 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 27 Jan 2003 08:56:48 -0600 Subject: is it possible to have check_procs -a or -C look for multiple processes Message-ID: I can run check_procs -a myprocess and it will find it. Is there a way to list several on one line so I don't have to have multiple services configured? ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From twebster at daksoft.com Mon Jan 27 16:20:31 2003 From: twebster at daksoft.com (twebster at daksoft.com) Date: Mon, 27 Jan 2003 08:20:31 -0700 Subject: Host Availability Report Message-ID: I guess I still don't understand why you need to select "assume host UP". Note, wny do I also need to set "Assume state retention to No" because I am using a state retention. You also mention, the service report information has the correct number, which is true, but I don't believe there is a way to view all HOSTS Service PING on one screen for reporting purposes. I guess what I need is an accurate report of all HOSTS or the Service PING, without all the other services. Can I make a service group? Thanks for the clarifications. Tony |---------+----------------------------> | | Jon Lyons | | | | | | | | | 01/24/2003 03:12 | | | PM | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: twebster at daksoft.com, Michael Church | | cc: nagios-users at lists.sourceforge.net | | Subject: Re: [Nagios-users] Host Availability Report | >------------------------------------------------------------------------------------------------------------------------------| Is this just for the Hosts? Change the First assumed host state: to UP.. Remember, hosts are only checked when a service fails, (ie hosts are rarely checked). Service should give the information you're looking for.... twebster at daksoft.com wrote: We are also have this problem, please pass on any information you may receive. thanks Tony |---------+----------------------------------------> | | "Michael Church" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/24/2003 12:52 PM | | | | |---------+----------------------------------------> > ------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] Host Availability Report | > ------------------------------------------------------------------------------------------------------------------------------| most of my reports always have the majority % of time being undet! ermined. I've looked, poked, and prodded to find out why and I can't. We have been running nagios for about 2 months and still get the same results. Does anyone know why this is? ------------------------------------------------------- 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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jgking at packetstorm.org Mon Jan 27 16:22:11 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 27 Jan 2003 09:22:11 -0600 (CST) Subject: check_snmp and mulitple oid returns In-Reply-To: References: Message-ID: Thanks! Yeah i found the note in the help output shortly after posting. I found a mechanism though (didnt send it last post so ill post it here for anyone in the future) that seems to work: libexec/check_snmp -H localhost -o .1.3.6.1.4.1.2021.9.1.100.1,.1.3.6.1.4.1.2021.9.1.100.2,.1.3.6.1.4.1.2021.9.1.100.3,.1.3.6.1.4.1.2021.9.1.100.4,.1.3.6.1.4.1.2021.9.1.100.5,.1.3.6.1.4.1.2021.9.1.100.6 -C ***** -c 0,0,0,0,0,0 would produce the desired output SNMP CRITICAL - 0 0 0 *1* 0 0 On Mon, 27 Jan 2003, Karl DeBisschop wrote: > jgking at packetstorm.org writes: > > > > > Ive been searching the list archives for the last 30 minutes have been > > having alot of hits close to it but either im not understanding or its > > different than what im asking. > > > > Instead of having, say 5 seperate snmp check entries in the services.cfg > > file, i would rather consolidate it into one single check and look for an > > oid return value that meets the error criteria. > > > > For example, disk percent usage. > > > > In snmpd.conf i setup the following: > > > > disk / 10000 > > disk /boot 10000 > > disk /data 10000 > > disk /home 817928 > > disk /tmp 10000 > > disk /usr 10000 > > disk /var 10000 > > > > Now that this will do is set the errorflag field if anything matches > > > > .iso.3.6.1.4.1.2021.9.1.101.1 = "" > > .iso.3.6.1.4.1.2021.9.1.101.2 = "" > > .iso.3.6.1.4.1.2021.9.1.101.3 = "" > > .iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" > > .iso.3.6.1.4.1.2021.9.1.101.5 = "" > > .iso.3.6.1.4.1.2021.9.1.101.6 = "" > > > > > > In my checkcommands file I have the following: > > > > define command{ > > command_name check_snmp > > command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ > > -C $ARG4$ > > } > > > > > > And in the services file I have this > > > > define service{ > > use generic-service ; Name of > > service template to use > > > > host_name localhost > > service_description Disk: Usage > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command > > check_snmp!localhost!.1.3.6.1.4.1.2021.9.1.101.1,.1.3.6.1.4.1.2021.9.1.101.2,.1.3.6.1.4.1.20 > > 21.9.1.101.3,.1.3.6.1.4.1.2021.9.1.101.4,.1.3.6.1.4.1.2021.9.1.101.5,.1.3.6.1.4.1.2021.9.1.101.6!""!******* > > } > > > > > > Which I find returns an OK unless the last oid checked is the one that > > fails. > > > > So is there a way to have check_snmp return a fail if any oid in the group > > fails? > > The string check only applies to one OID - it does not default across the > bunch (though on reflection, perhaps it should). This is true of any retrun > type. > > I know from memory that you can read the free bytes and specify multiple > critcal and warning thresholds to get the behaviour you want. I don't recall > if it works that way for strings, or if it is still to be implemented - read > the source to see, I guess. > > -- > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From HarlanRichardC at JohnDeere.com Mon Jan 27 16:28:54 2003 From: HarlanRichardC at JohnDeere.com (Harlan Richard C) Date: Mon, 27 Jan 2003 09:28:54 -0600 Subject: WAP Interface Message-ID: <88DBF0F5824B31449104920BF89A758F1EBA47@edxmb3.jdnet.deere.com> Anybody use Nagios WAP Interface? If so how well does it work? And is it worth setting up? Thanks Richard Harlan Network Engineer John Deere JDAMC 11145 Thompson Ave. Lenexa, KS 66219 Phone: 913-310-8626 Fax: 913-310-8348 HarlanRichardC at JohnDeere.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 Mon Jan 27 16:28:43 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 27 Jan 2003 10:28:43 -0500 (EST) Subject: check_snmp and mulitple oid returns In-Reply-To: References: Message-ID: On Mon, 27 Jan 2003, Karl DeBisschop wrote: > jgking at packetstorm.org writes: > > > > > Ive been searching the list archives for the last 30 minutes have been > > having alot of hits close to it but either im not understanding or its > > different than what im asking. > > > > Instead of having, say 5 seperate snmp check entries in the services.cfg > > file, i would rather consolidate it into one single check and look for an > > oid return value that meets the error criteria. > > > > For example, disk percent usage. > > > > In snmpd.conf i setup the following: > > > > disk / 10000 > > disk /boot 10000 > > disk /data 10000 > > disk /home 817928 > > disk /tmp 10000 > > disk /usr 10000 > > disk /var 10000 > > > > Now that this will do is set the errorflag field if anything matches > > > > .iso.3.6.1.4.1.2021.9.1.101.1 = "" > > .iso.3.6.1.4.1.2021.9.1.101.2 = "" > > .iso.3.6.1.4.1.2021.9.1.101.3 = "" > > .iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" > > .iso.3.6.1.4.1.2021.9.1.101.5 = "" > > .iso.3.6.1.4.1.2021.9.1.101.6 = "" > > > > > > In my checkcommands file I have the following: > > > > define command{ > > command_name check_snmp > > command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -s $ARG3$ > > -C $ARG4$ > > } > > > > > > And in the services file I have this > > > > define service{ > > use generic-service ; Name of > > service template to use > > > > host_name localhost > > service_description Disk: Usage > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command > > check_snmp!localhost!.1.3.6.1.4.1.2021.9.1.101.1,.1.3.6.1.4.1.2021.9.1.101.2,.1.3.6.1.4.1.20 > > 21.9.1.101.3,.1.3.6.1.4.1.2021.9.1.101.4,.1.3.6.1.4.1.2021.9.1.101.5,.1.3.6.1.4.1.2021.9.1.101.6!""!******* > > } > > > > > > Which I find returns an OK unless the last oid checked is the one that > > fails. > > > > So is there a way to have check_snmp return a fail if any oid in the group > > fails? > > The string check only applies to one OID - it does not default across the > bunch (though on reflection, perhaps it should). This is true of any retrun > type. > > I know from memory that you can read the free bytes and specify multiple > critcal and warning thresholds to get the behaviour you want. I don't recall > if it works that way for strings, or if it is still to be implemented - read > the source to see, I guess. > > -- regex matches are currtnely limited to a single oid... will change on the next rewrite of check_snmp to remove the 8 oid limit. -- -sg ------------------------------------------------------- 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 Jan 27 16:35:52 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Mon, 27 Jan 2003 07:35:52 -0800 (PST) Subject: Host Availability Report In-Reply-To: References: Message-ID: <20030127153552.94672.qmail@web21501.mail.yahoo.com> This may sound strange, but have you had an "host outage" yet? Check the availibility status off a hosts that you know has been down(Hard state, host down), does it give the same results? When I setup my version, I had the same type of issuses until I started to cause host outages for testing...Try unpluggin a few hosts and see what happends.. :) twebster at daksoft.com wrote: I guess I still don't understand why you need to select "assume host UP". Note, wny do I also need to set "Assume state retention to No" because I am using a state retention. You also mention, the service report information has the correct number, which is true, but I don't believe there is a way to view all HOSTS Service PING on one screen for reporting purposes. I guess what I need is an accurate report of all HOSTS or the Service PING, without all the other services. Can I make a service group? Thanks for the clarifications. Tony |---------+----------------------------> | | Jon Lyons | | | | | om> | | | | | | 01/24/2003 03:12 | | | PM | | | | |---------+----------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: twebster at daksoft.com, Michael Church | | cc: nagios-users at lists.sourceforge.net | | Subject: Re: [Nagios-users] Host Availability Report | >------------------------------------------------------------------------------------------------------------------------------| Is this just for the Hosts? Change the First assumed host state: to UP.. Remember, hosts are only checked when a service fails, (ie hosts are rarely checked). Service should give the information you're looking for.... twebster at daksoft.com wrote: We are also have this problem, please pass on any information you may receive. thanks Tony |---------+----------------------------------------> | | "Michael Church" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/24/2003 12:52 PM | | | | |---------+----------------------------------------> > ------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] Host Availability Report | > ------------------------------------------------------------------------------------------------------------------------------| most of my reports always have the majority % of time being undet! ermined. I've looked, poked, and prodded to find out why and I can't. We have been running nagios for about 2 months and still get the same results. Does anyone know why this is? ------------------------------------------------------- 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: From Ton.Voon at egg.com Mon Jan 27 17:29:24 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Mon, 27 Jan 2003 16:29:24 -0000 Subject: Host Availability Report Message-ID: <53104E20A25CD411B556009027E50636064D51D1@pnnemp02.pn.egg.com> What log files do you have in /usr/local/nagios/var/archives? I have mine set to daily, but I was getting two log files per day and this was giving me indetermined time. My fix was to get our system administrators to fix NTP as it was jumping all the time. > -----Original Message----- > From: Michael Church [SMTP:mchurch at corillian.com] > Sent: Friday, January 24, 2003 7:53 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Host Availability Report > > most of my reports always have the majority % of time being undetermined. > I've looked, poked, and prodded to find out why and I can't. We have been > running nagios for about 2 months and still get the same results. Does > anyone know why this is? 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 From jgking at packetstorm.org Mon Jan 27 17:46:19 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 27 Jan 2003 10:46:19 -0600 (CST) Subject: Just when i thought i had a workaround (revisit: mulitple oid returns) In-Reply-To: References: Message-ID: >From the command line the following works: check_snmp -H localhost -o .1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3 -c 0,0,0 -C **** -d "=" Which yields: SNMP OK - 0 0 0 So i add the following to checkcommands: define command{ command_name check_snmp_multi command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$ -C $ARG4$ -d $ARG5$ } Then add the following to the services: define service{ use generic-service ; Name of service template to use host_name localhost service_description System Load is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_snmp!localhost!.1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3!0,0,0!*****!"=" } And i get SNMP CRITICAL - *0* 0 0 instead. Ive tried enclosing the values in quotes and still get the same thing. Anyone know what im doing wrong here? Thanks!, Greg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rplewe at ess.nec.de Mon Jan 27 17:51:12 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Mon, 27 Jan 2003 17:51:12 +0100 Subject: Warning message on Status detail screen In-Reply-To: ; from Daniel_Casey@jbhunt.com on Mon, Jan 27, 2003 at 09:00:42AM -0600 References: Message-ID: <20030127175112.J1425@ess.nec.de> On Mon, Jan 27, 2003 at 09:00:42AM -0600, Daniel_Casey at jbhunt.com wrote: > Warning: Monitoring process may not be running! > Click here for more info. > > What does this mean? "To click" means pointing with the mousepointer on an area on the screen and pressing the left (or only, depending on your mouse) button. HTH, Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From bnelson at rightnow.com Mon Jan 27 17:40:36 2003 From: bnelson at rightnow.com (Nelson, Ben) Date: Mon, 27 Jan 2003 09:40:36 -0700 Subject: Nagios config -- not xml? Message-ID: > But for those of us who just configure it, having to type all the xml > froth would be a royal pain. I agree completely. I'm not sure I would use a 'tool' (other than vi) to do the configuration, so typing all of the extra XML cruft by hand would be a pain. --Ben -----Original Message----- From: Steve Burton [mailto:steve at sliderule.demon.co.uk] Sent: Friday, January 24, 2003 2:47 PM To: Brandon Gillespie Cc: Daniel_Casey at jbhunt.com; nagios-users at lists.sourceforge.net; nagios-users-admin at lists.sourceforge.net Subject: Re: [Nagios-users] Nagios config -- not xml? Brandon Gillespie wrote: > > Daniel_Casey at jbhunt.com wrote: > > I second your first comment about it being a pain. But, not knowing too > > much about XML, how would that make it > > easier? Is there something about XML that would be particularly useful? > > Would you still have to have all the > > different .cfg files or would that change with XML? > > > > I understand that XML is "self-describing" data, correct? How would that > > fit into configuring Nagios? > > I think the more important point was 'being able to write third party > tools to edit the config files'. By being in XML you just load an XML > parser and you are done. As it is now, you have to have custom magic to > understand the current format, which is not reusable anywhere else. > > I do concur, XML would be VERY nice. > But for those of us who just configure it, having to type all the xml froth would be a royal pain. Also the present system is self describing, the description is at the beginning of the line. The context is in the name of the config. file, if you use multiple files and the namespace is nagios. Steve. > BTW, are there any other admin tools for Nagios? I used one on > netsaint, which is not available for nagios. I'm not liking the nagat > one currently available--it doesn't import everything I've typed in, and > I find the import/export process cumbersome and annoying. > > -Brandon Gillespie > > ------------------------------------------------------- > 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 -- Steve Burton Webmaster & Sub-optimal Coder ------------------------------------------------------- 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 jgking at packetstorm.org Mon Jan 27 18:04:25 2003 From: jgking at packetstorm.org (jgking at packetstorm.org) Date: Mon, 27 Jan 2003 11:04:25 -0600 (CST) Subject: Just when i thought i had a workaround (revisit: mulitple oid returns) In-Reply-To: References: Message-ID: aaaah. i think im gonna go home and stfu :) everyone at homes sick, im at work zapped full of thera-flu and i keep making stupid oversights.... the cause of my issue i answered in my post: in the services file i used check_snmp not the newly made check_snmp_multi one i made and even mentioned in the post! ..greg On Mon, 27 Jan 2003 jgking at packetstorm.org wrote: > > >From the command line the following works: > > check_snmp -H localhost -o > .1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3 > -c 0,0,0 -C **** -d "=" > > Which yields: SNMP OK - 0 0 0 > > So i add the following to checkcommands: > > define command{ > command_name check_snmp_multi > command_line $USER1$/check_snmp -H $ARG1$ -o $ARG2$ -c $ARG3$ > -C $ARG4$ -d $ARG5$ > } > > > Then add the following to the services: > > define service{ > use generic-service ; Name of > service template to use > > host_name localhost > service_description System Load > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_snmp!localhost!.1.3.6.1.4.1.2021.10.1.100.1,.1.3.6.1.4.1.2021.10.1.100.2,.1.3.6.1.4.1.2021.10.1.100.3!0,0,0!*****!"=" > } > > > > And i get SNMP CRITICAL - *0* 0 0 instead. > > > Ive tried enclosing the values in quotes and still get the same thing. > > Anyone know what im doing wrong here? > > Thanks!, > > Greg > > > > ------------------------------------------------------- > 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 Mon Jan 27 19:16:00 2003 From: sandromergvaz at uol.com.br (Sandro Vaz) Date: Mon, 27 Jan 2003 15:16:00 -0300 Subject: RES: WAP Interface In-Reply-To: <88DBF0F5824B31449104920BF89A758F1EBA47@edxmb3.jdnet.deere.com> References: <88DBF0F5824B31449104920BF89A758F1EBA47@edxmb3.jdnet.deere.com> Message-ID: Harlan: 4 months ago, when i was learning Nagios, i?ve used WAP successfully. After all the regular dr Nagios Deply, just point to the full path of statuswml.cgi at your cellphone (or use www.gelon.net to simulate it). But these days when i?ve accessed it once again, it began to ask for password at each item i tried to see (after the first logon). If you have success, please send me your httpd.conf to see if i am doing something wrong. HTH,, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Harlan Richard C Enviada em: segunda-feira, 27 de janeiro de 2003 12:29 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] WAP Interface Anybody use Nagios WAP Interface? If so how well does it work? And is it worth setting up? Thanks Richard Harlan Network Engineer John Deere JDAMC 11145 Thompson Ave. Lenexa, KS 66219 Phone: 913-310-8626 Fax: 913-310-8348 HarlanRichardC at JohnDeere.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 --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.435 / Virus Database: 244 - Release Date: 30/12/2002 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From drich at employees.org Mon Jan 27 18:14:55 2003 From: drich at employees.org (Dan Rich) Date: Mon, 27 Jan 2003 09:14:55 -0800 (PST) Subject: Nagios config -- not xml? In-Reply-To: References: Message-ID: <40370.63.237.201.12.1043687695.squirrel@www.lapseofthought.com> Nelson, Ben said: >> But for those of us who just configure it, having to type all the xml >> froth would be a royal pain. > > I agree completely. I'm not sure I would use a 'tool' (other than vi) to do > the configuration, so typing all of the extra XML cruft by hand would be a > pain. In the case of a lot of XML I have to agree with this, but for a nagios config I don't see a lot of extra "cruft" you would have to type. With the exception of some < and > characters I think you are already typing most of it today. In fact, if it is all collapsed into a single config file you would be typing *less*, since you wouldn't have to repeat data in multiple files (unless you wanted to). Initially I was against the idea of the nagios configs being in XML, but the more I think about it, the more I think it's a good idea. It would make it much easier to develop tools to manipulate the files and as someone else already said, make it easier to verify the data in the files is correct. > -----Original Message----- > From: Steve Burton [mailto:steve at sliderule.demon.co.uk] > Sent: Friday, January 24, 2003 2:47 PM > To: Brandon Gillespie > Cc: Daniel_Casey at jbhunt.com; nagios-users at lists.sourceforge.net; > nagios-users-admin at lists.sourceforge.net > Subject: Re: [Nagios-users] Nagios config -- not xml? > > > > > Brandon Gillespie wrote: >> >> Daniel_Casey at jbhunt.com wrote: >> > I second your first comment about it being a pain. But, not knowing too >> > much about XML, how would that make it >> > easier? Is there something about XML that would be particularly useful? >> > Would you still have to have all the >> > different .cfg files or would that change with XML? >> > >> > I understand that XML is "self-describing" data, correct? How would > that >> > fit into configuring Nagios? >> >> I think the more important point was 'being able to write third party >> tools to edit the config files'. By being in XML you just load an XML >> parser and you are done. As it is now, you have to have custom magic to >> understand the current format, which is not reusable anywhere else. >> >> I do concur, XML would be VERY nice. >> > > But for those of us who just configure it, having to type all the xml > froth would be a royal pain. Also the present system is self describing, > the description is at the beginning of the line. The context is in the > name of the config. file, if you use multiple files and the namespace is > nagios. > > Steve. > >> BTW, are there any other admin tools for Nagios? I used one on >> netsaint, which is not available for nagios. I'm not liking the nagat >> one currently available--it doesn't import everything I've typed in, and >> I find the import/export process cumbersome and annoying. >> >> -Brandon Gillespie >> >> ------------------------------------------------------- >> 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 > > -- > Steve Burton > > Webmaster & Sub-optimal Coder > > > ------------------------------------------------------- > 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 > -- Dan Rich | http://www.employees.org/~drich/ | "Step up to red alert!" "Are you sure, sir? | It means changing the bulb in the sign..." | - Red Dwarf (BBC) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From uriel at eln.gov.br Mon Jan 27 18:15:52 2003 From: uriel at eln.gov.br (Uriel de Almeida Papa) Date: Mon, 27 Jan 2003 15:15:52 -0200 Subject: [Fwd: snmp_check] Message-ID: <3E356948.5080804@eln.gov.br> Hello, Could anyone please help me to use MySQL with Nagios? Some errors occur during the "make all" compilation. I used the command: ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios --with-mysql-xdata Tnks! Uriel ------------------------------------------------------- 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 Jan 27 18:28:11 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Mon, 27 Jan 2003 09:28:11 -0800 (PST) Subject: check_snmp and mulitple oid returns In-Reply-To: References: Message-ID: <10296-11150@sneakemail.com> I've modified the plugin to check all the filesystems on a host at once, with a regex-based command-line method to change the warn/crit parameters for groups of filesystems. It also returns the "worst" failure it detects. Unfortunately (for most folks) I've also modified it to work with the rather broken HP-UX SNMP agent. (OID and minor logic changes since this agent does not support the host resource MIB.) If you can hack out the HP-UX portions, I would be glad to make the plugin available to you for a beta. (It's not quite ready for prime-time, but if anyone wants it, they're welcome to it.) -- Steve On Mon, 27 Jan 2003, jgking-at-packetstorm.org |Nagios| wrote: > > Ive been searching the list archives for the last 30 minutes have been > having alot of hits close to it but either im not understanding or its > different than what im asking. > > Instead of having, say 5 seperate snmp check entries in the services.cfg > file, i would rather consolidate it into one single check and look for an > oid return value that meets the error criteria. > > For example, disk percent usage. > > In snmpd.conf i setup the following: > > disk / 10000 > disk /boot 10000 > disk /data 10000 > disk /home 817928 > disk /tmp 10000 > disk /usr 10000 > disk /var 10000 > > Now that this will do is set the errorflag field if anything matches > > ..iso.3.6.1.4.1.2021.9.1.101.1 = "" > ..iso.3.6.1.4.1.2021.9.1.101.2 = "" > ..iso.3.6.1.4.1.2021.9.1.101.3 = "" > ..iso.3.6.1.4.1.2021.9.1.101.4 = "/home: less than 817928 free (= 807928)" > ..iso.3.6.1.4.1.2021.9.1.101.5 = "" > ..iso.3.6.1.4.1.2021.9.1.101.6 = "" ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From rrebel at whenu.com Mon Jan 27 18:33:47 2003 From: rrebel at whenu.com (Richard F. Rebel) Date: Mon, 27 Jan 2003 12:33:47 -0500 (EST) Subject: 'interval_length' is ignored in Nagios-1.0? Message-ID: <1063.66.9.22.194.1043688827.squirrel@webmail.obulous.org> Hello, I have set interval_length in the nagios.cfg file; interval_length=1 And subsequently configured many things to be checked very 30 intervales (should be seconds) but the scheduling queue shows the next checks for these services to be 30 minutes apart. Is this variable ignored in Nagios-1.0 or am I setting this incorrectly. Thanks, I really need to check certain things in the sub-minute range. Richard ------------------------------------------------------- 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 Jan 27 19:08:34 2003 From: mpowell at ena.com (Marc Powell) Date: Mon, 27 Jan 2003 12:08:34 -0600 Subject: [Fwd: snmp_check] Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED1E3@mismail.ena.com> Help us to help you... What are the errors that you are seeing? What OS and version are you trying to compile it on? What version on Nagios? What version of mysql? Have you tried specifying the --with-mysql-lib= and --with-mysql-inc= configure directives appropriately? -- Marc > -----Original Message----- > From: Uriel de Almeida Papa [mailto:uriel at eln.gov.br] > Sent: Monday, January 27, 2003 11:16 AM > To: nagios-users > Subject: [Nagios-users] [Fwd: snmp_check] > > > > Hello, > > > Could anyone please help me to use MySQL with Nagios? Some errors occur > during the "make all" compilation. I used the command: > > ./configure --prefix=/usr/local/nagios --with-cgiurl=/nagios/cgi-bin -- > with-htmurl=/nagios/ --with-nagios-user=nagios --with-nagios-grp=nagios > --with-mysql-xdata > > > > > > Tnks! > Uriel > > > > > ------------------------------------------------------- > 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 Daniel_Casey at jbhunt.com Mon Jan 27 19:19:22 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Mon, 27 Jan 2003 12:19:22 -0600 Subject: Warning message on Status detail screen Message-ID: Hardy, har, har...:-) How do I remove the Warning: message? Sounds like something in Nagios can be setup to "watch itself"? Also, if I click on host from the Service Status Details For All Hosts screen, I see the following on the right side: Host Commands It appears as though Nagios is not running, so commands are temporarily unavailable... Click here to view Nagios process information |---------+----------------------------------------> | | Rasmus Plewe | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/27/2003 10:51 | | | Please respond to Rasmus | | | Plewe | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: Nagios users list | | cc: | | Subject: Re: [Nagios-users] Warning message on Status detail screen | >----------------------------------------------------------------------------------------------------------------------------------------------| On Mon, Jan 27, 2003 at 09:00:42AM -0600, Daniel_Casey at jbhunt.com wrote: > Warning: Monitoring process may not be running! > Click here for more info. > > What does this mean? "To click" means pointing with the mousepointer on an area on the screen and pressing the left (or only, depending on your mouse) button. HTH, 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 jcarro10 at sprintspectrum.com Mon Jan 27 19:30:45 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 27 Jan 2003 12:30:45 -0600 Subject: compiling Nagios with MySQL support (was: [Fwd : snmp_check]) Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2523@PKDWB03C.ad.sprint.com> Before I comment on the essence of your post, I wish to reiterate to those less familiar with mailing lists: - keep the Subject relevant - if you're commenting on a thread, hit Reply - if you're starting a new thread, erase the Subject and start fresh, preferably with text which is relevant to the body of your e-mail - Subjects such as "HELP" or "URGENT" or "" may not get you the type of response you're looking for - be informative - generally speaking, the readers on this list aren't psychic - state the operating system, the version, the relevant components - give us 'cause and effect' - don't just describe what you did - don't just describe the effect of what you did - explain what you did AND the effect it had - where possible, cut-and-paste, DON'T transcribe manually (as this can lead to errors and confusion) - messages which are essentially, "it's broken, HELP!" with no explanation will generally get ignored - be reasonably brief - don't paste 100,000 lines from your logs - give the problem some context, eg, "I get 'ERROR' when I start Nagios" is perhaps a wee bit *too* brief Having said the above, let's see what we can do to help you. Try adding the following to your ./configure line: --with-mysql-lib=/usr/lib/mysql --with-mysql-inc=/usr/include/mysql Also, you might want to take note of this URL: http://www.nagios.org/upcoming.php In particular, these comments: 8. DB support for retention data is being dropped 9. DB support for extended information is being dropped HTH. jc > -----Original Message----- > From: Uriel de Almeida Papa [mailto:uriel at eln.gov.br] > Sent: Monday, January 27, 2003 11:16 AM > To: nagios-users > Subject: [Nagios-users] [Fwd: snmp_check] > > > > > Hello, > > > Could anyone please help me to use MySQL with Nagios? Some > errors occur during the "make all" compilation. I used the command: > > ./configure --prefix=/usr/local/nagios > --with-cgiurl=/nagios/cgi-bin --with-htmurl=/nagios/ > --with-nagios-user=nagios --with-nagios-grp=nagios > --with-mysql-xdata > > > > > > Tnks! > Uriel > > > > > ------------------------------------------------------- > 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 Jan 27 19:59:52 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 27 Jan 2003 13:59:52 -0500 Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing Message-ID: <5593DA408212D511B0910002A513501F01D288C3@phsexch20.mgh.harvard.edu> Sorry about that... > -----Original Message----- > From: Kaplan, Andrew H. > Sent: Monday, January 27, 2003 12:52 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > -----Original Message----- > From: Kaplan, Andrew H. > Sent: Monday, January 27, 2003 12:50 PM > To: nagios-users at lists.sourceforge.net > Subject: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > Hi there, > > I'm working on a script e-mailed to me by Codonics that is designed to use > monitor their 16xx series printers > using snmp. The file is included in this e-mail. I installed the file in the > libexec directory along with the mib.txt file. > Additionally, I configured the checkcommands and services.cfg files > accordingly. The problem I am running into is the following: > > Error Code 127 Is Out Of Bounds Plugin May Be Missing > > The command-line I'm using in services.cfg is > > $USER1$/np_snmp_status.sh -H $HOSTADDRESS$ -C public > > > Any ideas on what I can do? > > <> -------------- next part -------------- A non-text attachment was scrubbed... Name: np_snmp_status.sh Type: application/octet-stream Size: 3655 bytes Desc: not available URL: From nagios.dm at wrhambrecht.com Mon Jan 27 21:54:26 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Mon, 27 Jan 2003 12:54:26 -0800 Subject: Stange problem checking https Message-ID: <001101c2c646$470e6010$bb20a8c0@corp.wrhambrecht.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Mon Jan 27 22:02:47 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 27 Jan 2003 16:02:47 -0500 (EST) Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing In-Reply-To: <5593DA408212D511B0910002A513501F01D288C3@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288C3@phsexch20.mgh.harvard.edu> Message-ID: Nagios cannot find the script - check the path name in the config. -sg On Mon, 27 Jan 2003, Kaplan, Andrew H. wrote: > Sorry about that... > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:52 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:50 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > Hi there, > > > > I'm working on a script e-mailed to me by Codonics that is designed to use > > monitor their 16xx series printers > > using snmp. The file is included in this e-mail. I installed the file in the > > libexec directory along with the mib.txt file. > > Additionally, I configured the checkcommands and services.cfg files > > accordingly. The problem I am running into is the following: > > > > Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > The command-line I'm using in services.cfg is > > > > $USER1$/np_snmp_status.sh -H $HOSTADDRESS$ -C public > > > > > > Any ideas on what I can do? > > > > <> > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jeremy+nagios at UnderGrid.net Mon Jan 27 22:25:32 2003 From: jeremy+nagios at UnderGrid.net (Jeremy T. Bouse) Date: Mon, 27 Jan 2003 13:25:32 -0800 Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing In-Reply-To: <5593DA408212D511B0910002A513501F01D288C3@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288C3@phsexch20.mgh.harvard.edu> Message-ID: <20030127212532.GB18045@UnderGrid.net> Well the first thing I could notice from the script you included was the fact it does not actually follow the plugin guidelines as it appears to output multiple lines. It also doesn't seem to specify any state (OK, WARNING, CRITICAL, UNKNOWN). At best it looks like a good starting point for designing a plugin but in itself does not appear that it will work as one without a good bit of re-design. I also fail to see any reason for having to have the MIB file from Codonics as the references for the SNMP queries appear to be in numeric notation so the MIB is not really needed... Jeremy On Mon, Jan 27, 2003 at 01:59:52PM -0500, Kaplan, Andrew H. wrote: > Sorry about that... > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:52 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:50 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > Hi there, > > > > I'm working on a script e-mailed to me by Codonics that is designed to use > > monitor their 16xx series printers > > using snmp. The file is included in this e-mail. I installed the file in the > > libexec directory along with the mib.txt file. > > Additionally, I configured the checkcommands and services.cfg files > > accordingly. The problem I am running into is the following: > > > > Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > The command-line I'm using in services.cfg is > > > > $USER1$/np_snmp_status.sh -H $HOSTADDRESS$ -C public > > > > > > Any ideas on what I can do? > > > > <> ------------------------------------------------------- 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 Jan 27 22:32:07 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 27 Jan 2003 16:32:07 -0500 (EST) Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing In-Reply-To: <5593DA408212D511B0910002A513501F01D288C9@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288C9@phsexch20.mgh.harvard.edu> Message-ID: No perm bits or incorrect #! shell spec. -sg On Mon, 27 Jan 2003, Kaplan, Andrew H. wrote: > Hi Subhendu, > > I double-checked the checkcommnds.cfg file and there was no syntax error. Any > other ideas? > > -----Original Message----- > From: Subhendu Ghosh [mailto:sghosh at sghosh.org] > Sent: Monday, January 27, 2003 4:03 PM > To: 'nagios-users at lists.sourceforge.net' > Subject: Re: [Nagios-users] FW: Error Code 127 Is Out Of Bounds Plugin > May Be Missing > > > Nagios cannot find the script - check the path name in the config. > > -sg > > On Mon, 27 Jan 2003, Kaplan, Andrew H. wrote: > > > Sorry about that... > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. > > > Sent: Monday, January 27, 2003 12:52 PM > > > To: 'nagios-users at lists.sourceforge.net' > > > Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > > > > > > > -----Original Message----- > > > From: Kaplan, Andrew H. > > > Sent: Monday, January 27, 2003 12:50 PM > > > To: nagios-users at lists.sourceforge.net > > > Subject: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > Hi there, > > > > > > I'm working on a script e-mailed to me by Codonics that is designed to use > > > monitor their 16xx series printers > > > using snmp. The file is included in this e-mail. I installed the file in the > > > libexec directory along with the mib.txt file. > > > Additionally, I configured the checkcommands and services.cfg files > > > accordingly. The problem I am running into is the following: > > > > > > Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > The command-line I'm using in services.cfg is > > > > > > $USER1$/np_snmp_status.sh -H $HOSTADDRESS$ -C public > > > > > > > > > Any ideas on what I can do? > > > > > > <> > > > > -- ------------------------------------------------------- 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 Jan 27 22:26:30 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Mon, 27 Jan 2003 16:26:30 -0500 Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing Message-ID: <5593DA408212D511B0910002A513501F01D288C9@phsexch20.mgh.harvard.edu> Hi Subhendu, I double-checked the checkcommnds.cfg file and there was no syntax error. Any other ideas? -----Original Message----- From: Subhendu Ghosh [mailto:sghosh at sghosh.org] Sent: Monday, January 27, 2003 4:03 PM To: 'nagios-users at lists.sourceforge.net' Subject: Re: [Nagios-users] FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing Nagios cannot find the script - check the path name in the config. -sg On Mon, 27 Jan 2003, Kaplan, Andrew H. wrote: > Sorry about that... > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:52 PM > > To: 'nagios-users at lists.sourceforge.net' > > Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > > > > > -----Original Message----- > > From: Kaplan, Andrew H. > > Sent: Monday, January 27, 2003 12:50 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > Hi there, > > > > I'm working on a script e-mailed to me by Codonics that is designed to use > > monitor their 16xx series printers > > using snmp. The file is included in this e-mail. I installed the file in the > > libexec directory along with the mib.txt file. > > Additionally, I configured the checkcommands and services.cfg files > > accordingly. The problem I am running into is the following: > > > > Error Code 127 Is Out Of Bounds Plugin May Be Missing > > > > The command-line I'm using in services.cfg is > > > > $USER1$/np_snmp_status.sh -H $HOSTADDRESS$ -C public > > > > > > Any ideas on what I can do? > > > > <> > -- ------------------------------------------------------- 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 Brian.Ipsen at andebakken.dk Mon Jan 27 22:39:35 2003 From: Brian.Ipsen at andebakken.dk (Brian Ipsen) Date: Mon, 27 Jan 2003 22:39:35 +0100 Subject: Statusmap error In-Reply-To: References: Message-ID: Hi, > Do you get an error message in the apache error log file about > statusmap.cgi exiting prematurely? I had a problem with that, > and I believe the problem was in the order I installed/compiled > the pieces that gd uses. I.E. libpng, libjpeg, and libgd. I have that exact problem on an 1.0 installation right now. Could you give me a hint on how things should be patched in the makefile to get things running ?? Thanks in advance /Brian ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From MParsisson at NCSHealth.com Mon Jan 27 22:38:02 2003 From: MParsisson at NCSHealth.com (MParsisson at NCSHealth.com) Date: Mon, 27 Jan 2003 16:38:02 -0500 Subject: can't find cgi.cfg problem on HPUX 11.0 Message-ID: Hi all, I'm having a problem with the cgi's and finding cgi.cfg. I'm running Nagios 1.03 on HPUX 11.0, I used gcc 3.1 and gmake 3.79.1 to build it. Nagios seems to build fine and installs fine also. I followed the directions and setup apache to see the nagios/ and nagios/cgi-bin/ dirs correctly. I'm not having any problems getting to the main web pages or the cgi-bins. However, it seems when the cgi-bins are called, they all return an error. The error I'm getting is: Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for reading! My cgi.cfg file is in /usr/local/nagios/etc/cgi.cfg as are the rest of my config files. The cgi.cfg file has 777 perm. I took all the defaults for the config and install so the default vaules in the config files should all work ok. I've checked them to be sure though. Just to verify, I even blew away the entire install and build tree and started from scratch. I get the same problem. Anyone have a suggestion on this? It's like the @sysconfdir@ is not being defined to the cgi's so they can't find the config file. But I can't find where that is suppose to be defined. Any and all help or ideas are appreciated - I'm getting really frustrated. TIA, Mark ------------------------------------------------------- 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 Jan 27 23:00:32 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Mon, 27 Jan 2003 17:00:32 -0500 (EST) Subject: Stange problem checking https In-Reply-To: <001101c2c646$470e6010$bb20a8c0@corp.wrhambrecht.com> References: <001101c2c646$470e6010$bb20a8c0@corp.wrhambrecht.com> Message-ID: 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 GPotter at MarathonOil.com Mon Jan 27 23:23:00 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Mon, 27 Jan 2003 16:23:00 -0600 Subject: Statusmap error Message-ID: I didn't modify anyting in the Makefile, here are the notes I made after several attempts to install, and the frustration of gd not working. It worked for me YMMV. I am running on Solaris 7 on an Ultra 5 by the way. Using Nagios 1.0 Greg # File: $HOME/notes/nagios #Here is what I had to do to get nagios running on Solaris. # be sure to install in this order as the gd and nagios rely on JPEG being # there when configure is run to find the correct libraries and headers. (I think) - pkgadd -d ./zlib-1.1.4-sol7-sparc-local.gz - pkgadd -d ./openssl-0.9.6g-sol7-sparc-local.gz - pkgadd -d ./openssh-3.4p1-sol7-sparc-local.gz - install /etc/init.d/sshd /etc/rc2.d/S90sshd - pkgadd -d ./prngd-0.9.25-sol7-sparc-local - mkdir /var/spool/prngd - install /etc/init.d/prngd /etc/rc2.d/S90prngd - add sshd user:9005 and group:902 - mkdir /var/empty - pkgadd -d ./gcc-3.2-sol7-sparc-local.gz - Add /usr/ccs/bin to PATH - 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 - mkdir /usr/local/perl5/build - cd /usr/local/perl5/build - tar xvf /moc/okc/home/tc8/sun/perl-5.6.1.tar - fix the Configure script and makedepend.SH script - sh ./Configure -d -Dprefix=/moc/okc/software/perl - make - make test - make install - Add user and group nagios - mkdir /usr/local/nagios - cd /usr/local/nagios - tar xvf /moc/okc/home/tc8/sun/nagios-1.0.tar - cd nagios-1.0 - ./configure - make all - make install - make install-commandmode - make install-init - create link to apache htdocs for nagios documentation - ln -s /usr/local/nagios/nag*/html/docs nagiosdocs - Documentation on web page, find setting up the web interface under installing Nagios - follow the instructions for configuring the httpd.conf files. - vi /usr/local/apache/conf/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/ Options None AllowOverride AuthConfig Order allow,deny Allow from all - Add SetENV LD_LIBRARY_PATH /usr/local/lib to httpd.conf file. - To get the status map, histograms, etc ... working you need to have installed the gd, png, jpeg, and zlib libraries on your system. > -----Original Message----- > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > Sent: Monday, January 27, 2003 3:40 PM > To: Potter, G M (Greg) > Cc: Nagios List > Subject: RE: [Nagios-users] Statusmap error > > > Hi, > > > Do you get an error message in the apache error log file about > > statusmap.cgi exiting prematurely? I had a problem with that, > > and I believe the problem was in the order I installed/compiled > > the pieces that gd uses. I.E. libpng, libjpeg, and libgd. > > I have that exact problem on an 1.0 installation right now. > Could you give me a hint on how things should be patched in > the makefile to get things running ?? > > Thanks in advance > > /Brian > > ------------------------------------------------------- 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 Jan 27 23:50:50 2003 From: justin at pvamu.edu (Justin) Date: Mon, 27 Jan 2003 16:50:50 -0600 Subject: Return code of 99 is out of bounds Message-ID: <008b01c2c656$aad6dbd0$0e38cf81@fucko> I am getting this error Return code of 99 is out of bounds seems like an easy resolution. Has anyone had these problems? I could not find this in the arhcive guys, thanks Justin Wedeking -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Mon Jan 27 23:51:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Mon, 27 Jan 2003 16:51:03 -0600 Subject: Nagios config -- not xml? Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2525@PKDWB03C.ad.sprint.com> Interesting. Very interesting, actually. I'm not sure if I'm jumping too far ahead of myself, but I'd like to learn more. If this sort of a config approach (edit XML, use XSLT to create current format) is something which can be easily added into Nagios today, then perhaps a HOWTO which can be added to the FAQ over on www.nagios.org would be of value to others of us out there...? Maybe a tarball of sample files which could be downloaded...? It might help to postpone adding Yet Another Wish List Item to the list of things that Ethan already has on his plate. What tool do you use for editing the XML file? vi? BTW, I'm not all that familiar with XSLT; Google was nominally helpful, but if you have some specifics you could share with us.... jc > -----Original Message----- > From: Ian Stokes-Rees [mailto:i.stokes-rees1 at physics.ox.ac.uk] > Sent: Monday, January 27, 2003 4:34 AM > To: 'Kurt Werle'; 'nagios-users at lists.sourceforge.net' > Subject: RE: [Nagios-users] Nagios config -- not xml? > > > Very interesting that this XML debate has come up. I spent > several days > last week re-writing some of my core Nagios config files in > XML then using > XSLT to transform them into the current Nagios format. > > What does XML buy you? > > 1. Ability to write a schema to check that you have your > syntax correct. > (OK, pre-flight check _probably_ does most of this already, > but I'm sure an > XML schema with a schema validating parser would be MUCH easier) > > 2. Single, standard, format, rather than current split format > (i.e. some > files are flat VARIABLE_NAME VALUE format, and some are pseudo object > definitions with "define NAME {...}". > > 3. Much simpler layout to avoid massive cross-referencing > which _does_ do > your head in (this was the reason I started re-writing my > configs in XML). > > 4. Collapse 5 different config files into 1 (OK, maybe 2 if > you want to keep > CGI or Resource separate). Currently there is: > > i) Main nagios.cfg file > ii) resource.cfg file > iii) hosts.cfg file (object definitions -- probably pointing to > cfg_file and cfg_dir meaning lots of others files are used as well) > iv) cgi.cfg > v) extended config file. > > 5. Make use of network definitions for other monitoring or maintenance > applications. > > Below, you can see an example of my new "hosts" file which > describes nodes > in the network I am monitoring. XML provides a tree > structure, but can be > "enhanced" to graphs by using cross references. Trees are a perfect > starting point for allowing the XML itself to represent the > basic network > topology. Furthermore, if I want a new service, I just add type="SERVICE-NAME" /> to the particular node and, voila, > that node now has > that service defined for it. All the details about the IP > address or node > name are "in context" from the XML, and the "generic" service > template is > used. If I want a custom service definition for that node, instead of > having I would have > > > > > > Anyway, it seems like there are interested parties in making > this happen -- > I certainly do not feel that the current configuration system > is scalable to > extremely large systems (hundreds nodes) quickly and easily. > > Here is a taste of my XML: > > > admins > > > > > Computing Element 01 >
163.1.243.105
> > > Worker Node 01 >
163.1.243.155
> >
>
> > Storage Element 01 >
163.1.244.55
> >
> > -- > Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk > Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/ > -----Original Message----- > From: Kurt Werle [mailto:kurt at twoface.shiftmanager.net] > Sent: 24 January 2003 20:09 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Nagios config -- not xml? > > > I've recently installed nagios and really like it. That > said, configuring > it is a royal pain. I'm wondering why the config files are the > traditional unix block style -- it seems like it would be > really nice to > have it in xml. This would make it much easier to write configuration > tools. > > Thanks for a great tool, > Kurt > --- > kwerle at pobox.com > http://www.pobox.com/~kwerle/ > Tired of spam? Control your Mailserver (or .forward)? http://tess.sf.net ------------------------------------------------------- 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 r1p6os402 at sneakemail.com Tue Jan 28 01:42:32 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Mon, 27 Jan 2003 16:42:32 -0800 (PST) Subject: can't find cgi.cfg problem on HPUX 11.0 In-Reply-To: References: Message-ID: <6831-78416@sneakemail.com> That really looks like an autoconf problem. (I.e. the "configure" script wasn't generated properly for your HP-UX host.) Your best bet is to "make distclean", delete/rename the "configure" and "subst" scripts, and then run "autoconf", followed by the usual "./configure" + make. Be sure that you have a recent version of autoconf installed first. All this is not needed in theory, but you know what they say about the difference between theory and practice...* -- Steve * There is none in theory, but there often is in practice. ;-) On Mon, 27 Jan 2003, MParsisson-at-NCSHealth.com |Nagios| wrote: > The error I'm getting is: > > Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for reading! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ksnider at datawire.net Tue Jan 28 03:13:06 2003 From: ksnider at datawire.net (Ken Snider) Date: Mon, 27 Jan 2003 21:13:06 -0500 Subject: Load issues with Nagios Message-ID: <3E35E732.3050605@datawire.net> Greetings all, We have Nagios running, about 50 servers, 250 processes monitored. The vast majority of these checks are via nsca/send_nsca, with the only active checks being host-checks, and ping checks. nsca is running via Xinetd, command_check_interval is -1, reaper frequency is 5, and everything works reasonably well. Services are configured to check in every 2 minutes. My issue is, the box is *always* at 100% CPU. At first, I figured this was related to the 50 or so send_nsca connections (and subsequent dumps to Nagios' pipe) that occur every two minutes via nsca. However these are dealt with within 20 or so seconds, leaving about a minute and a half where all Nagios is really doing is pinging.. yet the CPU usage remains. My next thought was the command_check_interval being -1. setting it to 1 had no difference. I tried raising the reaper interval to 10 seconds as well, no difference. I lowered the max_concurrent_checks to 40, no change. consistently 100% use. Set the status_update interval to 30 seconds, to make sure it wasn't the writes to the status file, nothing (yep, aggregate writes is on). The system, BTW, is RH8, PIII-750, with 256 MB RAM and a Gig of Swap. The box is using a whopping 60MB of ram. The box almost never uses IO (save the mad rush every two minutes from NSCA), and has nothing else of import (or load) running. Load is all from the parent nagios process. So, here's my question.. is this load, perhaps, *normal*? Is a P-III 750 really, truly maxed out with about 50 active services (ping mainly), and 300 passive services running? I personally find that difficult to believe, but I like to hear everyone's thoughts on the subject. ;) Thanks in advance. :) -- Ken Snider Senior Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From skertzman at servervault.com Tue Jan 28 03:16:40 2003 From: skertzman at servervault.com (Kertzman, Sam) Date: Mon, 27 Jan 2003 21:16:40 -0500 Subject: Nagios config -- not xml? Message-ID: <841A2A811DB61840BA6423C08B5735D3802CD1@dulles1.ops.servervault.com> > Very interesting that this XML debate has come up. I spent several days > last week re-writing some of my core Nagios config files in XML then using > XSLT to transform them into the current Nagios format. > > What does XML buy you? A ton of added complexity. Every time the CGI's run, they read the cgi.cfg file. If you use a standard-library xml parser, the amount of code run and/or size of executable will be much larger. If you use a simplified single-purpose xml parser (which I have written and used in the past) then you loose the advantage of standard library code. > 1. Ability to write a schema to check that you have your syntax correct. > (OK, pre-flight check _probably_ does most of this already, but I'm sure an > XML schema with a schema validating parser would be MUCH easier) Actually the pre-flight check is the only check that matters. If the application you are configuring cannot read the config files, then any other check is secondary. If the data fits the schema, but the pre-flight check fails, then it still fails. > 2. Single, standard, format, rather than current split format (i.e. some > files are flat VARIABLE_NAME VALUE format, and some are pseudo object > definitions with "define NAME {...}". Of course the things that are using a simple format are simple things to configure, using xml will only add characters to the simple things, which because they are simple don't need complex data representation. > 3. Much simpler layout to avoid massive cross-referencing which _does_ do > your head in (this was the reason I started re-writing my configs in XML). The cross-referencing will not go away. It is an artifact of the problem you are describing, not the config file you are using. If you are processing the config files by machine, you have to deal the actual complexity (of the problem, not the file format) in the code anyway. > 4. Collapse 5 different config files into 1 (OK, maybe 2 if you want to keep > CGI or Resource separate). Currently there is: > > i) Main nagios.cfg file > ii) resource.cfg file > iii) hosts.cfg file (object definitions -- probably pointing to > cfg_file and cfg_dir meaning lots of others files are used as well) > iv) cgi.cfg > v) extended config file. The cgi.cfg and ext*info.cfg files are read by the cgis and should be separate so they don't have to parse through a giant config file when they run. This is a scaling issue. Also, permission issues for the files should be considered. Perhaps I want all the config for a group of servers in a single file, and only certain admins have access to the configs for certain servers. Perhaps only the nagios administrator can change the nagios.cfg file The split-up config files confer a number of benefits. > 5. Make use of network definitions for other monitoring or maintenance > applications. That would imply a standard tags and values all the platforms. Does this standard format exist, and does anyone use it if it does? > Below, you can see an example of my new "hosts" file which describes nodes > in the network I am monitoring. XML provides a tree structure, but can be > "enhanced" to graphs by using cross references. Trees are a perfect > starting point for allowing the XML itself to represent the > basic network topology. Furthermore, if I want a new service, I just add type="SERVICE-NAME" /> to the particular node and, voila, that node now has > that service defined for it. All the details about the IP address or node > name are "in context" from the XML, and the "generic" service template is > used. If I want a custom service definition for that node, instead of > having I would have > > > > > > Anyway, it seems like there are interested parties in making this happen -- > I certainly do not feel that the current configuration system is scalable to > extremely large systems (hundreds nodes) quickly and easily. That problem is solved with a management front-end, not with a file format change. > Here is a taste of my XML: > > > admins > > > > > Computing Element 01 >
163.1.243.105
> > > Worker Node 01 >
163.1.243.155
> >
>
> > Storage Element 01 >
163.1.244.55
> >
In what way is this easier or clearer that the existing format? Perhaps for different people with different backgrounds things are different, but this format is every bit as hard to read as the existing format, and xml is a lot more syntactically heavy. Please don't add extra, unneeded complexity to the file formats. Currently they are simple. Simple is good. XML is not simple. XML is complex and through it's complexity brings some benefits, however, the existing formats deliver what you need, and are simple and easy to debug by hand, which XML is not. kertzman ------------------------------------------------------- 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 Jan 28 06:09:44 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 27 Jan 2003 23:09:44 -0600 Subject: Nagios config -- not xml? In-Reply-To: <841A2A811DB61840BA6423C08B5735D3802CD1@dulles1.ops.servervault.com> References: <841A2A811DB61840BA6423C08B5735D3802CD1@dulles1.ops.servervault.com> Message-ID: <3E35BC38.17899.140E3DD@localhost> Been catching up on a few days worth of email, so I'll put my two cents in. A few people had suggested XML config files before I started writing the template-style format code, but I didn't care for it. XML is too chatty for my liking when I'm editing config files by hand. Plus, an XML parser would add to the overhead of the daemon and CGIs. I don't know how much overhead exactly, but it would probably be more than the overhead of the current template-based routines. I would tend to steer people towards Ian Stokes' idead to generate template-style config files from an XML source, rather than making Nagios process the XML natively. The same thing holds for native DB support of config data. Its better to write a few scripts to generate template-style config files from a DB source, rather than have Nagios check the DB natively. Some people want to use a DB as a backend, some want XML files, others might want something different. The easiest thing to do is make everyone convert to a common denominator - the template-style config files. On 27 Jan 2003 at 21:16, Kertzman, Sam wrote: > > Very interesting that this XML debate has come up. I spent several days > > last week re-writing some of my core Nagios config files in XML then using > > XSLT to transform them into the current Nagios format. > > > > What does XML buy you? > > A ton of added complexity. Every time the CGI's run, they read the cgi.cfg > file. If you use a standard-library xml parser, the amount of code run > and/or size of executable will be much larger. If you use a simplified > single-purpose xml parser (which I have written and used in the past) then > you loose the advantage of standard library code. > > > > 1. Ability to write a schema to check that you have your syntax correct. > > (OK, pre-flight check _probably_ does most of this already, but I'm sure > an > > XML schema with a schema validating parser would be MUCH easier) > > Actually the pre-flight check is the only check that matters. If the > application you are configuring cannot read the config files, then any other > check is secondary. If the data fits the schema, but the pre-flight check > fails, then it still fails. > > > > 2. Single, standard, format, rather than current split format (i.e. some > > files are flat VARIABLE_NAME VALUE format, and some are pseudo object > > definitions with "define NAME {...}". > > Of course the things that are using a simple format are simple things to > configure, using xml will only add characters to the simple things, which > because they are simple don't need complex data representation. > > > > 3. Much simpler layout to avoid massive cross-referencing which _does_ do > > your head in (this was the reason I started re-writing my configs in XML). > > The cross-referencing will not go away. It is an artifact of the problem > you are describing, not the config file you are using. If you are > processing the config files by machine, you have to deal the actual > complexity (of the problem, not the file format) in the code anyway. > > > > 4. Collapse 5 different config files into 1 (OK, maybe 2 if you want to > keep > > CGI or Resource separate). Currently there is: > > > > i) Main nagios.cfg file > > ii) resource.cfg file > > iii) hosts.cfg file (object definitions -- probably pointing to > > cfg_file and cfg_dir meaning lots of others files are used as well) > > iv) cgi.cfg > > v) extended config file. > > The cgi.cfg and ext*info.cfg files are read by the cgis and should be > separate so they don't have to parse through a giant config file when they > run. This is a scaling issue. Also, permission issues for the files should > be considered. Perhaps I want all the config for a group of servers in a > single file, and only certain admins have access to the configs for certain > servers. Perhaps only the nagios administrator can change the nagios.cfg > file The split-up config files confer a number of benefits. > > > > 5. Make use of network definitions for other monitoring or maintenance > > applications. > > That would imply a standard tags and values all the platforms. Does this > standard format exist, and does anyone use it if it does? > > > > Below, you can see an example of my new "hosts" file which describes nodes > > in the network I am monitoring. XML provides a tree structure, but can > be > > "enhanced" to graphs by using cross references. Trees are a perfect > > starting point for allowing the XML itself to represent the > > basic network topology. Furthermore, if I want a new service, I just add > > type="SERVICE-NAME" /> to the particular node and, voila, that node now > has > > that service defined for it. All the details about the IP address or node > > name are "in context" from the XML, and the "generic" service template is > > used. If I want a custom service definition for that node, instead of > > having I would have > > > > > > > > > > > > Anyway, it seems like there are interested parties in making this happen > -- > > I certainly do not feel that the current configuration system is scalable > to > > extremely large systems (hundreds nodes) quickly and easily. > > That problem is solved with a management front-end, not with a file format > change. > > > > Here is a taste of my XML: > > > > > > admins > > > > > > > > > > Computing Element 01 > >
163.1.243.105
> > > > > > Worker Node 01 > >
163.1.243.155
> > > >
> >
> > > > Storage Element 01 > >
163.1.244.55
> > > >
> > In what way is this easier or clearer that the existing format? Perhaps for > different people with different backgrounds things are different, but this > format is every bit as hard to read as the existing format, and xml is a lot > more syntactically heavy. > > Please don't add extra, unneeded complexity to the file formats. Currently > they are simple. Simple is good. XML is not simple. XML is complex and > through it's complexity brings some benefits, however, the existing formats > deliver what you need, and are simple and easy to debug by hand, which XML > is not. > > kertzman > > > ------------------------------------------------------- > 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 nagios at nagios.org Tue Jan 28 06:39:07 2003 From: nagios at nagios.org (Ethan Galstad) Date: Mon, 27 Jan 2003 23:39:07 -0600 Subject: Host Availability Report In-Reply-To: <53104E20A25CD411B556009027E50636064D51D1@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D51D1@pnnemp02.pn.egg.com> Message-ID: <3E35C31B.2742.15BCCAD@localhost> Since these are common questions, I added two new FAQs which describe how the undetermined time is calculated, along with how to "fix" it. http://www.nagios.org/faqs/viewfaq.php?faq_id=136 http://www.nagios.org/faqs/viewfaq.php?faq_id=135 On 27 Jan 2003 at 16:29, Voon, Ton wrote: > What log files do you have in /usr/local/nagios/var/archives? I have mine > set to daily, but I was getting two log files per day and this was giving me > indetermined time. My fix was to get our system administrators to fix NTP as > it was jumping all the time. > > > -----Original Message----- > > From: Michael Church [SMTP:mchurch at corillian.com] > > Sent: Friday, January 24, 2003 7:53 PM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Host Availability Report > > > > most of my reports always have the majority % of time being undetermined. > > I've looked, poked, and prodded to find out why and I can't. We have been > > running nagios for about 2 months and still get the same results. Does > > anyone know why this is? > > > 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 > 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 Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 28 07:12:47 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 28 Jan 2003 17:12:47 +1100 Subject: Load issues with Nagios In-Reply-To: <3E35E732.3050605@datawire.net>; from ksnider@datawire.net on Mon, Jan 27, 2003 at 09:13:06PM -0500 References: <3E35E732.3050605@datawire.net> Message-ID: <20030128171238.H21105@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say that your load sounds too high and I can't understand why. This host Dec 7 21:47:35 tsitc /kernel: Timecounter "i8254" frequency 1193182 Hz Dec 7 21:47:35 tsitc /kernel: CPU: Pentium III/Pentium III Xeon/Celeron (851.94-MHz 686-class CPU) Dec 7 21:47:35 tsitc /kernel: Origin = "GenuineIntel" Id = 0x686 Stepping = 6 (a Dell 350 Celeron I think) runs 334 active service checks on 192 hosts (+ a few passives via snmptrapd) and the load is tsitc> uptime 4:54PM up 51 days, 19:08, 4 users, load averages: 0.08, 0.12, 0.14 no more than an average of 20% CPU utilisation. This host also hosts Apache (for Nagios) and a few other moderately used applications. Unfortunately, I cannot offer any indication as to why the CPU load is so high apart from your machine is being forked to death because of your relatively low check interval - but you are getting check results sent by NCSA and so your Nag should only need to check the command queue every two minutes and process it. The minimum check interval here is 5 minutes (1 minute for soft states). On Mon, Jan 27, 2003 at 09:13:06PM -0500, Ken Snider wrote: > Greetings all, > > We have Nagios running, about 50 servers, 250 processes monitored. The vast > majority of these checks are via nsca/send_nsca, with the only active checks > being host-checks, and ping checks. nsca is running via Xinetd, > command_check_interval is -1, reaper frequency is 5, and everything works > reasonably well. Services are configured to check in every 2 minutes. > > My issue is, the box is *always* at 100% CPU. At first, I figured this was > related to the 50 or so send_nsca connections (and subsequent dumps to > Nagios' pipe) that occur every two minutes via nsca. However these are dealt > with within 20 or so seconds, leaving about a minute and a half where all > Nagios is really doing is pinging.. yet the CPU usage remains. > > My next thought was the command_check_interval being -1. setting it to 1 had > no difference. > > I tried raising the reaper interval to 10 seconds as well, no difference. I > lowered the max_concurrent_checks to 40, no change. consistently 100% use. > > Set the status_update interval to 30 seconds, to make sure it wasn't the > writes to the status file, nothing (yep, aggregate writes is on). > > The system, BTW, is RH8, PIII-750, with 256 MB RAM and a Gig of Swap. The > box is using a whopping 60MB of ram. The box almost never uses IO (save the > mad rush every two minutes from NSCA), and has nothing else of import (or > load) running. Load is all from the parent nagios process. > > So, here's my question.. is this load, perhaps, *normal*? Is a P-III 750 > really, truly maxed out with about 50 active services (ping mainly), and 300 > passive services running? > > I personally find that difficult to believe, but I like to hear everyone's > thoughts on the subject. ;) > > Thanks in advance. :) > > -- > Ken Snider > Senior Systems Administrator > Datawire Communication Networks Inc. 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 maartenh at phreaker.net Tue Jan 28 08:54:56 2003 From: maartenh at phreaker.net (Maarten) Date: Tue, 28 Jan 2003 08:54:56 +0100 Subject: nagios does not reset critical Message-ID: <001501c2c6a2$8c742a20$195019ac@shadowplay> I am currently experiencing quite a strange problem with nagios. Last friday I had some problems with one of my servers. As always, nagios reported the problem with an e-mail in my email box. I fixed the problem, but strange enough, nagios kees on reporting every two hours that something is wrong. When looking at the nagios console, nothing is wrong. The server and its services are as green as they can be. The nagios.log is not reporting any problems with the server or services... I restarted nagios -> no changes, still keep getting the critical e-mails I changed the configuration and removed the services from the host. Nagios restarted with an error that are no services associated with this host (excellent). But still, every two hours, there's that email that something is wrong... Did anyone experience this before, and if yes: what did you do to solve this? maarten ------------------------------------------------------- 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 Jan 28 09:18:38 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Tue, 28 Jan 2003 09:18:38 +0100 Subject: nagios does not reset critical References: <001501c2c6a2$8c742a20$195019ac@shadowplay> Message-ID: <3E363CDE.F9286EFB@gcc.dhl.com> Could be you have multiple Nagios processes running: http://www.nagios.org/faqs/viewfaq.php?faq_id=21&expand=false&showdesc=true Maarten wrote: > > I am currently experiencing quite a strange problem with nagios. Last friday > I had some problems with one of my servers. As always, nagios reported the > problem with an e-mail in my email box. > > I fixed the problem, but strange enough, nagios kees on reporting every two > hours that something is wrong. When looking at the nagios console, nothing > is wrong. The server and its services are as green as they can be. The > nagios.log is not reporting any problems with the server or services... > > I restarted nagios -> no changes, still keep getting the critical e-mails > I changed the configuration and removed the services from the host. Nagios > restarted with an error that are no services associated with this host > (excellent). But still, every two hours, there's that email that something > is wrong... > > Did anyone experience this before, and if yes: what did you do to solve > this? > > maarten > > ------------------------------------------------------- > 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 ess.nec.de Tue Jan 28 09:51:21 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Tue, 28 Jan 2003 09:51:21 +0100 Subject: nagios does not reset critical In-Reply-To: <001501c2c6a2$8c742a20$195019ac@shadowplay>; from maartenh@phreaker.net on Tue, Jan 28, 2003 at 08:54:56AM +0100 References: <001501c2c6a2$8c742a20$195019ac@shadowplay> Message-ID: <20030128095121.A1717@ess.nec.de> On Tue, Jan 28, 2003 at 08:54:56AM +0100, Maarten wrote: > > I fixed the problem, but strange enough, nagios kees on reporting every two > hours that something is wrong. When looking at the nagios console, nothing > is wrong. The server and its services are as green as they can be. The > nagios.log is not reporting any problems with the server or services... > > I restarted nagios -> no changes, still keep getting the critical e-mails > I changed the configuration and removed the services from the host. Nagios > restarted with an error that are no services associated with this host > (excellent). But still, every two hours, there's that email that something > is wrong... > > Did anyone experience this before, and if yes: what did you do to solve > this? Probably several instances of Nagios running. Stop Nagios, check for remaining Nagios processes (ps -ef | grep nagios), and kill them. Start Nagios again, and you should be fine. Rasmus ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Tue Jan 28 10:29:01 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 09:29:01 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <20030128095121.A1717@ess.nec.de> References: <20030128095121.A1717@ess.nec.de> Message-ID: <20030128092901.61097.qmail@web12603.mail.yahoo.com> Hi when i try to compile nagios plugins on tru-64 unix i am geeting the following problems 1)./configure tells me ./config.status: subst.sh: not found wheras ls shows that subst.sh is right there in the directory.. 2)make all No suffix list. Making all in plugins cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c check_disk.c cc: Error: check_disk.c, line 77: In this statement, "DF_COMMAND" is not declar) asprintf (&command_line, "%s %s", DF_COMMAND, path); ------------------------------------------^ *** Exit 1 Stop. *** Exit 1 Stop. has anybody compiled nagios plugins on tru-64 ? 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Ton.Voon at egg.com Tue Jan 28 11:39:22 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 28 Jan 2003 10:39:22 -0000 Subject: nagios plugins compilation tru-64 Message-ID: <53104E20A25CD411B556009027E50636064D51DD@pnnemp02.pn.egg.com> Hrishy, 1) Does your PATH have the current directory in it? Not sure if this is a requirement as I would have thought the configure scripts would take care of this 2) What was the configure output for the df checks? Ton > -----Original Message----- > From: hrishy [SMTP:hrishys at yahoo.co.uk] > Sent: Tuesday, January 28, 2003 9:29 AM > To: Nagios users list > Subject: [Nagios-users] nagios plugins compilation tru-64 > > Hi > > when i try to compile nagios plugins on tru-64 unix i > am geeting the following problems > > 1)./configure > > tells me ./config.status: subst.sh: not found wheras > ls shows that subst.sh is right there in the > directory.. > > 2)make all > No suffix list. > Making all in plugins > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c check_disk.c > cc: Error: check_disk.c, line 77: In this statement, > "DF_COMMAND" is not declar) > asprintf (&command_line, "%s %s", DF_COMMAND, path); > ------------------------------------------^ > *** Exit 1 > Stop. > *** Exit 1 > Stop. > > has anybody compiled nagios plugins on tru-64 ? > > regards > Hrishy > 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 From hrishys at yahoo.co.uk Tue Jan 28 11:54:28 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 10:54:28 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <53104E20A25CD411B556009027E50636064D51DD@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D51DD@pnnemp02.pn.egg.com> Message-ID: <20030128105428.3629.qmail@web12605.mail.yahoo.com> Hi Ton Yes my path has the current directory in..it I am attaching my config.log file also..which seems to be okay now however the make still fails..with the following error.I am just wundering wheather anybody on the list has the binaries for TRU-64 cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c check_disk.c cc: Error: check_disk.c, line 77: In this statement, "DF_COMMAND" is not declar) asprintf (&command_line, "%s %s", DF_COMMAND, path); ------------------------------------------^ *** Exit 1 regards Hrishy --- "Voon, Ton" wrote: > Hrishy, > > 1) Does your PATH have the current directory in it? > Not sure if this is a > requirement as I would have thought the configure > scripts would take care of > this > 2) What was the configure output for the df checks? > > Ton > > > -----Original Message----- > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > Sent: Tuesday, January 28, 2003 9:29 AM > > To: Nagios users list > > Subject: [Nagios-users] nagios plugins compilation > tru-64 > > > > Hi > > > > when i try to compile nagios plugins on tru-64 > unix i > > am geeting the following problems > > > > 1)./configure > > > > tells me ./config.status: subst.sh: not found > wheras > > ls shows that subst.sh is right there in the > > directory.. > > > > 2)make all > > No suffix list. > > Making all in plugins > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c check_disk.c > > cc: Error: check_disk.c, line 77: In this > statement, > > "DF_COMMAND" is not declar) > > asprintf (&command_line, "%s %s", DF_COMMAND, > path); > > ------------------------------------------^ > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. > > > > has anybody compiled nagios plugins on tru-64 ? > > > > regards > > Hrishy > > > > > 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. > __________________________________________________ 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 31792 bytes Desc: config.log URL: From haensel at prostep.de Tue Jan 28 11:45:37 2003 From: haensel at prostep.de (=?ISO-8859-1?Q?Martin_H=E4nsel?=) Date: Tue, 28 Jan 2003 11:45:37 +0100 Subject: Statusmap Message-ID: <3E365F51.1030505@prostep.com> Hello, I'am Martin from Germany. I have seen the Nagios Example on "http://nagios.square-box.com/" it's nice to see that. I bulid up a Nagios Host in my firm, we have a running Nagios and would like to use the statusmap of Nagios to get a better overview about the problem sources. I can see a picture when click on my status map but all of our hosts are on one point of the map. To get a tactical Statusmap like "http://nagios.square-box.com/", what i have to do? can anybody discripe me (short) what i must to do? dependendcies? thank you! sorry my bad english! Martin ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stevox2000 at yahoo.com Tue Jan 28 12:06:48 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Tue, 28 Jan 2003 12:06:48 +0100 (CET) Subject: Mail command Message-ID: <20030128110648.72171.qmail@web10905.mail.yahoo.com> Hello, I would like to post mail to my LOTUS NOTES company server from my nagios server. I try with mail but it doesn't work... Has anyone has an idea ? Thanks in advance, 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 steve.freegard at lbsltd.co.uk Tue Jan 28 12:10:40 2003 From: steve.freegard at lbsltd.co.uk (Steve Freegard) Date: Tue, 28 Jan 2003 11:10:40 -0000 Subject: Statusmap Message-ID: <67D9E7698329D411936E00508B6590B902792F6D@neelix.lbsltd.co.uk> Hello Martin, You need to use the 'parents' directive when setting up your hosts. This should be from the viewpoint of the nagios server, see the documentation for further information. E.g. Define host{ host_name big_lan_switch ...... } Define host{ host_name my_server parents big_lan_switch .... } Will draw the statusmap showing 'my_server' connected to the 'big_lan_switch'. Hope this helps. Kind regards, Steve. -- Steve Freegard Systems Manager Littlehampton Book Services Ltd. -----Original Message----- From: Martin H?nsel [mailto:haensel at prostep.de] Sent: 28 January 2003 10:46 To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Statusmap Hello, I'am Martin from Germany. I have seen the Nagios Example on "http://nagios.square-box.com/" it's nice to see that. I bulid up a Nagios Host in my firm, we have a running Nagios and would like to use the statusmap of Nagios to get a better overview about the problem sources. I can see a picture when click on my status map but all of our hosts are on one point of the map. To get a tactical Statusmap like "http://nagios.square-box.com/", what i have to do? can anybody discripe me (short) what i must to do? dependendcies? thank you! sorry my bad english! Martin ------------------------------------------------------- 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.lbsltd.co.uk ********************************************************************** ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mlang at delysid.org Tue Jan 28 12:14:57 2003 From: mlang at delysid.org (Mario Lang) Date: Tue, 28 Jan 2003 12:14:57 +0100 Subject: nagios plugins compilation tru-64 In-Reply-To: <20030128092901.61097.qmail@web12603.mail.yahoo.com> (hrishy's message of "Tue, 28 Jan 2003 09:29:01 +0000 (GMT)") References: <20030128092901.61097.qmail@web12603.mail.yahoo.com> Message-ID: <871y2xmspa.fsf@lexx.delysid.org> hrishy writes: > Hi > > when i try to compile nagios plugins on tru-64 unix i > am geeting the following problems > > 1)./configure > > tells me ./config.status: subst.sh: not found wheras > ls shows that subst.sh is right there in the > directory.. same error here. > 2)make all > No suffix list. > Making all in plugins > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c check_disk.c > cc: Error: check_disk.c, line 77: In this statement, > "DF_COMMAND" is not declar) > asprintf (&command_line, "%s %s", DF_COMMAND, path); > ------------------------------------------^ > *** Exit 1 > Stop. > *** Exit 1 > Stop. That too, reminds me of my attempts. > has anybody compiled nagios plugins on tru-64 ? The only plugin I needed was check_load. I managed to compile it by removing the code which uses getopt_long... It seems the configure process for tru64 is just broken, but I'm no autoconf person, so I'm at a loss here, sorry. -- CYa, Mario ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Ton.Voon at egg.com Tue Jan 28 12:13:28 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 28 Jan 2003 11:13:28 -0000 Subject: nagios plugins compilation tru-64 Message-ID: <53104E20A25CD411B556009027E50636064D51DF@pnnemp02.pn.egg.com> If you are still interested in getting the plugins compiled, it seems that the df command cannot be found. In the configure output, I think you probably got: "unable to find usable df syntax" You can use the configure flag --with-df_command set to the full path for TRU64's df command that gives output like: snail $ df -k Filesystem kbytes used avail capacity Mounted on /dev/dsk/c0t0d0s0 2052750 553778 1437390 28% / /proc 0 0 0 0% /proc fd 0 0 0 0% /dev/fd /dev/dsk/c0t0d0s3 1015542 70588 884022 8% /var /dev/dsk/c0t0d0s6 6185397 36858 6086686 1% /logs /dev/dsk/c0t0d0s4 4127894 215575 3871041 6% /opt /dev/dsk/c0t0d0s5 4127894 9 4086607 1% /systems swap 2127944 33640 2094304 2% /tmp (from Solaris). If you find a command works for you on TRU64, let us know and we'll put it in CVS. Ton > -----Original Message----- > From: hrishy [SMTP:hrishys at yahoo.co.uk] > Sent: Tuesday, January 28, 2003 10:54 AM > To: Voon, Ton; Nagios users list > Subject: RE: [Nagios-users] nagios plugins compilation tru-64 > > Hi Ton > > Yes my path has the current directory in..it I am > attaching my config.log file also..which seems to be > okay now however the make still fails..with the > following error.I am just wundering wheather anybody > on the list has the binaries for TRU-64 > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c check_disk.c > cc: Error: check_disk.c, line 77: In this statement, > "DF_COMMAND" is not declar) > asprintf (&command_line, "%s %s", DF_COMMAND, path); > ------------------------------------------^ > *** Exit 1 > > regards > Hrishy > > > --- "Voon, Ton" wrote: > Hrishy, > > > > 1) Does your PATH have the current directory in it? > > Not sure if this is a > > requirement as I would have thought the configure > > scripts would take care of > > this > > 2) What was the configure output for the df checks? > > > > Ton > > > > > -----Original Message----- > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > Sent: Tuesday, January 28, 2003 9:29 AM > > > To: Nagios users list > > > Subject: [Nagios-users] nagios plugins compilation > > tru-64 > > > > > > Hi > > > > > > when i try to compile nagios plugins on tru-64 > > unix i > > > am geeting the following problems > > > > > > 1)./configure > > > > > > tells me ./config.status: subst.sh: not found > > wheras > > > ls shows that subst.sh is right there in the > > > directory.. > > > > > > 2)make all > > > No suffix list. > > > Making all in plugins > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > > > -g -c check_disk.c > > > cc: Error: check_disk.c, line 77: In this > > statement, > > > "DF_COMMAND" is not declar) > > > asprintf (&command_line, "%s %s", DF_COMMAND, > > path); > > > ------------------------------------------^ > > > *** Exit 1 > > > Stop. > > > *** Exit 1 > > > Stop. > > > > > > has anybody compiled nagios plugins on tru-64 ? > > > > > > regards > > > Hrishy 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 From hrishys at yahoo.co.uk Tue Jan 28 12:21:30 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 11:21:30 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <53104E20A25CD411B556009027E50636064D51DF@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D51DF@pnnemp02.pn.egg.com> Message-ID: <20030128112130.84725.qmail@web12606.mail.yahoo.com> Hi Ton Thats cool..for figuring..out but my woes have just begun i guess..coz now i have a different problem.. Making all in plugins cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c check_disk.c cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c utils.c cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c popen.c cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. -g -c ./snprintf.c -o so ar -r libsnprintf.a snprintf.o cc -g -L. -o check_disk check_disk.o utils.o popen.o -lsnprintf -lsnprintf ld: Unresolved: getopt_long *** Exit 1 Stop. *** Exit 1 Stop. zblrdv23> ld ld: Usage: ld [options] file [...] any more ideas :-D regards Hrishy --- "Voon, Ton" wrote: > If you are still interested in getting the plugins > compiled, it seems that > the df command cannot be found. In the configure > output, I think you > probably got: > > "unable to find usable df syntax" > > You can use the configure flag --with-df_command set > to the full path for > TRU64's df command that gives output like: > > snail $ df -k > Filesystem kbytes used avail > capacity Mounted on > /dev/dsk/c0t0d0s0 2052750 553778 1437390 28% > / > /proc 0 0 0 0% > /proc > fd 0 0 0 0% > /dev/fd > /dev/dsk/c0t0d0s3 1015542 70588 884022 8% > /var > /dev/dsk/c0t0d0s6 6185397 36858 6086686 1% > /logs > /dev/dsk/c0t0d0s4 4127894 215575 3871041 6% > /opt > /dev/dsk/c0t0d0s5 4127894 9 4086607 1% > /systems > swap 2127944 33640 2094304 2% > /tmp > > (from Solaris). > > If you find a command works for you on TRU64, let us > know and we'll put it > in CVS. > > Ton > > > -----Original Message----- > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > Sent: Tuesday, January 28, 2003 10:54 AM > > To: Voon, Ton; Nagios users list > > Subject: RE: [Nagios-users] nagios plugins > compilation tru-64 > > > > Hi Ton > > > > Yes my path has the current directory in..it I am > > attaching my config.log file also..which seems to > be > > okay now however the make still fails..with the > > following error.I am just wundering wheather > anybody > > on the list has the binaries for TRU-64 > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c check_disk.c > > cc: Error: check_disk.c, line 77: In this > statement, > > "DF_COMMAND" is not declar) > > asprintf (&command_line, "%s %s", DF_COMMAND, > path); > > ------------------------------------------^ > > *** Exit 1 > > > > regards > > Hrishy > > > > > > --- "Voon, Ton" wrote: > > Hrishy, > > > > > > 1) Does your PATH have the current directory in > it? > > > Not sure if this is a > > > requirement as I would have thought the > configure > > > scripts would take care of > > > this > > > 2) What was the configure output for the df > checks? > > > > > > Ton > > > > > > > -----Original Message----- > > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > > Sent: Tuesday, January 28, 2003 9:29 AM > > > > To: Nagios users list > > > > Subject: [Nagios-users] nagios plugins > compilation > > > tru-64 > > > > > > > > Hi > > > > > > > > when i try to compile nagios plugins on tru-64 > > > unix i > > > > am geeting the following problems > > > > > > > > 1)./configure > > > > > > > > tells me ./config.status: subst.sh: not found > > > wheras > > > > ls shows that subst.sh is right there in the > > > > directory.. > > > > > > > > 2)make all > > > > No suffix list. > > > > Making all in plugins > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. > -I. > > > > > > > -g -c check_disk.c > > > > cc: Error: check_disk.c, line 77: In this > > > statement, > > > > "DF_COMMAND" is not declar) > > > > asprintf (&command_line, "%s %s", DF_COMMAND, > > > path); > > > > ------------------------------------------^ > > > > *** Exit 1 > > > > Stop. > > > > *** Exit 1 > > > > Stop. > > > > > > > > has anybody compiled nagios plugins on tru-64 > ? > > > > > > > > regards > > > > Hrishy > > > 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. > __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Donal.Hunt at dcu.ie Tue Jan 28 12:25:21 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Tue, 28 Jan 2003 11:25:21 +0000 Subject: Statusmap References: <3E365F51.1030505@prostep.com> Message-ID: <3E3668A1.F1D41E40@dcu.ie> Martin, I had a similar problem until this morning... you want to use the "parents" directive in the host definition. eg: # 'CG08b PC #5' host definition define host{ use generic-host ; Name of host template to use host_name CG08-105 alias CG08b - PC - #5 address 136.206.xx.xxx parents switch-136.206.xx. check_command check-host-alive max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } means that CG08-105 is a child of the switch switch-136.206.xx. in the map. Hope that helps. Regards Donal DCU Martin H?nsel wrote: > > Hello, > > I'am Martin from Germany. > I have seen the Nagios Example on "http://nagios.square-box.com/" it's nice to see that. > > I bulid up a Nagios Host in my firm, we have a running Nagios and would > like to use the statusmap of Nagios to get a better overview about the > problem sources. > > I can see a picture when click on my status map but all of our hosts are > on one point of the map. > > To get a tactical Statusmap like "http://nagios.square-box.com/", what i have to do? > can anybody discripe me (short) what i must to do? > > dependendcies? > > thank you! > > sorry my bad english! > > Martin > > ------------------------------------------------------- > 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 Ton.Voon at egg.com Tue Jan 28 12:37:17 2003 From: Ton.Voon at egg.com (Voon, Ton) Date: Tue, 28 Jan 2003 11:37:17 -0000 Subject: nagios plugins compilation tru-64 Message-ID: <53104E20A25CD411B556009027E50636064D51E0@pnnemp02.pn.egg.com> Would need to see your configure output (with the log) to see what is happening re getopt. > -----Original Message----- > From: hrishy [SMTP:hrishys at yahoo.co.uk] > Sent: Tuesday, January 28, 2003 11:22 AM > To: Voon, Ton; Nagios users list > Subject: RE: [Nagios-users] nagios plugins compilation tru-64 > > Hi Ton > > Thats cool..for figuring..out but my woes have just > begun i guess..coz now i have a different problem.. > Making all in plugins > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c check_disk.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c utils.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c popen.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > -g -c ./snprintf.c -o so > ar -r libsnprintf.a snprintf.o > cc -g -L. -o check_disk check_disk.o utils.o popen.o > -lsnprintf -lsnprintf > ld: > Unresolved: > getopt_long > *** Exit 1 > Stop. > *** Exit 1 > Stop. > zblrdv23> ld > ld: Usage: ld [options] file [...] > > any more ideas :-D > > regards > Hrishy > 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 From tjl at topdanmark.dk Tue Jan 28 12:55:17 2003 From: tjl at topdanmark.dk (Thomas Jens Lauritsen) Date: Tue, 28 Jan 2003 12:55:17 +0100 Subject: Vedr: Mail command Message-ID: Hello Steve, I use this line in the hosts.cfg file... contact[netsaint]=Netsaint User;24x7;24x7;1;1;1;1;1;1;notify-by-email;host-notify-by-email;admin at noteserver-hostname Make sure the Notes server is running the SMTP task at port 25 Best regards Thomas Steve Dussaux @lists.sourceforge.net - 28-01-2003 12:06:48 Sendt af: nagios-users-admin at lists.sourceforge.net Til: nagios-users at sourceforge.net cc: Vedr?rende: [Nagios-users] Mail command Hello, I would like to post mail to my LOTUS NOTES company server from my nagios server. I try with mail but it doesn't work... Has anyone has an idea ? Thanks in advance, 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 hrishys at yahoo.co.uk Tue Jan 28 12:56:50 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 11:56:50 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <53104E20A25CD411B556009027E50636064D51E0@pnnemp02.pn.egg.com> References: <53104E20A25CD411B556009027E50636064D51E0@pnnemp02.pn.egg.com> Message-ID: <20030128115650.74166.qmail@web12603.mail.yahoo.com> Hi Ton Here goes my config file :-D its attached with my mail..and also a big thank you for taking pains to troubleshoot this problem :-D regards Hrishy --- "Voon, Ton" wrote: > Would need to see your configure output (with the > log) to see what is > happening re getopt. > > > -----Original Message----- > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > Sent: Tuesday, January 28, 2003 11:22 AM > > To: Voon, Ton; Nagios users list > > Subject: RE: [Nagios-users] nagios plugins > compilation tru-64 > > > > Hi Ton > > > > Thats cool..for figuring..out but my woes have > just > > begun i guess..coz now i have a different > problem.. > > Making all in plugins > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c check_disk.c > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c utils.c > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c popen.c > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > > -g -c ./snprintf.c -o so > > ar -r libsnprintf.a snprintf.o > > cc -g -L. -o check_disk check_disk.o utils.o > popen.o > > -lsnprintf -lsnprintf > > ld: > > Unresolved: > > getopt_long > > *** Exit 1 > > Stop. > > *** Exit 1 > > Stop. > > zblrdv23> ld > > ld: Usage: ld [options] file [...] > > > > any more ideas :-D > > > > regards > > Hrishy > > > > > 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. > __________________________________________________ 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 -------------- next part -------------- A non-text attachment was scrubbed... Name: config.log Type: application/octet-stream Size: 31792 bytes Desc: config.log URL: From mathieum at sports.fr Tue Jan 28 13:08:03 2003 From: mathieum at sports.fr (Mathieu Masseboeuf) Date: Tue, 28 Jan 2003 13:08:03 +0100 Subject: Core dump Message-ID: <20030128120803.2695@smtp.sports.fr> Hi, I'm trying to get nagios to run, and as I wanted to have it run optimized I started with embeded perl. After some inversigation, it seems that something there is causing a core dump ... Here is what gdb outputs (cleaned a bit to not make 2 pages) : This GDB was configured as "i686-openna-linux"...(no debugging symbols found)... Core was generated by `./nagios'. Program terminated with signal 11, Segmentation fault. #0 0x45017e7e in Perl_PerlIO_stdout () from /usr/lib/perl5/5.8.0/i686- linux-thread-multi/CORE/libperl.so (gdb) bt #0 0x45017e7e in Perl_PerlIO_stdout () from /usr/lib/perl5/5.8.0/i686- linux-thread-multi/CORE/libperl.so #1 0x450183f4 in PerlIO_stdoutf () from /usr/lib/perl5/5.8.0/i686-linux- thread-multi/CORE/libperl.so #2 0x08051364 in main () #3 0x450c72e6 in __libc_start_main () from /lib/libc.so.6 The OS I'm running is openna linux (www.openna.com) with Perl 5.8.0 Anyone saw that before, or have clue on a possible fix ? NB : Everything is working fine without embeded perl. -- Mathieu Masseboeuf - Directeur Technique http://www.sports.fr - http://www.athleteline.com Tous les sports en direct et en coutinu sur Internet. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Tue Jan 28 13:10:58 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 12:10:58 +0000 (GMT) Subject: config.status file In-Reply-To: <20030128112130.84725.qmail@web12606.mail.yahoo.com> References: <20030128112130.84725.qmail@web12606.mail.yahoo.com> Message-ID: <20030128121058.94650.qmail@web12604.mail.yahoo.com> Hi Ton here comes my config.status file too :-D regards Hrishy --- hrishy wrote: > Hi Ton > > Thats cool..for figuring..out but my woes have just > begun i guess..coz now i have a different problem.. > Making all in plugins > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c check_disk.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c utils.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c popen.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c ./snprintf.c -o so > ar -r libsnprintf.a snprintf.o > cc -g -L. -o check_disk check_disk.o utils.o > popen.o > -lsnprintf -lsnprintf > ld: > Unresolved: > getopt_long > *** Exit 1 > Stop. > *** Exit 1 > Stop. > zblrdv23> ld > ld: Usage: ld [options] file [...] > > any more ideas :-D > > regards > Hrishy > > > > --- "Voon, Ton" wrote: > If you > are still interested in getting the plugins > > compiled, it seems that > > the df command cannot be found. In the configure > > output, I think you > > probably got: > > > > "unable to find usable df syntax" > > > > You can use the configure flag --with-df_command > set > > to the full path for > > TRU64's df command that gives output like: > > > > snail $ df -k > > Filesystem kbytes used avail > > capacity Mounted on > > /dev/dsk/c0t0d0s0 2052750 553778 1437390 > 28% > > / > > /proc 0 0 0 > 0% > > /proc > > fd 0 0 0 > 0% > > /dev/fd > > /dev/dsk/c0t0d0s3 1015542 70588 884022 > 8% > > /var > > /dev/dsk/c0t0d0s6 6185397 36858 6086686 > 1% > > /logs > > /dev/dsk/c0t0d0s4 4127894 215575 3871041 > 6% > > /opt > > /dev/dsk/c0t0d0s5 4127894 9 4086607 > 1% > > /systems > > swap 2127944 33640 2094304 > 2% > > /tmp > > > > (from Solaris). > > > > If you find a command works for you on TRU64, let > us > > know and we'll put it > > in CVS. > > > > Ton > > > > > -----Original Message----- > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > Sent: Tuesday, January 28, 2003 10:54 AM > > > To: Voon, Ton; Nagios users list > > > Subject: RE: [Nagios-users] nagios plugins > > compilation tru-64 > > > > > > Hi Ton > > > > > > Yes my path has the current directory in..it I > am > > > attaching my config.log file also..which seems > to > > be > > > okay now however the make still fails..with the > > > following error.I am just wundering wheather > > anybody > > > on the list has the binaries for TRU-64 > > > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. > -I. > > > > > -g -c check_disk.c > > > cc: Error: check_disk.c, line 77: In this > > statement, > > > "DF_COMMAND" is not declar) > > > asprintf (&command_line, "%s %s", DF_COMMAND, > > path); > > > ------------------------------------------^ > > > *** Exit 1 > > > > > > regards > > > Hrishy > > > > > > > > > --- "Voon, Ton" wrote: > > > Hrishy, > > > > > > > > 1) Does your PATH have the current directory > in > > it? > > > > Not sure if this is a > > > > requirement as I would have thought the > > configure > > > > scripts would take care of > > > > this > > > > 2) What was the configure output for the df > > checks? > > > > > > > > Ton > > > > > > > > > -----Original Message----- > > > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > > > Sent: Tuesday, January 28, 2003 9:29 AM > > > > > To: Nagios users list > > > > > Subject: [Nagios-users] nagios plugins > > compilation > > > > tru-64 > > > > > > > > > > Hi > > > > > > > > > > when i try to compile nagios plugins on > tru-64 > > > > unix i > > > > > am geeting the following problems > > > > > > > > > > 1)./configure > > > > > > > > > > tells me ./config.status: subst.sh: not > found > > > > wheras > > > > > ls shows that subst.sh is right there in the > > > > > directory.. > > > > > > > > > > 2)make all > > > > > No suffix list. > > > > > Making all in plugins > > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. > -I. > > -I. > > > > > > > > > -g -c check_disk.c > > > > > cc: Error: check_disk.c, line 77: In this > > > > statement, > > > > > "DF_COMMAND" is not declar) > > > > > asprintf (&command_line, "%s %s", > DF_COMMAND, > > > > path); > > > > > ------------------------------------------^ > > > > > *** Exit 1 > > > > > Stop. > > > > > *** Exit 1 > > > > > Stop. > > > > > > > > > > has anybody compiled nagios plugins on > tru-64 > > ? > > > > > > > > > > regards > > > > > Hrishy > > > > > > 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 > === message truncated === __________________________________________________ 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 __________________________________________________ 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 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.status URL: From hrishys at yahoo.co.uk Tue Jan 28 13:06:15 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Tue, 28 Jan 2003 12:06:15 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <20030128112130.84725.qmail@web12606.mail.yahoo.com> References: <20030128112130.84725.qmail@web12606.mail.yahoo.com> Message-ID: <20030128120615.3231.qmail@web12607.mail.yahoo.com> Hi Ton here comes my config.status file too :-D regards Hrishy --- hrishy wrote: > Hi Ton > > Thats cool..for figuring..out but my woes have just > begun i guess..coz now i have a different problem.. > Making all in plugins > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c check_disk.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c utils.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c popen.c > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. -I. > > -g -c ./snprintf.c -o so > ar -r libsnprintf.a snprintf.o > cc -g -L. -o check_disk check_disk.o utils.o > popen.o > -lsnprintf -lsnprintf > ld: > Unresolved: > getopt_long > *** Exit 1 > Stop. > *** Exit 1 > Stop. > zblrdv23> ld > ld: Usage: ld [options] file [...] > > any more ideas :-D > > regards > Hrishy > > > > --- "Voon, Ton" wrote: > If you > are still interested in getting the plugins > > compiled, it seems that > > the df command cannot be found. In the configure > > output, I think you > > probably got: > > > > "unable to find usable df syntax" > > > > You can use the configure flag --with-df_command > set > > to the full path for > > TRU64's df command that gives output like: > > > > snail $ df -k > > Filesystem kbytes used avail > > capacity Mounted on > > /dev/dsk/c0t0d0s0 2052750 553778 1437390 > 28% > > / > > /proc 0 0 0 > 0% > > /proc > > fd 0 0 0 > 0% > > /dev/fd > > /dev/dsk/c0t0d0s3 1015542 70588 884022 > 8% > > /var > > /dev/dsk/c0t0d0s6 6185397 36858 6086686 > 1% > > /logs > > /dev/dsk/c0t0d0s4 4127894 215575 3871041 > 6% > > /opt > > /dev/dsk/c0t0d0s5 4127894 9 4086607 > 1% > > /systems > > swap 2127944 33640 2094304 > 2% > > /tmp > > > > (from Solaris). > > > > If you find a command works for you on TRU64, let > us > > know and we'll put it > > in CVS. > > > > Ton > > > > > -----Original Message----- > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > Sent: Tuesday, January 28, 2003 10:54 AM > > > To: Voon, Ton; Nagios users list > > > Subject: RE: [Nagios-users] nagios plugins > > compilation tru-64 > > > > > > Hi Ton > > > > > > Yes my path has the current directory in..it I > am > > > attaching my config.log file also..which seems > to > > be > > > okay now however the make still fails..with the > > > following error.I am just wundering wheather > > anybody > > > on the list has the binaries for TRU-64 > > > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. -I. > -I. > > > > > -g -c check_disk.c > > > cc: Error: check_disk.c, line 77: In this > > statement, > > > "DF_COMMAND" is not declar) > > > asprintf (&command_line, "%s %s", DF_COMMAND, > > path); > > > ------------------------------------------^ > > > *** Exit 1 > > > > > > regards > > > Hrishy > > > > > > > > > --- "Voon, Ton" wrote: > > > Hrishy, > > > > > > > > 1) Does your PATH have the current directory > in > > it? > > > > Not sure if this is a > > > > requirement as I would have thought the > > configure > > > > scripts would take care of > > > > this > > > > 2) What was the configure output for the df > > checks? > > > > > > > > Ton > > > > > > > > > -----Original Message----- > > > > > From: hrishy [SMTP:hrishys at yahoo.co.uk] > > > > > Sent: Tuesday, January 28, 2003 9:29 AM > > > > > To: Nagios users list > > > > > Subject: [Nagios-users] nagios plugins > > compilation > > > > tru-64 > > > > > > > > > > Hi > > > > > > > > > > when i try to compile nagios plugins on > tru-64 > > > > unix i > > > > > am geeting the following problems > > > > > > > > > > 1)./configure > > > > > > > > > > tells me ./config.status: subst.sh: not > found > > > > wheras > > > > > ls shows that subst.sh is right there in the > > > > > directory.. > > > > > > > > > > 2)make all > > > > > No suffix list. > > > > > Making all in plugins > > > > > cc -DHAVE_CONFIG_H -I. -I. -I. -I. -I. -I. > -I. > > -I. > > > > > > > > > -g -c check_disk.c > > > > > cc: Error: check_disk.c, line 77: In this > > > > statement, > > > > > "DF_COMMAND" is not declar) > > > > > asprintf (&command_line, "%s %s", > DF_COMMAND, > > > > path); > > > > > ------------------------------------------^ > > > > > *** Exit 1 > > > > > Stop. > > > > > *** Exit 1 > > > > > Stop. > > > > > > > > > > has anybody compiled nagios plugins on > tru-64 > > ? > > > > > > > > > > regards > > > > > Hrishy > > > > > > 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 > === message truncated === __________________________________________________ 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 -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: config.status URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Tue Jan 28 13:36:14 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 28 Jan 2003 23:36:14 +1100 Subject: nagios plugins compilation tru-64 In-Reply-To: <20030128115650.74166.qmail@web12603.mail.yahoo.com>; from hrishys@yahoo.co.uk on Tue, Jan 28, 2003 at 11:56:50AM +0000 References: <53104E20A25CD411B556009027E50636064D51E0@pnnemp02.pn.egg.com> <20030128115650.74166.qmail@web12603.mail.yahoo.com> Message-ID: <20030128233559.F214@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, that AFAIK, True-64 has not been a successfull porting target since quite a while ago. On Tue, Jan 28, 2003 at 11:56:50AM +0000, hrishy wrote: > Hi Ton > > Here goes my config file :-D its attached with my > mail..and also a big thank you for taking pains to > troubleshoot this problem :-D > > regards > Hrishy > IIRC correctly this matter came up in the last 3 months in the context of a Japanese Gentlemen having trouble building Netsaint on this or a similar platform. This may point you (and us) in the right direction. http://article.gmane.org/gmane.network.netsaint.user/533/match=digital+unix 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 Tue Jan 28 13:56:49 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Tue, 28 Jan 2003 23:56:49 +1100 Subject: Core dump In-Reply-To: <20030128120803.2695@smtp.sports.fr>; from mathieum@sports.fr on Tue, Jan 28, 2003 at 01:08:03PM +0100 References: <20030128120803.2695@smtp.sports.fr> Message-ID: <20030128235645.H214@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say that On Tue, Jan 28, 2003 at 01:08:03PM +0100, Mathieu Masseboeuf wrote: > Hi, > > I'm trying to get nagios to run, and as I wanted to have it run optimized > I started with embeded perl. > After some inversigation, it seems that something there is causing a core > dump ... > > Here is what gdb outputs (cleaned a bit to not make 2 pages) : > This GDB was configured as "i686-openna-linux"...(no debugging symbols > found)... > Core was generated by `./nagios'. > Program terminated with signal 11, Segmentation fault. > #0 0x45017e7e in Perl_PerlIO_stdout () from /usr/lib/perl5/5.8.0/i686- > linux-thread-multi/CORE/libperl.so you may have found a bug. I don't think too many people are running embedded Perl Nag/Netsaint (ePN) with Perl 5.8.0. This Perl is a pretty different beast (apparently) with a different thread implementation and platform independent (bypasses stdio) IO. Does the mini-epn in the contrib directory build and run ? When this dumps (if it builds) it may give you a better back trace. Sounds like more ePN porting work necessary. > (gdb) bt > #0 0x45017e7e in Perl_PerlIO_stdout () from /usr/lib/perl5/5.8.0/i686- > linux-thread-multi/CORE/libperl.so > #1 0x450183f4 in PerlIO_stdoutf () from /usr/lib/perl5/5.8.0/i686-linux- > thread-multi/CORE/libperl.so > #2 0x08051364 in main () > #3 0x450c72e6 in __libc_start_main () from /lib/libc.so.6 > > The OS I'm running is openna linux (www.openna.com) with Perl 5.8.0 > > Anyone saw that before, or have clue on a possible fix ? > > NB : Everything is working fine without embeded perl. > You may be able to workaround it by installing Perl 5.6.1 in a different location and then building the ePN with that Perl (give the path to that Perl to configure some how). Does the ePN actually start ? 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 Raj.Mudhar at nottingham.ac.uk Tue Jan 28 13:45:18 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Tue, 28 Jan 2003 12:45:18 +0000 Subject: ./configure script outcome check Message-ID: 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 ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From david.kassemos at semoso.com Tue Jan 28 14:29:10 2003 From: david.kassemos at semoso.com (Davd M. Kassemos) Date: Tue, 28 Jan 2003 08:29:10 -0500 Subject: FW: Error Code 127 Is Out Of Bounds Plugin May Be Message-ID: <000d01c2c6d1$3e1f0500$1403650a@dbadirect.com> I had this same error a couple weeks ago and felt really stupid when I realized what I had done. Everything I did to set up my new Nagios service I did as root including copying the plug-in into the libexec directory. When I tested my script from the command line everything worked fine but Nagios gave me the 127 error. Once I went into the libexec directory and changed the ownership on the plug-in everything worked fine. So check your permissions. David M. Kassemos Semoso www.semoso.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tim at mintoskatingclub.com Tue Jan 28 15:15:40 2003 From: tim at mintoskatingclub.com (Tim Shouldice) Date: Tue, 28 Jan 2003 09:15:40 -0500 (EST) Subject: nrpe for windows plugins References: 1043746577.27160_0.in3 Message-ID: <200301281415.h0SEFexX005650@webmail1.magma.ca> Here on the rrd-users list is a perfect example of some perl soure to write plugins for a Windows version of nrpe. The code below also demonstrates how simple it is to overcome a major problem with NSClient - no ability to get instance information. Could the person who compiled nrpe for windows using the apache libraries please update us with more info on how the compilation was done... /Tim Shouldice On Jan 28, Stephan Harren wrote: > > With perl and OLE. > > Example: > use Win32::OLE qw(in); > $wmi=Win32::OLE->GetObject('winmgmts:'); > foreach $pstat (in $wmi->InstancesOf('Win32_LogicalDisk')) { > print $pstat->{size}; > } > > You can find all available WMI classes at: > http://msdn.microsoft.com/library/default.asp? url=/library/en-us/wmisdk/wmi/win32_classes.asp > > Best regards, > > Stephan > > Am Montag, 27. Januar 2003 17:35 schrieb Jon Brown: > > Can someone please point in to instructions on how to pull wmi information. > > > > Jonathan Brown > > -- > Stephan Harren > Manager Site Operations > MFN-IS > ------------------------------- > Phone +49 69 90554 153 > Fax +49 69 90554 111 > Cell +49 173 7011126 > > -- > Unsubscribe mailto:rrd-users-request at list.ee.ethz.ch?subject=unsubscribe > Help mailto:rrd-users-request at list.ee.ethz.ch?subject=help > Archive http://www.ee.ethz.ch/~slist/rrd-users > WebAdmin http://www.ee.ethz.ch/~slist/lsg2.cgi > > ------------------------------------------------------- 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 Tue Jan 28 15:47:28 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Tue, 28 Jan 2003 06:47:28 -0800 Subject: Stange problem checking https Message-ID: <000801c2c6dc$2e2a15d0$bb20a8c0@corp.wrhambrecht.com> -----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. -yes, return code 0 (OK) >Also may want to try a newer check_http - lots of changes since 1.2.9-4 >release. -yes, I've tried the latest release (check_http (nagios-plugins 1.3.0-beta2) 1.12), but that version seems to have a problem with SSL. The same exact syntax that works fine under version 1.2.9-4, returns this error under 1.3.0-beta2: $./check_http \ > -S -I hosta.mydomain.com \ > -H www.mydomain.com \ > -u '/test/test?act=login&id=123ABC123' -t 40 -e 200 check_http: invalid option - SSL is not available any other thoughts? -David -------------- next part -------------- An HTML attachment was scrubbed... URL: From jpathak at taxcut.com Tue Jan 28 16:25:18 2003 From: jpathak at taxcut.com (Jignesh Pathak) Date: Tue, 28 Jan 2003 10:25:18 -0500 Subject: hostinfo.pl file not found Message-ID: <005501c2c6e1$770df5a0$61222404@taxcut.com> I am trying to open statuswrl.cgi and giving error in my web log that hostinfo.pl file not found. I did search on Nagios installation and could not able to find too. Can anyone let me know from where can I get it and how to make it work???? Thanks, Jignesh -------------- next part -------------- An HTML attachment was scrubbed... URL: From AHKAPLAN at PARTNERS.ORG Tue Jan 28 16:47:48 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 28 Jan 2003 10:47:48 -0500 Subject: Unusual Error Message Message-ID: <5593DA408212D511B0910002A513501F01D288CC@phsexch20.mgh.harvard.edu> I set up the nrpe client on a remote host, and configured it to check several services. But now, I am getting the following error message: CHECK_NRPE: RECEIVED 0 BYTES. ARE WE ALLOWED TO CONNECT TO THE HOST? Anyone else seen this? ------------------------------------------------------- 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 Jan 28 16:47:16 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 09:47:16 -0600 Subject: Mail command Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13A5@PKDWB03C.ad.sprint.com> Two questions: 1) What happens when you try: telnet name-of-lotus-mail-gateway 25 2) Have you ever configured Sendmail before? jc > -----Original Message----- > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > Sent: Tuesday, January 28, 2003 5:07 AM > To: nagios-users at sourceforge.net > Subject: [Nagios-users] Mail command > > > Hello, > > I would like to post mail to my LOTUS NOTES company server > from my nagios server. > I try with mail but it doesn't work... > > Has anyone has an idea ? > > Thanks in advance, > 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 MParsisson at NCSHealth.com Tue Jan 28 17:09:30 2003 From: MParsisson at NCSHealth.com (MParsisson at NCSHealth.com) Date: Tue, 28 Jan 2003 11:09:30 -0500 Subject: can't find cgi.cfg problem on HPUX 11.0 Message-ID: This fixed my problem. Thanks! Mark "Steve Bonds" @lists.sourceforge.net on 01/27/2003 07:42:32 PM Sent by: nagios-users-admin at lists.sourceforge.net To: nagios-users at lists.sourceforge.net cc: Subject: Re: [Nagios-users] can't find cgi.cfg problem on HPUX 11.0 That really looks like an autoconf problem. (I.e. the "configure" script wasn't generated properly for your HP-UX host.) Your best bet is to "make distclean", delete/rename the "configure" and "subst" scripts, and then run "autoconf", followed by the usual "./configure" + make. Be sure that you have a recent version of autoconf installed first. All this is not needed in theory, but you know what they say about the difference between theory and practice...* -- Steve * There is none in theory, but there often is in practice. ;-) On Mon, 27 Jan 2003, MParsisson-at-NCSHealth.com |Nagios| wrote: > The error I'm getting is: > > Error: Could not open CGI config file '@sysconfdir@/cgi.cfg' for reading! ------------------------------------------------------- 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 Tue Jan 28 17:19:28 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 28 Jan 2003 11:19:28 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: <000801c2c6dc$2e2a15d0$bb20a8c0@corp.wrhambrecht.com> References: <000801c2c6dc$2e2a15d0$bb20a8c0@corp.wrhambrecht.com> Message-ID: Ok, the SNMP plugin seems to assume that higher values is better. To elaborate: I'm checking signal strength on some wireless radios. 0-25 would be critical, 26-35 would be warning, and 36+ would be all systems go. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 SNMP OK - 72 Fine. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w 26:35 -c 0:25 SNMP CRITICAL - *72* Now, 72 isn't between 26 and 35, and it isn't between 0 and 25. Am I misinterpreting the help file, or am I just insane? :-) 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Tue Jan 28 17:26:42 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 28 Jan 2003 11:26:42 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: No, I'm just insane. I missed the word 'not' apparently. My bad. -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Tuesday, January 28, 2003 11:19 AM To: nagios-users at lists.sourceforge.net Subject: SNMP plugin warn/critical range issues? Ok, the SNMP plugin seems to assume that higher values is better. To elaborate: I'm checking signal strength on some wireless radios. 0-25 would be critical, 26-35 would be warning, and 36+ would be all systems go. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 SNMP OK - 72 Fine. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w 26:35 -c 0:25 SNMP CRITICAL - *72* Now, 72 isn't between 26 and 35, and it isn't between 0 and 25. Am I misinterpreting the help file, or am I just insane? :-) 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 28 17:22:36 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 10:22:36 -0600 Subject: Mail command Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2526@PKDWB03C.ad.sprint.com> Yes, you need to get your Lotus admin to open port 25 (SMTP). Yes, you'll need to configure Sendmail on your Nagios server. Sendmail can be fun. It's confusing, and yet it is. ;) You might prefer to install/configure nullmailer: http://freshmeat.net/projects/nullmailer/?topic_id=32 No, the command line mail client won't be of much use for server-server mail traffic; it's merely an MUA (mail user agent); what you need is an MTA (mail transfer agent), such as Sendmail, or nullmailer, or Postfix, or Qmail, or Exim, or.... jc > -----Original Message----- > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > Sent: Tuesday, January 28, 2003 10:07 AM > To: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] Mail command > > > I can't connect to the Notes server trough port 25. > I have to ask my Lotus admin to open this port ? > Do i have to configure sendmail on my nagios server ? > I believe I have just needed a command line mail client to > post messages. > > Thanks for your help, > Steve > > --- "Carroll, Jim P [Contractor]" > a ?crit?: > Two questions: > > > > 1) What happens when you try: > > > > telnet name-of-lotus-mail-gateway 25 > > > > 2) Have you ever configured Sendmail before? > > > > jc > > > > > -----Original Message----- > > > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > > > Sent: Tuesday, January 28, 2003 5:07 AM > > > To: nagios-users at sourceforge.net > > > Subject: [Nagios-users] Mail command > > > > > > > > > Hello, > > > > > > I would like to post mail to my LOTUS NOTES company server > > > from my nagios server. > > > I try with mail but it doesn't work... > > > > > > Has anyone has an idea ? > > > > > > Thanks in advance, > > > 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 > > > > > ___________________________________________________________ > 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 slebrun at muskoka.com Tue Jan 28 17:40:38 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 28 Jan 2003 11:40:38 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: That having been said, how can one get the warning and critical ranges to include negative numbers? Some of these radios report signal strength in dBm; negatives are the norm. -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Tuesday, January 28, 2003 11:27 AM To: nagios-users at lists.sourceforge.net Subject: RE: SNMP plugin warn/critical range issues? No, I'm just insane. I missed the word 'not' apparently. My bad. -----Original Message----- From: Shayne Lebrun [mailto:slebrun at muskoka.com] Sent: Tuesday, January 28, 2003 11:19 AM To: nagios-users at lists.sourceforge.net Subject: SNMP plugin warn/critical range issues? Ok, the SNMP plugin seems to assume that higher values is better. To elaborate: I'm checking signal strength on some wireless radios. 0-25 would be critical, 26-35 would be warning, and 36+ would be all systems go. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 SNMP OK - 72 Fine. ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w 26:35 -c 0:25 SNMP CRITICAL - *72* Now, 72 isn't between 26 and 35, and it isn't between 0 and 25. Am I misinterpreting the help file, or am I just insane? :-) 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Tue Jan 28 17:23:34 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 10:23:34 -0600 Subject: Unusual Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13A7@PKDWB03C.ad.sprint.com> Sounds like the nrpe daemon on the remote host has taken a nap. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Tuesday, January 28, 2003 9:48 AM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Unusual Error Message > > > I set up the nrpe client on a remote host, and configured it to check > several services. > But now, I am getting the following error message: > > CHECK_NRPE: RECEIVED 0 BYTES. ARE WE ALLOWED TO CONNECT TO THE HOST? > > Anyone else seen this? > > > ------------------------------------------------------- > 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 Jan 28 18:56:50 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 11:56:50 -0600 Subject: Unusual Error Message Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13A9@PKDWB03C.ad.sprint.com> Hmm. When I said 'take a nap', I meant that the daemon isn't running/listening. If it's running as a standalone daemon, run the startup command that you used when you first started it up. If it's running from (x)inetd, check to make sure that your (x)inetd config file hasn't been corrupted. jc > -----Original Message----- > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > Sent: Tuesday, January 28, 2003 10:45 AM > To: Carroll, Jim P [Contractor] > Subject: RE: [Nagios-users] Unusual Error Message > > > Jim, > > How do I wake it up? > > -----Original Message----- > From: Carroll, Jim P [Contractor] [mailto:jcarro10 at sprintspectrum.com] > Sent: Tuesday, January 28, 2003 11:24 AM > To: Kaplan, Andrew H.; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] Unusual Error Message > > > Sounds like the nrpe daemon on the remote host has taken a nap. > > jc > > > -----Original Message----- > > From: Kaplan, Andrew H. [mailto:AHKAPLAN at PARTNERS.ORG] > > Sent: Tuesday, January 28, 2003 9:48 AM > > To: nagios-users at lists.sourceforge.net > > Subject: [Nagios-users] Unusual Error Message > > > > > > I set up the nrpe client on a remote host, and configured > it to check > > several services. > > But now, I am getting the following error message: > > > > CHECK_NRPE: RECEIVED 0 BYTES. ARE WE ALLOWED TO CONNECT TO THE HOST? > > > > Anyone else seen this? > > > > > > ------------------------------------------------------- > > 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 Jan 28 18:59:58 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 11:59:58 -0600 Subject: Load issues with Nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13AA@PKDWB03C.ad.sprint.com> I don't suppose you've run 'top' at all...? jc > -----Original Message----- > From: Ken Snider [mailto:ksnider at datawire.net] > Sent: Monday, January 27, 2003 8:13 PM > To: nagios-users at sourceforge.net > Subject: [Nagios-users] Load issues with Nagios > > > Greetings all, > > We have Nagios running, about 50 servers, 250 processes > monitored. The vast > majority of these checks are via nsca/send_nsca, with the > only active checks > being host-checks, and ping checks. nsca is running via Xinetd, > command_check_interval is -1, reaper frequency is 5, and > everything works > reasonably well. Services are configured to check in every 2 minutes. > > My issue is, the box is *always* at 100% CPU. At first, I > figured this was > related to the 50 or so send_nsca connections (and subsequent > dumps to > Nagios' pipe) that occur every two minutes via nsca. However > these are dealt > with within 20 or so seconds, leaving about a minute and a > half where all > Nagios is really doing is pinging.. yet the CPU usage remains. > > My next thought was the command_check_interval being -1. > setting it to 1 had > no difference. > > I tried raising the reaper interval to 10 seconds as well, no > difference. I > lowered the max_concurrent_checks to 40, no change. > consistently 100% use. > > Set the status_update interval to 30 seconds, to make sure it > wasn't the > writes to the status file, nothing (yep, aggregate writes is on). > > The system, BTW, is RH8, PIII-750, with 256 MB RAM and a Gig > of Swap. The > box is using a whopping 60MB of ram. The box almost never > uses IO (save the > mad rush every two minutes from NSCA), and has nothing else > of import (or > load) running. Load is all from the parent nagios process. > > So, here's my question.. is this load, perhaps, *normal*? Is > a P-III 750 > really, truly maxed out with about 50 active services (ping > mainly), and 300 > passive services running? > > I personally find that difficult to believe, but I like to > hear everyone's > thoughts on the subject. ;) > > Thanks in advance. :) > > -- > Ken Snider > Senior Systems Administrator > Datawire Communication Networks Inc. > > > > ------------------------------------------------------- > 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 Jan 28 19:06:45 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Tue, 28 Jan 2003 12:06:45 -0600 Subject: Vedr: RE: Mail command Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13AD@PKDWB03C.ad.sprint.com> I don't know Notes/Domino well enough to comment with authority on this, but this is a valid point. Even so, if Mr. Dussaux explains his requirements to the Notes/Domino admin, he should be able to square him away. jc > -----Original Message----- > From: Thomas Jens Lauritsen [mailto:tjl at topdanmark.dk] > Sent: Tuesday, January 28, 2003 12:02 PM > To: Carroll, Jim P [Contractor] > Subject: Vedr: RE: [Nagios-users] Mail command > > > > Hello again, > > The administrator of the Notes/domino system might also allow > you IP-adress > to access the system. > > If you don't have access to put SMTP from your IP - then no > mail in your > inbox.... > > /Thomas > > > > > > "Carroll, Jim P [Contractor]" > @lists.sourceforge.net - 28-01-2003 17:22:36 > > Sendt af: nagios-users-admin at lists.sourceforge.net > > > Til: "'Steve Dussaux'" > cc: "Nagios-Users (E-mail)" > > > Vedr?rende: RE: [Nagios-users] Mail command > > > Yes, you need to get your Lotus admin to open port 25 (SMTP). > > Yes, you'll need to configure Sendmail on your Nagios server. > Sendmail can > be fun. It's confusing, and yet it is. ;) You might prefer to > install/configure nullmailer: > > http://freshmeat.net/projects/nullmailer/?topic_id=32 > > No, the command line mail client won't be of much use for > server-server > mail > traffic; it's merely an MUA (mail user agent); what you need is an MTA > (mail > transfer agent), such as Sendmail, or nullmailer, or Postfix, > or Qmail, or > Exim, or.... > > jc > > > -----Original Message----- > > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > > Sent: Tuesday, January 28, 2003 10:07 AM > > To: Carroll, Jim P [Contractor] > > Subject: RE: [Nagios-users] Mail command > > > > > > I can't connect to the Notes server trough port 25. > > I have to ask my Lotus admin to open this port ? > > Do i have to configure sendmail on my nagios server ? > > I believe I have just needed a command line mail client to > > post messages. > > > > Thanks for your help, > > Steve > > > > --- "Carroll, Jim P [Contractor]" > > a ?crit?: > Two questions: > > > > > > 1) What happens when you try: > > > > > > telnet name-of-lotus-mail-gateway 25 > > > > > > 2) Have you ever configured Sendmail before? > > > > > > jc > > > > > > > -----Original Message----- > > > > From: Steve Dussaux [mailto:stevox2000 at yahoo.com] > > > > Sent: Tuesday, January 28, 2003 5:07 AM > > > > To: nagios-users at sourceforge.net > > > > Subject: [Nagios-users] Mail command > > > > > > > > > > > > Hello, > > > > > > > > I would like to post mail to my LOTUS NOTES company server > > > > from my nagios server. > > > > I try with mail but it doesn't work... > > > > > > > > Has anyone has an idea ? > > > > > > > > Thanks in advance, > > > > 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 > > > > > > > > ___________________________________________________________ > > 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 Jarett_DeAngelis at fujifilm.com Tue Jan 28 20:07:47 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 28 Jan 2003 14:07:47 -0500 Subject: Ongoing Apache/Nagios config problems... Message-ID: Hi, I tried this (even added nagios to apache and apache to nagios), but in the process of checking my httpd logs discovered that I appear to have hosed my network when trying to set my hostname. Also, I did not find mod_basic_auth (or mod_auth_basic) in the Package Installer's list. And the Nagios docs say AllowOverride should be AuthConfig, not All. Is this incorrect? Why was I never given the opportunity to set my hostname in Red Hat's setup program, and what is the Right Way to do it now? As it is I cannot bring the network up with /etc/init.d/network start. >>> "Olivier Beauchemin (Budget-Tech IT Consulting)" 01/26/03 08:55PM >>> Add apache to the nagios group, restart the webserver, and restart nagios. See if there's still a problem... Also, there's a mod_basic_auth that you might want to try... You also made sure that Allow Override is "All", right? Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, January 26, 2003 5:56 PM Subject: [Nagios-users] Apache config problem continues... Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? Are we sure the permissions should be nagios/nagios? Shouldn't it be apache/apache? Or am I not grasping something here? -Jarett ------------------------------------------------------- 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 Tue Jan 28 19:36:51 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Tue, 28 Jan 2003 13:36:51 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: Shayne Lebrun writes: > Ok, the SNMP plugin seems to assume that higher values is better. > > To elaborate: I'm checking signal strength on some wireless radios. 0-25 > would be critical, 26-35 would be warning, and 36+ would be all systems go. > > ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 > SNMP OK - 72 > > Fine. > > ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w 26:35 -c > 0:25 > SNMP CRITICAL - *72* > > > Now, 72 isn't between 26 and 35, and it isn't between 0 and 25. Am I > misinterpreting the help file, or am I just insane? :-) You specify the range that is OK. Thus: check_snmp -w 36: -c 26: (from --help: - Ranges are inclusive and are indicated with colons. When specified as 'min:max' STATE_OK will be returned if the result is within the indicated range or is equal to the upper or lower bound. A non-OK state will be returned if the result is outside the specified range. ) In another email, you ask about negative values. That requires a code change. We're trying to get a release out, I'm on the fence, but I'll call that a bug and fix it, unless others feel it's a feature request. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From suse at phoboslabs.com Tue Jan 28 13:37:25 2003 From: suse at phoboslabs.com (Joel Vande Berg) Date: Tue, 28 Jan 2003 04:37:25 -0800 (PST) Subject: Newbie needs cgi help (long) Message-ID: <32878.207.158.21.248.1043757445.squirrel@mars.phobolabs.com> I am attempting to setup Nagios using the rpms from: ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/people/stark/nagios/ After the rpms are installed, I enabled Apache and nagios using YaST>System>Runlevel properties and rebooted my system. I configured nagios to monitor a couple of hosts and it is working properly, but when I try to access the web interface all I get is an error message regarding permissions. Disabling authorization in cgi.cfg allows me to access the web interface and see that monitoring is occuring. With authorization enabled I get the following messages: It appears as though you do not have permission to view information for any of the services you requested... If you believe this is an error, check the HTTP server authentication requirements for accessing this CGI and check the authorization options in your CGI configuration file. In accordance with the Nagios instructions I have attempted to .htaccess files and htpassword users in the following locations w/o success. Nagios file locations: /usr/sbin/nagios executable binaries /etc/nagios nagios configuration files .htaccess htpasswd.users here /usr/lib/nagios /usr/lib/cgi cgi applications ..htaccess file here. /usr/lib/plugins nagios plugins here /usr/include/nagios locations.h /usr/share/nagios documentation .htaccess file here The contents of the .htaccess file(s) are as follows: AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/etc/nagios/htpasswd.users require valid-user Any and all help with this is welcome. Thanks, Joel Vande Berg ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mailinglists at flopnet.com.br Tue Jan 28 20:46:26 2003 From: mailinglists at flopnet.com.br (Mailing Lists) Date: Tue, 28 Jan 2003 17:46:26 -0200 Subject: Reports 100% indeterminate Message-ID: <000001c2c705$f549bed0$0503a8c0@conrado> Hi there. I just installed and configured Nagios to monitor my network devices and sites but the generating ANY REPORT I get 100% indeterminate in anyone. What could be going wrong? I found nothing about this on FAQs. Thank you. --- Conrado Vardanega ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Tue Jan 28 20:46:54 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 28 Jan 2003 14:46:54 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: >In another email, you ask about negative values. That requires a code >change. We're trying to get a release out, I'm on the fence, but I'll call >that a bug and fix it, unless others feel it's a feature request. It would be appreciated. I got into a bit of a row with Tobias from MRTG; I had trouble convicing him that SNMP could even *return* negative values. Here's another issue with the check_snmp plugin; when the OID is of 'Counter32' type, it's using the '32' in 'Counter32' to test against the -w and -c ranges. Freaked the bejeeebus out of me when I loaded up my latest service, and noticed that ALL of my radios in one area were Warning - *32*. :-) -----Original Message----- From: Karl DeBisschop [mailto:kdebisschop at h00e0185ef440.ne.client2.attbi.com] Sent: Tuesday, January 28, 2003 1:37 PM To: Shayne Lebrun Cc: nagios-users at lists.sourceforge.net Subject: Re: SNMP plugin warn/critical range issues? Shayne Lebrun writes: > Ok, the SNMP plugin seems to assume that higher values is better. > > To elaborate: I'm checking signal strength on some wireless radios. 0-25 > would be critical, 26-35 would be warning, and 36+ would be all systems go. > > ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 > SNMP OK - 72 > > Fine. > > ./check_snmp -H 111.222.111.222 -o .1.3.6.1.4.1.762.2.5.2.1.7.1 -w 26:35 -c > 0:25 > SNMP CRITICAL - *72* > > > Now, 72 isn't between 26 and 35, and it isn't between 0 and 25. Am I > misinterpreting the help file, or am I just insane? :-) You specify the range that is OK. Thus: check_snmp -w 36: -c 26: (from --help: - Ranges are inclusive and are indicated with colons. When specified as 'min:max' STATE_OK will be returned if the result is within the indicated range or is equal to the upper or lower bound. A non-OK state will be returned if the result is outside the specified range. ) In another email, you ask about negative values. That requires a code change. We're trying to get a release out, I'm on the fence, but I'll call that a bug and fix it, unless others feel it's a feature request. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From MGRAHAM1 at wellcarehmo.com Tue Jan 28 20:50:51 2003 From: MGRAHAM1 at wellcarehmo.com (Graham, Mike) Date: Tue, 28 Jan 2003 14:50:51 -0500 Subject: Error code 127 Out of bounds Message-ID: Good day... I have Nagios Installed and the web interface is displaying upon authentication. I have one host entered in my host.cfg file I wish to use the check host alive command. I believe I have it correctly configured for the most part, but I continue to get a Error 127--out of bounds--plugin may be missing. Does anyone have experience with this specific issue? Thanks in advance Michael Graham mgraham1 at wellcarehmo.com -------------- next part -------------- An HTML attachment was scrubbed... URL: From GPotter at MarathonOil.com Tue Jan 28 20:57:53 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Tue, 28 Jan 2003 13:57:53 -0600 Subject: Using qpage for sending notification to AT&T Wireless phone Message-ID: Is anyone using qpage to send notifications to an AT&T wireless phone. I can not get AT&T wireless to admit that they support this service. I have found several phone numbers on the web for their TAP/IXO service, but none of them will successfully deliver the page. of the 6 numbers I have tried, one accepts the message and says it will deliver it, but it never shows up on the phone. I have the service configured so that my Cingular phone works correctly, I am just having trouble with the AT&T wireless phone. Of course it is my bosses phone (AT&T) that is not working instead of mine (Cingular). Has anyone got this to work, and what phone number are you using? Thanks! Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~^~^~^ ~^~^~ / 9255 ) ~^~^^~~^^~^ ~^~^____/____|____)_____^~^^~^~^~^ ~^~^ \ Greg Potter / ^~^~^~^~^~^~^ ~^~^~^~^\_Okla. City, OK_/~^~^~^~^~^~~^~^~^~ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From slebrun at muskoka.com Tue Jan 28 21:00:13 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Tue, 28 Jan 2003 15:00:13 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: Excelsior to you, then, good sir. Thanks! -----Original Message----- From: Karl DeBisschop [mailto:kdebisschop at h00e0185ef440.ne.client2.attbi.com] Sent: Tuesday, January 28, 2003 1:53 PM To: Shayne Lebrun Cc: Karl DeBisschop; nagios-users at lists.sourceforge.net Subject: Re: SNMP plugin warn/critical range issues? Shayne Lebrun writes: >>In another email, you ask about negative values. That requires a code >>change. We're trying to get a release out, I'm on the fence, but I'll call >>that a bug and fix it, unless others feel it's a feature request. > It would be appreciated. I got into a bit of a row with Tobias from MRTG; I > had trouble convicing him that SNMP could even *return* negative values. > > Here's another issue with the check_snmp plugin; when the OID is of > 'Counter32' type, it's using the '32' in 'Counter32' to test against the -w > and -c ranges. IIRC, already patched in CVS. (My code checkout shows the fix as well) -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From donavan at 4wx.net Tue Jan 28 21:10:42 2003 From: donavan at 4wx.net (donavan nelson) Date: Tue, 28 Jan 2003 14:10:42 -0600 Subject: Nagios config -- not xml? In-Reply-To: <3E35BC38.17899.140E3DD@localhost> References: <841A2A811DB61840BA6423C08B5735D3802CD1@dulles1.ops.servervault.com> <3E35BC38.17899.140E3DD@localhost> Message-ID: <20030128201042.M18947@4wx.net> Hi Ethan, Excellent product, thank you very much for your efforts. Can I send money/hardware/beer/pizza anywhere for you? Now, based on this email, would it be safe to assume on my part that the template based config files will be staying the same at least past V2 of nagios? Thanks, .dn -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: "Ethan Galstad" To: nagios-users Sent: Mon, 27 Jan 2003 23:09:44 -0600 Subject: RE: [Nagios-users] Nagios config -- not xml? > Been catching up on a few days worth of email, so I'll put my two > cents in. > > A few people had suggested XML config files before I started writing > the template-style format code, but I didn't care for it. XML is > too chatty for my liking when I'm editing config files by hand. > Plus, an XML parser would add to the overhead of the daemon and > CGIs. I don't know how much overhead exactly, but it would probably > be more than the overhead of the current template-based routines. > > I would tend to steer people towards Ian Stokes' idead to generate > template-style config files from an XML source, rather than making > Nagios process the XML natively. The same thing holds for native DB > support of config data. Its better to write a few scripts to > generate template-style config files from a DB source, rather than > have Nagios check the DB natively. Some people want to use a DB as > a backend, some want XML files, others might want something > different. The easiest thing to do is make everyone convert to a > common denominator - the template-style config files. > > On 27 Jan 2003 at 21:16, Kertzman, Sam wrote: > > > > Very interesting that this XML debate has come up. I spent several days > > > last week re-writing some of my core Nagios config files in XML then using > > > XSLT to transform them into the current Nagios format. > > > > > > What does XML buy you? > > > > A ton of added complexity. Every time the CGI's run, they read the cgi.cfg > > file. If you use a standard-library xml parser, the amount of code run > > and/or size of executable will be much larger. If you use a simplified > > single-purpose xml parser (which I have written and used in the past) then > > you loose the advantage of standard library code. > > > > > > > 1. Ability to write a schema to check that you have your syntax correct. > > > (OK, pre-flight check _probably_ does most of this already, but I'm sure > > an > > > XML schema with a schema validating parser would be MUCH easier) > > > > Actually the pre-flight check is the only check that matters. If the > > application you are configuring cannot read the config files, then any other > > check is secondary. If the data fits the schema, but the pre-flight check > > fails, then it still fails. > > > > > > > 2. Single, standard, format, rather than current split format (i.e. some > > > files are flat VARIABLE_NAME VALUE format, and some are pseudo object > > > definitions with "define NAME {...}". > > > > Of course the things that are using a simple format are simple things to > > configure, using xml will only add characters to the simple things, which > > because they are simple don't need complex data representation. > > > > > > > 3. Much simpler layout to avoid massive cross-referencing which _does_ do > > > your head in (this was the reason I started re-writing my configs in XML). > > > > The cross-referencing will not go away. It is an artifact of the problem > > you are describing, not the config file you are using. If you are > > processing the config files by machine, you have to deal the actual > > complexity (of the problem, not the file format) in the code anyway. > > > > > > > 4. Collapse 5 different config files into 1 (OK, maybe 2 if you want to > > keep > > > CGI or Resource separate). Currently there is: > > > > > > i) Main nagios.cfg file > > > ii) resource.cfg file > > > iii) hosts.cfg file (object definitions -- probably pointing to > > > cfg_file and cfg_dir meaning lots of others files are used as well) > > > iv) cgi.cfg > > > v) extended config file. > > > > The cgi.cfg and ext*info.cfg files are read by the cgis and should be > > separate so they don't have to parse through a giant config file when they > > run. This is a scaling issue. Also, permission issues for the files should > > be considered. Perhaps I want all the config for a group of servers in a > > single file, and only certain admins have access to the configs for certain > > servers. Perhaps only the nagios administrator can change the nagios.cfg > > file The split-up config files confer a number of benefits. > > > > > > > 5. Make use of network definitions for other monitoring or maintenance > > > applications. > > > > That would imply a standard tags and values all the platforms. Does this > > standard format exist, and does anyone use it if it does? > > > > > > > Below, you can see an example of my new "hosts" file which describes nodes > > > in the network I am monitoring. XML provides a tree structure, but can > > be > > > "enhanced" to graphs by using cross references. Trees are a perfect > > > starting point for allowing the XML itself to represent the > > > basic network topology. Furthermore, if I want a new service, I just add > > > > type="SERVICE-NAME" /> to the particular node and, voila, that node now > > has > > > that service defined for it. All the details about the IP address or node > > > name are "in context" from the XML, and the "generic" service template is > > > used. If I want a custom service definition for that node, instead of > > > having I would have > > > > > > > > > > > > > > > > > > Anyway, it seems like there are interested parties in making this happen > > -- > > > I certainly do not feel that the current configuration system is scalable > > to > > > extremely large systems (hundreds nodes) quickly and easily. > > > > That problem is solved with a management front-end, not with a file format > > change. > > > > > > > Here is a taste of my XML: > > > > > > > > > admins > > > > > > > > > > > > > > > Computing Element 01 > > >
163.1.243.105
> > > > > > > > > Worker Node 01 > > >
163.1.243.155
> > > > > >
> > >
> > > > > > Storage Element 01 > > >
163.1.244.55
> > > > > >
> > > > In what way is this easier or clearer that the existing format? Perhaps for > > different people with different backgrounds things are different, but this > > format is every bit as hard to read as the existing format, and xml is a lot > > more syntactically heavy. > > > > Please don't add extra, unneeded complexity to the file formats. Currently > > they are simple. Simple is good. XML is not simple. XML is complex and > > through it's complexity brings some benefits, however, the existing formats > > deliver what you need, and are simple and easy to debug by hand, which XML > > is not. > > > > kertzman > > > > > > ------------------------------------------------------- > > 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 > _______________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From kdebisschop at mail.debisschop.net Tue Jan 28 20:02:37 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Tue, 28 Jan 2003 14:02:37 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: Shayne Lebrun writes: > Excelsior to you, then, good sir. Not me, Subhendu. -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sean.mcavoy at megawheels.com Tue Jan 28 21:25:58 2003 From: sean.mcavoy at megawheels.com (Sean McAvoy) Date: 28 Jan 2003 15:25:58 -0500 Subject: Service dependences Message-ID: <1043785557.616.19.camel@tech03.toronto.drive-megawheels.net> Hello, I've configured various services (ssh,ftp,ntp,lpd) to be checked for hostgroups, the systems are all located at separate locations with VPN connections (for which I created a check of the tunnel). Is it possible, somehow, to create a dependency for the all services on a host, being dependent on a service check (vpn tunnel check), or must I create separate services for every host, and then make them dependent on the vpn tunnel check? Thanks! -Sean ------------------------------------------------------- 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 Tue Jan 28 19:53:17 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Tue, 28 Jan 2003 13:53:17 -0500 Subject: SNMP plugin warn/critical range issues? In-Reply-To: References: Message-ID: Shayne Lebrun writes: >>In another email, you ask about negative values. That requires a code >>change. We're trying to get a release out, I'm on the fence, but I'll call >>that a bug and fix it, unless others feel it's a feature request. > It would be appreciated. I got into a bit of a row with Tobias from MRTG; I > had trouble convicing him that SNMP could even *return* negative values. > > Here's another issue with the check_snmp plugin; when the OID is of > 'Counter32' type, it's using the '32' in 'Counter32' to test against the -w > and -c ranges. IIRC, already patched in CVS. (My code checkout shows the fix as well) -- Karl ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From suse at phoboslabs.com Tue Jan 28 14:05:26 2003 From: suse at phoboslabs.com (Joel Vande Berg) Date: Tue, 28 Jan 2003 05:05:26 -0800 (PST) Subject: Newbie needs cgi help (long) In-Reply-To: References: Message-ID: <32794.207.158.21.248.1043759126.squirrel@mars.phobolabs.com> Mike, No luck. I'm not even getting queried for username/password and the main nagios page shows me logged in as ???? Joel > > go to a command line and enter chmod 777 cgi.cfg > > I had this problem and it vanished when I performed this function > > Mike > -----Original Message----- > From: Joel Vande Berg > To: Nagios-users at lists.sourceforge.net > Sent: 1/28/03 7:37 AM > Subject: [Nagios-users] Newbie needs cgi help (long) > > I am attempting to setup Nagios using the rpms from: > > ftp://ftp.gwdg.de/pub/linux/suse/ftp.suse.com/people/stark/nagios/ > > After the rpms are installed, I enabled Apache and nagios using > YaST>System>Runlevel properties and rebooted my system. I configured > nagios to monitor a couple of hosts and it is working properly, but when > I > try to access the web interface all I get is an error message regarding > permissions. > > Disabling authorization in cgi.cfg allows me to access the web interface > and see that monitoring is occuring. > > With authorization enabled I get the following messages: > > It appears as though you do not have permission to view information for > any of the services you requested... > > If you believe this is an error, check the HTTP server authentication > requirements for accessing this CGI and check the authorization options > in > your CGI configuration file. > > In accordance with the Nagios instructions I have attempted to .htaccess > files and htpassword users in the following locations w/o success. > > > Nagios file locations: > > /usr/sbin/nagios > executable binaries > > /etc/nagios > nagios configuration files > .htaccess htpasswd.users here > > /usr/lib/nagios > > /usr/lib/cgi > cgi applications > ..htaccess file here. > > /usr/lib/plugins > nagios plugins here > > /usr/include/nagios > locations.h > > /usr/share/nagios > documentation > .htaccess file here > > The contents of the .htaccess file(s) are as follows: > > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /usr/etc/nagios/htpasswd.users > require valid-user > > Any and all help with this is welcome. > > Thanks, > > Joel Vande Berg > > > > > ------------------------------------------------------- > 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 ess.nec.de Tue Jan 28 21:44:32 2003 From: rplewe at ess.nec.de (Rasmus Plewe) Date: Tue, 28 Jan 2003 21:44:32 +0100 Subject: Reports 100% indeterminate In-Reply-To: <000001c2c705$f549bed0$0503a8c0@conrado>; from mailinglists@flopnet.com.br on Tue, Jan 28, 2003 at 05:46:26PM -0200 References: <000001c2c705$f549bed0$0503a8c0@conrado> Message-ID: <20030128214432.A1594@ess.nec.de> On Tue, Jan 28, 2003 at 05:46:26PM -0200, Mailing Lists wrote: > > I just installed and configured Nagios to monitor my network devices and > sites but the generating ANY REPORT I get 100% indeterminate in anyone. > > What could be going wrong? I found nothing about this on FAQs. You sure you tried http://www.nagios.org/faqs/viewfaq.php?faq_id=136? Rasmus ------------------------------------------------------- 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 Jan 28 21:43:51 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Tue, 28 Jan 2003 15:43:51 -0500 Subject: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288CE@phsexch20.mgh.harvard.edu> 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 _______________________________________________ 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 Jarett_DeAngelis at fujifilm.com Tue Jan 28 15:57:30 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 28 Jan 2003 09:57:30 -0500 Subject: Ongoing Apache/Nagios config problems... Message-ID: Hi, I tried this (even added nagios to apache and apache to nagios), but in the process of checking my httpd logs discovered that I appear to have hosed my network when trying to set my hostname. Also, I did not find mod_basic_auth (or mod_auth_basic) in the Package Installer's list. And the Nagios docs say AllowOverride should be AuthConfig, not All. Is this incorrect? Why was I never given the opportunity to set my hostname in Red Hat's setup program, and what is the Right Way to do it now? As it is I cannot bring the network up with /etc/init.d/network start. >>> "Olivier Beauchemin (Budget-Tech IT Consulting)" 01/26/03 08:55PM >>> Add apache to the nagios group, restart the webserver, and restart nagios. See if there's still a problem... Also, there's a mod_basic_auth that you might want to try... You also made sure that Allow Override is "All", right? Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, January 26, 2003 5:56 PM Subject: [Nagios-users] Apache config problem continues... Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? Are we sure the permissions should be nagios/nagios? Shouldn't it be apache/apache? Or am I not grasping something here? -Jarett ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From ksnider at datawire.net Tue Jan 28 23:21:57 2003 From: ksnider at datawire.net (Ken Snider) Date: Tue, 28 Jan 2003 17:21:57 -0500 Subject: Load issues with Nagios In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13AA@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13AA@PKDWB03C.ad.sprint.com> Message-ID: <3E370285.9000907@datawire.net> Carroll, Jim P [Contractor] wrote: > I don't suppose you've run 'top' at all...? Of course. And, as I said in my message, Nagios (the parent process) is consuming all free CPU. That was the basis for all the observations I left in my initial message. From what I can see, there's no way a PIII-750 should be overloaded merely by nsca, 50 or so active checks, and the nagios webserver, even with a 2 minute service check interval. But, at the moment anyway, that's exactly what's happening. --Ken. ------------------------------------------------------- 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 Jan 29 00:07:56 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 28 Jan 2003 18:07:56 -0500 Subject: Ongoing Apache/Nagios config problems... Message-ID: Olivier, Thanks again for your help. 1) No. Apache is running under xinetd and doesn't start (if I understand xinetd correctly) until someone makes a request to port 80. Is that correct? 2) Nope. Apache refuses to start. 3) At the moment (I suspect because I haven't finished my config files? Or will it load anyway and at least quit gracefully?) nagios segfaults whenever I try to run it. This reminds me, I installed the plugins package and I have no idea where it put the plugins. Any ideas? I don't suppose anyone has compiled a walkthrough for getting the system up and running, have they? I'd be willing to wipe the whole thing out and start from scratch if I had to. Thanks, Jarett >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" 01/28/03 03:30PM >>> Jarett, 1. Has Apache started up? What do you get when you do this: ps -def | grep apache 2. Can you see the the test Apache page? Go here: http://youserverIP/ 3. Can you start Nagios? What do you get when you do this: ps -def | grep nagios Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Tuesday, January 28, 2003 2:07 PM Subject: [Nagios-users] Ongoing Apache/Nagios config problems... Hi, I tried this (even added nagios to apache and apache to nagios), but in the process of checking my httpd logs discovered that I appear to have hosed my network when trying to set my hostname. Also, I did not find mod_basic_auth (or mod_auth_basic) in the Package Installer's list. And the Nagios docs say AllowOverride should be AuthConfig, not All. Is this incorrect? Why was I never given the opportunity to set my hostname in Red Hat's setup program, and what is the Right Way to do it now? As it is I cannot bring the network up with /etc/init.d/network start. >>> "Olivier Beauchemin (Budget-Tech IT Consulting)" 01/26/03 08:55PM >>> Add apache to the nagios group, restart the webserver, and restart nagios. See if there's still a problem... Also, there's a mod_basic_auth that you might want to try... You also made sure that Allow Override is "All", right? Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, January 26, 2003 5:56 PM Subject: [Nagios-users] Apache config problem continues... Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? Are we sure the permissions should be nagios/nagios? Shouldn't it be apache/apache? Or am I not grasping something here? -Jarett ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mloftis at wgops.com Wed Jan 29 00:39:39 2003 From: mloftis at wgops.com (Michael Loftis) Date: Tue, 28 Jan 2003 15:39:39 -0800 Subject: Load issues with Nagios In-Reply-To: <3E370285.9000907@datawire.net> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13AA@PKDWB03C.ad.sprint.com> <3E370285.9000907@datawire.net> Message-ID: <64253351.1043768379@[10.1.2.77]> What version of Nagios? --On Tuesday, January 28, 2003 5:21 PM -0500 Ken Snider wrote: > Carroll, Jim P [Contractor] wrote: >> I don't suppose you've run 'top' at all...? > > Of course. > > And, as I said in my message, Nagios (the parent process) is consuming > all free CPU. That was the basis for all the observations I left in my > initial message. > ------------------------------------------------------- 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 Jan 29 00:47:34 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Tue, 28 Jan 2003 18:47:34 -0500 Subject: Ongoing Apache/Nagios config problems... Message-ID: Actually, as of today, from whatever I changed, this is no longer the case. ::sigh:: Now I have found that although I thought I told it to when I installed it, Apache is in fact NOT running under xinetd. I started it manually successfully today. I can log in to the authentication prompts fine. Now, when trying to start Nagios, I get "No lock file found in /usr/local/nagios/var/nagios.lock". For kicks, I tried creating an empty nagios.lock file in that directory, but that produces "ps: error: List of process IDs must follow -p." And then a generous explanation of how to use ps. Ideas? (thanks again for everyone's help) >>> "Jarett DeAngelis" 01/28/03 06:07PM >>> Olivier, Thanks again for your help. 1) No. Apache is running under xinetd and doesn't start (if I understand xinetd correctly) until someone makes a request to port 80. Is that correct? 2) Nope. Apache refuses to start. 3) At the moment (I suspect because I haven't finished my config files? Or will it load anyway and at least quit gracefully?) nagios segfaults whenever I try to run it. This reminds me, I installed the plugins package and I have no idea where it put the plugins. Any ideas? I don't suppose anyone has compiled a walkthrough for getting the system up and running, have they? I'd be willing to wipe the whole thing out and start from scratch if I had to. Thanks, Jarett >>> "Olivier F. Beauchemin (Budget-Tech IT Consulting)" 01/28/03 03:30PM >>> Jarett, 1. Has Apache started up? What do you get when you do this: ps -def | grep apache 2. Can you see the the test Apache page? Go here: http://youserverIP/ 3. Can you start Nagios? What do you get when you do this: ps -def | grep nagios Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Tuesday, January 28, 2003 2:07 PM Subject: [Nagios-users] Ongoing Apache/Nagios config problems... Hi, I tried this (even added nagios to apache and apache to nagios), but in the process of checking my httpd logs discovered that I appear to have hosed my network when trying to set my hostname. Also, I did not find mod_basic_auth (or mod_auth_basic) in the Package Installer's list. And the Nagios docs say AllowOverride should be AuthConfig, not All. Is this incorrect? Why was I never given the opportunity to set my hostname in Red Hat's setup program, and what is the Right Way to do it now? As it is I cannot bring the network up with /etc/init.d/network start. >>> "Olivier Beauchemin (Budget-Tech IT Consulting)" 01/26/03 08:55PM >>> Add apache to the nagios group, restart the webserver, and restart nagios. See if there's still a problem... Also, there's a mod_basic_auth that you might want to try... You also made sure that Allow Override is "All", right? Olivier ----- Original Message ----- From: "Jarett DeAngelis" To: Sent: Sunday, January 26, 2003 5:56 PM Subject: [Nagios-users] Apache config problem continues... Hi again, everyone - So I tried installing the mod_auth_pgsql package AND change the permissions to nagios/nagios on the .htaccess files. Changing the permissions didn't help, and installing mod_auth_pgsql seems to make it so that httpd can't start up. Any ideas? Are we sure the permissions should be nagios/nagios? Shouldn't it be apache/apache? Or am I not grasping something here? -Jarett ------------------------------------------------------- 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 r1p6os402 at sneakemail.com Wed Jan 29 03:03:22 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Tue, 28 Jan 2003 18:03:22 -0800 (PST) Subject: Caching SNMP Info Message-ID: <7688-53043@sneakemail.com> Does anyone know of a good way to cache SNMP info retrieved via the perl SNMP.pm module? (part of NET-SNMP aka UCD-SNMP) I do a number of filesystem checks and each one retrieves the same OIDs but does differnent filters and comparisons. Reducing the total SNMP traffic would be helpful. So far, Google searches have failed me. MRTG caches SNMP replies, so if I get desperate I can get out my Perl saw and some duct tape and merge in the SNMP caching code. However, I'm hoping someone else has already done the work for me. Anyone know? Thanks, -- Steve Bonds ------------------------------------------------------- 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 Jan 29 03:19:33 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Tue, 28 Jan 2003 18:19:33 -0800 (PST) Subject: WAP Interface In-Reply-To: <88DBF0F5824B31449104920BF89A758F1EBA47@edxmb3.jdnet.deere.com> References: <88DBF0F5824B31449104920BF89A758F1EBA47@edxmb3.jdnet.deere.com> Message-ID: > Anybody use Nagios WAP Interface? If so how well does it work? And is it > worth setting up? Thanks > 1)Yes, all the time! 2)It works quite well. I'm happy with it. 3)It's probably already there.. not a whole lot to set up. :-) I've got an Ericsson T68 with AT&T Wireless. I kill time waiting for my train in the morning by browsing around the WAP interface. It's quite useful. -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From david.smith at ce.com.au Wed Jan 29 03:42:10 2003 From: david.smith at ce.com.au (David Smith) Date: Wed, 29 Jan 2003 13:42:10 +1100 Subject: Comments and Acknowledgements Message-ID: <896325D4346B13418D31A7EE76C0A95801456946@snnexc02.in.ce.com.au> When you select the 'Acknowledge this service problem' option for a warning/critical service you are forced to also enter a comment. When the service undergoes a state change, the acknowledgement is removed but the comment remains. This leaves me with certain services that are in the 'OK' state but still have an acknowledgement comment. If the service once again goes critical it still has the comment and this has caused some confusion with my users (this night op didn't call support because he thought the problem was already being looked at). So, is there a way of making the comment go away when the acknowledge does? Should I run some sort of job to clear out comments on 'OK' services (if that's even possible)? Have I missed a config item somewhere? Are the comments supposed to stay for some reason and this is a design feature, not a flaw? Regards, David Smith AIX Administrator Corporate Express Australia ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From hrishys at yahoo.co.uk Wed Jan 29 05:13:01 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 29 Jan 2003 04:13:01 +0000 (GMT) Subject: nagios plugins compilation tru-64 In-Reply-To: <20030128233559.F214@IPAustralia.Gov.AU> References: <20030128233559.F214@IPAustralia.Gov.AU> Message-ID: <20030129041301.70438.qmail@web12602.mail.yahoo.com> Hi stanley Thank you very much for the valuable piece of info..but can this problem be overcome if i install GNUc compiler on True-64 Unix and compile nagios plugins..please pardon me coz my c knowledge is limited.. regards Hrishy --- Stanley Hopcroft wrote: > Dear Sir, > > I am writing to thank you for your letter and say, > that AFAIK, True-64 > has not been a successfull porting target since > quite a while ago. > > On Tue, Jan 28, 2003 at 11:56:50AM +0000, hrishy > wrote: > > Hi Ton > > > > Here goes my config file :-D its attached with my > > mail..and also a big thank you for taking pains to > > troubleshoot this problem :-D > > > > regards > > Hrishy > > > > IIRC correctly this matter came up in the last 3 > months in the context > of a Japanese Gentlemen having trouble building > Netsaint on this > or a similar platform. > > This may point you (and us) in the right direction. > > http://article.gmane.org/gmane.network.netsaint.user/533/match=digital+unix > > 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. __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sghosh at sghosh.org Wed Jan 29 05:34:46 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 28 Jan 2003 23:34:46 -0500 (EST) Subject: Caching SNMP Info In-Reply-To: <7688-53043@sneakemail.com> References: <7688-53043@sneakemail.com> Message-ID: On Tue, 28 Jan 2003, Steve Bonds wrote: > Does anyone know of a good way to cache SNMP info retrieved via the perl > SNMP.pm module? (part of NET-SNMP aka UCD-SNMP) I do a number of > filesystem checks and each one retrieves the same OIDs but does differnent > filters and comparisons. Reducing the total SNMP traffic would be > helpful. > > So far, Google searches have failed me. > > MRTG caches SNMP replies, so if I get desperate I can get out my Perl saw > and some duct tape and merge in the SNMP caching code. However, I'm > hoping someone else has already done the work for me. Anyone know? > > Thanks, > > -- Steve Bonds > > > Not quite sure about your question - but if you are looking at caching a value and on the next run using the current value and the cached value to do filters and comparisions - then you have to write the data out to a file. Take a look at Cache::Cache (perl-cache.sf.net) -- -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 Jan 29 05:41:31 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Tue, 28 Jan 2003 23:41:31 -0500 (EST) Subject: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288CE@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288CE@phsexch20.mgh.harvard.edu> Message-ID: 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 stevelml1 at scee.sony.co.uk Wed Jan 29 08:18:33 2003 From: stevelml1 at scee.sony.co.uk (Steve Loughran) Date: Wed, 29 Jan 2003 07:18:33 -0000 Subject: Error code 127 Out of bounds References: Message-ID: <02da01c2c766$a214a9d0$ccfe10ac@niltxp> obvious question i know but... did you download/configure/install the nagios plugins as well? (I got caught out with this one... doh!). the plugins are not supplied with the base nagios source, you have to download and install them seperately http://sourceforge.net/project/showfiles.php?group_id=29880 Steve ----- Original Message ----- From: "Graham, Mike" To: Sent: Tuesday, January 28, 2003 7:50 PM Subject: [Nagios-users] Error code 127 Out of bounds > Good day... > > I have Nagios Installed and the web interface is displaying upon > authentication. I have one host entered in my host.cfg file I wish to use > the check host alive command. I believe I have it correctly configured for > the most part, but I continue to get a Error 127--out of bounds--plugin may > be missing. > > Does anyone have experience with this specific issue? > > Thanks in advance > > Michael Graham > mgraham1 at wellcarehmo.com > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Andreas.Winter at sskm.de Wed Jan 29 09:11:34 2003 From: Andreas.Winter at sskm.de (Andreas Winter) Date: Wed, 29 Jan 2003 09:11:34 +0100 Subject: Send Notifications via SNMP Message-ID: <3E378CB6.3010205@sskm.de> Hello all, is there anyone who has an idea how i can send notifications via snmp-traps. The idea is to monitor hosts and services with nagios and notify a third-party product with snmp-traps in case of state chances. Thanks in advance Andi Winter -- Stadtsparkasse M?nchen Phone: +49 89 2167 9762 email: Andreas.Winter at sskm.de ------------------------------------------------------- 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 Wed Jan 29 09:38:12 2003 From: Bernhard.Verstege at hik.fzk.de (Verstege, Bernhard) Date: Wed, 29 Jan 2003 09:38:12 +0100 Subject: AW: Send Notifications via SNMP Message-ID: Hi, just write an eventhandler which uses snmptrap utility. Its part of NET-SNMP, HP-Openiew and part of Perl-module SNMP_util. If you want to define your own SNMP Traps, you should register your company at http://www.isi.edu/cgi-bin/iana/enterprise.pl to get your own enterprise-Id (its free). I have not done this things, but we want to do similar things and send out traps to IBM Tivoli. I just read the book "Essential SNMP" from O'Reilly, where I found these hints. Gru? B. Verstege ------------------------------------------------------------------------- Bernhard Verstege Forschungszentrum Karlsruhe GmbH Abt. HIK 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: Andreas Winter [mailto:Andreas.Winter at sskm.de] >Gesendet: Mittwoch, 29. Januar 2003 09:12 >An: nagios-users at lists.sourceforge.net >Betreff: [Nagios-users] Send Notifications via SNMP > > >Hello all, > >is there anyone who has an idea how i can send notifications via >snmp-traps. The idea is to monitor hosts and services with nagios and >notify a third-party product with snmp-traps in case of state chances. > >Thanks in advance >Andi Winter > >-- >Stadtsparkasse M?nchen >Phone: +49 89 2167 9762 >email: Andreas.Winter at sskm.de > > > > >------------------------------------------------------- >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.Hopcroft at IPAustralia.Gov.AU Wed Jan 29 09:54:00 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 29 Jan 2003 19:54:00 +1100 Subject: Send Notifications via SNMP In-Reply-To: <3E378CB6.3010205@sskm.de>; from Andreas.Winter@sskm.de on Wed, Jan 29, 2003 at 09:11:34AM +0100 References: <3E378CB6.3010205@sskm.de> Message-ID: <20030129195351.C214@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Jan 29, 2003 at 09:11:34AM +0100, Andreas Winter wrote: > Hello all, > > is there anyone who has an idea how i can send notifications via > snmp-traps. The idea is to monitor hosts and services with nagios and > notify a third-party product with snmp-traps in case of state chances. > that I have an idea but nothing much more. The Nag/Netsaint notify commands can be replaced by snmptrap (from the net-snmp distribution) to do this. Howver, it seems to me that you have a significant amount of integration to map check outputs/return codes, in the general case, to SNMP OIDs. If all you want to do is send one OID when a service fails and another when it recovers, then this isn't too bad, but surely you want to transmit the same amount of info as in a notifaction eg at least . hostname . service name . plugin output Perhaps (and I don't know too much about this) if you have your own private OID tree then this is feasable. > Thanks in advance > Andi Winter > 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 i.stokes-rees1 at physics.ox.ac.uk Wed Jan 29 10:51:57 2003 From: i.stokes-rees1 at physics.ox.ac.uk (Ian Stokes-Rees) Date: Wed, 29 Jan 2003 09:51:57 -0000 Subject: Statusmap error Message-ID: <35666012DF4CD411BE940090279FA24003CADECB@ppnt41.physics.ox.ac.uk> When I had this problem it was because I had not installed GD. Make sure you've got that installed first. Ian. -- Ian Stokes-Rees i.stokes-rees at physics.ox.ac.uk Particle Physics, Oxford http://www-pnp.physics.ox.ac.uk/~stokes/ > -----Original Message----- > From: Brian Ipsen [mailto:Brian.Ipsen at andebakken.dk] > Sent: 27 January 2003 21:40 > To: Potter, G M (Greg) > Cc: Nagios List > Subject: RE: [Nagios-users] Statusmap error > > > Hi, > > > Do you get an error message in the apache error log file about > > statusmap.cgi exiting prematurely? I had a problem with that, > > and I believe the problem was in the order I installed/compiled > > the pieces that gd uses. I.E. libpng, libjpeg, and libgd. > > I have that exact problem on an 1.0 installation right now. > Could you give me a hint on how things should be patched in > the makefile to get things running ?? > > Thanks in advance > > /Brian > > > > ------------------------------------------------------- > 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 hrishys at yahoo.co.uk Wed Jan 29 12:45:36 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 29 Jan 2003 11:45:36 +0000 (GMT) Subject: check_nt In-Reply-To: <200301132110.36374.jasmine.chua@securecirt.com> References: <200301132110.36374.jasmine.chua@securecirt.com> Message-ID: <20030129114536.46145.qmail@web12601.mail.yahoo.com> Hi check_nt gives me a error message saying that there are wrong arguments supplied. my services.cfg file looks like this for check_nt # Service definition define service{ use generic-service ; host_name nt1 service_description check-disk-useage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_disk!176.1.111.214!1248!C!80!90 } and my checkcommands.cfg file looks like this define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } how do i correctly specify the arguments in the services.cfg file. 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From tdeblend at gcc.dhl.com Wed Jan 29 13:00:37 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Wed, 29 Jan 2003 13:00:37 +0100 Subject: check_nt References: <20030129114536.46145.qmail@web12601.mail.yahoo.com> Message-ID: <3E37C265.A69F129@gcc.dhl.com> Well, guess what, you supplied the wrong arguments :-) Look at it like this: check_command check_nt_disk !176.1.111.214!1248! C! 80 !90 command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ You shouldn't add the IP address, as that is supplied by $HOSTADDRESS$. You shouldn't add the port, as that is added allready in the command_line directive. Try this: check_command check_nt_disk!C!8O!90 hrishy wrote: > > Hi > > check_nt gives me a error message saying that there > are wrong arguments supplied. > > my services.cfg file looks like this for check_nt > > # Service definition > define service{ > use generic-service > ; > host_name nt1 > service_description check-disk-useage > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_nt_disk!176.1.111.214!1248!C!80!90 > } > > and my checkcommands.cfg file looks like this > > define command{ > command_name check_nt_disk > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p > 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > } > > how do i correctly specify the arguments in the > services.cfg file. > > 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: > 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 hrishys at yahoo.co.uk Wed Jan 29 13:14:31 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 29 Jan 2003 12:14:31 +0000 (GMT) Subject: check_nt In-Reply-To: <3E37C265.A69F129@gcc.dhl.com> References: <3E37C265.A69F129@gcc.dhl.com> Message-ID: <20030129121431.38234.qmail@web12607.mail.yahoo.com> Hi Tom yup..you got me right..i checked and modified the arguments it works now.. regards Hrishy --- Tom DE BLENDE wrote: > Well, guess what, you supplied the wrong arguments > :-) > > Look at it like this: > > check_command check_nt_disk > !176.1.111.214!1248! C! > 80 !90 > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p > 1248 -v > USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > > You shouldn't add the IP address, as that is > supplied by > $HOSTADDRESS$. You shouldn't add the port, as that > is added allready > in the command_line directive. > > Try this: > > check_command check_nt_disk!C!8O!90 > > > > hrishy wrote: > > > > Hi > > > > check_nt gives me a error message saying that > there > > are wrong arguments supplied. > > > > my services.cfg file looks like this for check_nt > > > > # Service definition > > define service{ > > use generic-service > > ; > > host_name nt1 > > service_description check-disk-useage > > is_volatile 0 > > check_period 24x7 > > max_check_attempts 3 > > normal_check_interval 5 > > retry_check_interval 1 > > contact_groups nt-admins > > notification_interval 120 > > notification_period 24x7 > > notification_options w,u,c,r > > check_command > > check_nt_disk!176.1.111.214!1248!C!80!90 > > } > > > > and my checkcommands.cfg file looks like this > > > > define command{ > > command_name check_nt_disk > > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p > > 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c > $ARG3$ > > } > > > > how do i correctly specify the arguments in the > > services.cfg file. > > > > 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: > > 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!? 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Jan 29 13:22:44 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Wed, 29 Jan 2003 23:22:44 +1100 Subject: nagios plugins compilation tru-64 In-Reply-To: <20030129041301.70438.qmail@web12602.mail.yahoo.com>; from hrishys@yahoo.co.uk on Wed, Jan 29, 2003 at 04:13:01AM +0000 References: <20030128233559.F214@IPAustralia.Gov.AU> <20030129041301.70438.qmail@web12602.mail.yahoo.com> Message-ID: <20030129232234.H214@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter but say that unless someone more knowledgable than I steps forward, I can't offer much hope. On Wed, Jan 29, 2003 at 04:13:01AM +0000, hrishy wrote: > Hi stanley > > Thank you very much for the valuable piece of > info..but can this problem be overcome if i install > GNUc compiler on True-64 Unix and compile nagios > plugins First things first. Whatever compiler you have is probably sufficient since it has detected that the getopt test program failed (because of the structure clash with what's expected by the plugin and the system getopt) to compile. I think you need to install the Gnu getopt function or a replica (on FreeBSD there is a popt library that is a getopt clone). Again, unless you can get more respectable advice, this function seems to be located in the GNU C library. **** WARNING Installing a new C library could break your system ****** However, if you can install it safely, so that the system binaries and libraries aren't overwritten, it will probably be very useful for all the Nag plugins. Here's a URL http://www.gnu.org/manual/glibc-2.2.3/html_node/libc_toc.html You may be better off to try the popt library first since it doesn't install Gnu replacements for the standard library functions. http://www.gnu.org/directory/libs/popt.html Whichever getopt replacement you use, you will probably have to inform configure that you are not using the system getopt and therefore to look for it somewhere else. I don't know how to do this. Perhaps the popt docco will help. > ..please pardon me coz my c knowledge is > limited.. That's fine: No C knwledge required to install Nagios or the plugins. > > regards > Hrishy > 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 sandromergvaz at uol.com.br Wed Jan 29 14:35:43 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Wed, 29 Jan 2003 10:35:43 -0300 Subject: RES: check_nt Message-ID: Sorry for the missending... Ex: check_nt-Disk!C!80!90 You never have to define the host address when the -H $HOSTADDRESS$ is in your command at checkcommands.cfg. Nagios replace it automatically. Att., Sandro Vaz -----Mensagem original----- De: Sandro Vaz (UOL) [mailto:sandromergvaz at uol.com.br] Enviada em: quarta-feira, 29 de janeiro de 2003 10:34 Para: 'hrishy'; 'nagios-users at lists.sourceforge.net' Assunto: RES: [Nagios-users] check_nt No need to define the host address in services.cfg. Just put the 3 arguments needed. Ex.: -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de hrishy Enviada em: quarta-feira, 29 de janeiro de 2003 08:46 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] check_nt Hi check_nt gives me a error message saying that there are wrong arguments supplied. my services.cfg file looks like this for check_nt # Service definition define service{ use generic-service ; host_name nt1 service_description check-disk-useage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_disk!176.1.111.214!1248!C!80!90 } and my checkcommands.cfg file looks like this define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } how do i correctly specify the arguments in the services.cfg file. 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: 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 --- 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 sandromergvaz at uol.com.br Wed Jan 29 14:33:32 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Wed, 29 Jan 2003 10:33:32 -0300 Subject: RES: check_nt In-Reply-To: <20030129114536.46145.qmail@web12601.mail.yahoo.com> References: <20030129114536.46145.qmail@web12601.mail.yahoo.com> Message-ID: No need to define the host address in services.cfg. Just put the 3 arguments needed. Ex.: -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de hrishy Enviada em: quarta-feira, 29 de janeiro de 2003 08:46 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] check_nt Hi check_nt gives me a error message saying that there are wrong arguments supplied. my services.cfg file looks like this for check_nt # Service definition define service{ use generic-service ; host_name nt1 service_description check-disk-useage is_volatile 0 check_period 24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 contact_groups nt-admins notification_interval 120 notification_period 24x7 notification_options w,u,c,r check_command check_nt_disk!176.1.111.214!1248!C!80!90 } and my checkcommands.cfg file looks like this define command{ command_name check_nt_disk command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ } how do i correctly specify the arguments in the services.cfg file. 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: 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 hrishys at yahoo.co.uk Wed Jan 29 13:42:18 2003 From: hrishys at yahoo.co.uk (=?iso-8859-1?q?hrishy?=) Date: Wed, 29 Jan 2003 12:42:18 +0000 (GMT) Subject: RES: check_nt In-Reply-To: References: Message-ID: <20030129124218.41559.qmail@web12604.mail.yahoo.com> Hi Sandro Thank you very very much for the prompt response..:-D you guys are really wunderful people.. regards Hrishy --- "Sandro Vaz (UOL)" wrote: > Sorry for the missending... > > Ex: > > check_nt-Disk!C!80!90 > > You never have to define the host address when the > -H $HOSTADDRESS$ is in > your command at checkcommands.cfg. Nagios replace it > automatically. > > Att., > > Sandro Vaz > > -----Mensagem original----- > De: Sandro Vaz (UOL) > [mailto:sandromergvaz at uol.com.br] > Enviada em: quarta-feira, 29 de janeiro de 2003 > 10:34 > Para: 'hrishy'; 'nagios-users at lists.sourceforge.net' > Assunto: RES: [Nagios-users] check_nt > > > No need to define the host address in services.cfg. > > Just put the 3 arguments needed. Ex.: > > > -----Mensagem original----- > De: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] Em > nome de hrishy Enviada > em: quarta-feira, 29 de janeiro de 2003 08:46 > Para: nagios-users at lists.sourceforge.net > Assunto: [Nagios-users] check_nt > > > Hi > > check_nt gives me a error message saying that there > are wrong arguments supplied. > > my services.cfg file looks like this for check_nt > > # Service definition > define service{ > use generic-service > > ; > host_name nt1 > service_description check-disk-useage > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_nt_disk!176.1.111.214!1248!C!80!90 > } > > and my checkcommands.cfg file looks like this > > define command{ > command_name check_nt_disk > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p > 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > } > > how do i correctly specify the arguments in the > services.cfg file. > > 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: > 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 > > > --- > 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 > > __________________________________________________ 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Raj.Mudhar at nottingham.ac.uk Wed Jan 29 13:47:04 2003 From: Raj.Mudhar at nottingham.ac.uk (Raj Mudhar) Date: Wed, 29 Jan 2003 12:47:04 +0000 Subject: Configure outcome - help please. Message-ID: 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 option. Is this ok? please let me know if you can . ------------------------------------------------------- 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 Wed Jan 29 13:51:13 2003 From: nagios at cerbernet.co.uk (Tony) Date: Wed, 29 Jan 2003 12:51:13 -0000 Subject: check_nt In-Reply-To: <20030129114536.46145.qmail@web12601.mail.yahoo.com> References: <20030129114536.46145.qmail@web12601.mail.yahoo.com> Message-ID: <000001c2c795$1f065b40$f81fc3c1@TONYS> For a start you need to take out the IP address and port number from you service definition as this is specified in your check command. It should read check_nt_disk!C!80!90 Give that a try. Tony > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users- > admin at lists.sourceforge.net] On Behalf Of hrishy > Sent: 29 January 2003 11:46 > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_nt > > Hi > > check_nt gives me a error message saying that there > are wrong arguments supplied. > > my services.cfg file looks like this for check_nt > > # Service definition > define service{ > use generic-service > ; > host_name nt1 > service_description check-disk-useage > is_volatile 0 > check_period 24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval 1 > contact_groups nt-admins > notification_interval 120 > notification_period 24x7 > notification_options w,u,c,r > check_command > check_nt_disk!176.1.111.214!1248!C!80!90 > } > > and my checkcommands.cfg file looks like this > > define command{ > command_name check_nt_disk > command_line $USER1$/check_nt -H $HOSTADDRESS$ -p > 1248 -v USEDDISKSPACE -l $ARG1$ -w $ARG2$ -c $ARG3$ > } > > how do i correctly specify the arguments in the > services.cfg file. > > 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: > 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 Wed Jan 29 14:22:01 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 30 Jan 2003 00:22:01 +1100 Subject: Configure outcome - help please. In-Reply-To: ; from Raj.Mudhar@nottingham.ac.uk on Wed, Jan 29, 2003 at 12:47:04PM +0000 References: Message-ID: <20030130002153.K214@IPAustralia.Gov.AU> Dear Sir, The only problem that folks have is that it doesn't find the gd library (necessary for the graphics in the web page). Run configure again, pipe it through your pager and watch for the gd tests. If the results are positive (it's something loud like 'Found gd lib!'), your Ok. .. here it is checking for gdImagePng in -lgd (order 1)... (cached) yes GD library was found! Otherwise run ./configure --help and see if that gives you some ideas. If it's got gd, then continue reading the excellent installation instructions 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 mpowell at ena.com Wed Jan 29 14:38:39 2003 From: mpowell at ena.com (Marc Powell) Date: Wed, 29 Jan 2003 07:38:39 -0600 Subject: Configure outcome - help please. Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F2887@mismail.ena.com> A configure script simply probes the system it's running on for various components that may or may not be present. During the configure process for most, if not all packages, you should not expect every check to return a 'yes' as that check may not be appropriate for your OS/architecture. This is especially true for programs that are designed to be compiled under multiple operating systems. The three items you list below are not unusual for a Linux based system. Going forward with your use of Linux, unless you see very loud errors from configure, you should at least go through the 'make' stage of program compilation before assuming something terrible has gone wrong. Generally speaking, if there's something you need that you don't have, the make will fail loudly with appropriate errors. -- Marc -----Original Message----- From: Raj Mudhar [mailto:Raj.Mudhar at nottingham.ac.uk] Sent: Wed 1/29/2003 6:47 AM To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] Configure outcome - help please. 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 option. Is this ok? please let me know if you can . ------------------------------------------------------- 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 mlang at delysid.org Wed Jan 29 14:52:34 2003 From: mlang at delysid.org (Mario Lang) Date: Wed, 29 Jan 2003 14:52:34 +0100 Subject: nagios plugins compilation tru-64 In-Reply-To: <20030129041301.70438.qmail@web12602.mail.yahoo.com> (hrishy's message of "Wed, 29 Jan 2003 04:13:01 +0000 (GMT)") References: <20030129041301.70438.qmail@web12602.mail.yahoo.com> Message-ID: <871y2wgj19.fsf@lexx.delysid.org> hrishy writes: > info..but can this problem be overcome if i install > GNUc compiler on True-64 Unix and compile nagios > plugins.. That does not work. I tried compiling with Gcc on Tru64 5.1, and it fails with even more errors. something about snprintf.c being not compilable. -- CYa, Mario ------------------------------------------------------- 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 Jan 29 15:41:31 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 29 Jan 2003 20:11:31 +0530 Subject: Yahoo Messenger Notification Configuration Message-ID: <001c01c2c7a4$837b1200$5f7b0297@atul> Hello All, Have anybody configured the Nagios using the Yahoo Messenger as one of the Notification Feature. Pls give me some info regarding it. 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 atulsh at hclinsys.com Wed Jan 29 15:53:52 2003 From: atulsh at hclinsys.com (Atul Shrivastava) Date: Wed, 29 Jan 2003 20:23:52 +0530 Subject: SNMP Traps for Cisco Routers Message-ID: <002a01c2c7a6$3d218260$5f7b0297@atul> Hello All, I have set my Cisco Router to send alerts to my Nagios Management Host, but on the Management Host, I am now be able to configre all this. I have searched the web and also the Nagios site but they are dealing about the Arcserver (Novel Server). Can anybody has done in this field. If yes, then pls do give me some info. Thanks in advancce. I want that my Trap receiving host and the Nagios Management host will be the same 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 twebster at daksoft.com Wed Jan 29 16:18:19 2003 From: twebster at daksoft.com (twebster at daksoft.com) Date: Wed, 29 Jan 2003 08:18:19 -0700 Subject: Yahoo Messenger Notification Configuration Message-ID: I don't know if you can send Notifications to Yahoo messenger, but if you can, be very careful since Messenger uses a clear text protocol. All of your notifications could be potentially at risk, so don't every include internal hostnames or IP addresses when sending via Messenger. I would consider this high risk. Anyone else have thoughts? Tony |---------+----------------------------------------> | | "Atul Shrivastava" | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/29/2003 07:41 AM | | | Please respond to "Atul | | | Shrivastava" | | | | |---------+----------------------------------------> >------------------------------------------------------------------------------------------------------------------------------| | | | To: | | cc: | | Subject: [Nagios-users] Yahoo Messenger Notification Configuration | >------------------------------------------------------------------------------------------------------------------------------| Hello All, Have anybody configured the Nagios using the Yahoo Messenger as one of the Notification Feature. Pls give me some info regarding it. 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 From jcarro10 at sprintspectrum.com Wed Jan 29 16:33:07 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 09:33:07 -0600 Subject: Using qpage for sending notification to AT&T W ireless phone Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13AE@PKDWB03C.ad.sprint.com> I recall you asking this once before. (No, this isn't a criticism... you've let quite a bit of time lapse since your original request.) I'm not sure what other forums you could go to, but... what about Ask Slashdot? Surely there's someone from AT&T who reads Slashdot who is reasonably close to the problem at hand to be able to either a) offer a comment, or b) fix the problem. Food for thought. jc > -----Original Message----- > From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] > Sent: Tuesday, January 28, 2003 1:58 PM > To: Nagios-users (E-mail) > Subject: [Nagios-users] Using qpage for sending notification to AT&T > Wireless phone > > > Is anyone using qpage to send notifications to an AT&T wireless > phone. I can not get AT&T wireless to admit that they support this > service. I have found several phone numbers on the web for their > TAP/IXO service, but none of them will successfully deliver the page. > of the 6 numbers I have tried, one accepts the message and says it > will deliver it, but it never shows up on the phone. I have the > service configured so that my Cingular phone works correctly, I am > just having trouble with the AT&T wireless phone. Of course it is > my bosses phone (AT&T) that is not working instead of mine (Cingular). > > Has anyone got this to work, and what phone number are you using? > > Thanks! > > Greg M. Potter > mailto:gpotter at marathonoil.com > > Non Scio, id est in Latina! > ~~|\ > / | \ > ~^~^~^~ / | \ ~^~^~^~^ > ~^~^~ / 9255 ) ~^~^^~~^^~^ > ~^~^____/____|____)_____^~^^~^~^~^ > ~^~^ \ Greg Potter / ^~^~^~^~^~^~^ > ~^~^~^~^\_Okla. City, OK_/~^~^~^~^~^~~^~^~^~ > > > > ------------------------------------------------------- > 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 Jan 29 16:33:59 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 09:33:59 -0600 Subject: Service dependences Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13AF@PKDWB03C.ad.sprint.com> The former. jc > -----Original Message----- > From: Sean McAvoy [mailto:sean.mcavoy at megawheels.com] > Sent: Tuesday, January 28, 2003 2:26 PM > To: Nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Service dependences > > > Hello, > I've configured various services (ssh,ftp,ntp,lpd) to be checked for > hostgroups, the systems are all located at separate locations with VPN > connections (for which I created a check of the tunnel). Is > it possible, > somehow, to create a dependency for the all services on a host, being > dependent on a service check (vpn tunnel check), or must I create > separate services for every host, and then make them dependent on the > vpn tunnel check? > Thanks! > > > -Sean > > > > ------------------------------------------------------- > 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 Jan 29 16:40:41 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 09:40:41 -0600 Subject: Load issues with Nagios Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13B0@PKDWB03C.ad.sprint.com> Ah yes, so you did. I think my brain was stuck on "the box is *always* at 100% CPU". Have you tried truss/strace/whatever is appropriate for the o/s you use? jc > -----Original Message----- > From: Ken Snider [mailto:ksnider at datawire.net] > Sent: Tuesday, January 28, 2003 4:22 PM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at sourceforge.net > Subject: Re: [Nagios-users] Load issues with Nagios > > > Carroll, Jim P [Contractor] wrote: > > I don't suppose you've run 'top' at all...? > > Of course. > > And, as I said in my message, Nagios (the parent process) is > consuming all > free CPU. That was the basis for all the observations I left > in my initial > message. > > From what I can see, there's no way a PIII-750 should be > overloaded merely > by nsca, 50 or so active checks, and the nagios webserver, > even with a 2 > minute service check interval. But, at the moment anyway, > that's exactly > what's happening. > > --Ken. > ------------------------------------------------------- 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 Wed Jan 29 16:44:51 2003 From: kdebisschop at mail.debisschop.net (Karl DeBisschop) Date: Wed, 29 Jan 2003 10:44:51 -0500 Subject: nagios plugins compilation tru-64 In-Reply-To: <871y2wgj19.fsf@lexx.delysid.org> References: <20030129041301.70438.qmail@web12602.mail.yahoo.com> <871y2wgj19.fsf@lexx.delysid.org> Message-ID: Mario Lang writes: > hrishy writes: > >> info..but can this problem be overcome if i install >> GNUc compiler on True-64 Unix and compile nagios >> plugins.. > > That does not work. I tried compiling with Gcc on Tru64 5.1, > and it fails with even more errors. something about snprintf.c being > not compilable. When did you try it? We have cleaned up some autoconf stuff since the snprintf/asprintf stuff was brought in from samba.org. It may be better now, or if there's more to be done, it would be good to know for sure -- Karl ------------------------------------------------------- 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 Jan 29 17:51:03 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 10:51:03 -0600 Subject: Yahoo Messenger Notification Configuration Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2527@PKDWB03C.ad.sprint.com> On Yahoo Messenger: A few months back, someone on the list indicated that they'd set up Jabber to gateway to Yahoo Messenger. I don't recall details, unfortunately. Having said that, anyone wanting to do this would need some sort of character-based YM client, one that can either have a string passed to it, or one which could be wrapped in an Expect script. Should be able to find a list of YM clients over on sourceforge.net. Having said that, I don't know what the value-add of having this feature would be. A reasonable alternative would be to have notifications sent to your Yahoo e-mail account, and let YM give you the "you have new mail" popup. On security: This is really no less secure than sending e-mail notifications over the Internet. If the cornerstone of your system/network security is "security through obscurity", then you are probably already at significant risk. If your firewall is compromised, then all bets are off. What value is a hostname/IP address to an attacker, if they can't get past your first layer of defence? Do what you feel you need to do. I'm just suggesting that security efforts are more likely to be beneficial if focused on things like policy and perimeter. (FWIW, Jabber supports crypto, I believe.) Yes, it would probably be a Bad Thing to have notifications include things like, "The trusted host is fizzgig.example.com, IP 10.2.3.4, root password is xyzygy5, dialup access via 555-1234". Just my $0.02. jc > -----Original Message----- > From: twebster at daksoft.com [mailto:twebster at daksoft.com] > Sent: Wednesday, January 29, 2003 9:18 AM > To: Atul Shrivastava > Cc: nagios-users at lists.sourceforge.net; > nagios-users-admin at lists.sourceforge.net > Subject: Re: [Nagios-users] Yahoo Messenger Notification Configuration > > > > I don't know if you can send Notifications to Yahoo > messenger, but if you > can, be very careful since Messenger uses a clear text protocol. > > All of your notifications could be potentially at risk, so don't every > include internal hostnames or IP addresses when sending via Messenger. > > I would consider this high risk. > > Anyone else have thoughts? > > Tony > > > |---------+----------------------------------------> > | | "Atul Shrivastava" | > | | | > | | Sent by: | > | | nagios-users-admin at lists.sour| > | | ceforge.net | > | | | > | | | > | | 01/29/2003 07:41 AM | > | | Please respond to "Atul | > | | Shrivastava" | > | | | > |---------+----------------------------------------> > > >------------------------------------------------------------- > -----------------------------------------------------------------| > | > | > | To: > | > | cc: > | > | Subject: [Nagios-users] Yahoo Messenger > Notification Configuration > | > > >------------------------------------------------------------- > -----------------------------------------------------------------| > > > > > Hello All, > > Have anybody configured the Nagios using the Yahoo Messenger > as one of the > Notification Feature. Pls give me some info regarding it. > > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From AHKAPLAN at PARTNERS.ORG Wed Jan 29 18:16:05 2003 From: AHKAPLAN at PARTNERS.ORG (Kaplan, Andrew H.) Date: Wed, 29 Jan 2003 12:16:05 -0500 Subject: FW: Correct Syntax for check_flexlm (fwd) Message-ID: <5593DA408212D511B0910002A513501F01D288D2@phsexch20.mgh.harvard.edu> 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 _______________________________________________ Nagios-users mailing list Nagios-users at lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: utils.pm.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: check_flexlm.txt URL: -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: nrpe.cfg.txt URL: From jcarro10 at sprintspectrum.com Wed Jan 29 17:56:01 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 10:56:01 -0600 Subject: Caching SNMP Info Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13B3@PKDWB03C.ad.sprint.com> Not sure if this is what you're looking for, but on 12/20/2002 John P. Looney strongly endorsed the snmp proxy: http://freshmeat.net/releases/107146/ HTH. jc > -----Original Message----- > From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] > Sent: Tuesday, January 28, 2003 8:03 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Caching SNMP Info > > > Does anyone know of a good way to cache SNMP info retrieved > via the perl > SNMP.pm module? (part of NET-SNMP aka UCD-SNMP) I do a number of > filesystem checks and each one retrieves the same OIDs but > does differnent > filters and comparisons. Reducing the total SNMP traffic would be > helpful. > > So far, Google searches have failed me. > > MRTG caches SNMP replies, so if I get desperate I can get out > my Perl saw > and some duct tape and merge in the SNMP caching code. However, I'm > hoping someone else has already done the work for me. Anyone know? > > Thanks, > > -- Steve Bonds > > > > ------------------------------------------------------- > 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 Jan 29 18:34:10 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Wed, 29 Jan 2003 11:34:10 -0600 Subject: OT: Apache::AuthSMB and mod_perl Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13B9@PKDWB03C.ad.sprint.com> I was wondering if someone could give me a hand getting Apache::AuthSMB and mod_perl to work? Platform is x86, Red Hat 7.3, Apache 1.3.23. Please reply off-list. I'll summarize to the list if there's interest. jc ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mauro.zini at init.it Wed Jan 29 19:56:00 2003 From: mauro.zini at init.it (Mauro Zini) Date: Wed, 29 Jan 2003 19:56:00 +0100 Subject: (no subject) Message-ID: <014901c2c7c8$110ff400$ef02a8c0@ZINI> We are testing nagios to check our servers and services. We'd like to use dependency and we are testing them. We have some problem: Host A has a service checked (Service PING) Host B has checked http service. If we configure a host dependency and unplug host A we see a polling for http on host B. This seem ok, the documentation says that host dependencies stop only notifications and not checks. But, if we shut off http the notification arrives... Anyone have seen the same problem? Any solution? Thanks! Mauro. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Wed Jan 29 20:18:16 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 29 Jan 2003 11:18:16 -0800 (PST) Subject: Caching SNMP Info In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13B3@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13B3@PKDWB03C.ad.sprint.com> Message-ID: <15186-43327@sneakemail.com> That looks an awful lot like what I need. I'll take a look at it. Thanks a bunch! -- Steve On Wed, 29 Jan 2003, Carroll, Jim P [Contractor] jcarro10-at-sprintspectrum.com |Nagios| wrote: > Not sure if this is what you're looking for, but on 12/20/2002 John P. > Looney strongly endorsed the snmp proxy: > > http://freshmeat.net/releases/107146/ ------------------------------------------------------- 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 Jan 29 21:10:32 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 29 Jan 2003 15:10:32 -0500 (EST) Subject: Correct Syntax for check_flexlm (fwd) In-Reply-To: <5593DA408212D511B0910002A513501F01D288D1@phsexch20.mgh.harvard.edu> References: <5593DA408212D511B0910002A513501F01D288D1@phsexch20.mgh.harvard.edu> Message-ID: -F is used for the license.dat file not the lmstat utility I'll take a look at the files a bit later... -sg On Wed, 29 Jan 2003, Kaplan, Andrew H. wrote: > 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 r1p6os402 at sneakemail.com Wed Jan 29 21:51:56 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 29 Jan 2003 12:51:56 -0800 (PST) Subject: Caching SNMP Info In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13B3@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13B3@PKDWB03C.ad.sprint.com> Message-ID: <15285-72573@sneakemail.com> On Wed, 29 Jan 2003, Carroll, Jim P [Contractor] jcarro10-at-sprintspectrum.com |Nagios| wrote: > Not sure if this is what you're looking for, but on 12/20/2002 John P. > Looney strongly endorsed the snmp proxy: > > http://freshmeat.net/releases/107146/ This really looked promising until the complete lack of documentation killed it. There aren't even any useful comments in the source code to describe what's going on. It appears that the check_snmppd command was intended as a drop-in replacement for check_snmp, but the proxy was not indended for general use with random SNMP query scripts. Still, an excellent tip, and if I get desperate enough to need it I can go source-diving, document it myself, and maybe figure out how to link it in with my NET-SNMP queries. ;-) -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mathieum at sports.fr Wed Jan 29 21:54:45 2003 From: mathieum at sports.fr (Mathieu Masseboeuf) Date: Wed, 29 Jan 2003 21:54:45 +0100 Subject: Re(2): Core dump In-Reply-To: <20030128235645.H214@IPAustralia.Gov.AU> References: <20030128235645.H214@IPAustralia.Gov.AU> Message-ID: <20030129205445.27696@smtp.sports.fr> Hi, I'm happy to be able to contribute for something at least :) OK, so I compiled the mini_epn script, here is the compilation output in case it can help : gcc -g -O2 -DHAVE_CONFIG_H mini_epn.c `perl -MExtUtils::Embed -e ccopts -e ldopts` -o mini_epn mini_epn.c: In function `xs_init': mini_epn.c:63: warning: passing arg 3 of `Perl_newXS' from incompatible pointer type mini_epn.c: In function `main': mini_epn.c:94: warning: passing arg 2 of `perl_parse' from incompatible pointer type the mini epn starts without any argument (no crash) - that's a good start. For the rest I was just starting with embeded perl and I'm not a perl geek so I'll need some time to figure out how it works :D -- Mathieu Masseboeuf - Directeur Technique http://www.sports.fr - http://www.athleteline.com Tous les sports en direct et en coutinu sur Internet. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Wed Jan 29 21:55:27 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Wed, 29 Jan 2003 12:55:27 -0800 (PST) Subject: Statusmap error In-Reply-To: <35666012DF4CD411BE940090279FA24003CADECB@ppnt41.physics.ox.ac.uk> References: <35666012DF4CD411BE940090279FA24003CADECB@ppnt41.physics.ox.ac.uk> Message-ID: <15285-10748@sneakemail.com> Just about any CGI error generates the "exitted prematurely" httpd error_log entry. For fear of restating the obvious, have you tried running the CGI from the command line with the parameters that are giving you grief? It might be doing something silly like segfaulting. (The CGIs seem to do that to me all the time...) For example: REQUEST_METHOD=GET REMOTE_USER=nagiosadmin /usr/lib/nagios/cgi/statusmap.cgi -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From sproba1 at llnl.gov Wed Jan 29 22:10:23 2003 From: sproba1 at llnl.gov (Judd Sproba) Date: Wed, 29 Jan 2003 13:10:23 -0800 Subject: Segmentation Fault Message-ID: <025901c2c7da$d68e6790$26dc7380@aisntx009> Hello, I'm in the process of upgrading from Redhat 7.3 to RedHat 8.0. I figured I start with the latest fresh compile of nagios with the embedded perl and perl cache options turned on. Everything compiled fine but when I run the nagios binary, I get a Segmentation Fault. I am using Perl 5.8 (which ships with the RH8 distrib). When I attempt to debug with catchsegv, I get: *** Segmentation fault Register dump: EAX: 00000000 EBX: 40123bac ECX: 00000000 EDX: 0000011c ESI: 00000000 EDI: bffffad4 EBP: bffff618 ESP: bffff600 EIP: 400fc8da EFLAGS: 00010206 CS: 0023 DS: 002b ES: 002b FS: 0000 GS: 0007 SS: 002b Trap: 0000000e Error: 00000004 OldMask: 80000000 ESP/signal: bffff600 CR2: 000009e8 Backtrace: /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so(Perl_PerlIO_stdout+0x1a)[0x400fc8da] /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so(PerlIO_stdoutf+0x32)[0x400fcec2] /usr/local/nagios/bin/nagios(main+0xa52)[0x805133a] /usr/local/nagios/bin/nagios(__libc_start_main+0xa4)[0x420158d4] /usr/local/nagios/bin/nagios(geteuid+0x69)[0x8050831] Any Ideas? -------------- next part -------------- An HTML attachment was scrubbed... URL: From Stanley.Hopcroft at IPAustralia.Gov.AU Wed Jan 29 22:17:16 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 30 Jan 2003 08:17:16 +1100 Subject: Re(2): Core dump In-Reply-To: <20030129205445.27696@smtp.sports.fr>; from mathieum@sports.fr on Wed, Jan 29, 2003 at 09:54:45PM +0100 References: <20030128235645.H214@IPAustralia.Gov.AU> <20030129205445.27696@smtp.sports.fr> Message-ID: <20030130081657.C214@IPAustralia.Gov.AU> Dear Sir, On Wed, Jan 29, 2003 at 09:54:45PM +0100, Mathieu Masseboeuf wrote: > Hi, > > I'm happy to be able to contribute for something at least :) > OK, so I compiled the mini_epn script, here is the compilation output in > case it can help : > gcc -g -O2 -DHAVE_CONFIG_H mini_epn.c `perl -MExtUtils::Embed -e ccopts > -e ldopts` -o mini_epn > mini_epn.c: In function `xs_init': > mini_epn.c:63: warning: passing arg 3 of `Perl_newXS' from incompatible > pointer type > mini_epn.c: In function `main': > mini_epn.c:94: warning: passing arg 2 of `perl_parse' from incompatible > pointer type > > the mini epn starts without any argument (no crash) - that's a good start. > > For the rest I was just starting with embeded perl and I'm not a perl > geek so I'll need some time to figure out how it works :D > Top effort so far. Does it run any Perl plugin (run plugin twice to make sure) ? > -- > Mathieu Masseboeuf - Directeur Technique > http://www.sports.fr - http://www.athleteline.com > Tous les sports en direct et en coutinu sur Internet. > > 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 Wed Jan 29 23:45:53 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Wed, 29 Jan 2003 17:45:53 -0500 (EST) Subject: Caching SNMP Info In-Reply-To: <15285-72573@sneakemail.com> References: <15285-72573@sneakemail.com> Message-ID: 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. -sg On Wed, 29 Jan 2003, Steve Bonds wrote: > On Wed, 29 Jan 2003, Carroll, Jim P [Contractor] jcarro10-at-sprintspectrum.com |Nagios| wrote: > > > Not sure if this is what you're looking for, but on 12/20/2002 John P. > > Looney strongly endorsed the snmp proxy: > > > > http://freshmeat.net/releases/107146/ > > This really looked promising until the complete lack of documentation > killed it. There aren't even any useful comments in the source code to > describe what's going on. > > It appears that the check_snmppd command was intended as a drop-in > replacement for check_snmp, but the proxy was not indended for general use > with random SNMP query scripts. > > Still, an excellent tip, and if I get desperate enough to need it I can > go source-diving, document it myself, and maybe figure out how to > link it in with my NET-SNMP queries. ;-) > > -- Steve > > > > ------------------------------------------------------- > 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 Jarett_DeAngelis at fujifilm.com Thu Jan 30 01:43:25 2003 From: Jarett_DeAngelis at fujifilm.com (Jarett DeAngelis) Date: Wed, 29 Jan 2003 19:43:25 -0500 Subject: SMB server and Citrix server service check? Message-ID: 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) ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Thu Jan 30 02:24:35 2003 From: dcorbin at machturtle.com (David Corbin) Date: Wed, 29 Jan 2003 20:24:35 -0500 Subject: Nagios - no web authentication Message-ID: <3E387ED3.90401@machturtle.com> use_authentication=0 default_user_name=dcorbin authorized_for_system_information=dcorbin authorized_for_configuration_information=dcorbin authorized_for_system_commands=dcorbin authorized_for_all_services=dcorbin authorized_for_all_hosts=dcorbin authorized_for_all_service_commands=dcorbin But, whenever I try to use the web to run a command, I get "Sorry Dave, I can't let you do that... It seems that you have chosen to not use the authentication functionality of the CGIs." What am I doing wrong? Thanks David ------------------------------------------------------- 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 Thu Jan 30 08:37:29 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Thu, 30 Jan 2003 18:37:29 +1100 Subject: Segmentation Fault In-Reply-To: <025901c2c7da$d68e6790$26dc7380@aisntx009>; from sproba1@llnl.gov on Wed, Jan 29, 2003 at 01:10:23PM -0800 References: <025901c2c7da$d68e6790$26dc7380@aisntx009> Message-ID: <20030130183719.A217@IPAustralia.Gov.AU> Dear Sir, I am writing to thank you for your letter and say, On Wed, Jan 29, 2003 at 01:10:23PM -0800, Judd Sproba wrote: > Hello, > > I'm in the process of upgrading from Redhat 7.3 to RedHat 8.0. I figured I start with the latest fresh compile of nagios > with the embedded perl and perl cache options turned on. > > Everything compiled fine but when I run the nagios binary, I get a Segmentation Fault. > I am using Perl 5.8 (which ships with the RH8 distrib). > > When I attempt to debug with catchsegv, I get: > .. snip > Backtrace: > /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so(Perl_PerlIO_stdout+0x1a)[0x400fc8da] > /usr/lib/perl5/5.8.0/i386-linux-thread-multi/CORE/libperl.so(PerlIO_stdoutf+0x32)[0x400fcec2] > /usr/local/nagios/bin/nagios(main+0xa52)[0x805133a] > /usr/local/nagios/bin/nagios(__libc_start_main+0xa4)[0x420158d4] > /usr/local/nagios/bin/nagios(geteuid+0x69)[0x8050831] that this this is the second report of Nag raising a SEGV with embedded Perl and Perl 5.8.0 (same place too, in PerlIO_stdout). This sounds like confirmation of a bug with embedded Perl Nag (ePN) with Perl 5.8.0 You can 1 Rebuild Nag without embedded Perl 2 Install a Perl 5.6.x - preferably in a different location, in case there are other dependencies on 5.8.0 - and reconfigure Nag with that Perl. 3 Wait for a fix. Is your system available to test patches ? > > Any Ideas? 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 tdeblend at gcc.dhl.com Thu Jan 30 10:08:32 2003 From: tdeblend at gcc.dhl.com (Tom DE BLENDE) Date: Thu, 30 Jan 2003 10:08:32 +0100 Subject: SMB server and Citrix server service check? References: Message-ID: <3E38EB90.18D043C3@gcc.dhl.com> Does check_disk_smb from the main plugin distribution suite your needs for the SMB server? Or are these SMB servers acting as DC's as well? For Citrix you can use check_citrix from the contrib: http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/nagiosplug/nagiosplug/contrib/check_citrix 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) > > ------------------------------------------------------- > 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 nsedley at dircon.co.uk Thu Jan 30 12:54:39 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Thu, 30 Jan 2003 11:54:39 -0000 Subject: WAP Interface Message-ID: <072b01c2c856$5e5c11b0$9c0c618c@lgu.ac.uk> Anyone got the WAP interface to work with a Nokia 7110? The top level menus work fine, but when I try to go to any detailed view I get a "Server not available" error. This sort of error is usually caused by a WML error....... Any clues? Neil Sedley ------------------------------------------------------- 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 Thu Jan 30 14:05:19 2003 From: amartins at embratel.net.br (Alessandro Martins) Date: Thu, 30 Jan 2003 11:05:19 -0200 Subject: Build errors Message-ID: <20030130130519.GA15915@embratel.net.br> Hello, I'm trying to upgrade from Nagios 1.0b6 to Nagios 1.0 stable release and I'm getting this error: desenv at nagios01:~/nagios/nagios-1.0$ make all cd ./base && make make[1]: Entering directory `/usr/local/desenv/nagios/nagios-1.0/base' gcc -g -O2 -DHAVE_CONFIG_H -DNSCORE -c -o checks.o checks.c /tmp/ccwTxqaG.s: Assembler messages: /tmp/ccwTxqaG.s:777: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:777: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:777: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:782: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:782: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:782: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1403: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1403: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1403: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1408: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1408: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1408: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1415: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1415: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1415: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1420: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1420: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1420: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1433: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1433: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1433: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1436: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1436: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1436: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:1440: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1440: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:1440: Error: Rest of line ignored. First ignored character is `,'. /tmp/ccwTxqaG.s:3296: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:3296: Warning: Unrecognized .section attribute: want a,w,x /tmp/ccwTxqaG.s:3296: Error: Rest of line ignored. First ignored character is `,'. /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: ./configure \ --prefix=/usr/local/nagios \ --mandir=/usr/local/man \ --with-nagios-user=nagios \ --with-nagios-grp=nagios \ --with-cgiurl=/nagios/cgi-bin \ --with-htmurl=/nagios \ --enable-statusmap \ --enable-statuswrl Also I would like to say that I tried to compile the CVS sources and I got the same error message above. -- 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 danslists at conpoint.com Thu Jan 30 15:03:08 2003 From: danslists at conpoint.com (Dan Spray) Date: Thu, 30 Jan 2003 08:03:08 -0600 Subject: Shorting paging messing Message-ID: 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, -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- ------------------------------------------------------- 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 Thu Jan 30 15:25:13 2003 From: wojnicki at asw.waw.pl (Pawel Wojnicki) Date: Thu, 30 Jan 2003 15:25:13 +0100 Subject: check_hpjd plugin Message-ID: <5.1.1.2.0.20030130152014.02bdadd0@192.168.0.2> Hi all, Just installed nagios 1.0 and the standard plugins - but they did'nt include the check_hpjd plugin. Is this a separate download or do I need to install something else to make it work? Pawel ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From john at twinengines.com Thu Jan 30 15:58:11 2003 From: john at twinengines.com (John P. Scarborough) Date: Thu, 30 Jan 2003 09:58:11 -0500 Subject: Statusmap.cgi Message-ID: <3FB7F0E2C9BB434187CA34D262A0E91D18C421@calvin.twinengines.com> Hi, The status map is drawing images, finally. However, when clicking on the of the images .... it errors out. There is not really any information other than "Premature end of script headers: /usr/local/nagios/sbin/statusmap.cgi" in the apache log. Any hints on what this may be or where to look for more information? Thank you, John Scarborough -------------- next part -------------- An HTML attachment was scrubbed... URL: From Thomas.Nilsen at roxar.com Thu Jan 30 16:05:44 2003 From: Thomas.Nilsen at roxar.com (Thomas Nilsen) Date: Thu, 30 Jan 2003 16:05:44 +0100 Subject: Integrating Nagios and Compaq Insight Manager alerts Message-ID: Have anyone ever integrated the status of a compaq insight manager agents (and alike) with nagios? I think such a module has been made for BB, and it would be a very nice thing to have with Nagios as well... 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 rodrigo at mercadolibre.com Thu Jan 30 16:17:10 2003 From: rodrigo at mercadolibre.com (Rodrigo Benzaquen) Date: Thu, 30 Jan 2003 12:17:10 -0300 Subject: How to start In-Reply-To: References: Message-ID: Hi Guys, I just downloaded Nagios version, I want to monitor my SNMP devices, Can anyone help me on how to start ? Thanks and Sorry Rodrigo -- Rodrigo Benzaquen IT www.mercadolibre.com Tel: 54-11-4014-8015 Fax: 54-11-4014-8079 e-mail: rodrigo at mercadolibre.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mailing at hsmade.com Thu Jan 30 16:25:40 2003 From: mailing at hsmade.com (Wim Fournier) Date: Thu, 30 Jan 2003 16:25:40 +0100 (CET) Subject: Integrating Nagios and Compaq Insight Manager alerts In-Reply-To: References: Message-ID: <15209.217.198.203.200.1043940340.squirrel@webmail.kern.nl> I think you can specify a snmp trap destination in CIM. then setup a trap receiver on the nagios host with a script to 'add' the received events to nagios Thomas Nilsen zei: > Have anyone ever integrated the status of a compaq insight manager > agents (and alike) with nagios? I think such a module has been made > for BB, and it would be a very nice thing to have with Nagios as > well... > > 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 > _______________________________________________ > 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 jlyons30 at yahoo.com Thu Jan 30 16:43:04 2003 From: jlyons30 at yahoo.com (Jon Lyons) Date: Thu, 30 Jan 2003 07:43:04 -0800 (PST) Subject: Shorting paging messing In-Reply-To: References: Message-ID: <20030130154304.46054.qmail@web21507.mail.yahoo.com> Edit the miscommands.cfg file...Try removing all the fluf, "***** Nagios 1.0b6 *****\n\nNotification Type:...etc.etc... # host-notify-by-qpage command definition define command{ command_name host-notify-by-qpage command_line /usr/bin/printf "Host: %s (%s) is %s\nInfo: %s\nTime: %s" '$HOSTNAME$' '$HOSTALIAS$' '$HOSTSTATE$' '$OUTPUT $' '$DATETIME$'b| /usr/local/bin/qpage -l 0 -p $CONTACTPAGER$ } 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, -- Dan Spray, Director of Internet Operations dan at conpoint.com Connecting Point Norfolk, NE < http://www.conpoint.com/> Voice - 402.371.4530 x208 Fax - 402.371.4515 "The trouble with doing anything right the first time is that nobody appreciates how difficult it was!" -- ------------------------------------------------------- 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 nsedley at dircon.co.uk Thu Jan 30 16:48:00 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Thu, 30 Jan 2003 15:48:00 -0000 Subject: Shorting paging messing References: Message-ID: <077d01c2c876$f7bbc790$9c0c618c@lgu.ac.uk> Look for the "notify-by-epager" and "host-notify-by-epager" commands in your misccommands.cfg file. The text that is sent is defined by these entries. ----- Original Message ----- From: "Dan Spray" To: Sent: Thursday, January 30, 2003 2:03 PM Subject: [Nagios-users] Shorting paging messing > 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, > > > > -- > Dan Spray, Director of Internet Operations dan at conpoint.com > Connecting Point Norfolk, NE < > http://www.conpoint.com/> > Voice - 402.371.4530 x208 Fax - 402.371.4515 > > "The trouble with doing anything right the first time is that nobody > appreciates how difficult it was!" > > -- > > > > > > > ------------------------------------------------------- > 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 jayson at sonictrading.com Thu Jan 30 17:02:21 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 30 Jan 2003 11:02:21 -0500 Subject: Statusmap error In-Reply-To: <3958-23787@sneakemail.com> References: <3958-23787@sneakemail.com> Message-ID: <1043942542.977.364.camel@krull> In an effort to trouble shoot the previous problem I was having with the statusmap not displaying any images, (but all of the other cgi's except for the status summary cgi, no icons on that as well are showing the correct png or gif or jpg when I play around with the hostextinfo.cfg).I built another test machine, thinking that the problem might have been in the configuration of the gd-lib's, but now with this new machine, no Icons are being displayed anywhere, I have set it up identically to my first machine, I have made sure that the hostextinfo.cfg is in place, and that the xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg was added to the bottom of the cgi.cfg, all of my permissionigs look correct, but obviously I am missing something. I would appear as though Nagios is not reading he hostextinfo.cfg, I have verified the images are in /usr/local/nagios/share/images/logos and the permissions are set..any other hints as to what might be causing me these troubles? Thanks again On Wed, 2003-01-22 at 21:31, Steve Bonds wrote: > On 22 Jan 2003, Jayson Kliger jayson-at-sonictrading.com |Nagios| wrote: > > > I was just going by the recommendations to use gd2 to save cpu time, > > but I would think that its not necessary, I edited my hostextinfo.cfg > > file to change the statusmap imaged to png..reload/restart still no > > go..? I have confirmed that the > > physical_html_path=/usr/local/nagios/share/images/logos.. and the > > images are there.... > > If the base PNG images don't work, then you have some problems that are > not directly related to GD. Look over your templates closely and follow > the chain of references starting at your nagios.cfg file to ensure that > everything is where you think it is. > > I had several problems related to me changing a config file that wasn't > even referenced anywhere. ("Now why didn't that change > anything? *scratches head*"). As was already suggested, look close for > typos. Try reducing the extended host info to its bare minimum. > > In particular verify: > cgi.cfg: > should have the line > "xedtemplate_config_file=/etc/nagios/hostextinfo.cfg" or something > similar > > hostextinfo.cfg: > Simplify this file so it only has one entry similar to: > define hostextinfo{ > host_name testhost > icon_image testhost.png > icon_image_alt testhost image > statusmap_image testhost.png > } > > You should not have to reload Nagios to see the change-- just reload the > CGI in your browser. > > I doubt your problems are GD related if the PNG files won't display > either. > > -- Steve > > > > ------------------------------------------------------- > This SF.net email is sponsored by: Scholarships for Techies! > Can't afford IT training? All 2003 ictp students receive scholarships. > Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more. > www.ictp.com/training/sourceforge.asp > _______________________________________________ > 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 Thu Jan 30 17:03:46 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 30 Jan 2003 10:03:46 -0600 Subject: How to start Message-ID: <5DB017510818EC468B05BD7BD9EACF83029F2894@mismail.ena.com> http://www.nagios.org/docs/ is a good start. The basics: - Compile - Install - Configure Nagios - Add hosts and services - Verify configuration - Start Nagios -- Marc -----Original Message----- From: Rodrigo Benzaquen [mailto:rodrigo at mercadolibre.com] Sent: Thu 1/30/2003 9:17 AM To: nagios-users at lists.sourceforge.net Cc: Subject: [Nagios-users] How to start Hi Guys, I just downloaded Nagios version, I want to monitor my SNMP devices, Can anyone help me on how to start ? Thanks and Sorry Rodrigo -- Rodrigo Benzaquen IT www.mercadolibre.com Tel: 54-11-4014-8015 Fax: 54-11-4014-8079 e-mail: rodrigo at mercadolibre.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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From sghosh at sghosh.org Thu Jan 30 17:17:24 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 30 Jan 2003 11:17:24 -0500 (EST) Subject: check_hpjd plugin In-Reply-To: <5.1.1.2.0.20030130152014.02bdadd0@192.168.0.2> References: <5.1.1.2.0.20030130152014.02bdadd0@192.168.0.2> Message-ID: For the standard plugins - install net-snmp utilities from net-snmp.sourceforge.net - then run configure/make for the plugins... check_hpjd depends on snmpget from net-snmp suite. -sg On Thu, 30 Jan 2003, Pawel Wojnicki wrote: > Hi all, > Just installed nagios 1.0 and the standard plugins - but they did'nt > include the check_hpjd plugin. > Is this a separate download or do I need to install something else to make > it work? > > Pawel > -- ------------------------------------------------------- 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 Thu Jan 30 18:08:55 2003 From: sandromergvaz at uol.com.br (Sandro Vaz (UOL)) Date: Thu, 30 Jan 2003 14:08:55 -0300 Subject: RES: How to start In-Reply-To: References: Message-ID: I suggest this very basic actions in this case... 0) Install the plugins. Nagios does not come with them (http://sourceforge.net/project/showfiles.php?group_id=29880). 1)Read the docs carefully (http://nagios.sourceforge.net/docs/1_0/). They are very friendly to all users (few times i have seen so good docs around...) 2) For any basic doubts (believe me that in the beginning all doubts seems to ne huge), look at the SourceForge users maillist (http://sourceforge.net/mailarchive/forum.php?forum_id=1873) 3) Send em e-mail to me. I can help you in Portuguese & Spanish for the very basic tasks, if you wish. Or send and e-mail to this list. STH, Sandro Vaz -----Mensagem original----- De: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Rodrigo Benzaquen Enviada em: quinta-feira, 30 de janeiro de 2003 12:17 Para: nagios-users at lists.sourceforge.net Assunto: [Nagios-users] How to start Hi Guys, I just downloaded Nagios version, I want to monitor my SNMP devices, Can anyone help me on how to start ? Thanks and Sorry Rodrigo -- Rodrigo Benzaquen IT www.mercadolibre.com Tel: 54-11-4014-8015 Fax: 54-11-4014-8079 e-mail: rodrigo at mercadolibre.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 --- 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 nemir at hotmail.com Thu Jan 30 17:32:00 2003 From: nemir at hotmail.com (nemir nemiria) Date: Thu, 30 Jan 2003 16:32:00 +0000 Subject: FAQ Seems to be down..? Message-ID: Hiya, I am trying to get the faq that describes how to setup my etc/cgi.cfg file (i am 99% sure there is one there) but all I get when I try to open teh faq link is a timeout getting to the sql database: ----****----- Warning: Can't connect to MySQL server on 'mercury.powweb.com' (60) in /www/n/nagios/htdocs/faqs/index.php on line 22 Warning: MySQL Connection Failed: Can't connect to MySQL server on 'mercury.powweb.com' (60) in /www/n/nagios/htdocs/faqs/index.php on line 22 Error connecting to MySQL database server. Warning: Missing argument 2 for display_page_footer() in /www/n/nagios/htdocs/includes/common.php on line 117 Last modified: Jan 1st, 2003 | Copyright ? 2001-2002 Ethan Galstad ----***---- I sent it hitther in the hopes that someone on the list can do something about it (an presumably would want to!) I hope I haven't contravened anyone's sense of correct use for this list with my first post. Nemir _________________________________________________________________ Tired of spam? Get advanced junk mail protection with MSN 8. http://join.msn.com/?page=features/junkmail ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Thu Jan 30 17:43:33 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Thu, 30 Jan 2003 08:43:33 -0800 (PST) Subject: How to start In-Reply-To: References: Message-ID: <12409-14609@sneakemail.com> Nagios is tricky to get set up right at the start. Fortunately, it's been extensively documented: http://nagios.sourceforge.net/docs/1_0/toc.html The check_snmp plugin may be just the thing you're looking for. Try running it with the "-h" option for a quick overview of how it works. The only really tricky part is setting your min/max ranges right since the order in which these are given makes a difference: ---- - Ranges are inclusive and are indicated with colons. When specified as 'min:max' a STATE_OK will be returned if the result is within the indicated range or is equal to the upper or lower bound. A non-OK state will be returned if the result is outside the specified range. - If specified in the order 'max:min' a non-OK state will be returned if the result is within the (inclusive) range. - Upper or lower bounds may be omitted to skip checking the respective limit. - Bare integers are interpreted as upper limits. ---- -- Steve Bonds On Thu, 30 Jan 2003, Rodrigo Benzaquen rodrigo-at-mercadolibre.com |Nagios| wrote: > Hi Guys, > I just downloaded Nagios version, I want to monitor my SNMP devices, Can > anyone help me on how to start ? > > Thanks and Sorry > Rodrigo > > -- > Rodrigo Benzaquen > IT > www.mercadolibre.com > Tel: 54-11-4014-8015 > Fax: 54-11-4014-8079 > e-mail: rodrigo at mercadolibre.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 Thu Jan 30 17:46:09 2003 From: sghosh at sghosh.org (Subhendu Ghosh) Date: Thu, 30 Jan 2003 11:46:09 -0500 (EST) Subject: hostinfo.pl file not found In-Reply-To: <005501c2c6e1$770df5a0$61222404@taxcut.com> References: <005501c2c6e1$770df5a0$61222404@taxcut.com> Message-ID: You have to write that one yourself... On Tue, 28 Jan 2003, Jignesh Pathak wrote: > I am trying to open statuswrl.cgi and giving error in my web log that > hostinfo.pl file not found. I did search on Nagios installation and > could not able to find too. Can anyone let me know from where can I get > it and how to make it work???? Thanks, > > > > Jignesh > > > > > > -- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Thu Jan 30 18:02:41 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Thu, 30 Jan 2003 09:02:41 -0800 (PST) Subject: FAQ Seems to be down..? In-Reply-To: References: Message-ID: <18166-82640@sneakemail.com> On Thu, 30 Jan 2003, nemir nemiria nemir-at-hotmail.com |Nagios| wrote: > I am trying to get the faq that describes how to setup my etc/cgi.cfg > file (i am 99% sure there is one there) but all I get when I try to > open teh faq link is a timeout getting to the sql database: > I hope I haven't contravened anyone's sense of correct use for this > list with my first post. Heck, I'm glad you were at least trying to read the FAQ before posting. ;-) I hope someone gets that working soon as well. -- Steve ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Thu Jan 30 18:27:46 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 30 Jan 2003 11:27:46 -0600 Subject: check_disk plugin request for modification Message-ID: I would like to propose the following modification to the check_disk plugin. I recommend the addition of a filesystem type argument. That way if you are interested in all of the local disks on a system of a particular type, say ufs or NFS or etc ... you can get them with only one service check. It could be called as follows: $NAGIOS_HOME/libexec/check_disk -w 20 -c 5 -F ufs The output would look like this: DISK OK - [1671397 kB (45%) free on /dev/dsk/c0t0d0s0] [8919218 kB (51%) free on /dev/dsk/c1t3d0s7] [13286705 kB (84%) free on /dev/dsk/c1t8d0s6] or this: $NAGIOS_HOME/libexec/check_disk -w 20 -c 5 -F nfs DISK OK - [20093957 kB (14%) free on okcu09:/moc/okc/okcu09/vol1/home/tc8] [20093957 kB (14%) free on okcu09:/moc/okc/okcu09/vol1/home/nagios] [47978332 kB (19%) free on okcu09:/moc/okc/okcu09/vol3/apps/SunOS/OW6] [16588315 kB (96%) free on okcu10:/moc/okc/okcu10/db1/oracle816] [47978332 kB (19%) free on okcu09:/moc/okc/okcu09/vol3/apps/SunOS/nagios] [47978332 kB (19%) free on okcu09:/moc/okc/okcu09/vol3/apps/common] Here is the diff of check_disk.c and check_disk_fstype.c : 56d55 < char *fstype = ""; 78c77 < asprintf (&command_line, "%s %s %s", DF_COMMAND, path, fstype); --- > asprintf (&command_line, "%s %s", DF_COMMAND, path); 155d153 < {"fstype", required_argument, 0, 'F'}, 174c172 < getopt_long (argc, argv, "Vhvt:c:w:p:F:m", long_options, &option_index); --- > getopt_long (argc, argv, "Vhvt:c:w:p:m", long_options, &option_index); 176c174 < c = getopt (argc, argv, "Vhvt:c:w:p:F:m"); --- > c = getopt (argc, argv, "Vhvt:c:w:p:m"); 226,228d223 < case 'F': /* Filesystem Type*/ < asprintf (&fstype, "-F %s", optarg); < break; Please let me know what you think about the addition to the plugin. Thanks! Greg M. Potter mailto:gpotter at marathonoil.com Non Scio, id est in Latina! ~~|\ / | \ ~^~^~^~ / | \ ~^~^~^~^ ~^~^~ / 9255 ) ~^~^^~~^^~^ ~^~^____/____|____)_____^~^^~^~^~^ ~^~^ \ Greg Potter / ^~^~^~^~^~^~^ ~^~^~^~^\_Okla. City, OK_/~^~^~^~^~^~~^~^~^~ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From MGRAHAM1 at wellcarehmo.com Thu Jan 30 19:08:44 2003 From: MGRAHAM1 at wellcarehmo.com (Graham, Mike) Date: Thu, 30 Jan 2003 13:08:44 -0500 Subject: plugin Message-ID: Please help!! If i create a plugin using perl, what format do I need to save it in? Any help would be appreciated. Thanks Mike Graham -------------- next part -------------- An HTML attachment was scrubbed... URL: From mpowell at ena.com Thu Jan 30 19:24:04 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 30 Jan 2003 12:24:04 -0600 Subject: plugin Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED2AF@mismail.ena.com> I'm going to take a stab at this and say 'plain text'. If that doesn't answer your question, please provide us with more information about what you're trying to accomplish and how you're going about it. -- Marc -----Original Message----- From: Graham, Mike [mailto:MGRAHAM1 at wellcarehmo.com] Sent: Thursday, January 30, 2003 12:09 PM To: 'nagios-users at lists.sourceforge.net' Subject: [Nagios-users] plugin Please help!! If i create a plugin using perl, what format do I need to save it in? Any help would be appreciated. Thanks Mike Graham -------------- next part -------------- An HTML attachment was scrubbed... URL: From robin_brown at totalcomm.com Thu Jan 30 19:33:08 2003 From: robin_brown at totalcomm.com (Robin Brown) Date: Thu, 30 Jan 2003 13:33:08 -0500 Subject: OT - Sendpage and Arch Wireless Message-ID: <005401c2c88e$0a0d24e0$0bb0a8c0@rbrown> Looking for someone else using Arch for modem paging. I'm trying to use modem paging with my installed and working Nagios server but I'm having some issues and not finding too much help available. The problem seems to lie in the communication with Arch. I'd appreciate it if anyone using this could contact me. Thanks and regards, Robin ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From GPotter at MarathonOil.com Thu Jan 30 19:53:23 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Thu, 30 Jan 2003 12:53:23 -0600 Subject: OT - Sendpage and Arch Wireless Message-ID: Can you elaborate on the nature of the problem. It might be useful to others who are having similar problems with another carrier. Greg > -----Original Message----- > From: Robin Brown [mailto:robin_brown at totalcomm.com] > Sent: Thursday, January 30, 2003 12:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] OT - Sendpage and Arch Wireless > > > Looking for someone else using Arch for modem paging. I'm > trying to use > modem paging with my installed and working Nagios server but > I'm having > some issues and not finding too much help available. The > problem seems > to lie in the communication with Arch. > > I'd appreciate it if anyone using this could contact me. > > > Thanks and regards, > Robin > > > > > ------------------------------------------------------- > 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 Thu Jan 30 20:12:28 2003 From: Stanley.G.Martin at mail.sprint.com (Stanley.G.Martin at mail.sprint.com) Date: Thu, 30 Jan 2003 13:12:28 -0600 Subject: OT - Sendpage and Arch Wireless Message-ID: I use Qpage and in the configuration I have 3 separate entries for Arch. 1) Arch2way => 9,18009464644 2) Archlocal => local # for my location 3) Archwireless => 9,18009464644 Hope this is what you're looking for. Stanley G. Martin Sprint - ISS Enterprise App/Decision Support Services Stanley.G.Martin at mail.sprint.com -----Original Message----- From: robin.brown [mailto:robin_brown at totalcomm.com] Sent: Thursday, January 30, 2003 12:33 PM To: nagios-users Subject: [Nagios-users] OT - Sendpage and Arch Wireless Looking for someone else using Arch for modem paging. I'm trying to use modem paging with my installed and working Nagios server but I'm having some issues and not finding too much help available. The problem seems to lie in the communication with Arch. I'd appreciate it if anyone using this could contact me. Thanks and regards, Robin ------------------------------------------------------- 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 nsedley at dircon.co.uk Thu Jan 30 20:28:22 2003 From: nsedley at dircon.co.uk (Neil Sedley) Date: Thu, 30 Jan 2003 19:28:22 -0000 Subject: WAP Interface References: <072b01c2c856$5e5c11b0$9c0c618c@lgu.ac.uk> Message-ID: <003801c2c895$c15dd6b0$0100a8c0@NEIL> I've discovered that the problem is that the CGI is returning too many characters for the Nokia 7110, which has a limit of 1397 characters per page. Is there any way of configuring statuswml.cgi to return smaller pages? ----- Original Message ----- From: "Neil Sedley" To: Sent: Thursday, January 30, 2003 11:54 AM Subject: [Nagios-users] WAP Interface > Anyone got the WAP interface to work with a Nokia 7110? > > The top level menus work fine, but when I try to go to any detailed view I > get a "Server not available" error. This sort of error is usually caused by > a WML error....... > > Any clues? > > Neil Sedley > > > > ------------------------------------------------------- > 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 donavan at 4wx.net Thu Jan 30 20:33:06 2003 From: donavan at 4wx.net (donavan nelson) Date: Thu, 30 Jan 2003 13:33:06 -0600 Subject: OT - Sendpage and Arch Wireless In-Reply-To: References: Message-ID: <20030130193306.M26160@4wx.net> where did you find a local arch2way number or did you? -- Donavan Nelson 4wx Networks www.4wx.net ---------- Original Message ----------- From: Stanley.G.Martin at mail.sprint.com To: nagios-users at lists.sourceforge.net, robin_brown at totalcomm.com Sent: Thu, 30 Jan 2003 13:12:28 -0600 Subject: RE: [Nagios-users] OT - Sendpage and Arch Wireless > I use Qpage and in the configuration I have 3 separate entries for Arch. > > 1) Arch2way => 9,18009464644 > 2) Archlocal => local # for my location > 3) Archwireless => 9,18009464644 > > Hope this is what you're looking for. > > Stanley G. Martin > Sprint - ISS Enterprise App/Decision Support Services > > Stanley.G.Martin at mail.sprint.com > > -----Original Message----- > From: robin.brown [mailto:robin_brown at totalcomm.com] > Sent: Thursday, January 30, 2003 12:33 PM > To: nagios-users > Subject: [Nagios-users] OT - Sendpage and Arch Wireless > > Looking for someone else using Arch for modem paging. I'm trying to > use modem paging with my installed and working Nagios server but I'm > having some issues and not finding too much help available. The > problem seems to lie in the communication with Arch. > > I'd appreciate it if anyone using this could contact me. > > Thanks and regards, > Robin > > ------------------------------------------------------- > 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 ------- End of Original Message ------- ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From robin_brown at totalcomm.com Thu Jan 30 20:35:18 2003 From: robin_brown at totalcomm.com (Robin Brown) Date: Thu, 30 Jan 2003 14:35:18 -0500 Subject: OT - Sendpage and Arch Wireless In-Reply-To: References: Message-ID: <007501c2c896$b88dde30$0bb0a8c0@rbrown> Sure, just didn't want to overstep the bounds of the list. I get an error and immediate disconnect, yet minicom dials with these same parameters and receives the ID= prompt just fine. Debug log entries follow: Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage v0.9.14) Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners Jan 29 13:20:27 proxy sendpage[3386]: archwireless/q104386442703386000: state=Queued, to=robin at archwireless, from=sendpage at mydomain.com(localhost), size=5 Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested! Jan 29 13:21:00 proxy sendpage[3384]: archwireless/q104386442703386000: state=Temp-Failure, to=robin at archwireless, from=sendpage@ mydomain.com, size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A} Here is the debug output of sendpage initializing: (3471: debug) found listing for pc: archwireless (3471: debug) Locking with '/var/lock/LCK..modem' ... (3471: debug) Modem 'sportster' setting 'Baud': '2400' (3471: debug) Modem 'sportster' setting 'Parity': 'even' (3471: debug) Modem 'sportster' setting 'Data': '7' (3471: debug) Modem 'sportster' setting 'Stop': '1' (3471: debug) Modem 'sportster' setting 'Flow': 'rts' (3471: debug) Modem 'sportster' setting 'Init': 'ATZ' (3471: debug) Modem 'sportster' setting 'InitOK': 'OK' (3471: debug) Modem 'sportster' setting 'InitWait': '4' (3471: debug) Modem 'sportster' setting 'InitRetry': '2' (3471: debug) Modem 'sportster' setting 'Error': 'ERROR' (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT' '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.* (3471: debug) Modem 'sportster' setting 'DialWait': '60' (3471: debug) Modem 'sportster' setting 'DialRetry': '3' (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO CARRIER|BUSY|NO DIAL|VOICE' (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on' (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5' (3471: debug) Modem 'sportster' setting 'LongDist': '1' (3471: debug) Modem 'sportster' setting 'DialOut': '8,' (3471: debug) baud requested: '2400' baud set: '2400' (3471: debug) parity requested: 'even' parity set: 'even' (3471: debug) databits requested: '7' databits set: '7' (3471: debug) stopbits requested: '1' stopbits set: '1' (3471: debug) flow requested: 'rts' flow set: 'rts' (3471: debug) reseting DTR ... (3471: debug) forcing RTS ... (3471: debug) to send: ATZ{0x0D} (3471: debug) want: OK (3471: debug) kicker: ATZ{0x0D} (3471: debug) timeout: 4 retries: 2 (3471: debug) have: (3471: debug) wrote: 4 ATZ{0x0D} (3471: debug) 4 seen: ATZ{0x0D} (3471: debug) have: ATZ{0x0D} (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A} (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A} (3471: debug) chat success: OK (3471: debug) Modem Object 'sportster' being destroyed (3471: debug) unlocking Modem 'sportster' (3471: debug) Modem Object 'sportster' destroyed (3471: debug) found functioning modem: sportster I am actually using a local number, 860-473-0000 as give to me by Arch. I can try the 800 number supplied by someone else on the list to see what happens. Thanks again! -Robin -----Original Message----- From: Potter, G M (Greg) [mailto:GPotter at MarathonOil.com] Sent: Thursday, January 30, 2003 1:53 PM To: Robin Brown; Nagios-users (E-mail) Subject: RE: [Nagios-users] OT - Sendpage and Arch Wireless Can you elaborate on the nature of the problem. It might be useful to others who are having similar problems with another carrier. Greg > -----Original Message----- > From: Robin Brown [mailto:robin_brown at totalcomm.com] > Sent: Thursday, January 30, 2003 12:33 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] OT - Sendpage and Arch Wireless > > > Looking for someone else using Arch for modem paging. I'm > trying to use > modem paging with my installed and working Nagios server but > I'm having > some issues and not finding too much help available. The > problem seems > to lie in the communication with Arch. > > I'd appreciate it if anyone using this could contact me. > > > Thanks and regards, > Robin > > > > > ------------------------------------------------------- > 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 starcastdev.com Thu Jan 30 20:50:20 2003 From: jason at starcastdev.com (Jason Yates) Date: 30 Jan 2003 14:50:20 -0500 Subject: [Nagios-devel] database checker and xml In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13C4@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13C4@PKDWB03C.ad.sprint.com> Message-ID: <1043956220.31857.83.camel@jupiter.jaywhy.net> I'm taking this off the devel list. I accidentally sent it there in the first place. Thanks for the pointer about the XML discussion; quite interesting. I personally agree with the fact that the configuration files should be in XML format. One of the major drawbacks of most open source programs is there highly complex to configure, nagios included. XML may not speed up configuration using VI, but sure as hell makes it easier to write a configuration interface. A user-friendly interface would spring people's interest who wouldn't have even considered nagios before, and yet XML still allow VI based editing. Don't get me wrong, I'm not saying it would be impossible to write a parser for the nagios template format. But why do something thats already done, not just in C or in perl, but pretty much any language you could name. Hey and it would also fix my problem quite nicely. =) Jason Yates On Thu, 2003-01-30 at 10:24, Carroll, Jim P [Contractor] wrote: > Although not dynamic, that feature is available today. You just need to do > a configure, enabling support for either MySQL or PostGreSQL. > > Having said that, you might want to take a look at this: > > 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 > > Alternatively, there has been recent discussion regarding using XML to drive > the creating of the config files. Very recently, as in last week. If you > missed that e-mail, I can forward it to you off-list. > > Food for thought. > > jc > > > -----Original Message----- > > From: Jason Yates [mailto:jason at starcastdev.com] > > Sent: Wednesday, January 29, 2003 11:57 PM > > To: nagios-devel at lists.sourceforge.net > > Subject: [Nagios-devel] database checker > > > > > > Basically what I'm looking for is a way of storing everything in the > > hosts.cfg and services.cfg files inside a database; instead > > of using the > > two files. Something that can be changed dynamically, and is a little > > more user friendly. I'm pretty sure this isn't possible, but what I'm > > not sure of is, if anyone has written a script to keep hosts.cfg and > > services.cfg updated based on a database. > > > > If no one done anything like this. I'll get writing some > > code and post > > it to this list. > > > > Jason > > > > > > > > ------------------------------------------------------- > > This SF.NET email is sponsored by: > > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > > http://www.vasoftware.com > > _______________________________________________ > > 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: > SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! > http://www.vasoftware.com > _______________________________________________ > 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: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From RLAdams at Kelsey-Seybold.com Thu Jan 30 20:53:06 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Thu, 30 Jan 2003 13:53:06 -0600 Subject: OT - Sendpage and Arch Wireless In-Reply-To: <005401c2c88e$0a0d24e0$0bb0a8c0@rbrown> References: <005401c2c88e$0a0d24e0$0bb0a8c0@rbrown> Message-ID: <39766.0499941141$1043958055@news.gmane.org> I use Arch with Sendpage, and previously Qpage. What exactly is the problem you're having? I've worked many problems with Arch tech support, and I support about 500 pagers. Perhaps I've already seen the problem you're having. ;] Russell On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote: > Looking for someone else using Arch for modem paging. I'm trying to use > modem paging with my installed and working Nagios server but I'm having > some issues and not finding too much help available. The problem seems > to lie in the communication with Arch. > > I'd appreciate it if anyone using this could contact me. > > > Thanks and regards, > Robin > > > > > ------------------------------------------------------- > 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 Thu Jan 30 21:54:08 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 31 Jan 2003 07:54:08 +1100 Subject: Nag 1.0 does _not_ work with embedded Perl and Perl 5.8.0 (earlier Perls fine). Message-ID: <20030131075358.B217@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to confirm that the embedded Perl support of Nagios/Netsaint is broken with Perl 5.8.0. The Nag/Netsaint binary will not start but SEGVs immediately if Nag is configured and built with the embedded Perl interpreter and Perl 5.8.0. My initial investigations show the cause to be in perl_call_argv() [call_argv() in 5.8.0]. Whether this is a problem with the embedding in Nag/Netsaint or it's a problem in Perl 5.8.0 is unknown. This doesn't appear to be a known or trivial problem and will require investigating. In the meantime, don't embed Perl 5.8.0 in Nag/Netsaint - either run without embedded Perl support or embed an older Perl. Unless you have a new system (eg RH 8.0) there is no - plugin - reason for using 5.8.0. 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 swalker at floridabroadband.net Thu Jan 30 22:17:38 2003 From: swalker at floridabroadband.net (Scott Walker) Date: Thu, 30 Jan 2003 16:17:38 -0500 Subject: Help with pretty images. Message-ID: <200301301617.38817.swalker@floridabroadband.net> I'm beautifing my nagios setup, but the below doesn't work. Now in the status map, when i mouse over the below equipment it pops up and displays a nice cisco logo in the upper corner, but in the status map.. it still show nothing.. Any ideas? define hostextinfo{ host_name Star-Isl statusmap_image cisco.gif icon_image cisco.gif # icon_image_alt alt_string vrml_image cisco.gif -- Scott Walker ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From swalker at floridabroadband.net Thu Jan 30 22:21:58 2003 From: swalker at floridabroadband.net (Scott Walker) Date: Thu, 30 Jan 2003 16:21:58 -0500 Subject: nevermind.. figured it out. Message-ID: <200301301621.58579.swalker@floridabroadband.net> statusmap_image: This variable is used to define the name of an image that should be associated with this host in the statusmap CGI. You can specify a JPEG, PNG, and GIF image if you want, although I would strongly suggest using a GD2 format image, as other image formats will result in a lot of wasted CPU time when the statusmap image is generated. 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). According to that you can use gd2/png/jpeg/gif. But what we found was, in the statusmap you *NEED* to use a gd2, in the little information panel it can only be jpeg/png/gif. -- Scott Walker ------------------------------------------------------- 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 Jan 30 22:34:35 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Thu, 30 Jan 2003 15:34:35 -0600 Subject: OT - Sendpage and Arch Wireless In-Reply-To: <009701c2c8a2$12126dd0$0bb0a8c0@rbrown> References: <20030130195306.GB12604@soja.ksnet.com.> <009701c2c8a2$12126dd0$0bb0a8c0@rbrown> Message-ID: <1136.12220525301$1043963976@news.gmane.org> What is your sendpage.cf look like for the modem definitions and such? I'll give you some samples from mine below. BTW, please include your replies on the list to maintain continuity. Russell Samples from sendpage.cf for Arch (formerly Mobilcomm): [modem:multitech_01] data = 7 parity = even stop = 1 flow = rts baud = 1200 dev = /dev/modem1 init = ATL1M0E1V1X4S11=50 [pc:MobilCommLocalOnly] rundelay=5 phonenum= 713-781-5116 maxchars= 230 [recip:rladams] dest= 1234567890 at MobilCommLocalOnly On Thu, Jan 30, 2003 at 03:56:32PM -0500, Robin Brown wrote: > Oh, I certainly hope so. Arch support basically told me to contact my > software vendor. See below: > > Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage > v0.9.14) > Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners > Jan 29 13:20:27 proxy sendpage[3386]: archwireless/q104386442703386000: > state=Queued, to=robin at archwireless, > from=sendpage at mydomain.com(localhost), size=5 > Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A > Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested! > Jan 29 13:21:00 proxy sendpage[3384]: archwireless/q104386442703386000: > state=Temp-Failure, to=robin at archwireless, from=sendpage@ mydomain.com, > size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A} > > Here is the debug output of sendpage initializing: > > (3471: debug) found listing for pc: archwireless > (3471: debug) Locking with '/var/lock/LCK..modem' ... > (3471: debug) Modem 'sportster' setting 'Baud': '2400' > (3471: debug) Modem 'sportster' setting 'Parity': 'even' > (3471: debug) Modem 'sportster' setting 'Data': '7' > (3471: debug) Modem 'sportster' setting 'Stop': '1' > (3471: debug) Modem 'sportster' setting 'Flow': 'rts' > (3471: debug) Modem 'sportster' setting 'Init': 'ATZ' > (3471: debug) Modem 'sportster' setting 'InitOK': 'OK' > (3471: debug) Modem 'sportster' setting 'InitWait': '4' > (3471: debug) Modem 'sportster' setting 'InitRetry': '2' > (3471: debug) Modem 'sportster' setting 'Error': 'ERROR' > (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT' > '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.* > (3471: debug) Modem 'sportster' setting 'DialWait': '60' > (3471: debug) Modem 'sportster' setting 'DialRetry': '3' > (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO > CARRIER|BUSY|NO DIAL|VOICE' > (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on' > (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5' > (3471: debug) Modem 'sportster' setting 'LongDist': '1' > (3471: debug) Modem 'sportster' setting 'DialOut': '8,' > (3471: debug) baud requested: '2400' baud set: '2400' > (3471: debug) parity requested: 'even' parity set: 'even' > (3471: debug) databits requested: '7' databits set: '7' > (3471: debug) stopbits requested: '1' stopbits set: '1' > (3471: debug) flow requested: 'rts' flow set: 'rts' > (3471: debug) reseting DTR ... > (3471: debug) forcing RTS ... > (3471: debug) to send: ATZ{0x0D} > (3471: debug) want: OK > (3471: debug) kicker: ATZ{0x0D} > (3471: debug) timeout: 4 retries: 2 > (3471: debug) have: > (3471: debug) wrote: 4 ATZ{0x0D} > (3471: debug) 4 seen: ATZ{0x0D} > (3471: debug) have: ATZ{0x0D} > (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A} > (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A} > (3471: debug) chat success: OK > (3471: debug) Modem Object 'sportster' being destroyed > (3471: debug) unlocking Modem 'sportster' > (3471: debug) Modem Object 'sportster' destroyed > (3471: debug) found functioning modem: sportster > > I seem to only be able to connect to this PC at 2400,7,e,1. When I use > minicom, I get the ID= string just fine. I have turned debug=true > everywhere possible in the sendpage.cf file, yet this is the only output > I get in the messages file? > > Any help is greatly appreciated! > > -Robin > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell > Adams > Sent: Thursday, January 30, 2003 2:53 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > I use Arch with Sendpage, and previously Qpage. > > What exactly is the problem you're having? > > I've worked many problems with Arch tech support, and I support about > 500 > pagers. Perhaps I've already seen the problem you're having. ;] > > Russell > > On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote: > > Looking for someone else using Arch for modem paging. I'm trying to > use > > modem paging with my installed and working Nagios server but I'm > having > > some issues and not finding too much help available. The problem > seems > > to lie in the communication with Arch. > > > > I'd appreciate it if anyone using this could contact me. > > > > > > Thanks and regards, > > Robin > > > > > > > > > > ------------------------------------------------------- > > 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 rrebel at whenu.com Thu Jan 30 23:04:06 2003 From: rrebel at whenu.com (Richard F. Rebel) Date: Thu, 30 Jan 2003 17:04:06 -0500 Subject: Still no help with interval_lengh=1? Message-ID: Hello, I sent a message before with no response, so here goes again... If I set interval_length to 1, It gets ingored. Has anyone else set a < 60 second interval lengh successfully? Thanks! Richard ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From robin_brown at totalcomm.com Thu Jan 30 23:07:46 2003 From: robin_brown at totalcomm.com (Robin Brown) Date: Thu, 30 Jan 2003 17:07:46 -0500 Subject: OT - Sendpage and Arch Wireless In-Reply-To: <20030130213435.GE12604@soja.ksnet.com.> References: <20030130213435.GE12604@soja.ksnet.com.> Message-ID: <00a401c2c8ac$055853c0$0bb0a8c0@rbrown> Arch pc definition: [pc:archwireless] # Is this PC enabled? Set to false to stop processing a PC, for example # Default is "true" #enabled= false # This PC's protocol-level debugging. # Default is "false" debug = true # Email address that page emails claims to be coming from. # Default is unset, and will fall back to the global "page-daemon" setting # #page-daemon = someone at other.place page-daemon = netmon at p2pa.com # Will page-daemon be Cc'd on email failures for this PC? # Default is unset, and will fall back to global "cc-on-error" setting #cc-on-error = true # Should page senders be notified about permanent failures? # Default is unset; will fall back to global option #fail-notify = false # Page senders should be notified every Xth temporary failure. # (0 means 'never') # Default is unset; will fall back to global option #tempfail-notify-after=10 # How many times does a page hit a temporary error before failing forever? # Default is unset; will fall back to global option #max-tempfail=50 # Command to run after each successful or failed page, overrides global # Default is unset # Command gets contents of page on stdin, and 2 command line # parameters: # arg 1: status (0=page failed, 1=page succeeded) # arg 2: page alias (who was paged) # #completion-cmd = "/usr/local/bin/page-sent" # If for some reason you need to override the default list of modems, # do it here. # Default is all available modems. #modems = sportster # If you need specific communication settings for this PC, they go here. # Defaults are data=7, parity=even, stop=1, flow=rts, baud=115200 #data = 8 #parity = none #stop = 1 #flow = soft #baud = 2400 # What areacode is this PC in? If unset, the modem won't match areacodes # Default is unset #areacode= 312 # What phone number to reach this PC at. # Default is "", so you better fill one in #phonenum= 5149243 phonenum= 8604730000 # How many pages can be sent in each session with this PC? # Default is 0 (unlimited) maxpages=12 # How many blocks can be sent in each session with this PC? # Default is 0 (unlimited) #maxblocks=60 # How many characters can be sent in each page for this PC? # Default is 1024 maxchars=300 # How many times are we allowed to split up a page that exceeds the # max chars limit? (For example, if maxchars was "100" and maxsplits was # "5" and someone sent a 2000 character page, sendpage would generate # five 100-character pages before cutting off the page.) # Default is "6" #maxsplits=2 # Which TAP protocol to use. Should be one of "PG1", "PG3", or "UCP" # Regular TAP PagingCentrals are "PG1". # UCP PagingCentrals will need "UCP". # If you had a "pet3" style PC before, this needs to be "PG3" # Default is "PG1" #proto=PG3 # How many fields does the PC expect to be getting during Block Transmission? # If you had a "pet3" style PC before, this needs to be "3". # Default is "2" #fields=3 # What is the password for accessing this Paging Central? # Default is "000000". Shouldn't be more than 6 characters. #password=123456 # Should we assume strict TAP protocol, and require CR before each answer? # If you can set this to true, do so, as it makes textual response codes # easier to read. However, very few PCs use those codes, and very few # PCs have correctly implemented strict TAP, so it's unlikely you want this. # Default is "false" stricttap=true # Characters less than 0x20 are allowed in a block's field? # If you can set this, it makes pages prettier (can send tabs, newlines, # etc), but some PCs really don't like this. See 'esc' and 'lfok' options. # Default is "false" #ctrl=true # Can characters less than 0x20 be escaped, as in TAP spec 1.8? # If you can't set "ctrl" to true, see if this one set to true works. # Default is "false" #esc=true # Is LF explicitly allowed by this PC? (only useful if "ctrl=false") # Default is "false" lfok=true # Can fields be split across blocks? # Default is "true" #fieldsplits=false # How many seconds to wait before sending CR when waiting for the ID= tag? # Default is "2", from the T1 of the TAP protocol #answerwait=10 answerwait=10 # How many retries to allow before giving up waiting for the ID= tag? # Default is "3", from the N3 of the TAP protocol #answerretries=3 # How many seconds before we giving up trying to dial this PC? # Default is whatever the modem's dialwait is #dialwait=20 # How many seconds should this PC wait between queue scans? # Default is "20" #rundelay=10 Modem section of sendpage.cf: ###################### # modem configuration # Each section should be called "modem". (e.g. "[modem:sportster]") ###################### # My first "modem" section. I named it "sportster" because that's what it is [modem:sportster] # Should this modem's character-level debugging be turned on? # Default is "false" #debug = true debug = true # This modem's transmission settings. # Defaults are data=7, parity=even, stop=1, flow=rts, baud=9600 data = 7 parity = even stop = 1 flow = rts baud = 2400 dev = /dev/modem init = ATL1M0E1V1X4S11=50 # Which device this modem should use # Default is "/dev/null", so you better specify one. :) #dev = /dev/modem # This modem's initialization string # Default is "ATZ" #init = ATE&1 #init = AT&F1L3S6=3S0=0 # This modem's "okay" response string (this is a regexp) # Default is "OK" #initok = 0 # What to look for if something has gone wrong while init'ing (this is a regexp) # Default is "ERROR" #error=1 # How many seconds to wait for initok after init with this modem # Default is "4" #initwait=1 # How many times to try to initialize the modem # Default is "2" #initretries=1 # The dialing prefix for this modem # Default is "ATDT" #dial=ATDP # The telephone prefix to get a dialtone out of the building (for PBXs, etc) # Default is "" #dialout="9," dialout="8," # The areacode this modem has (for figuring areacode matches with PCs) # Default is unset #areacode="847" # The dialing prefix for dialing long distance calls (some PBXs do weird stuff) # Default is "1-" #longdist="81" # What to look for after connecting successfully (this is a regexp) # Default is "CONNECT.*\r" #dialok=0 # What to look for if something goes wrong while dialing (this is a regexp) # Default is "ERROR|NO CARRIER|BUSY|NO DIAL|VOICE" #no-carrier=ERROR # How many seconds to wait for dialing to connect # Default is "60" #dialwait=30 # How many times to try and redial (unimplemented, actually...) # Default is "3" #dialretries=1 # How should "carrier detection" be done? "on", "off", "dsr" # "DSR" can be used when a cable or OS doesn't correctly provide CD # Default is "on" #carrier-detect=dsr # How many seconds should the DTR be held down during initialization? # Default is "0.5" #dtrtime=1.5 Most of this is default, it also reflects my attempt to use your init string. Thanks again. -Robin -----Original Message----- From: Russell Adams [mailto:RLAdams at Kelsey-Seybold.com] Sent: Thursday, January 30, 2003 4:35 PM To: Robin Brown Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless What is your sendpage.cf look like for the modem definitions and such? I'll give you some samples from mine below. BTW, please include your replies on the list to maintain continuity. Russell Samples from sendpage.cf for Arch (formerly Mobilcomm): [modem:multitech_01] data = 7 parity = even stop = 1 flow = rts baud = 1200 dev = /dev/modem1 init = ATL1M0E1V1X4S11=50 [pc:MobilCommLocalOnly] rundelay=5 phonenum= 713-781-5116 maxchars= 230 [recip:rladams] dest= 1234567890 at MobilCommLocalOnly On Thu, Jan 30, 2003 at 03:56:32PM -0500, Robin Brown wrote: > Oh, I certainly hope so. Arch support basically told me to contact my > software vendor. See below: > > Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage > v0.9.14) > Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners > Jan 29 13:20:27 proxy sendpage[3386]: archwireless/q104386442703386000: > state=Queued, to=robin at archwireless, > from=sendpage at mydomain.com(localhost), size=5 > Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A > Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested! > Jan 29 13:21:00 proxy sendpage[3384]: archwireless/q104386442703386000: > state=Temp-Failure, to=robin at archwireless, from=sendpage@ mydomain.com, > size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A} > > Here is the debug output of sendpage initializing: > > (3471: debug) found listing for pc: archwireless > (3471: debug) Locking with '/var/lock/LCK..modem' ... > (3471: debug) Modem 'sportster' setting 'Baud': '2400' > (3471: debug) Modem 'sportster' setting 'Parity': 'even' > (3471: debug) Modem 'sportster' setting 'Data': '7' > (3471: debug) Modem 'sportster' setting 'Stop': '1' > (3471: debug) Modem 'sportster' setting 'Flow': 'rts' > (3471: debug) Modem 'sportster' setting 'Init': 'ATZ' > (3471: debug) Modem 'sportster' setting 'InitOK': 'OK' > (3471: debug) Modem 'sportster' setting 'InitWait': '4' > (3471: debug) Modem 'sportster' setting 'InitRetry': '2' > (3471: debug) Modem 'sportster' setting 'Error': 'ERROR' > (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT' > '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.* > (3471: debug) Modem 'sportster' setting 'DialWait': '60' > (3471: debug) Modem 'sportster' setting 'DialRetry': '3' > (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO > CARRIER|BUSY|NO DIAL|VOICE' > (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on' > (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5' > (3471: debug) Modem 'sportster' setting 'LongDist': '1' > (3471: debug) Modem 'sportster' setting 'DialOut': '8,' > (3471: debug) baud requested: '2400' baud set: '2400' > (3471: debug) parity requested: 'even' parity set: 'even' > (3471: debug) databits requested: '7' databits set: '7' > (3471: debug) stopbits requested: '1' stopbits set: '1' > (3471: debug) flow requested: 'rts' flow set: 'rts' > (3471: debug) reseting DTR ... > (3471: debug) forcing RTS ... > (3471: debug) to send: ATZ{0x0D} > (3471: debug) want: OK > (3471: debug) kicker: ATZ{0x0D} > (3471: debug) timeout: 4 retries: 2 > (3471: debug) have: > (3471: debug) wrote: 4 ATZ{0x0D} > (3471: debug) 4 seen: ATZ{0x0D} > (3471: debug) have: ATZ{0x0D} > (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A} > (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A} > (3471: debug) chat success: OK > (3471: debug) Modem Object 'sportster' being destroyed > (3471: debug) unlocking Modem 'sportster' > (3471: debug) Modem Object 'sportster' destroyed > (3471: debug) found functioning modem: sportster > > I seem to only be able to connect to this PC at 2400,7,e,1. When I use > minicom, I get the ID= string just fine. I have turned debug=true > everywhere possible in the sendpage.cf file, yet this is the only output > I get in the messages file? > > Any help is greatly appreciated! > > -Robin > > > -----Original Message----- > From: nagios-users-admin at lists.sourceforge.net > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell > Adams > Sent: Thursday, January 30, 2003 2:53 PM > To: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > I use Arch with Sendpage, and previously Qpage. > > What exactly is the problem you're having? > > I've worked many problems with Arch tech support, and I support about > 500 > pagers. Perhaps I've already seen the problem you're having. ;] > > Russell > > On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote: > > Looking for someone else using Arch for modem paging. I'm trying to > use > > modem paging with my installed and working Nagios server but I'm > having > > some issues and not finding too much help available. The problem > seems > > to lie in the communication with Arch. > > > > I'd appreciate it if anyone using this could contact me. > > > > > > Thanks and regards, > > Robin > > > > > > > > > > ------------------------------------------------------- > > 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 Daniel_Casey at jbhunt.com Thu Jan 30 23:13:32 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Thu, 30 Jan 2003 16:13:32 -0600 Subject: check_log script errors Message-ID: Nagios 1.0 on AIX 4.3.3 Around line 186 in the check_log plugin script, there is a piece of code that reads: # The old log file exists, so compare it to the original log now # The temporary file that the script should use while # processing the log file. if [ -x mktemp-x /usr/local/bin/mktemp tempdiff=`mktemp` else tempdiff=`/bin/date '+%H%M%S'` tempdiff="/tmp/check_log.${tempdiff}" /bin/touch $tempdiff chmod 600 $tempdiff fi Can't figure what the first if statement should be. My guess is that it's checking to see if the /usr/local/bin/mktemp is executable (-x) and if so, then run assign mktemp to the tempdiff variable, else, tempdiff get a different assignment. So possibly: if [ -x /usr/local/bin/mktemp ]; then . . However, when I run the script manually, I get an error about diff: diff: 0653-802 Specify two file names. Has anyone done any work to this script? I'll see if I can get it working and post the results to the list, but would appreciate any help. Thanks. ------------------------------------------------------- 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 Jan 30 23:26:35 2003 From: RLAdams at Kelsey-Seybold.com (Russell Adams) Date: Thu, 30 Jan 2003 16:26:35 -0600 Subject: OT - Sendpage and Arch Wireless In-Reply-To: <00a401c2c8ac$055853c0$0bb0a8c0@rbrown> References: <20030130213435.GE12604@soja.ksnet.com.> <00a401c2c8ac$055853c0$0bb0a8c0@rbrown> Message-ID: <25123.8046600067$1043966334@news.gmane.org> On Thu, Jan 30, 2003 at 05:07:46PM -0500, Robin Brown wrote: > ..snip..filter.. > Arch pc definition: > [pc:archwireless] > debug = true > page-daemon = netmon at p2pa.com > phonenum= 8604730000 > maxpages=12 > maxchars=300 > stricttap=true > lfok=true > answerwait=10 > > [modem:sportster] > debug = true > data = 7 > parity = even > stop = 1 > flow = rts > baud = 2400 > dev = /dev/modem > init = ATL1M0E1V1X4S11=50 > dialout="8," Have you tried the "rundelay" parameter, and setting stricttap=false? Russell > > Most of this is default, it also reflects my attempt to use your init > string. > > Thanks again. > > -Robin > > -----Original Message----- > From: Russell Adams [mailto:RLAdams at Kelsey-Seybold.com] > Sent: Thursday, January 30, 2003 4:35 PM > To: Robin Brown > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > What is your sendpage.cf look like for the modem definitions and such? > > I'll give you some samples from mine below. > > BTW, please include your replies on the list to maintain continuity. > > Russell > > > Samples from sendpage.cf for Arch (formerly Mobilcomm): > > [modem:multitech_01] > data = 7 > parity = even > stop = 1 > flow = rts > baud = 1200 > dev = /dev/modem1 > init = ATL1M0E1V1X4S11=50 > > [pc:MobilCommLocalOnly] > rundelay=5 > phonenum= 713-781-5116 > maxchars= 230 > > [recip:rladams] > dest= 1234567890 at MobilCommLocalOnly > > > > On Thu, Jan 30, 2003 at 03:56:32PM -0500, Robin Brown wrote: > > Oh, I certainly hope so. Arch support basically told me to contact my > > software vendor. See below: > > > > Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage > > v0.9.14) > > Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners > > Jan 29 13:20:27 proxy sendpage[3386]: > archwireless/q104386442703386000: > > state=Queued, to=robin at archwireless, > > from=sendpage at mydomain.com(localhost), size=5 > > Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A > > Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested! > > Jan 29 13:21:00 proxy sendpage[3384]: > archwireless/q104386442703386000: > > state=Temp-Failure, to=robin at archwireless, from=sendpage@ > mydomain.com, > > size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A} > > > > Here is the debug output of sendpage initializing: > > > > (3471: debug) found listing for pc: archwireless > > (3471: debug) Locking with '/var/lock/LCK..modem' ... > > (3471: debug) Modem 'sportster' setting 'Baud': '2400' > > (3471: debug) Modem 'sportster' setting 'Parity': 'even' > > (3471: debug) Modem 'sportster' setting 'Data': '7' > > (3471: debug) Modem 'sportster' setting 'Stop': '1' > > (3471: debug) Modem 'sportster' setting 'Flow': 'rts' > > (3471: debug) Modem 'sportster' setting 'Init': 'ATZ' > > (3471: debug) Modem 'sportster' setting 'InitOK': 'OK' > > (3471: debug) Modem 'sportster' setting 'InitWait': '4' > > (3471: debug) Modem 'sportster' setting 'InitRetry': '2' > > (3471: debug) Modem 'sportster' setting 'Error': 'ERROR' > > (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT' > > '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.* > > (3471: debug) Modem 'sportster' setting 'DialWait': '60' > > (3471: debug) Modem 'sportster' setting 'DialRetry': '3' > > (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO > > CARRIER|BUSY|NO DIAL|VOICE' > > (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on' > > (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5' > > (3471: debug) Modem 'sportster' setting 'LongDist': '1' > > (3471: debug) Modem 'sportster' setting 'DialOut': '8,' > > (3471: debug) baud requested: '2400' baud set: '2400' > > (3471: debug) parity requested: 'even' parity set: 'even' > > (3471: debug) databits requested: '7' databits set: '7' > > (3471: debug) stopbits requested: '1' stopbits set: '1' > > (3471: debug) flow requested: 'rts' flow set: 'rts' > > (3471: debug) reseting DTR ... > > (3471: debug) forcing RTS ... > > (3471: debug) to send: ATZ{0x0D} > > (3471: debug) want: OK > > (3471: debug) kicker: ATZ{0x0D} > > (3471: debug) timeout: 4 retries: 2 > > (3471: debug) have: > > (3471: debug) wrote: 4 ATZ{0x0D} > > (3471: debug) 4 seen: ATZ{0x0D} > > (3471: debug) have: ATZ{0x0D} > > (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A} > > (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A} > > (3471: debug) chat success: OK > > (3471: debug) Modem Object 'sportster' being destroyed > > (3471: debug) unlocking Modem 'sportster' > > (3471: debug) Modem Object 'sportster' destroyed > > (3471: debug) found functioning modem: sportster > > > > I seem to only be able to connect to this PC at 2400,7,e,1. When I > use > > minicom, I get the ID= string just fine. I have turned debug=true > > everywhere possible in the sendpage.cf file, yet this is the only > output > > I get in the messages file? > > > > Any help is greatly appreciated! > > > > -Robin > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell > > Adams > > Sent: Thursday, January 30, 2003 2:53 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > > > I use Arch with Sendpage, and previously Qpage. > > > > What exactly is the problem you're having? > > > > I've worked many problems with Arch tech support, and I support about > > 500 > > pagers. Perhaps I've already seen the problem you're having. ;] > > > > Russell > > > > On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote: > > > Looking for someone else using Arch for modem paging. I'm trying to > > use > > > modem paging with my installed and working Nagios server but I'm > > having > > > some issues and not finding too much help available. The problem > > seems > > > to lie in the communication with Arch. > > > > > > I'd appreciate it if anyone using this could contact me. > > > > > > > > > Thanks and regards, > > > Robin > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 mpowell at ena.com Thu Jan 30 23:33:29 2003 From: mpowell at ena.com (Marc Powell) Date: Thu, 30 Jan 2003 16:33:29 -0600 Subject: Fw: Help, new install - come on guys give us a hand. Message-ID: <5DB017510818EC468B05BD7BD9EACF83030ED2B4@mismail.ena.com> Per the instructions on the page that you partially quote below, reading the CGI Authentication section of the HTML documentation yields the following: ------- Authentication Usage Format: use_authentication=<0/1> Example: use_authentication=1 This option controls whether or not the CGIs will use the authentication and authorization functionality when determining what information and commands users have access to. I would strongly suggest that you use the authentication functionality for the CGIs. If you decide not to use authentication, make sure to remove the command CGI to prevent unauthorized users from issuing commands to Nagios. The CGI will not issue commands to Nagios if authentication is disabled, but I would suggest removing it altogether just to be on the safe side. More information on how to setup authentication and configure authorization for the CGIs can be found here. 0 = Don't use authentication functionality 1 = Use authentication and authorization functionality (default) -------- There is a feature found by following the link in the text above: -------- Default User Name Format: default_user_name= Example: default_user_name=guest Setting this variable will define a default username that can access the CGIs. This allows people within a secure domain (i.e., behind a firewall) to access the CGIs without necessarily having to authenticate to the web server. You may want to use this to avoid having to use basic authentication if you are not using a secure server, as basic authentication transmits passwords in clear text over the Internet. Important: Do not define a default username unless you are running a secure web server and are sure that everyone who has access to the CGIs has been authenticated in some manner! If you define this variable, anyone who has not authenticated to the web server will inherit all rights you assign to this user! -------- This may or may not meet your needs. Your final option would be to edit cmd.c to suit your specific needs. -- Marc > -----Original Message----- > From: Ryan Cochrane [mailto:Ryan.Cochrane at webexpress.net.au] > Sent: Thursday, January 17, 2002 4:21 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] Fw: Help, new install - come on guys give us a > hand. > > > > Hi Guys! > > > > Just installed this beautiful software and i've come up with the > following > > problems, > > > > I've selected no cgi auto as i have other auth methods blah blah > > I keep getting that sorry dave i cant let you do that if yo uwant to be > > stubborn remove this safe guard, how and where do i remove it from?? > > > > Also, where does it put the CGI files apon make'ing it? > > > > Thanks guys > > > > > > ------------------------------------------------------- > 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 bgarcia at p-inet.net Thu Jan 30 23:36:15 2003 From: bgarcia at p-inet.net (Ben Garcia) Date: Thu, 30 Jan 2003 16:36:15 -0600 Subject: Still no help with interval_lengh=1? Message-ID: <52477F956561A24F96504531194909A72733CC@exchange1.p-inet.com> We have our interval length set to 1 and haven't had a problem with it. We have it set to 1 with normal_check_interval at 30 for ICMP and 300 for SNMP. What does your service definition look like? --Ben -----Original Message----- From: Richard F. Rebel [mailto:rrebel at whenu.com] Sent: Thursday, January 30, 2003 4:04 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] Still no help with interval_lengh=1? Hello, I sent a message before with no response, so here goes again... If I set interval_length to 1, It gets ingored. Has anyone else set a < 60 second interval lengh successfully? Thanks! Richard ------------------------------------------------------- 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 Thu Jan 30 23:30:39 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Thu, 30 Jan 2003 14:30:39 -0800 Subject: SSL option for check_http? Message-ID: <000801c2c8af$375f0000$bb20a8c0@corp.wrhambrecht.com> Does anyone know what happened to the SSL option (-S in previous versions) for the latest version of the check_http plugin? - David user at host:/usr/local/src/nagios10/nagios-plugins-1.3.0-beta2/plugins> ./check_http -h check_http (nagios-plugins 1.3.0-beta2) 1.12 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-2001 Ethan Galstad/Karl DeBisschop This plugin tests the HTTP service on the specified host. It can test normal (http) and secure (https) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times. Usage: check_http (-H | -I ) [-u ] [-p ] [-w ] [-c ] [-t ] [-L] [-a auth] [-f ] [-e ] [-s string] [-r | -R ] [-P string] check_http (-h | --help) for detailed help check_http (-V | --version) for version information NOTE: One or both of -H and -I must be specified Options: -H, --hostname=ADDRESS Host name argument for servers using host headers (virtual host) -I, --IP-address=ADDRESS IP address or name (use numeric address if possible to bypass DNS lookup). -e, --expect=STRING String to expect in first (status) line of server response (default: HTTP/1.) If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing) -s, --string=STRING String to expect in the content -u, --url=PATH URL to GET or POST (default: /) -p, --port=INTEGER Port number (default: 80) -P, --post=STRING URL encoded http POST data -w, --warning=INTEGER Response time to result in warning status (seconds) -c, --critical=INTEGER Response time to result in critical status (seconds) -t, --timeout=INTEGER Seconds before connection times out (default: 10) -a, --authorization=AUTH_PAIR Username:password on sites with basic authentication -L, --link=URL Wrap output in HTML link (obsoleted by urlize) -f, --onredirect= How to handle redirected pages -v, --verbose Show details for command-line debugging (do not use with nagios server) -h, --help Print detailed help screen -V, --version Print version information -------------- next part -------------- An HTML attachment was scrubbed... URL: From russell at quadrix.com Thu Jan 30 23:42:46 2003 From: russell at quadrix.com (Russell Scibetti) Date: Thu, 30 Jan 2003 17:42:46 -0500 Subject: SSL option for check_http? References: <000801c2c8af$375f0000$bb20a8c0@corp.wrhambrecht.com> Message-ID: <3E39AA66.8080106@quadrix.com> When you ran ./configure for the plugins, it couldn't find any SSL libraries, so it didn't include the -S (--ssl) options in check_http. When you run ./configure, watch the output to see why its not finding your SSL libraries. Russell Scibetti DM wrote: > Does anyone know what happened to the SSL option (-S in previous > versions) > > for the latest version of the check_http plugin? > > > > - David > > > > user at host:/usr/local/src/nagios10/nagios-plugins-1.3.0-beta2/plugins > > > ./check_http -h > check_http (nagios-plugins 1.3.0-beta2) 1.12 > 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-2001 Ethan Galstad/Karl DeBisschop < > kdebisschop at users.sourceforge.net > > > > > > This plugin tests the HTTP service on the specified host. It can test > normal (http) and secure (https) servers, follow redirects, search for > strings and regular expressions, check connection times, and report on > certificate expiration times. > > > > Usage: > check_http (-H | -I ) [-u ] [-p ] > [-w ] [-c ] [-t ] [-L] > [-a auth] [-f ] [-e ] > [-s string] [-r | -R ] > [-P string] > check_http (-h | --help) for detailed help > check_http (-V | --version) for version information > NOTE: One or both of -H and -I must be specified > > > > Options: > -H, --hostname=ADDRESS > Host name argument for servers using host headers (virtual host) > -I, --IP-address=ADDRESS > IP address or name (use numeric address if possible to bypass DNS > lookup). > -e, --expect=STRING > String to expect in first (status) line of server response > (default: HTTP/1.) > If specified skips all other status line logic (ex: 3xx, 4xx, 5xx > processing) > -s, --string=STRING > String to expect in the content > -u, --url=PATH > URL to GET or POST (default: /) > -p, --port=INTEGER > Port number (default: 80) > -P, --post=STRING > URL encoded http POST data > -w, --warning=INTEGER > Response time to result in warning status (seconds) > -c, --critical=INTEGER > Response time to result in critical status (seconds) > -t, --timeout=INTEGER > Seconds before connection times out (default: 10) > -a, --authorization=AUTH_PAIR > Username:password on sites with basic authentication > -L, --link=URL > Wrap output in HTML link (obsoleted by urlize) > -f, --onredirect= > How to handle redirected pages > -v, --verbose > Show details for command-line debugging (do not use with nagios > server) > -h, --help > Print detailed help screen > -V, --version > Print version information > -- Russell Scibetti Quadrix Solutions, Inc. http://www.quadrix.com (732) 235-2335, ext. 7038 -------------- next part -------------- An HTML attachment was scrubbed... URL: From rburnson at cps.k12.il.us Fri Jan 31 01:49:41 2003 From: rburnson at cps.k12.il.us (Burnson, Richard) Date: Thu, 30 Jan 2003 18:49:41 -0600 Subject: SSL option for check_http? Message-ID: After reading the performance tuning documentation, I am thinking about setting up a ramdisk for the status.log file. Before I do this, I wanted to see if anyone else has tried this and what their experience has been, and what they recommend. I am running Nagios on a RedHat 7.2 box with one gig of RAM. Currently the status.log file is just shy of 2 MB, so I think the default 4MB ramdisk will be sufficient. Also, what would be the best startup file to put the commands in to create the ramdisk upon reboot? Thanks, Richard -------------- next part -------------- An HTML attachment was scrubbed... URL: From jcarro10 at sprintspectrum.com Fri Jan 31 01:23:26 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 30 Jan 2003 18:23:26 -0600 Subject: check_log script errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F252F@PKDWB03C.ad.sprint.com> I'm rather partial to the check_log2.pl Perl script (in the contrib directory). Since it uses seek/tell, it's quite a bit more economical with disk space/IO than the original check_log Bourne shell script, at least if you end up dealing with large logfiles. If you decide to go this route and need help, let me know. jc > -----Original Message----- > From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] > Sent: Thursday, January 30, 2003 4:14 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] check_log script errors > > > Nagios 1.0 on AIX 4.3.3 > > Around line 186 in the check_log plugin script, there is a > piece of code > that reads: > > # The old log file exists, so compare it to the original log now > > # The temporary file that the script should use while > # processing the log file. > if [ -x mktemp-x /usr/local/bin/mktemp > tempdiff=`mktemp` > else > tempdiff=`/bin/date '+%H%M%S'` > tempdiff="/tmp/check_log.${tempdiff}" > /bin/touch $tempdiff > chmod 600 $tempdiff > fi > > Can't figure what the first if statement should be. My guess > is that it's > checking to see > if the /usr/local/bin/mktemp is executable (-x) and if so, > then run assign > mktemp to the > tempdiff variable, else, tempdiff get a different assignment. > So possibly: > > if [ -x /usr/local/bin/mktemp ]; then > . > . > > However, when I run the script manually, I get an error about diff: > > diff: 0653-802 Specify two file names. > > Has anyone done any work to this script? I'll see if I can > get it working > and post the > results to the list, but would appreciate any help. > > 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 > ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at halligan.org Fri Jan 31 02:42:30 2003 From: michael at halligan.org (Michael T. Halligan) Date: Thu, 30 Jan 2003 17:42:30 -0800 (PST) Subject: problem with services file. In-Reply-To: <015c01c19fbc$c34c2560$14471fcb@weig> References: <015c01c19fbc$c34c2560$14471fcb@weig> Message-ID: Well, beyond the Nagios spelling error, how about removing the blank line, or making sure you have 8 spaces and NOT a tab in front of your attribute lines. I've noticed that nagios doesn't like tabs in object definitions. On Fri, 18 Jan 2002, Ryan Cochrane wrote: = Hi guys, sorry to bother you = = I have finally got most of it working with auto and all! = = I keep getting this error when i go to start it; = = = Error: Invalid object definition type 'service(' in file = '/usr/local/nagios/etc/services.cfg' on line 21. = = = define host{ = use generic-host ; = = host_name weig = alias Naigos Monitoring #1 = address 203.31.71.22 = check_command check-host-alive check_http check_smtp = max_check_attempts 10 = notification_interval 120 = notification_period 24x7 = notification_options d,u,r = } = = = any pointers would be really good, ive been playin with it for 3 hours now. = :/ = = = = ------------------------------------------------------- = 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 = -- ------------------------- Michael T. Halligan Chief Geek Halligan Infrastructure Designs. 2250 Jerrold Ave #11 San Francisco, CA 94124 (415) 824.4453 - Home/Office (408) 829.9481 - Mobile ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From michael at halligan.org Fri Jan 31 02:50:15 2003 From: michael at halligan.org (Michael T. Halligan) Date: Thu, 30 Jan 2003 17:50:15 -0800 (PST) Subject: problem with services file. In-Reply-To: <015c01c19fbc$c34c2560$14471fcb@weig> References: <015c01c19fbc$c34c2560$14471fcb@weig> Message-ID: that's the host.cfg entry, how about the services.cfg.. did you use ()s instead of {}s? That seems to be the error.. On Fri, 18 Jan 2002, Ryan Cochrane wrote: = Hi guys, sorry to bother you = = I have finally got most of it working with auto and all! = = I keep getting this error when i go to start it; = = = Error: Invalid object definition type 'service(' in file = '/usr/local/nagios/etc/services.cfg' on line 21. = = = define host{ = use generic-host ; = = host_name weig = alias Naigos Monitoring #1 = address 203.31.71.22 = check_command check-host-alive check_http check_smtp = max_check_attempts 10 = notification_interval 120 = notification_period 24x7 = notification_options d,u,r = } = = = any pointers would be really good, ive been playin with it for 3 hours now. = :/ = = = = ------------------------------------------------------- = 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 = -- ------------------------- Michael T. Halligan Chief Geek Halligan Infrastructure Designs. 2250 Jerrold Ave #11 San Francisco, CA 94124 (415) 824.4453 - Home/Office (408) 829.9481 - Mobile ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From securityguy at ikano.com Fri Jan 31 02:43:41 2003 From: securityguy at ikano.com (Robert S. Galloway) Date: Thu, 30 Jan 2003 18:43:41 -0700 Subject: problem with services file. In-Reply-To: <015c01c19fbc$c34c2560$14471fcb@weig> References: <015c01c19fbc$c34c2560$14471fcb@weig> Message-ID: <000401c2c8ca$2ebc3330$f5d0d0cd@pendleton> Hi Ryan. You're object definition here shows "define host" not "define service". Which are you trying to configure? Also, I do not believe that you can specify multiple checks in the check_command definition. 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 -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Ryan Cochrane Sent: Thursday, January 17, 2002 6:09 PM To: nagios-users at lists.sourceforge.net Subject: [Nagios-users] problem with services file. Hi guys, sorry to bother you I have finally got most of it working with auto and all! I keep getting this error when i go to start it; Error: Invalid object definition type 'service(' in file '/usr/local/nagios/etc/services.cfg' on line 21. define host{ use generic-host ; host_name weig alias Naigos Monitoring #1 address 203.31.71.22 check_command check-host-alive check_http check_smtp max_check_attempts 10 notification_interval 120 notification_period 24x7 notification_options d,u,r } any pointers would be really good, ive been playin with it for 3 hours now. :/ ------------------------------------------------------- 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 Jan 31 03:29:29 2003 From: Stanley.Hopcroft at IPAustralia.Gov.AU (Stanley Hopcroft) Date: Fri, 31 Jan 2003 13:29:29 +1100 Subject: ePN (embedded Perl Nag) with Perl 5.8.0. Not broken on all OS ... Message-ID: <20030131132923.B63211@IPAustralia.Gov.AU> Dear Ladies and Gentlemen, I am writing to withdraw my earlier mistaken claim that Nagios-1.0 (and probably Netsaint) with the embedded Perl interpreter (ePN), is broken with Perl 5.8.0. (This claim was based on seeing the embedded Perl simulator - mini_epn.c SEGV wtih Perl 5.8.0. In fact there was a coding error in mini_epn.c [not unfortunately visible in any of the Nag base code that can use Perl]). I have ePN running on this FreeBSD 4.7-RELEASE host with the FreeBSD Perl 5.8.0 port. pc09011# cd /usr/local/nagios pc09011# bin/nagios -m Nagios 1.0 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 11-24-2002 License: GPL External Data I/O ----------------- Object Data: TEMPLATE Status Data: DEFAULT Retention Data: DEFAULT Comment Data: DEFAULT Downtime Data: DEFAULT Performance Data: DEFAULT Options ------- * Embedded Perl compiler (With caching) pc09011# perl -v | head -3 This is perl, v5.8.0 built for i386-freebsd This Perl is built without _any_ thread support (usethreads=undef use5005threads=undef useithreads=undef usemultiplicity=undef) So. it may be the case that the systems having problems with ePN are those systems that have Perls built with thread support, and there is a problem with Nag support for threaded Perls (or there are still problems with Perl threads). I would like to hear from those that would like to spend some more time trying to deal with this problem. Please would you send me 1 OS details (Name and major version) 2 Perl threaded details (perl -V | grep thread) 3 Whether or not you can try ePN with an unthreaded Perl FWIW, none of the Perl plugins I am aware of takes advantage of threads. An unthreaded Perl would therefore work as well as a threaded one. 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 Fri Jan 31 03:47:54 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Thu, 30 Jan 2003 20:47:54 -0600 Subject: problem with services file. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2530@PKDWB03C.ad.sprint.com> I noticed that Michael Halligan and Robert Galloway have already commented. I'll throw in my $0.02. 1) I've never had any problems with using tabs in object definitions. If anything, I make sure my config files have tabs. I'd be curious to know what error Michael had (and the usual version of Nagios/platform/etc). Regardless, if you prefer spaces, then use spaces. 2) The blank line in your host definition isn't required. Feel free to remove it. 3) The semicolon at the end of the 'use' declaration isn't required, unless you plan to append a comment to that line. 4) Something to file away for later: You need not use the 'address' declaration, so long as you either have the hostname/IP defined in /etc/hosts of your Nagios server, or you have that hostname/IP defined in your DNS namespace and have /etc/resolv.conf correctly configured. (There are advantages/disadvantages to each of these 3 approaches. Just make a note of it for now.) 5) Something which seems to trip up some Nagios neophytes (it did me) is the distinction between a host check and a service check. You can make a host check anything you like. By default, check-host-alive uses the check_ping plugin. Just think of a host check as "if this test fails, I can safely assume everything else on the host is dead". (Some might argue the particulars of this proposal, but I'm hoping it'll be enough to get you started.) Unless you're trying to monitor a host on the trusted side of a firewall from the untrusted side, you need not worry about any other incarnations of the host check. In any case, as Robert Galloway pointed out, you can have one (and only one) host check for a given host (unless you start working with host aliases, but let's not complicate your present situation). 'Nuff said on that. 6) You still need to concern yourself with the service checks. In the trivial case, you could leverage check_ping. You may notice that you would then have a host check and a service check which both use check_ping. This might seem redundant, but the logic of Nagios depends on the combination of a host check with *some* service check for proper/complete operation. If you're doing something else (eg, check_smtp, check_http), you need not have a service check which uses check_ping, although at least one subscriber to this list prefers to have it anyway. If you like, put it in now; you can always remove it later. It's also worth noting that while a service check name might be something like check_smtp, this is not the same as a plugin called check_smtp. This subtle distinction might have you chasing your tail if you're not paying close attention. When you define a service check for a host, you're effectively referencing a token. If you refer to the checkcommands.cfg file, you'll notice that quite a few of the command_name strings match the basename of the command_line strings. Why do this? Because it affords you a layer of abstraction. Once you've got the basic services monitored and you decide you want to do something which doesn't appear to exist, you can create your own definition. For example, you could create check_high_port which essentially uses the check_tcp plugin to poke at port 9999 on whatever host you decide to add this service definition to. Again, wait till you've got some basic monitoring working before you run off and attempt something less obvious. :) Hope this gets you on track. jc > -----Original Message----- > From: Ryan Cochrane [mailto:Ryan.Cochrane at webexpress.net.au] > Sent: Thursday, January 17, 2002 7:09 PM > To: nagios-users at lists.sourceforge.net > Subject: [Nagios-users] problem with services file. > > > Hi guys, sorry to bother you > > I have finally got most of it working with auto and all! > > I keep getting this error when i go to start it; > > > Error: Invalid object definition type 'service(' in file > '/usr/local/nagios/etc/services.cfg' on line 21. > > > define host{ > use generic-host ; > > host_name weig > alias Naigos Monitoring #1 > address 203.31.71.22 > check_command check-host-alive check_http check_smtp > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > > any pointers would be really good, ive been playin with it > for 3 hours now. > :/ > > > > ------------------------------------------------------- > 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 halligan.org Fri Jan 31 04:36:53 2003 From: michael at halligan.org (Michael T. Halligan) Date: Thu, 30 Jan 2003 19:36:53 -0800 (PST) Subject: problem with services file. In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB2F2530@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB2F2530@PKDWB03C.ad.sprint.com> Message-ID: = 1) I've never had any problems with using tabs in object definitions. If = anything, I make sure my config files have tabs. I'd be curious to know = what error Michael had (and the usual version of Nagios/platform/etc). = Regardless, if you prefer spaces, then use spaces. I realize now that the errors I have weren't with using tabs in object definitions per se, but when putting tabs in front of comments. When correcting this, removing that leading tab, there's no problem. So, if I have an entry in a file that says # This begins a definition upon an /etc/rc.d/init.d/nagios restart I'll receive this error : --------------------------------------------- service nagios Running configuration check... Nagios 1.0b6 Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) Last Modified: 09-15-2002 License: GPL Reading configuration data... Error: Unexpected token or statement in file '/etc/nagios/hosts.cfg' on line 2. ***> 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. failed - aborting restart. --------------------------------------------- This is on a redhat 7.3 box, with all the latest errata, running the nagios 1.0b6 rpms, 2.4.18-4smp kernel. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From r1p6os402 at sneakemail.com Fri Jan 31 04:43:33 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Thu, 30 Jan 2003 19:43:33 -0800 (PST) Subject: Reclassifying Acknowledgement Service Notification Type Message-ID: <22283-92481@sneakemail.com> Right now, it appears that acknowledgements for a critical problem are themselves deemed critical events. However, some of the recipients of the alerts don't want to know about acknowledgements. Is there some way to reclassify acknowledgements as "recovery" events regardless of the event being acknowledged? -- Steve Bonds ------------------------------------------------------- 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 Fri Jan 31 05:30:00 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Thu, 30 Jan 2003 20:30:00 -0800 Subject: SSL option for check_http? Message-ID: <000801c2c8e1$6ab6d900$bb20a8c0@corp.wrhambrecht.com> Yep! That's exactly what the problem was. Thanks for the tip! -----Original Message----- From: Russell Scibetti [mailto:russell at quadrix.com] Sent: Thursday, January 30, 2003 2:43 PM To: DM Cc: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] SSL option for check_http? When you ran ./configure for the plugins, it couldn't find any SSL libraries, so it didn't include the -S (--ssl) options in check_http. When you run ./configure, watch the output to see why its not finding your SSL libraries. Russell Scibetti DM wrote: Does anyone know what happened to the SSL option (-S in previous versions) for the latest version of the check_http plugin? - David -------------- next part -------------- An HTML attachment was scrubbed... URL: From nagios at nagios.org Wed Jan 29 05:39:28 2003 From: nagios at nagios.org (Ethan Galstad) Date: Tue, 28 Jan 2003 22:39:28 -0600 Subject: FAQ Seems to be down..? In-Reply-To: <18166-82640@sneakemail.com> References: Message-ID: <3E3706A0.10935.1222BB2@localhost> Must have been a temporary glitch. Appears to be working fine now. On 30 Jan 2003 at 9:02, Steve Bonds wrote: > On Thu, 30 Jan 2003, nemir nemiria nemir-at-hotmail.com |Nagios| wrote: > > > I am trying to get the faq that describes how to setup my etc/cgi.cfg > > file (i am 99% sure there is one there) but all I get when I try to > > open teh faq link is a timeout getting to the sql database: > > > I hope I haven't contravened anyone's sense of correct use for this > > list with my first post. > > Heck, I'm glad you were at least trying to read the FAQ before posting. > ;-) > > I hope someone gets that working soon as well. > > -- Steve > > > > ------------------------------------------------------- > 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 ksnider at datawire.net Fri Jan 31 05:54:44 2003 From: ksnider at datawire.net (Ken Snider) Date: Thu, 30 Jan 2003 23:54:44 -0500 Subject: Dropped NSCA Packets? (WAS Re: Load issues with Nagios) In-Reply-To: <74D428BDBFD5D04CB54E84499ECA29DB014E13B0@PKDWB03C.ad.sprint.com> References: <74D428BDBFD5D04CB54E84499ECA29DB014E13B0@PKDWB03C.ad.sprint.com> Message-ID: <3E3A0194.9080107@datawire.net> Carroll, Jim P [Contractor] wrote: > Ah yes, so you did. I think my brain was stuck on "the box is *always* at > 100% CPU". > > Have you tried truss/strace/whatever is appropriate for the o/s you use? Interestingly, rebooting the box (and applying an uprev kernel) eradicated the issue, though, as is always the case with multiple variables, I am now unsure *which* of these things caused the "fix". I'll revisit this again should the symptoms recur. And, for the sake of completeness, this was with 1.0. Another interesting issue, however. I've written a small wrapper that allows me to execute arbitrary plugins on a remote host, and "massage" the data (essentially add the hostname and integer error code) to the plugin output. This is combined with any other plugins running (newline between each) and piped to send_nsca. This works wonderfully. On most of our systems, 5 plugins report every two minutes. We have our "freshness" checking set to 8 minutes, or four iterations without a response form a given passive check (in reality, it is less than that, because of check/processing latencies, but should *more* than suffice.). Even with the freshness being set so high, I do notice services occasionally entering soft "unknown" states (the result of a script that runs when our services fail their freshness check). Now, I see two possibilities here. First, congestion. Since we use NTP to sync our boxes, they *do* literally hammer the box within a second or two of each other. However, I have nsca spawned through xinetd, and the box seems to take the connections without issue. I also have send_nsca itself set to timeout at 30 seconds, which is more than enough time to process the results, as running nsca(d) in debug mode shows all results processed in 8 seconds or so. So this possibility seems somewhat unlikely. The second possibility is we're hitting some sort of limit in Nagios itself. Our command_check_interval is set at -1, while our reaper frequency is 5 seconds, so I don't think it's a pipe related issue (there are, perhaps, 5o servers that check in nearly simultaneously with about 1K of plugin data). My question is twofold. First, has anyone else experienced this? And secondly, does anyone understand the inner workings of send_nsca sufficiently to explain to me how it deals with spurious network latency/packet loss or blocking issues? *should* it ever drop a connection other than when it reaches the 30 second timeout I've set? -- Ken Snider Senior Systems Administrator Datawire Communication Networks Inc. ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From nagios at nagios.org Wed Jan 29 05:38:39 2003 From: nagios at nagios.org (Ethan Galstad) Date: Tue, 28 Jan 2003 22:38:39 -0600 Subject: ePN (embedded Perl Nag) with Perl 5.8.0. Not broken on all OS ... In-Reply-To: <20030131132923.B63211@IPAustralia.Gov.AU> References: <20030131132923.B63211@IPAustralia.Gov.AU> Message-ID: <3E37066F.1210.1216969@localhost> On 31 Jan 2003 at 13:29, Stanley Hopcroft wrote: > Dear Ladies and Gentlemen, > > > I am writing to withdraw my earlier mistaken claim that Nagios-1.0 (and > probably Netsaint) with the embedded Perl interpreter (ePN), is broken > with Perl 5.8.0. > > (This claim was based on seeing the embedded Perl simulator - mini_epn.c > SEGV wtih Perl 5.8.0. In fact there was a coding error in mini_epn.c > [not unfortunately visible in any of the Nag base code that can use > Perl]). > > I have ePN running on this FreeBSD 4.7-RELEASE host with the FreeBSD > Perl 5.8.0 port. > > pc09011# cd /usr/local/nagios > pc09011# bin/nagios -m > > Nagios 1.0 > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > Last Modified: 11-24-2002 > License: GPL > > External Data I/O > ----------------- > Object Data: TEMPLATE > Status Data: DEFAULT > Retention Data: DEFAULT > Comment Data: DEFAULT > Downtime Data: DEFAULT > Performance Data: DEFAULT > > Options > ------- > * Embedded Perl compiler (With caching) > > pc09011# perl -v | head -3 > > This is perl, v5.8.0 built for i386-freebsd > > This Perl is built without _any_ thread support > > (usethreads=undef use5005threads=undef useithreads=undef > usemultiplicity=undef) > > So. it may be the case that the systems having problems with ePN are > those systems that have Perls built with thread support, and there is a > problem with Nag support for threaded Perls (or there are still problems > with Perl threads). > > I would like to hear from those that would like to spend some more time > trying to deal with this problem. > > Please would you send me > > 1 OS details (Name and major version) > 2 Perl threaded details (perl -V | grep thread) > 3 Whether or not you can try ePN with an unthreaded Perl > > FWIW, none of the Perl plugins I am aware of takes advantage of threads. > An unthreaded Perl would therefore work as well as a threaded one. > > Yours sincerely. > [snip] Reuben Farrelly just sent me the patch below which might solve the problem. I haven't applied it to CVS yet, but will this weekend if it looks okay. Any chance you can give it a try and see if it solves the problem? == Hi Ethan, This patch is included in the SuSE-8.0 linux distribution version of Nagios 1.0. I've just set up the latest 2.0a code from CVS and it too requires this patch which is included in the SuSE RPM. Without it Nagios sigsegv's and dies silently - after applying Nagios seems to run just fine. Obviously the CVS version is quite different so the patch had to be merged by hand.. Would be good if this could be merged into CVS 8) Would it be helpful to run Nagios under gdb to get a backtrace of that fault? This is with Perl 5.8.0 built for i586-linux-thread-multi Reuben --- base/nagios.c.orig 2002-09-16 04:25:36.000000000 +0200 +++ base/nagios.c 2002-10-16 13:03:11.000000000 +0200 @@ -57,6 +57,8 @@ #include #include #include +#undef ctime /* don't need perl's threaded version */ +#undef printf /* can't use perl's printf until initialized */ /* include PERL xs_init code for module and C library support */ @@ -85,17 +87,14 @@ # endif #endif -EXTERN_C void xs_init _((void)); +EXTERN_C void xs_init _((pTHX)); -EXTERN_C void boot_DynaLoader _((CV* cv)); +EXTERN_C void boot_DynaLoader _((pTHX_ CV* cv)); EXTERN_C void -xs_init(void) +xs_init(pTHX) { char *file = __FILE__; -#ifdef THREADEDPERL - dTHX; -#endif dXSUB_SYS; /* DynaLoader is a special case */ @@ -778,9 +777,12 @@ /* cleanup embedded perl */ #ifdef EMBEDDEDPERL - PL_perl_destruct_level=0; - perl_destruct(perl); - perl_free(perl); + { + dTHX; + PL_perl_destruct_level=0; + perl_destruct(perl); + perl_free(perl); + } #endif /* log a shutdown message */ --- base/utils.c.orig 2002-07-03 06:41:43.000000000 +0200 +++ base/utils.c 2002-10-16 13:02:28.000000000 +0200 @@ -48,6 +48,11 @@ #include /* In perl.h (or friends) there is a macro that defines sighandler as Perl_sighandler, so we must #undef it so we can use our sighandler() function */ #undef sighandler +/* and we don't need perl's reentrant versions */ +#undef localtime +#undef getpwnam +#undef getgrnam +#undef strerror #endif char *my_strtok_buffer=NULL; 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 karoly.vegh at uta.at Fri Jan 31 08:52:18 2003 From: karoly.vegh at uta.at (VEGH Karoly) Date: Fri, 31 Jan 2003 08:52:18 +0100 Subject: check_by_ssh and Nagios communication [solved] In-Reply-To: <1043496112.4631.6.camel@localhost.localdomain> References: <1043496112.4631.6.camel@localhost.localdomain> Message-ID: <20030131075218.GA29449@marvin.utalan.at> > > Jim P [Contractor] > > Sent: Wednesday, January 22, 2003 7:51 AM > > To: 'VEGH Karoly' > > Cc: nagios-users at lists.sourceforge.net > > Subject: RE: [Nagios-users] check_by_ssh and Nagios communication > > > > > > Try making these changes to your command_line in checkcommands.cfg: > > > > command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C > > './libexec/check_disk -w 15% -c 5%' > > > > jc Aaaaarrgghh. _of course_ this was the problem. I never thougt i could be so blind, leaving the "command[ssh_disk]" string in the commandline to be executed :) > > > exactly this stands in my checkcommands.cfg: > > > > > > > > > newmx4:/opt/nagios# grep check_by_ssh etc/checkcommands.cfg > > > command_line > > > command[ssh_disk]=/opt/nagios/libexec/check_by_ssh > > > -H $HOSTADDRESS$ -C '~/libexec/check_disk -w 15% -c 5%' > > > newmx4:/opt/nagios# thanks to all, who helped. charlie -- V?gh K?roly - System Engineer - UTA - TIS.SAS.BSS Cynics says that Hungarians created America's Hollywood before other Hungarians less destructively created America's A-bomb. http://www.mek.iif.hu/kiallit/tudtor/tudos1/martians.html ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From Donal.Hunt at dcu.ie Fri Jan 31 11:43:58 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Fri, 31 Jan 2003 10:43:58 +0000 Subject: Delivery failing for some messages. Message-ID: <3E3A536E.4D754A4D@dcu.ie> I keep getting delivery failures for messages to the following addresses (due to my mail setup): pagenagios-admin at localhost.localdomain nagios-admin at localhost.localdomain jdoe at localhost.localdomain They're mentioned in the sample config files but don't exist at all in my current setup. I've restarted nagios numerous times to no avail... it's getting pretty annoying at this stage!! ;) Where are these email messages being generated?? Regards Donal DCU ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mathieum at sports.fr Fri Jan 31 11:53:49 2003 From: mathieum at sports.fr (Mathieu Masseboeuf) Date: Fri, 31 Jan 2003 11:53:49 +0100 Subject: Patch for ePN (from Suse via Ethan Galstad) for Perl 5.8.0 In-Reply-To: <20030131161906.H63211@IPAustralia.Gov.AU> References: <20030131161906.H63211@IPAustralia.Gov.AU> Message-ID: <20030131105349.23618@smtp.sports.fr> Hi, Thanks a lot for this, the patch worked like a charm. I had to adapt it a bit as I'm working with the 1.0 release, not from the CVS. You'll find my version down in the mail if others want to use it with the current stable release. I've also attached a nonrelated patch which I made to the SNMP nagios plugin. This patch strips type output for the type STRING which the latest net- snmp outputs when making snmp queries to some oids. It's usefull for example when you want to query the oid describing swap error flag, you can as well query the error message oid to put the info next to the error. The patch for embeded perl so it works with perl 5.8.0 (for nagios 1.0) : --------------------- SNIP --------------------- --- base/nagios.c.orig 2003-01-31 11:23:11.000000000 +0100 +++ base/nagios.c 2003-01-31 11:26:04.000000000 +0100 @@ -58,6 +58,8 @@ #include static PerlInterpreter *my_perl; #include +#undef ctime /* don't need perl's threaded version */ +#undef printf /* can't use perl's printf until initialized */ /* include PERL xs_init code for module and C library support */ @@ -86,17 +88,14 @@ # endif #endif -EXTERN_C void xs_init _((void)); +EXTERN_C void xs_init _((pTHX)); -EXTERN_C void boot_DynaLoader _((CV* cv)); +EXTERN_C void boot_DynaLoader _((pTHX_ CV* cv)); EXTERN_C void -xs_init(void) +xs_init(pTHX) { char *file = __FILE__; -#ifdef THREADEDPERL - dTHX; -#endif dXSUB_SYS; /* DynaLoader is a special case */ @@ -779,9 +778,12 @@ /* cleanup embedded perl */ #ifdef EMBEDDEDPERL - PL_perl_destruct_level=0; - perl_destruct(perl); - perl_free(perl); + { + dTHX; + PL_perl_destruct_level=0; + perl_destruct(perl); + perl_free(perl); + } #endif /* log a shutdown message */ --- base/utils.c.orig 2003-01-31 11:26:17.000000000 +0100 +++ base/utils.c 2003-01-31 11:26:55.000000000 +0100 @@ -49,6 +49,11 @@ #include /* In perl.h (or friends) there is a macro that defines sighandler as Perl_sighandler, so we must #undef it so we can use our sighandler() f unction */ #undef sighandler +/* and we don't need perl's reentrant versions */ +#undef localtime +#undef getpwnam +#undef getgrnam +#undef strerror #endif char *my_strtok_buffer=NULL; --------------------- SNIP --------------------- And the check_snmp plugin patch : --------------------- SNIP --------------------- --- plugins/check_snmp.c.orig 2002-11-16 06:06:02.000000000 +0100 +++ plugins/check_snmp.c 2003-01-31 11:47:23.000000000 +0100 @@ -299,6 +299,8 @@ show = strstr (response, "Gauge32: ") + 9; else if (strstr (response, "INTEGER: ")) show = strstr (response, "INTEGER: ") + 9; + else if (strstr (response, "STRING: ")) + show = strstr (response, "STRING: ") + 8; else show = response; p2 = show; --------------------- SNIP --------------------- And the command I'm using : # Check Swap define command{ command_name check_snmp_swap command_line $USER1$/check_snmp -H $HOSTADDRESS$ -l "Swap" -o UCD-SNMP- MIB::memSwapError.0,UCD-SNMP-MIB::memSwapErrorMsg.0 -P 3 -L authNoPriv -a MD5 -U LOGIN -A PASSWORD -c 0, } -- Mathieu Masseboeuf - Directeur Technique http://www.sports.fr - http://www.athleteline.com Tous les sports en direct et en coutinu sur Internet. >Dear Sir, > >Would you let either myself or Ethan know if the Suse patch attached >stops the SEGV with ePN and Perl 5.8.0 ? > >Thank you, > >Yours sincerely. >-- >------------------------------------------------------------------------ >Stanley Hopcroft >------------------------------------------------------------------------ ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From dcorbin at machturtle.com Fri Jan 31 13:30:11 2003 From: dcorbin at machturtle.com (David Corbin) Date: Fri, 31 Jan 2003 07:30:11 -0500 Subject: Alternative notifications Message-ID: <3E3A6C53.2040108@machturtle.com> 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 From Donal.Hunt at dcu.ie Fri Jan 31 14:23:52 2003 From: Donal.Hunt at dcu.ie (Donal Hunt) Date: Fri, 31 Jan 2003 13:23:52 +0000 Subject: Delivery failing for some messages. References: <3E3A536E.4D754A4D@dcu.ie> Message-ID: <3E3A78E8.80803058@dcu.ie> just to say thanks to the people who mailed me off list. there were in fact a number of nagios processes running and killing them solved the problem. Regards Donal DCU Donal Hunt wrote: > > I keep getting delivery failures for messages to the following addresses > (due to my mail setup): > > pagenagios-admin at localhost.localdomain > nagios-admin at localhost.localdomain > jdoe at localhost.localdomain > > They're mentioned in the sample config files but don't exist at all in > my current setup. I've restarted nagios numerous times to no avail... > it's getting pretty annoying at this stage!! ;) > > Where are these email messages being generated?? > Regards > > Donal > DCU > > ------------------------------------------------------- > 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 Fri Jan 31 14:22:07 2003 From: mpowell at ena.com (Marc Powell) Date: Fri, 31 Jan 2003 07:22:07 -0600 Subject: Delivery failing for some messages. Message-ID: <5DB017510818EC468B05BD7BD9EACF83032D3F81@mismail.ena.com> Verify that you do not have multiple nagios processes runningby stopping nagios then using ps -ef to see if there are any still present. If so, kill those and restart nagios. -- Marc Sent from a very tiny wireless device with a very tiny unlit keyboard. -----Original Message----- From: Donal Hunt To: nagios-users at lists.sourceforge.net Sent: Fri Jan 31 04:43:58 2003 Subject: [Nagios-users] Delivery failing for some messages. I keep getting delivery failures for messages to the following addresses (due to my mail setup): pagenagios-admin at localhost.localdomain nagios-admin at localhost.localdomain jdoe at localhost.localdomain They're mentioned in the sample config files but don't exist at all in my current setup. I've restarted nagios numerous times to no avail... it's getting pretty annoying at this stage!! ;) Where are these email messages being generated?? Regards Donal DCU ------------------------------------------------------- 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 Fredrik.Wanglund at datavis.se Fri Jan 31 15:18:26 2003 From: Fredrik.Wanglund at datavis.se (=?iso-8859-1?Q?Fredrik_W=E4nglund?=) Date: Fri, 31 Jan 2003 15:18:26 +0100 Subject: Caching SNMP Info Message-ID: <9EA0F1554816EB499A4B1136B80E8DE2780499@storevis.datavis.se> I changed the line #define DEFAULT_MIBLIST "ALL" to #define DEFAULT_MIBLIST "NONE" in check_snmp.c (the normal plugin) and recompiled. Now no mibs are loaded by default. The load on my server dropped from around 5-6 to 0-0.5! /FredrikW -----Original Message----- From: Steve Bonds [mailto:r1p6os402 at sneakemail.com] Sent: Wed 29-Jan-03 21:51 To: nagios-users at lists.sourceforge.net Cc: Subject: RE: [Nagios-users] Caching SNMP Info On Wed, 29 Jan 2003, Carroll, Jim P [Contractor] jcarro10-at-sprintspectrum.com |Nagios| wrote: > Not sure if this is what you're looking for, but on 12/20/2002 John P. > Looney strongly endorsed the snmp proxy: > > http://freshmeat.net/releases/107146/ This really looked promising until the complete lack of documentation killed it. There aren't even any useful comments in the source code to describe what's going on. It appears that the check_snmppd command was intended as a drop-in replacement for check_snmp, but the proxy was not indended for general use with random SNMP query scripts. Still, an excellent tip, and if I get desperate enough to need it I can go source-diving, document it myself, and maybe figure out how to link it in with my NET-SNMP queries. ;-) -- Steve ------------------------------------------------------- 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 Daniel_Casey at jbhunt.com Fri Jan 31 15:43:09 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 31 Jan 2003 08:43:09 -0600 Subject: Alternative notifications Message-ID: What about e-mail to a phone? Of course, if you mean no internet connection at all, then e-mail would be out I guess. Could Nagios use something like qpage? Then you could use a TAP service IIRC, it's been a while. We use e-mail now. |---------+----------------------------------------> | | David Corbin | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/31/2003 06:30 | | | | |---------+----------------------------------------> >----------------------------------------------------------------------------------------------------------------------------------------------| | | | To: Nagios Users | | cc: | | 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 stevox2000 at yahoo.com Fri Jan 31 15:52:36 2003 From: stevox2000 at yahoo.com (=?iso-8859-1?q?Steve=20Dussaux?=) Date: Fri, 31 Jan 2003 15:52:36 +0100 (CET) Subject: check_mysql segfault Message-ID: <20030131145236.22949.qmail@web10904.mail.yahoo.com> I have always a segmentation fault with check_mysql plugin except when i use the -h option I am running Nagios 1.0 on a RedHat 7.1 and i'm using check_mysql (nagios-plugins v1.3.0-beta2) 1.2 I'm pretty sure somebody have already had the same problem... 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 GPotter at MarathonOil.com Fri Jan 31 16:02:58 2003 From: GPotter at MarathonOil.com (Potter, G M (Greg)) Date: Fri, 31 Jan 2003 09:02:58 -0600 Subject: Alternative notifications Message-ID: 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. 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 slebrun at muskoka.com Fri Jan 31 16:16:46 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Fri, 31 Jan 2003 10:16:46 -0500 Subject: Alternative notifications In-Reply-To: References: Message-ID: Isn't there a faq entry on nagios.org that covers yahoo IM, as well as SMS, pager, icq, jabber, and blah blah blah? On a side note, I'm in the process of getting Nagios to call us up and whine; I just need to put the voice modem in during tonight's maintenance window, then the fun will begin. :-) -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Daniel_Casey at jbhunt.com Sent: Friday, January 31, 2003 9:43 AM To: David Corbin Cc: Nagios Users; nagios-users-admin at lists.sourceforge.net Subject: Re: [Nagios-users] Alternative notifications What about e-mail to a phone? Of course, if you mean no internet connection at all, then e-mail would be out I guess. Could Nagios use something like qpage? Then you could use a TAP service IIRC, it's been a while. We use e-mail now. |---------+----------------------------------------> | | David Corbin | | | | | | Sent by: | | | nagios-users-admin at lists.sour| | | ceforge.net | | | | | | | | | 01/31/2003 06:30 | | | | |---------+----------------------------------------> >--------------------------------------------------------------------------- -------------------------------------------------------------------| | | | To: Nagios Users | | cc: | | 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 Daniel_Casey at jbhunt.com Fri Jan 31 16:34:10 2003 From: Daniel_Casey at jbhunt.com (Daniel_Casey at jbhunt.com) Date: Fri, 31 Jan 2003 09:34:10 -0600 Subject: check_log script errors Message-ID: I guess I'm not understanding how to use the script. I type: ./check_log2.pl -l /tmp/down.log -p Warning I get "Seek file not specified." What does the -s do? I run this and it works: ./check_log2.pl -l /tmp/down.log -s /tmp/down.log.seek -p Warning Is the .seek file just a place-holder the script uses? I read the comments about using the .seek file to check size...is the seek file a copy of the logfile that you look at instead of the actual logfile? Thanks. again for the help! Script looks like it will work perfectly! ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From jayson at sonictrading.com Fri Jan 31 17:36:22 2003 From: jayson at sonictrading.com (Jayson Kliger) Date: 31 Jan 2003 11:36:22 -0500 Subject: Statusmap issues Message-ID: <1044030982.978.517.camel@krull> Hello all, I currently have 2 Nagios test boxes running, monitoring one test host machine. The first box I made I made is not showing png,jpegs,or gif in the statusmap or status summary cgi's, they are showing in the rest of the cgi's. I have manipulated the hostextinfo.cfg, by making it as minimal as possible (host_name,icon_image,statusmap_image), as well as adding xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg and SetENV LD_LIBRARY_PATH /usr/local/lib in the httpd.conf file. In an effort to trouble shoot I have made a 2nd test box, using the same configurations, the only thing I did differently was use rpm's for the gd,jpeg,jpeg-devel,zlib,zlib-devel,libpng,libpng-devel,gd-1.8.4 and gd-1.8.4-devel. This second box is not showing icons for any of the cgi's, I have compared all of the configs, side by side and the only difference I could find is, when I traced back to the SetENV line in the first box, there were the libs for zlib,png,gd and jpeg, on the second box there was nothing, but I did locate those same files in /usr/lib, so in an attempt I changed the path for the SetENV line to include the path /usr/lib..no luck.I have reviewed the lists, and with the help of you I was able to get as far as I have, does anyone have any other hints,tips or recommendations as to what I should look for? Thank you in advance. Jay ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From stan at live2think.com Fri Jan 31 17:34:20 2003 From: stan at live2think.com (Stan Tichomirov) Date: Fri, 31 Jan 2003 08:34:20 -0800 Subject: problem with services file. Message-ID: <1044030860.3e3aa58c3f7e9@www.live2think.com> Did you rtfm? Quoting Ryan Cochrane : > Hi guys, sorry to bother you > > I have finally got most of it working with auto and all! > > I keep getting this error when i go to start it; > > > Error: Invalid object definition type 'service(' in file > '/usr/local/nagios/etc/services.cfg' on line 21. > > > define host{ > use generic-host ; > > host_name weig > alias Naigos Monitoring #1 > address 203.31.71.22 > check_command check-host-alive check_http check_smtp > max_check_attempts 10 > notification_interval 120 > notification_period 24x7 > notification_options d,u,r > } > > > any pointers would be really good, ive been playin with it for 3 hours now. > :/ > > > > ------------------------------------------------------- > 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 > -- Stan Tichomirov UNIX Systems Administrator http://live2think.com ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From mhorst at cobaltgroup.com Fri Jan 31 18:20:55 2003 From: mhorst at cobaltgroup.com (Horst, Morgan) Date: Fri, 31 Jan 2003 09:20:55 -0800 Subject: check_smtp problems Message-ID: I am new to Nagios, and recently got my configuration working. Upon the initial set up I intentionally configured one of my hosts to NOT pass the one of it's service checks. For some reason Nagios is reporting that the results of the "check_smtp" plugin are "OK", even though "Connection refused by host" is what is returned to the command line. When I originally set this up, I received a "Critical" error (which is what I want), when the check returned "Connection refused by host". I'm not sure why it is now reporting that the status is "OK". I have not changed the parameters being passed to "check_smtp", nor have I changed the version of the plugin. Can anyone tell me what I might be doing wrong? check_smtp Version info: check_smtp (nagios-plugins 1.3.0-beta2) 1.8 -------------- next part -------------- An HTML attachment was scrubbed... URL: From slebrun at muskoka.com Fri Jan 31 19:33:49 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Fri, 31 Jan 2003 13:33:49 -0500 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: References: Message-ID: 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 From nagios.dm at wrhambrecht.com Fri Jan 31 19:59:17 2003 From: nagios.dm at wrhambrecht.com (DM) Date: Fri, 31 Jan 2003 10:59:17 -0800 Subject: Stange problem checking https Message-ID: <001b01c2c95a$db52ee00$bb20a8c0@corp.wrhambrecht.com> 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 -------------- next part -------------- An HTML attachment was scrubbed... URL: From jnichols at pbp.net Fri Jan 31 21:04:57 2003 From: jnichols at pbp.net (Jonathan Nichols) Date: Fri, 31 Jan 2003 12:04:57 -0800 (PST) Subject: checks happening twice? Message-ID: Hrm, it's doing the FTP check twice.. Jan 31 11:49:16 www proftpd[7487]: ftp.pbp.net (dumpster.pbp.net[192.168.10.124]) - FTP session opened. Jan 31 11:49:16 www proftpd[7487]: ftp.pbp.net (dumpster.pbp.net[192.168.10.124]) - FTP session closed. Jan 31 11:54:15 www proftpd[7524]: ftp.pbp.net (dumpster.pbp.net[192.168.10.124]) - FTP session opened. Jan 31 11:54:15 www proftpd[7524]: ftp.pbp.net (dumpster.pbp.net[192.168.10.124]) - FTP session closed. But, it's only listed 1 time in the services.cfg file. It's not checking other services twice. Only 1 Nagios process is running. Nagios 1.0, under Linux. Anything in particular I should check for? Thanks! -Jonathan ------------------------------------------------------- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com From robin_brown at totalcomm.com Fri Jan 31 21:10:58 2003 From: robin_brown at totalcomm.com (Robin Brown) Date: Fri, 31 Jan 2003 15:10:58 -0500 Subject: OT - Sendpage and Arch Wireless In-Reply-To: <20030130222635.GF12604@soja.ksnet.com.> References: <20030130222635.GF12604@soja.ksnet.com.> Message-ID: <008a01c2c964$deb80670$0bb0a8c0@rbrown> Got it working. I found that my syslog.conf did not have any entry for local6, the facility that sendpage uses by default. Once I set that correctly and ran in debug mode, I got a lot more info in the log. It became very apparent that the daemon was indeed making a good connection to Arch and the real problem was with the operator and an invalid recipient alias :) Thanks to every one for the assistance! -Robin -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell Adams Sent: Thursday, January 30, 2003 5:27 PM To: nagios-users at lists.sourceforge.net Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless On Thu, Jan 30, 2003 at 05:07:46PM -0500, Robin Brown wrote: > ..snip..filter.. > Arch pc definition: > [pc:archwireless] > debug = true > page-daemon = netmon at p2pa.com > phonenum= 8604730000 > maxpages=12 > maxchars=300 > stricttap=true > lfok=true > answerwait=10 > > [modem:sportster] > debug = true > data = 7 > parity = even > stop = 1 > flow = rts > baud = 2400 > dev = /dev/modem > init = ATL1M0E1V1X4S11=50 > dialout="8," Have you tried the "rundelay" parameter, and setting stricttap=false? Russell > > Most of this is default, it also reflects my attempt to use your init > string. > > Thanks again. > > -Robin > > -----Original Message----- > From: Russell Adams [mailto:RLAdams at Kelsey-Seybold.com] > Sent: Thursday, January 30, 2003 4:35 PM > To: Robin Brown > Cc: nagios-users at lists.sourceforge.net > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > What is your sendpage.cf look like for the modem definitions and such? > > I'll give you some samples from mine below. > > BTW, please include your replies on the list to maintain continuity. > > Russell > > > Samples from sendpage.cf for Arch (formerly Mobilcomm): > > [modem:multitech_01] > data = 7 > parity = even > stop = 1 > flow = rts > baud = 1200 > dev = /dev/modem1 > init = ATL1M0E1V1X4S11=50 > > [pc:MobilCommLocalOnly] > rundelay=5 > phonenum= 713-781-5116 > maxchars= 230 > > [recip:rladams] > dest= 1234567890 at MobilCommLocalOnly > > > > On Thu, Jan 30, 2003 at 03:56:32PM -0500, Robin Brown wrote: > > Oh, I certainly hope so. Arch support basically told me to contact my > > software vendor. See below: > > > > Jan 29 13:20:10 proxy sendpage[3383]: starting Queue Manager (sendpage > > v0.9.14) > > Jan 29 13:20:10 proxy sendpage[3383]: starting SNPP listeners > > Jan 29 13:20:27 proxy sendpage[3386]: > archwireless/q104386442703386000: > > state=Queued, to=robin at archwireless, > > from=sendpage at mydomain.com(localhost), size=5 > > Jan 29 13:20:58 proxy sendpage[3384]: Dropping bad char 0x0A > > Jan 29 13:20:58 proxy sendpage[3384]: immediate disconnect requested! > > Jan 29 13:21:00 proxy sendpage[3384]: > archwireless/q104386442703386000: > > state=Temp-Failure, to=robin at archwireless, from=sendpage@ > mydomain.com, > > size=5, PC='{0x0A}Too Slow - Good Bye{0x0A}'{0x0A} > > > > Here is the debug output of sendpage initializing: > > > > (3471: debug) found listing for pc: archwireless > > (3471: debug) Locking with '/var/lock/LCK..modem' ... > > (3471: debug) Modem 'sportster' setting 'Baud': '2400' > > (3471: debug) Modem 'sportster' setting 'Parity': 'even' > > (3471: debug) Modem 'sportster' setting 'Data': '7' > > (3471: debug) Modem 'sportster' setting 'Stop': '1' > > (3471: debug) Modem 'sportster' setting 'Flow': 'rts' > > (3471: debug) Modem 'sportster' setting 'Init': 'ATZ' > > (3471: debug) Modem 'sportster' setting 'InitOK': 'OK' > > (3471: debug) Modem 'sportster' setting 'InitWait': '4' > > (3471: debug) Modem 'sportster' setting 'InitRetry': '2' > > (3471: debug) Modem 'sportster' setting 'Error': 'ERROR' > > (3471: debug) Modem 'sportster' setting 'Dial': 'ATDT' > > '3471: debug) Modem 'sportster' setting 'DialOK': 'CONNECT.* > > (3471: debug) Modem 'sportster' setting 'DialWait': '60' > > (3471: debug) Modem 'sportster' setting 'DialRetry': '3' > > (3471: debug) Modem 'sportster' setting 'NoCarrier': 'ERROR|NO > > CARRIER|BUSY|NO DIAL|VOICE' > > (3471: debug) Modem 'sportster' setting 'CarrierDetect': 'on' > > (3471: debug) Modem 'sportster' setting 'DTRToggleTime': '0.5' > > (3471: debug) Modem 'sportster' setting 'LongDist': '1' > > (3471: debug) Modem 'sportster' setting 'DialOut': '8,' > > (3471: debug) baud requested: '2400' baud set: '2400' > > (3471: debug) parity requested: 'even' parity set: 'even' > > (3471: debug) databits requested: '7' databits set: '7' > > (3471: debug) stopbits requested: '1' stopbits set: '1' > > (3471: debug) flow requested: 'rts' flow set: 'rts' > > (3471: debug) reseting DTR ... > > (3471: debug) forcing RTS ... > > (3471: debug) to send: ATZ{0x0D} > > (3471: debug) want: OK > > (3471: debug) kicker: ATZ{0x0D} > > (3471: debug) timeout: 4 retries: 2 > > (3471: debug) have: > > (3471: debug) wrote: 4 ATZ{0x0D} > > (3471: debug) 4 seen: ATZ{0x0D} > > (3471: debug) have: ATZ{0x0D} > > (3471: debug) 6 seen: {0x0D}{0x0A}OK{0x0D}{0x0A} > > (3471: debug) have: ATZ{0x0D}{0x0D}{0x0A}OK{0x0D}{0x0A} > > (3471: debug) chat success: OK > > (3471: debug) Modem Object 'sportster' being destroyed > > (3471: debug) unlocking Modem 'sportster' > > (3471: debug) Modem Object 'sportster' destroyed > > (3471: debug) found functioning modem: sportster > > > > I seem to only be able to connect to this PC at 2400,7,e,1. When I > use > > minicom, I get the ID= string just fine. I have turned debug=true > > everywhere possible in the sendpage.cf file, yet this is the only > output > > I get in the messages file? > > > > Any help is greatly appreciated! > > > > -Robin > > > > > > -----Original Message----- > > From: nagios-users-admin at lists.sourceforge.net > > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Russell > > Adams > > Sent: Thursday, January 30, 2003 2:53 PM > > To: nagios-users at lists.sourceforge.net > > Subject: Re: [Nagios-users] OT - Sendpage and Arch Wireless > > > > I use Arch with Sendpage, and previously Qpage. > > > > What exactly is the problem you're having? > > > > I've worked many problems with Arch tech support, and I support about > > 500 > > pagers. Perhaps I've already seen the problem you're having. ;] > > > > Russell > > > > On Thu, Jan 30, 2003 at 01:33:08PM -0500, Robin Brown wrote: > > > Looking for someone else using Arch for modem paging. I'm trying to > > use > > > modem paging with my installed and working Nagios server but I'm > > having > > > some issues and not finding too much help available. The problem > > seems > > > to lie in the communication with Arch. > > > > > > I'd appreciate it if anyone using this could contact me. > > > > > > > > > Thanks and regards, > > > Robin > > > > > > > > > > > > > > > ------------------------------------------------------- > > > 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 slebrun at muskoka.com Fri Jan 31 21:32:30 2003 From: slebrun at muskoka.com (Shayne Lebrun) Date: Fri, 31 Jan 2003 15:32:30 -0500 Subject: attempt recovery on service CRITICAL with nrpe In-Reply-To: References: Message-ID: Ok. Just for fun, I faked it using check_by_ssh. In the service defintion: event_handler reboot-remote-sillydaemon Then in the checkcommand entry: command_line command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -C '/usr/local/nagios/eventhandlers/restart-sillydaemon $SERVICESTATE$ $STATETYPE$ $SERVICEATTEMPT$' And that runs a typical eventhandler script, which looks for, in this case, and UNKNOWN SOFT 2 state, then tries to restart the daemon in question. The only thing is getting it to return something so the check_by_ssh doesn't go 'critical - timeout' in ten seconds. But the daemon gets restarted, so that's good enough. -----Original Message----- From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-admin at lists.sourceforge.net]On Behalf Of Shayne Lebrun Sent: Friday, January 31, 2003 1: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 From r1p6os402 at sneakemail.com Fri Jan 31 22:10:52 2003 From: r1p6os402 at sneakemail.com (Steve Bonds) Date: Fri, 31 Jan 2003 13:10:52 -0800 (PST) Subject: Caching SNMP Info In-Reply-To: <9EA0F1554816EB499A4B1136B80E8DE2780499@storevis.datavis.se> References: <9EA0F1554816EB499A4B1136B80E8DE2780499@storevis.datavis.se> Message-ID: <19682-32687@sneakemail.com> On Fri, 31 Jan 2003, [iso-8859-1] Fredrik W?nglund Fredrik.Wanglund-at-datavis.se |Nagios| wrote: > I changed the line > #define DEFAULT_MIBLIST "ALL" > to > #define DEFAULT_MIBLIST "NONE" > in check_snmp.c (the normal plugin) and recompiled. Now no mibs are > loaded by default. > > The load on my server dropped from around 5-6 to 0-0.5! I believe it! Defaulting to "ALL" is unwise, particularly on a system which might have many MIBs in that directory. With all the MIBs I have loaded an "snmpwalk -m all public sysdescr" takes about 15-20s of CPU-pegged time. The plugin I'm using (a hacked-up version of the contrib script check_snmp_disk_monitor.pl by Al Tobey) wisely only loads the two MIBs it needs. (Al's original only loaded the one MIB it needed.) My concern with caching has less to do with Nagios-side usage than with spamming my WAN with unnecessary SNMP traffic. (I.e. why should I re-send an SNMP request when I just made the same request 30s ago?) It's looking a lot like I just need to persistently cache the data received (and when) and only re-fetch if the data is stale. -- Steve ------------------------------------------------------- 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 Jan 31 17:50:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 31 Jan 2003 10:50:30 -0600 Subject: Alternative notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13D6@PKDWB03C.ad.sprint.com> Check out Jabber and/or do a search for Yahoo on sourceforge.net. 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 jcarro10 at sprintspectrum.com Fri Jan 31 17:59:30 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 31 Jan 2003 10:59:30 -0600 Subject: Alternative notifications Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13D8@PKDWB03C.ad.sprint.com> I just realized something. If you have no Internet connection, how do you plan to make any sort of Yahoo Messenger solution work? 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 jcarro10 at sprintspectrum.com Fri Jan 31 18:21:05 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 31 Jan 2003 11:21:05 -0600 Subject: problem with services file. Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB014E13DA@PKDWB03C.ad.sprint.com> Sounds like a bug. Not sure if the current CVS version has the fix. jc > -----Original Message----- > From: Michael T. Halligan [mailto:michael at halligan.org] > Sent: Thursday, January 30, 2003 9:37 PM > To: Carroll, Jim P [Contractor] > Cc: 'Ryan Cochrane'; nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] problem with services file. > > > = 1) I've never had any problems with using tabs in object > definitions. If > = anything, I make sure my config files have tabs. I'd be > curious to know > = what error Michael had (and the usual version of > Nagios/platform/etc). > = Regardless, if you prefer spaces, then use spaces. > > I realize now that the errors I have weren't with using tabs in > object definitions per se, but when putting tabs in front of comments. > When correcting this, removing that leading tab, there's no problem. > > So, if I have an entry in a file that says > # This begins a definition > > upon an /etc/rc.d/init.d/nagios restart > > I'll receive this error : > > --------------------------------------------- > service nagios > Running configuration check... > Nagios 1.0b6 > Copyright (c) 1999-2002 Ethan Galstad (nagios at nagios.org) > Last Modified: 09-15-2002 > License: GPL > > Reading configuration data... > > Error: Unexpected token or statement in file > '/etc/nagios/hosts.cfg' on line 2. > > > ***> 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. > > failed - aborting restart. > --------------------------------------------- > > > This is on a redhat 7.3 box, with all the latest errata, > running the nagios 1.0b6 rpms, 2.4.18-4smp kernel. > ------------------------------------------------------- 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 Jan 31 18:17:37 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 31 Jan 2003 11:17:37 -0600 Subject: check_log script errors Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2533@PKDWB03C.ad.sprint.com> To find out the particulars of seek/tell, do a "man perlfunc" and search for "seek" or "tell". In a nutshell, 'tell' reports the current position that perl has within a file, and 'seek' effectively moves you to that byte offset in the file. Instead of copying the entire logfile to a temporary location (which is what check_log does), check_log2.pl will merely write the positional value (from 'tell') to a tempfile. Worst case scenario is that your seekfile will be log(n) + 1 of the size of your logfile. E.g., if your /var/log/messages is 1,000,000 bytes long, then your seek file will be 7 bytes long. This approach also has the advantage that you don't start each search from the beginning of the file, doing a bytewise comparison of things which have already been checked before. Here's what I'm using in my nrpe.cfg (or at least, the relevant lines for my Linux boxen - pardon the wordwrap): command[linux_log_warn]=/home/nagios/libexec/check_log2 -l /var/log/messages -s /home/nagios/.messages_warn.seek -p "WARN|Warn|warn|httpd.conf" command[linux_log_err]=/home/nagios/libexec/check_log3 -l /var/log/messages -s /home/nagios/.messages_err.seek -p "ERR|Err|err|PANIC|Panic|panic|File system full" -n " nrpe| sshd|httpd.conf" By now you're probably wondering a couple things. Allow me to jump ahead of you: 1) "What happened to the .pl extension?" I renamed the file. None of the other plugins show their extensions. If you don't want to rename it, you shouldn't need to. Your choice. 2) "What's this check_log3 plugin?" It's virtually an identical copy of check_log2. Here's a diff (explanation to follow): $ diff check_log2 check_log3 146c146 < exit $ERRORS{'WARNING'}; --- > exit $ERRORS{'CRITICAL'}; I effectively use check_log2 to report on 'warning' problems, and check_log3 to report on 'critical' problems. Ideally there would be a way to pass "-w" and/or "-c" on the command line so that the appropriate return code is evoked. I'm using a kludge, but it seems to do the trick. HTH. Let me know if you're still having problems. jc > -----Original Message----- > From: Daniel_Casey at jbhunt.com [mailto:Daniel_Casey at jbhunt.com] > Sent: Friday, January 31, 2003 9:34 AM > To: Carroll, Jim P [Contractor] > Cc: nagios-users at lists.sourceforge.net > Subject: RE: [Nagios-users] check_log script errors > > > > I guess I'm not understanding how to use the script. I type: > > ./check_log2.pl -l /tmp/down.log -p Warning > > I get "Seek file not specified." What does the -s do? > > I run this and it works: > > ./check_log2.pl -l /tmp/down.log -s /tmp/down.log.seek -p Warning > > Is the .seek file just a place-holder the script uses? I > read the comments > about > using the .seek file to check size...is the seek file a copy > of the logfile > that you > look at instead of the actual logfile? > > Thanks. again for the help! Script looks like it will work perfectly! > > ------------------------------------------------------- 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 Jan 31 20:27:31 2003 From: jcarro10 at sprintspectrum.com (Carroll, Jim P [Contractor]) Date: Fri, 31 Jan 2003 13:27:31 -0600 Subject: attempt recovery on service CRITICAL with nrpe Message-ID: <74D428BDBFD5D04CB54E84499ECA29DB2F2535@PKDWB03C.ad.sprint.com> 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