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