Re: [Nagios-users] TWO instances of Nagios on one server - possib le?
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Semir H. Sent: 24 January 2007 23:29 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] TWO instances of Nagios on one server - possible? Hi everyone, Would it be possible to run two instances on Nagios on one machine? The server would be Debian (with Apache). I want one Nagios instance to monitor one lot of hosts and the other to monitor a different lot of computers and they should be independent of each other. How would I go about doing this? Simply installing Nagios in two different locations and making Apache server each? Thanks Semir [John Longland] Semir I agree with the other posts. I don;t know your system / setup, but I would suggest your consider using different log-files for the 2 instances. I *accidently* ran more than one server at some stage and it caused havoc in my particular setup. You could'nt make out what was going on when reading the archive / log entries. Just a suggestion ;-) Best ! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios memory Leaks
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of [EMAIL PROTECTED] Sent: 24 January 2007 02:07 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios memory Leaks Dear Sir, I am writing to thank you for your valuable letter and say, > From: Tobias Klausmann <[EMAIL PROTECTED]> > Subject: [Nagios-users] Memory leaks > > Hi! > > (First off: if this should also go to nagios-devel, just yell at > me.) > I don't think so because it deals with the aspects of the implementation that are visible (and in fact, the letter doesn't propose detailed solutions). > Nagios 2.6 and 2.5 have memory leaks. They are not that big that > within hours your machine will be swapping, but they degrade > performance in other ways. > > First off, their approximate extent. > > 2.5 and 2.6 without perl cache have the smallest memory leaks. A > fairly busy Nagios server (hardware quoted below) with about 3000 > services on about 330 hosts will degrade from 330M used (that's > *not* Nagios alone) to 368M used in about 16 hours. Or about 2.4 > MB per hour. The very same machine behaves neutral if Nagios is > not running, so it's definitely Nagios itself. Do you mean: 2.5 and 2.6 Nagios with embedded Perl but without the Perl plugin cache option ? If so, the fault is not Nagios, but the embedded Perl implementation and or Perl. Your next paragraph suggest that this is plain vanilla Nagios without any Perl options to configure. Is that correct ? > > Activating the embedded Perl interpreter and -cache will increase > the amount of lost memory to about 5-6M per hour. In this case, > however, sometimes the memory usage snaps back, i.e. some of the > lost memory is collected. I've not yet found out what triggers > the reclaim. Still, over the course of hours, more and more > memory is lost. Still, it's roughly linear memory loss. > I have never witnessed memory being reclaimed after ePN leaks it. I can't conceive of the process memory size being reduced while the process is running (free() and friends only return the memory to the process heap). I think the leak is caused by the ePN implementation. I a hoping to trying some measurements with several pilot implementations to see what is the most promising way of doing this. ... (snip) Yep. I agree. The leak is bad. > The question that remains is, if this can (and will) be tackled > before 3.0 is released. A related question is if Nagios 3 will be > prone to the same problem. > Certainly it will if the current ePN implementation remains. If (pretty big if) I can provide you stuff to try are you willing to repeat your measurements on candidate implementations (wrt 2.5 or 2.6 code base) ? I am not sure of my willingness/energy quotient but if they look Ok, I may not have anything to show until March this year. > Any thoughts, ideas etc. are appreciated. > > Regards, > Tobias Yours sincerely. Morning !! I have been reading with interest about these memory leaks. I see you mention 2.5 & 2.6. Does this happen with 2.4 as well ?? Thanks !!! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Distributed Monitoring
Yes you can. Do a google for distributed monitoring. Basically it caomes down to having the one nagios configured as a slave. It then passes all its info to the main Nagios. The services that are monitored on the slave nagios, are configured as "passive" on the main Nagios., but the data is still displayed with all the other "active" check-data on the same screen. One thing that I did: Because the data from the slave gets passed on NOT on request but passively, if the slave nagios dies, the main will not know about it. So my slave-nagios is actively checked with a ping by the main-nagios. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Moayad Mohammad Sent: 22 January 2007 11:29 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Distributed Monitoring Dears, I have one nagios server working in my company, and I need to add another nagios server to monitor another servers in other subnets, I don't know if there's any solution to have 2 nagios servers(1 central nagios) and 1 monitor screen... it's mean the second server will send all check results to the central nagios. Thank you in advance Moayad Mohammad - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Adding buttons
Hi all !!! a Hearty 2007 to all !!! My Nagios system is standing in our call-center and I have a few servers spread out over a few venues. At one of the distant locations, I have a DNS server and at certain times I need to have an operator trigger some scripts on this DNS server. What I was hoping to do is add a button ( on the left-panel perhaps ) of my nagios screen. The operator must then click this and this can be used to trigger the scripts on the DNS server. Is there a way of adding buttons to the nagios display ?? Thanks John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios not executing sms script
I would suggest you put the script in /usr/local/nagios/libexec. This is where I put my script ( I also wrote my own script to do the SMS-ing ). Nagios dopes not have permissions into the /root -DIR. John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of edalB Sent: 12 January 2007 10:53 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios not executing sms script Hi all I have written my own sms script for notifications The script works 100% When I execute it manualy. But when I ask nagios to execute the script I get the following error in my log file. Jan 11 17:09:06 nagios-0 nagios: Warning: Attempting to execute the command "/root/sms.rb -m "* Nagios 2.6 *\n\nNotification Type: RECOVERY\n\nService: HTTP\nHost: 196.23.28.207\nAddress: 10.0.4.19\nState: OK\n\nDate/Time: Thu Jan 11 17:09:06 SAST 2007\n\nAdditional Info:\n\nHTTP OK HTTP/1.1 200 OK - 235 bytes in 0.002 seconds"" resulted in a return code of 126. Make sure the script or binary you are trying to execute actually exists... The script does exist. nagios-0 ~ # ls -la /root/sms.rb -rwxrwxrwx 1 nobody nobody 750 Jan 11 16:52 sms.rb This is how I also added the script into the commands.cfg file # 'notify-by-sms' command definition define command{ command_namenotify-by-sms command_line/root/sms.rb -m "* Nagios 2.6 *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC $\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTP UT$" } # 'notify-by-sms' command definition define command{ command_namehost-notify-by-sms command_line/usr/bin/sms.rb -m "* Nagios 2.6 *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState : $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" } Thank you - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] New condiguration not loading
Hi all !!! Just saw something very weird for the first time since I have installed my distributed Nagios system ( 2.4 ). ( Running on CentOS4.0 ) I needed to take out 2 hosts. But after taking them out of my minimal.cfg and restarting nagios, I still see that these hosts are been scanned ! Do I need to remove another file ?? Thanks ! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] (no subject)
Yip !! .htaccess was in the wrong DIR !! ( John hits himself on the head with a wet fish !! ) Thanks John -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Hugo van der Kooij Sent: 05 December 2006 15:27 To: 'nagios-users@lists.sourceforge.net' Subject: Re: [Nagios-users] (no subject) On Tue, 5 Dec 2006, John Longland wrote: > Wanting to get Nagvis going with my Nagios-system. > > I have installed it as they explain. When I hit it with my browser, > it does display half the page but complains about a username that > I have not supplied. And yet, it never asks me for one. Sounds like you need to fix your apache config to do the authentication properly as described in step 0. Hugo. -- [EMAIL PROTECTED] http://hvdkooij.xs4all.nl/ This message is using 100% recycled electrons. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] (no subject)
Hi all !!! Wanting to get Nagvis going with my Nagios-system. I have installed it as they explain. When I hit it with my browser, it does display half the page but complains about a username that I have not supplied. And yet, it never asks me for one. Has someone else hit this snag ??? Thanks !! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Check process
Hi all !!! Just been looking at the plugins in my ../libexec-DIR. ( I have Nagios 2.4 runing ) I found something to work with , but it looks like "the-long-way" Would like to put my problem together with a possible solution. Would like to know if there is a better way. Problem: I have a distributed Nagios system : One master; one slave. The master nagios is also my master time-server The slave-nagios is also my slave-time-server. I need to check the tnp-procs on both the servers. Possible solution: I see that there is a check_procs plugin. This however, only checks processes on the local machine. I can check for the ntp proc: ( On the master ) : check_procs -a ntpd With this command I cannot check if ntp is running on my slave-nagios. To do this, I'd have to define a new service-check on the main nagios, accepting info from the slave-nagios about the ntpd-service running there. This seems very cumbersome. I also see that there is a check_ntp, but this checks clock accuracies etc which I don't want at this stage. I just need to know if the ntpd is running. Is there a way I can check a proc on another machine ?? Thanks ! JOhn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Can only monitor localhost
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of J K Sent: 27 November 2006 14:34 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Can only monitor localhost I have installed Nagios 2.5 and everything seems OK except that the only host I can monitor is the localhost. I have added 2 other hosts to the configuration files, and although I see all 3 hosts in the "dashboard" it is only my localhost that is beeing monitored under all 3 hosts. (I can tell as the results for disk-space use, number of users and processors is identical for all 3 hosts, although I know that my disksize on each of the 3 hosts is different) _ Everyone is raving about the <http://us.rd.yahoo.com/evt=45083/*http://advision.webevents.yahoo.com/mailb eta> all-new Yahoo! Mail beta. [John Longland] Which plugin did you use ? As far as I know, some of the plugins only checks the local system ! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] statusmap background
Hi all Would like to change my 3D-display. Want to see if a white background doesn't make the display look a bit better. I generated a .png file that just is "white". Loaded it onto my nagios machine and converted it to .gd2 with /usr/bin/pngtogd2 /usr/bin/pngtogd2 blank.png blank.gd2 0 1 It created the gd2-file and I modified cgi.cfg and entered "blank.gd2" at statusmap_backrground. Restarted nagios and browsed to the 3D-dislay. Stil black !!! Does this setting ONLY refer to the "statusmap" or would it change the 3D-status background as well ?? Thanks ! JOhn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] 3D-display on Nagios
Hi all I'd like to use the 3D display on Nagios in my call-center. Got the basic display going and I can change the structure ( circle , tree etc ) 2 Questions. 1. I'd like to change to the type where I supply the coordinates. I have done the following: Created /usr/local/nagios/etc/hostextinfo.cfg containing entries for my hosts define hostextinfo{ host_name icon_image . . 3D-coords } Entered the following line in /usr/local/nagios/etc/cgi.cfg xedtemplate_config_file=/usr/local/nagios/etc/hostextinfo.cfg I have selected user-coordinates (0) for default_statusmap_layout default_statuswrl_layout in cgi.cfg When I restart nagios and view the 3D-display, it says that I have not created 3D-corrdinates. I thought I covered everything ?? ** 2. If I revert back to display type 3 ( eg ) I get the tree-display, but oh my goodness the colors looks awfull. Is this my browser ( konqueror ) ??? Thanks !! JOhn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] attributes file for check_radius_adv
Title: attributes file for check_radius_adv Hi all!! I've been using check_radius_adv for some time now on my nagios system and its been working well. I do need to send some more attributes up to the radius-server, though. running the help file ( check_radius_adv --help ) revieles that one can specify an attributes file with the "-a" switch and on eis refered to a "samplefile" for its format. This samplefile is very unhelpfull at the least. Anyone that can throw some light on its format ? I need to send a "Calling-Station-ID = 1" to the radius server. Thanks ! John - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] query a nagios server
Title: query a nagios server Hi all !!! Just had a thought about a functionality that I would LOVE to add to my nagios system. Currently, I can control, from the cell-phones of the field-personel, the status of their own notifications. i.e. they can activate or deactivate the notifications from nagios to themselves. I would like to add to those 2 commands, commands such as e.g. client1 My script must then query the status of "client1" from nagios. It will then be sent to the cell-phone issuing the query. The command processing is easy, but I haven't a clue at where to start to get any host-info from a nagios server together with the status of the services linked to that host. Am I dreaming to much here ! ?? ;-) Any pointers ? Thanks ! John - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notificatoni
Title: RE: [Nagios-users] SMS notificatoni -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Darbin Sent: 11 October 2006 12:26 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] SMS notificatoni Hi all has somebody implemented notification via SMS but not via INTERNET, but using any cell/gsm modem ??? What kind of equipment and soft did you use. regards Hi Darbin I have also used smstools. Works well. I have also made use of the facility that smstools has to receive sms'es. This enabled me to put control into CERTAIN of the staffs hands whereby they can deactivate sms-ing for THEMSELVES ( ONLY !!) if they are no longer on standby. They can then also activate sms-ing to themselves once they go onto standby again. Best ! John - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] SMS notifications to a cell phone
Title: RE: [Nagios-users] SMS notifications to a cell phone -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Andrea Gabellini Sent: 05 October 2006 18:28 To: Yogesh Hasabnis Cc: Nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] SMS notifications to a cell phone http://smstools.meinemullemaus.de/ Yogesh Hasabnis wrote: > Hi All, > > I am in the process of setting up nagios for monitoring key services in our > network setup. I have already tested and used the email method of sending > notifications using Sendmail as my relay host. I would be grateful if I get > some pointers for sending notifications using SMS to a cell number, in case > of service failures and recoveries. I went through the nagios docs. They > have mentioned quite a few options for using SMS as a notification method. > But it seems that one needs to subscribe to the services of a service > provider to use any of those options. And the service provider should be > providing services in your country/location. Is it possible to use this > notification without subscribing to any specific paid service ? > > I am extremely sorry if this question has already been answered before. > > Thanks In Advance > > Yogesh > > Yogesh I can help you to set up SMS'ing with a modem that has a SIM-card in. Obviously there will be costs involved with the SIM-card. Give me ahsout if you want to go that route. JOhn - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Distributed nagios system
Title: RE: [Nagios-users] Distributed nagios system -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Bryan Loniewski Sent: 27 September 2006 21:39 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Distributed nagios system > Message: 3 > Date: Wed, 27 Sep 2006 11:11:23 +0200 > From: John Longland <[EMAIL PROTECTED]> > Subject: [Nagios-users] Distributed nagios system > To: "'nagios-users@lists.sourceforge.net'" > > Message-ID: > <[EMAIL PROTECTED]> > Content-Type: text/plain; charset="iso-8859-1" > > Hi all !! > > I've had to implement a distributed systemand I have gone through some docs > I found on sourceforge. > > I'll briefly mention what I have done: > > slave nagios > 1. Installed the nsca pack > 2. put send_nsca.cfg -> /etc > 3. modified entry for ocsp_sommand in nagios,cfg > 4. enabled obesess over services > 5. enable_notifications set to 0 > 6. Defined a command called submit_check_result in my minimal.cfg > 7. Written submit_check_result script and placed it in ../libexec > > server side: > 1. Installed nsca pack > 2. nsca,cfg -> /usr/local/nagios/etc > 3. active service checks 1 for services checked from main nagios > set to 0 for service checked from slave nagios > 4. externetl commands checks enabled > 5. passive service checks enabled > 6. nsca -> /usr/local/nagios/bin > 7. check existance of /usr/local/nagios/var/rw/nagios.cmd > 8. wrote nsca script in /etc/xinetd.d > 9. added entry in /etc/services called NSCA > 10. restarted xinetd > > > Problem. > When I send info from slave to main nagios by hand, it is sent and > reported by the main nagios, correctly. > When I remove /usr/local/nagios/libexec/submit_check_result, I get an error > indicating that the slave > nagios is trying to execute a non-existing script. > When I re-instate the submit_check_result script, nothing happens. No error > in any log. > I do not see any attempt on the network ( tcpdump) that the slave is trying > to contact the main > nagios. > I have also added a little echo statement in the submit_check_result script > that writes to a file. A few questions: What version of nagios are you running? When you added the echo statement was IT the only thing in the script? or did you leave the rest of the script intact? What are the permissions of the directories, files of where your submit_check_result script is? Did you try running the script by hand as the user nagios runs under? PS: Give an example of what your submit_check_result script looks like. Hi Bryan !!! Thanks for your mail. I have since dicovered that the problem was the permissions of my send_nsca.cfg file !! For completeness: Version of nagios is 2.4 The echo statement was simply added with all other statements intact The permissions of the script files are readable and executable by anyone. It is owned by nagios:nagios. As I said above, I slipped up with not checking the send_nsca.cfg file !!! Thanks for your time, Bryan. Much appreciated John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Distributed nagios system
Title: Distributed nagios system Hi all !! I've had to implement a distributed systemand I have gone through some docs I found on sourceforge. I'll briefly mention what I have done: slave nagios 1. Installed the nsca pack 2. put send_nsca.cfg -> /etc 3. modified entry for ocsp_sommand in nagios,cfg 4. enabled obesess over services 5. enable_notifications set to 0 6. Defined a command called submit_check_result in my minimal.cfg 7. Written submit_check_result script and placed it in ../libexec server side: 1. Installed nsca pack 2. nsca,cfg -> /usr/local/nagios/etc 3. active service checks 1 for services checked from main nagios set to 0 for service checked from slave nagios 4. externetl commands checks enabled 5. passive service checks enabled 6. nsca -> /usr/local/nagios/bin 7. check existance of /usr/local/nagios/var/rw/nagios.cmd 8. wrote nsca script in /etc/xinetd.d 9. added entry in /etc/services called NSCA 10. restarted xinetd Problem. When I send info from slave to main nagios by hand, it is sent and reported by the main nagios, correctly. When I remove /usr/local/nagios/libexec/submit_check_result, I get an error indicating that the slave nagios is trying to execute a non-existing script. When I re-instate the submit_check_result script, nothing happens. No error in any log. I do not see any attempt on the network ( tcpdump) that the slave is trying to contact the main nagios. I have also added a little echo statement in the submit_check_result script that writes to a file. This way I can see that the script was executed. This does not happen which means the submit_check_result script is not executed. Can someone help , please ?? John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Slave nagios
Title: Slave nagios Hi all !!! I have a love-triangle-situation here and wherever there's a love-triangle, things gets messy I have 3 sites, lets call then A,B and C A has my Nagios monitor , monitoring machines on both the B & C networks. Some of the machines on network C I cannot monitor. ( Lets just say its politics and leave it at that !!! ) I can however see the unmonitored machines from my B-network. And I can see my B-netywork from my A network that has my Nagios. I was thinking to put up a "slave" nagios at B. This slave will then monitor to outstanding machines on C and this info can then be passed to the "main" nagios system at A. ( Hope that makes sense !!! ) Can this be done ? Thanks !!! John - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios 2.5
Title: RE: [Nagios-users] Nagios 2.5 Reading configuration data... Error: Command 'check-host-alive' has already been defined Error: Could not register command (config file '/etc/nagios/minimal.cfg', starti ng on line 76) ***> One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. [EMAIL PROTECTED] ~]# Thanks and Regards Kaushal Hi Chek that you don't have both "minimal.cfg" AND "checkcommands.cfg" uncommented. Both these contain command definitions. Best ! John - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Macro usage when sending SMS
Title: Macro usage when sending SMS Hi all !!! Just started as a Nagios user so I am new on the list. I have nagios running and I also have a basic structure in place for sending SMS'es ( using smstools ). I need to expand it now because I have many people that want to be notified of only selected system information. At this point in time, all contacts are sent ALL information. So , bottom line is, I need to diffrentiate based on $USERNAME$ as defined in my contacts. define command{ command_name notify-by-sms command_line /usr/local/nagios/libexec/send_sms $HOSTNAME$ $HOSTSTATE$ $USERNAME } And then in ../libexec , my "send_sms"-script looks as follows: ( This is how it looks CURRENTLY ) #!/bin/bash HOST = $1 STATE = $2 ../sms/smstools/scripts/sendsms 082111 "$HOST $STATE" ../sms/smstools/scripts/sendsms 08 "$HOST $STATE" [ entry for each cell-number ] I would like to make use of $USERNAME$ to control what gets sent to who. But, when I print the contents of $USERNAME$ in the script, it is either blank or it contains "-". I do have all my contacts defined in my ../minimal.cfg file OS = CentOS4.0 Nagios 2.4 smstools 2.2.4 a Pointer would be much appreciated ??? Thanks ! John Longland - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null