RE: [Nagios-users] services config for http
Did you run "check_http --help"? If you do, you'll see an option to pass a port number. You'll need to make sure your checkcommands.cfg is setup properly to allow for the passing of the port within your services.cfg. Todd > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Network Administrator > Sent: Tuesday, February 14, 2006 12:47 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] services config for http > > Is there an option to have check_http command check for http service on > non-standard ports (i.e. 80,1741,2002)? > > Nagios 1.3 RHFedoraCore 3 > /usr/local/nagios/etc/services.cfg > define service{ > use generic-service > host_name someserver > service_description HTTP > is_volatile 0 > check_period24x7 > max_check_attempts 3 > normal_check_interval 5 > retry_check_interval1 > contact_groups linux-admins > notification_interval 120 > notification_period 24x7 > notification_optionsw,u,c,r > check_command check_http > } > -- > Irwin Dulan II > Network Administrator > Fuller Theological Seminary > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Nagios Behaviors
Kai Reese wrote: Hey. Maybe I'm missing the scope of things, but where are repetetive iterations of PING a problem when you work with templates? I'm working in a much smaller scope here than Mark and I've wondered about repetetive service-entries as well, but I've come to the conclusion that by using templates I can avoid most of the problems that these multiple entries create, even more so when -as I understand is your problem- the only thing that changes are the contacts. I would however see problems with an overhaul of the way things are addressed at this moment for matters of portability and upgradability. I would imagine the hassle of defining 25*10 services is less than migrating all your hosts and service-definitions to a new setup/layout. Well, my thought was not to eliminate contacts from the services definition, but rather make it optional and pass the contact info from the host definition. This way I can create a single service for all or a large chunk of hosts with different contacts. If for some reason I want to exclude a user from a specific service on which they are a contact for the host, I would then override the inheritance from the host definition to use a specific contact or contact group. I don't have any particular need to do this so it seems a bit redundant to me to have to specify it within my service configuration which also causes me to configure the same service checks depending upon who should have access to them. Also, at this very moment, I'm wondering if services maybe support the 'contact' entries, since they also do work with the (undocumented) hostgroup_name entries. Wouldn't that solve most of your problems? Did I misunderstand your problem at some point or is what I just wondered exactly the solution you were asking to be implemented? Kai I wouldn't say it's a problem since I can work around it, but rather a question as to why the implementation would not allow for this. Is there a downside to making the contacts an inherited feature from the host and having the contact option within the service definition become optional rather than mandatory? Todd On 2/7/06, Todd Barbera <[EMAIL PROTECTED]> wrote: Hi Mark, I too had submitted an e-mail asking if passing the host properties along to the services would have some detrimental impact, but I didn't receive a reply. I agree that it would certainly make the services.cfg file much simpler to maintain if you didn't have to set up multiple services in order to create different views for various user groups. For instance, all my hosts are setup for PING. If I want notifications sent out to specific users for specific hosts, I have to have multiple iterations of PING in my services.cfg file. If I try to add all contacts to PING, then the see every host in the interface. This is not desirable since I only want them to see the hosts and services for which they have a stake in. I think this is a greater design question that may be best answered by Ethan, but if anyone else has thoughts on the matter I'd be happy to hear the response. Best regards, Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garringer, Mark Sent: Monday, February 06, 2006 9:07 PM To: 'Nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Nagios Behaviors This may be rather long, please bare with me. I am currently running Nagios 2.0rc2 with 451 hosts and 1733 services. I've recently upgraded from Netsaint (0.78b I think). During this upgrade I took the time to reexamine my configurations to take advantage of the grouping logic and regular expression features in Nagios. This help make the setup much easier, faster, and more consistent than it ever was under Netsaint. Kudos! All of the following assumes that I'm doing things to the best of my understanding, and if they are incorrect or misguided in some way, I'd be more than happy to discuss the 'correct' way of implementing these features. I'm starting to run into a few operational issues that I'd like to raise. One of the most annoying is that RECOVERY should actually have a state for EACH type of RECOVERY that can exist. That way, I'm not getting RECOVERY notices for WARNINGS that I didn't get in the first place (because I don't care about WARNINGS in most cases.). I should only ever get RECOVERY for states which I've already indicated I want to receive their corresponding original alert from. The other is that HOST level notification/check_periods should be inherited by any service being check on that HOST unless explicitly overridden. For example, I have a host with 10 services on it (checking disk space in various file systems, checking for certain named processes to be running) and it has a HOST level notification_period (maintenance window) from Saturday at 1
RE: [Nagios-users] Nagios Behaviors
Title: Message Hi Mark, I too had submitted an e-mail asking if passing the host properties along to the services would have some detrimental impact, but I didn’t receive a reply. I agree that it would certainly make the services.cfg file much simpler to maintain if you didn’t have to set up multiple services in order to create different views for various user groups. For instance, all my hosts are setup for PING. If I want notifications sent out to specific users for specific hosts, I have to have multiple iterations of PING in my services.cfg file. If I try to add all contacts to PING, then the see every host in the interface. This is not desirable since I only want them to see the hosts and services for which they have a stake in. I think this is a greater design question that may be best answered by Ethan, but if anyone else has thoughts on the matter I’d be happy to hear the response. Best regards, Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Garringer, Mark Sent: Monday, February 06, 2006 9:07 PM To: 'Nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Nagios Behaviors This may be rather long, please bare with me. I am currently running Nagios 2.0rc2 with 451 hosts and 1733 services. I've recently upgraded from Netsaint (0.78b I think). During this upgrade I took the time to reexamine my configurations to take advantage of the grouping logic and regular _expression_ features in Nagios. This help make the setup much easier, faster, and more consistent than it ever was under Netsaint. Kudos! All of the following assumes that I'm doing things to the best of my understanding, and if they are incorrect or misguided in some way, I'd be more than happy to discuss the 'correct' way of implementing these features. I'm starting to run into a few operational issues that I'd like to raise. One of the most annoying is that RECOVERY should actually have a state for EACH type of RECOVERY that can exist. That way, I'm not getting RECOVERY notices for WARNINGS that I didn't get in the first place (because I don't care about WARNINGS in most cases.). I should only ever get RECOVERY for states which I've already indicated I want to receive their corresponding original alert from. The other is that HOST level notification/check_periods should be inherited by any service being check on that HOST unless explicitly overridden. For example, I have a host with 10 services on it (checking disk space in various file systems, checking for certain named processes to be running) and it has a HOST level notification_period (maintenance window) from Saturday at 1800 till Sunday 1000. Every week. I don't want to, or need to know about service changes during these times. I'm the user, and I'm requesting a black out of notifications during this time. If there are (still) problems after 1000 on Sunday, I do need to know about them or take action. The best answers I can seem to find seem to be workarounds that will cause me more overall upkeep and/or are counter to the whole idea of using grouping logic to begin with. Creating a separate, non-dynamic cron offshoot to take care of this for me while functional requires me to basically go and define another list of items (and upkeep them) to deal with and is completely external to Nagios. Defining each service individually so that they all can have 1 host assigned to them so they can have different maintenance windows as needed is totally against the grouping logic and allows again for much easier divergence from a set standard. Having 25 linux machines all in a linux host group because I want to check 10 common services rocks. However, not all 25 servers will have the same (or even overlapping) maintenance windows, so creating 25*10 separate service entries instead of just 10 sucks eggs. Maintaining the maintenance window at the host level makes perfect sense to me. Creating more host groups doesn't seem like any better of a solution and will just make things more difficult to find under the Hostgroup sections of the web display. By not understanding something am I trying to use this in a way which it was never intended? This seem like a pretty logical feature to me, of course. Can anyone offer me advice? Thanks!
Re: [Nagios-users] new plugin?
www.nagiosexchange.org Todd - Original Message - From: "Roy Sigurd Karlsbakk" <[EMAIL PROTECTED]> To: Sent: Saturday, February 04, 2006 11:21 AM Subject: [Nagios-users] new plugin? hi i just wrote a simple STUN check plugin with vovida's stun client. where can i post this? it's located at http://karlsbakk.net/asterisk/ scripts/check_stun roy -- Roy Sigurd Karlsbakk [EMAIL PROTECTED] --- In space, loud sounds, like explosions, are even louder because there is no air to get in the way. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Monitoring a mail server
Maybe you should try check_proc instead. When you say localhost, I'm assuming you are referring to your Nagios server. Todd - Original Message - From: "Robert Fitzpatrick" <[EMAIL PROTECTED]> To: "Nagios" Sent: Tuesday, January 31, 2006 8:00 PM Subject: [Nagios-users] Monitoring a mail server I want to monitor Amavisd on localhost port 10024 with check_tcp, but if Amavisd is down, the notification will not make it. How can I monitor a localhost port? -- Robert --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Distributed servers and parenting
I don't run distributed, but I do use the parent option with hosts to point to the switch that they are behind. I see the parent/child relationship not so much from a visual perspective but more from a functional perspective. Since I don't want to get a zillion notifications if one of the switches fails, I set it up in this fashion. With regards to the status maps, I don't see that they provide a whole lot of functionality, but if you want to clean them up, perhaps you can try using Nagvis. I have it on my list of future add-ons. Todd > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Kyle Tucker > Sent: Friday, January 27, 2006 3:26 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Distributed servers and parenting > > Hi, > I have Nagios set up in distributed mode. I am > wondering if this should have a direct affect on how > parenting is set up. I think visually from the status > maps, it would look "right" to have the all clients have > the distributed monitor system be its parent and perhaps > have the central server be the parent of it, but I'm not > sure if this makes sense from a systems-link standpoint. > Any thoughts on this? > > -- > - Kyle > - > [EMAIL PROTECTED] http://www.panix.com/~kylet > - > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Graphing values from nagios
http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL Check out this install link. I believe you are missing some entries in nagios.cfg (assuming you are using nagiosgraph and not Nagiosgrapher). Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help. I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Graphing values from nagios Hi, Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.
RE: [Nagios-users] Graphing values from nagios
Did you install RRD? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help. I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl "$LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$" } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Toto Capuccino Sent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Graphing values from nagios Hi, Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.
Re: [Nagios-users] Oracle database plugging
check_proc can be used to monitor processes. With my Oracle databases, I use the check_oracle plugin instead to verify that the database is up. Also, I have check_log2 watching the alert log for any ORA- strings so I'll know if we hit an error. Be sure to set your max checks to 1 if you use this. Todd - Original Message - From: "AJROUD.ALI" <[EMAIL PROTECTED]> To: Sent: Thursday, January 26, 2006 7:23 AM Subject: [Nagios-users] Oracle database plugging Hi all, I look for a plug-in to oversee the Oracle database processes (ora_*) Nagios server and clients are AIX 5.2 Thanks for help. Best regards. == Ali AJROUD mail : [EMAIL PROTECTED] Atos Origin Infogérance Tél : +33 (0)1 46 14 48 99 IMS - Pôle Clients ERP GSM : +33 (0)6 74 08 73 28 Tour Horizon - 64 rue du 8 mai 1945 92025 Nanterre Cedex == --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 ___ 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ 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] Different notification types for warnings vs. criticals
> > I am not sure about it, but I think that recoveries are only send to > contacts > who received the alert. So, if you only get the "Critical alerts" on your > cell phone, you should only get the "Critical -> Ok" recoveries on it, not > the "Warning -> Ok" recoveries. > > Johan Johan is correct. I just had a warning condition come up and when it recovered, I received an e-mail and not a page to my cell. I am setup with two contact entries, one for warnings and one for criticals, so if my assumptions were correct I would have received the alert on my cell. Sorry if I caused any confusion, I should have tested before posting. Todd > > > Le Mercredi 18 Janvier 2006 23:30, Steve Shipway a écrit : > > > I do see a hole in this method, however. Since I also want > > > recoveries sent both for criticals and warnings, I can see > > > that our cell phones will receive both types of recoveries > > > since Nagios only knows that it is supposed to send c,r > > > notifications. > > > > This is a good point. Is it really true that, wiith notifications set > to > > 'c,r', you will also get recovery alerts for Warn->OK and not just for > > Crit->OK? If so, this will make the recovery alerts almost useless. > > > > Steve > > > > > > > > > > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files for problems? Stop! Download the new AJAX search engine that > makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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 > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > ___ > 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Different notification types for warnings vs. criticals
Hi, I'm running Nagios 2.0rc2 on a Solaris 9 server. I want to setup the notifications so that criticals get sent to our cell phones and warnings get sent to our e-mail accounts. I did some searching in the archives and I see that it is possible to get close to this by creating two contacts for each person, one for critical alerts, and one for warnings. I do see a hole in this method, however. Since I also want recoveries sent both for criticals and warnings, I can see that our cell phones will receive both types of recoveries since Nagios only knows that it is supposed to send c,r notifications. Now I know that a script can be written, but when I reviewed the list of macros, I didn't see one for last service state. If there was a macro of this type, then I could differentiate whether or not the recovery was from a warning or from a critical and send the appropriate notification type. Any ideas on this one? Thanks. Todd Barbera Systems Administrator WGBH Educational Foundation 617 300-3443 WGBH Boston informs, inspires, and entertains millions through public broadcasting, the Web, and educational multimedia, and access services for people with disabilities. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Checking Oracle services on Windows Servers
Then use check_oracle. You can either run it locally via an nrpe connection or you can run it directly from your Nagios server so long as you have the Oracle client installed. Todd > -Original Message- > From: Pavel Santos [mailto:[EMAIL PROTECTED] > Sent: Wednesday, January 18, 2006 9:25 AM > To: Todd Barbera; nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] Checking Oracle services on Windows Servers > > Todd, > > I'm just trying to check whether or not the database is up. > > Pavel > > > > ____ > > From: Todd Barbera [mailto:[EMAIL PROTECTED] > Sent: Wed 1/18/2006 9:07 AM > To: Pavel Santos; nagios-users@lists.sourceforge.net > Subject: RE: [Nagios-users] Checking Oracle services on Windows Servers > > > > What exactly are you trying to check for? check_oracle might be what you > are > looking for if you want to see if Oracle is up. There are a couple of > plugins on Nagiosexchange as well. > > Todd > > > -Original Message- > > From: [EMAIL PROTECTED] [mailto:nagios-users- > > [EMAIL PROTECTED] On Behalf Of Pavel Santos > > Sent: Wednesday, January 18, 2006 8:31 AM > > To: nagios-users@lists.sourceforge.net > > Subject: [Nagios-users] Checking Oracle services on Windows Servers > > > > Hello List, > > > > I think I asked this question before but I never received a response. > > Running Nagios 2.4 on FC4, what is the best way to check the Oracle > > services in a Windows 2000 and 2003 servers? > > > > Thanks, > > > > Pavel > > > > > > --- > > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > > files > > for problems? Stop! Download the new AJAX search engine that makes > > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > > ___ > > 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 > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Checking Oracle services on Windows Servers
What exactly are you trying to check for? check_oracle might be what you are looking for if you want to see if Oracle is up. There are a couple of plugins on Nagiosexchange as well. Todd > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Pavel Santos > Sent: Wednesday, January 18, 2006 8:31 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Checking Oracle services on Windows Servers > > Hello List, > > I think I asked this question before but I never received a response. > Running Nagios 2.4 on FC4, what is the best way to check the Oracle > services in a Windows 2000 and 2003 servers? > > Thanks, > > Pavel > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log > files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://sel.as-us.falkag.net/sel?cmd=k&kid3432&bid#0486&dat1642 > ___ > 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&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] Contact Groups in hosts.cfg and services.cfg
Hi, I'm running Nagios 2.0rc2 and I have a question as to the way contact_groups are implemented. Both the hosts.cfg (or equivalents) and the services.cfg require the contact_groups definition. Perhaps I am thinking about this wrong, but wouldn't it be better to make contact_groups optional in the services.cfg? The reason being is that if the services.cfg inherits the contact_groups from the hosts.cfg definitions, then you wouldn't need to define multiple services running the same checks but with different contact_group definitions. For instance, I want check_icmp to run against all hosts, however, I want to break up the notifications to various groups, I'd have to have multiple entries for the check_icmp in my services.cfg file to accommodate this. This wouldn't be necessary if the contact_groups were inherited from the hosts definitions. Am I correct in my assumptions? If not, how can I achieve a single definition with different contact_groups? If so, does it make sense to have contact_groups become an optional field or are there pitfalls that I am not considering? Regards, Todd --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ 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] Amavis
Try check_tcp and pass the port number. I use this to ensure remote ports are listening. Take down the daemon and you'll see that an alert is generated. Todd - Original Message - From: "Robert Fitzpatrick" <[EMAIL PROTECTED]> To: "Nagios" Sent: Friday, January 13, 2006 8:33 PM Subject: [Nagios-users] Amavis > Can Nagios monitor amavisd-new or a port in general like the amavis > 10024 port to make sure it is responding? > > -- > Robert > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > 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 > --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ 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] Failed NRPE compile on Solaris 9 sparc
Perhaps you should try specifying your include path to point to /usr/local/include. "-l/usr/local/include". Since you're using the GNU versions of the compiler tools, I would think you would want to use the GNU include directories instead of the default Solaris directories, although I haven't had to do this when I've compiled NRPE on Solaris 9. You may also want to check your LD_LIBRARY_PATH settings, either through the environment variable or by using "crle". Todd > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Ayotunde Itayemi > Sent: Tuesday, December 20, 2005 7:25 AM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] Failed NRPE compile on Solaris 9 sparc > > Hi All, > > I am trying to compile NRPE on a Solaris server but I am getting lots of > errors: > > My platform > Solaris 9, gcc 3.4.2, libgcc 3.4.1, GNU make 3.80 (also tried Solaris > make), NRPEv2.0b4 > > During the configure command run, I noticed the following line: > > checking for u_int32_t... no > > > It then throws an error during the "make all" run > > > > [EMAIL PROTECTED] # make all > cd ./src/; make ; cd .. > make[1]: Entering directory `/var/nrpe-2.0b4/src' > gcc -g -O2 -DHAVE_CONFIG_H -o nrpe -lnsl -lsocket nrpe.c utils.c > In file included from > /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/include/sys/ > types.h:45, > from /usr/include/strings.h:11, > from ../common/config.h:74, > from ../common/common.h:24, > from nrpe.c:21: > /usr/include/sys/int_types.h:69: error: conflicting types for 'int32_t' > ../common/config.h:54: error: previous declaration of 'int32_t' was here > In file included from nrpe.c:22: > ../common/config.h:53: error: redefinition of typedef 'u_int32_t' > ../common/config.h:53: error: previous declaration of 'u_int32_t' was > here > ../common/config.h:54: error: conflicting types for 'int32_t' > /usr/include/sys/int_types.h:69: error: previous declaration of > 'int32_t' was he > re > ../common/config.h:54: error: conflicting types for 'int32_t' > /usr/include/sys/int_types.h:69: error: previous declaration of > 'int32_t' was he > re > In file included from utils.h:35, > from nrpe.c:24: > ../common/config.h:53: error: redefinition of typedef 'u_int32_t' > ../common/config.h:53: error: previous declaration of 'u_int32_t' was > here > ../common/config.h:53: error: redefinition of typedef 'u_int32_t' > ../common/config.h:53: error: previous declaration of 'u_int32_t' was > here > ../common/config.h:54: error: redefinition of typedef 'int32_t' > ../common/config.h:54: error: previous declaration of 'int32_t' was here > ../common/config.h:54: error: conflicting types for 'int32_t' > /usr/include/sys/int_types.h:69: error: previous declaration of > 'int32_t' was he > re > In file included from > /usr/local/lib/gcc/sparc-sun-solaris2.9/3.4.2/include/sys/ > types.h:45, > from /usr/include/strings.h:11, > from ../common/config.h:74, > from ../common/common.h:24, > from utils.c:32: > /usr/include/sys/int_types.h:69: error: conflicting types for 'int32_t' > ../common/config.h:54: error: previous declaration of 'int32_t' was here > In file included from utils.h:35, > from utils.c:33: > ../common/config.h:53: error: redefinition of typedef 'u_int32_t' > ../common/config.h:53: error: previous declaration of 'u_int32_t' was > here > ../common/config.h:54: error: conflicting types for 'int32_t' > /usr/include/sys/int_types.h:69: error: previous declaration of > 'int32_t' was he > re > ../common/config.h:54: error: conflicting types for 'int32_t' > /usr/include/sys/int_types.h:69: error: previous declaration of > 'int32_t' was he > re > make[1]: *** [nrpe] Error 1 > make[1]: Leaving directory `/var/nrpe-2.0b4/src' > > *** Compile finished *** > > If the NRPE daemon and client compiled without any errors, you > can continue with installation. The NRPE daemon and client > binaries are located in the src/ subdirectory. > > ** If this is your monitoring host ** > > - Copy the check_nrpe client to the directory that >contains your Nagios plugins. > - Create a command definition in your Nagios config >file for the NRPE client. See the README file for >more info on doing this. > > ** If this host will be running the NRPE daemon ** > > - Copy the nrpe daemon to /usr/sbin, /usr/local/nagios >or wherever you feel it fits best. > - Copy the sample nrpe.cfg config file to /etc, >/usr/local/nagios or wherever you feel it fits best. > - Modify the /etc/services file and configure NRPE to >run under inetd, xinetd, or as a standalone daemon. >See the README file for more info on doing this. > > [EMAIL PROTECTED] # > > > > > Ayotunde Itayemi | Business Systems | IS-SYSTEMS | IS Group | > 080222
Re: [Nagios-users] CPu consumption too high
Given that your CPU's are showing 97 and 99 percent usage by system resources, it sounds like an OS process is chewing up your CPU. Have you run "top" or another similar utility? sar, iostat, and vmstat are useful tools for helping track down performance issues. I know these are available on Solaris, but I can't speak for other *nix servers. Also, since your server has been running for over a year, there's a good chance you're well behind on your OS patch levels. It could be you've hit some sort of bug within your OS. Todd - Original Message - From: Guillaume RENARD To: nagios-users@lists.sourceforge.net Sent: Friday, December 09, 2005 4:52 AM Subject: [Nagios-users] CPu consumption too high Hello All,I use Nagios 2.0b5 and I have only 210 services.The problem is that my server is running out of ressource 10:42:05 up 423 days, 19:36, 3 users, load average: 8.18, 7.29, 6.54But nagios don't use so much ressource : 10:42:35 up 423 days, 19:37, 3 users, load average: 8.63, 7.47, 6.6294 processes: 85 sleeping, 9 running, 0 zombie, 0 stoppedCPU0 states: 0.0% user 99.4% system 0.0% nice 0.0% iowait 0.1% idleCPU1 states: 2.1% user 97.4% system 0.0% nice 0.0% iowait 0.0% idleMem: 1547392k av, 1536372k used, 11020k free, 0k shrd, 496k buff 440520k actv, 424k in_d, 13256k in_c Swap: 2040244k av, 1496k used, 2038748k free 570160k cached PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME CPU COMMAND22562 nagios 25 0 1312 1312 784 R 23.9 0.0 0:04 1 nagios22570 nagios 25 0 464 464 400 D 23.5 0.0 0:03 0 check_snmp22569 nagios 25 0 444 444 388 R 22.4 0.0 0:03 1 urlize22568 nagios 25 0 468 468 400 R 18.9 0.0 0:05 0 check_snmp22577 nagios 25 0 528 528 468 R 15.9 0.0 0:00 0 check_ping22565 nagios 25 0 484 484 416 S 4.2 0.0 0:04 1 urlize21191 nagios 15 0 1268 1268 740 S 0.0 0.0 0:15 0 nagios22390 nagios 24 0 1312 1312 784 S 0.0 0.0 0:00 0 nagios22391 nagios 21 0 1288 1288 976 S 0.0 0.0 0:06 1 apan.sh22558 nagios 25 0 2344 2344 1400 S 0.0 0.1 0:02 0 check_snmp222560 nagios 24 0 1312 1312 784 S 0.0 0.0 0:00 0 nagios22564 nagios 24 0 1312 1312 784 S 0.0 0.0 0:00 0 nagios22567 nagios 25 0 1312 1312 784 S 0.0 0.0 0:00 1 nagiosI am using apan with nagios but it shouldn't take so many ressource.Does someone have an idea please ?-- Guillaume RENARDhttp://glmrenard.free.fr
RE: [Nagios-users] check_ssmtp (check_tcp) SSL Errors
I have 1.4.1 of the plugins and it was included in the distribution. I checked the REQUIREMENTS file and didn’t see any prereqs for getting it to compile and install. I do use check_tcp to verify that our Meeting Maker software is listening on the proper port, so that’s probably a valid option. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Pearson Sent: Thursday, December 08, 2005 3:15 PM To: 'Todd Barbera'; 'nagios-users@lists.sourceforge.net' Subject: RE: [Nagios-users] check_ssmtp (check_tcp) SSL Errors Todd, I don't have that plugin in my listing, which I thought was kind of odd but I guess that check_ssmtp = Secure SMTP. Further research has found that the check_ssmtp plugin is the check_tcp plugin yet forces the -S (SSL) check. Which explains a lot. I guess I could just use check_tcp unless someone can tell me where to get check_smtp from, since I thought I downloaded the latest version of the nagios plugins. -Mark From: Todd Barbera [mailto:[EMAIL PROTECTED] Sent: Thursday, December 08, 2005 3:10 PM To: 'Mark Pearson'; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] check_ssmtp (check_tcp) SSL Errors Why not use check_smtp instead? I don't think port 25 is an SSL port within sendmail, although I'm no sendmail expert. I use check_smtp in my configuration and it works fine. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Pearson Sent: Thursday, December 08, 2005 3:04 PM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] check_ssmtp (check_tcp) SSL Errors Hi everyone, I am up to adding our mail servers to our nagios monitoring list and hit a roadblock with monitoring sendmail. I have tried using the following command at the cmdline: ./check_ssmtp -w 5 -c 10 -H mail -p 25 But I get the following error message: CRITICAL - Cannot make SSL connection 29889:error:140770FC:SSL Routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475: I can connect to mail from the Nagios monitor via port 25 and I have also added the host to the sendmail access file. Apparently I am missing something, ideas? BTW, we have our mail servers clustered so we need to monitor this port vs. the actually service since the sendmail service is running on the active node, thus we cannot use check_nrpe. Thoughts anyone? *** The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. *** *** The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ***
RE: [Nagios-users] check_ssmtp (check_tcp) SSL Errors
Why not use check_smtp instead? I don’t think port 25 is an SSL port within sendmail, although I’m no sendmail expert. I use check_smtp in my configuration and it works fine. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Mark Pearson Sent: Thursday, December 08, 2005 3:04 PM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] check_ssmtp (check_tcp) SSL Errors Hi everyone, I am up to adding our mail servers to our nagios monitoring list and hit a roadblock with monitoring sendmail. I have tried using the following command at the cmdline: ./check_ssmtp -w 5 -c 10 -H mail -p 25 But I get the following error message: CRITICAL - Cannot make SSL connection 29889:error:140770FC:SSL Routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:475: I can connect to mail from the Nagios monitor via port 25 and I have also added the host to the sendmail access file. Apparently I am missing something, ideas? BTW, we have our mail servers clustered so we need to monitor this port vs. the actually service since the sendmail service is running on the active node, thus we cannot use check_nrpe. Thoughts anyone? *** The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. ***
RE: [Nagios-users] check_disk_smb failing
It needs to be defined in your checkcommands.cfg or misccommands.cfg before you define it in your services.cfg. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Patrick Rutkowski Sent: Thursday, December 08, 2005 10:51 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_disk_smb failing I have both check_http and check_disk_smb in /usr/lib/nagios/plugins. If I try to load a services.cfg with "check_command" set to "check_http", things work fine; however, trying "check_disk_smb" fails with: Error: Service check command 'check_disk_smb' specified in service 'WikiDB/Jason' for host 'jason' not defined anywhere! What should I do? --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick ___ 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ 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 Luck with Apache and Nagios
Title: No Luck with Apache and Nagios Did you try compiling Apache from source? If not, give that a shot. You might be tripping up on an older config. Also, you could try the default config files if they are still there. httpd-std.conf would be the file name. Start Apache with just the default config file just to make sure it starts and then add your changes. Todd - Original Message - From: Eric X. Holzapfel To: Nagios-users@lists.sourceforge.net Sent: Wednesday, December 07, 2005 8:04 PM Subject: [Nagios-users] No Luck with Apache and Nagios _ Hello List, I am trying to run Nagios 2.0b5 on RH Fedora 4 with apache 2.0.54 I can start nagios ok, and both the v, -s, and status report ok. The nagios.log file reports startup and monitoring info ok. The problem is with apache. I am completely unable to use apache. If I try to put these lines in my httpd.conf file, apache errors with a warning, that the alias wont work because there is an earlier alias and script alias, etc. ScriptAlias /nagios/cgi-bin/ /usr/local/nagios/sbin/ AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all And Alias /nagios/ /usr/local/nagios/share/ Options None AllowOverride AuthConfig Order allow,deny Allow from all Any ideas? When I try to go to http://localhost/nagios I get page not found, etc Thanks, eric
Re: [Nagios-users] Strange contact group behavior in 2.0b3
Maybe you should try upgrading to 2.0b6. The change log shows one fix for hostgroups, but it didn't sound like an exact fit. At least you'll have the latest fixes even if the problem persists and you'll be able to eliminate the possibility that your issue may have been addressed in a newer release. Todd - Original Message - From: "Benjamin Rutter" <[EMAIL PROTECTED]> To: Sent: Wednesday, December 07, 2005 6:58 PM Subject: [Nagios-users] Strange contact group behavior in 2.0b3 I'm running Nagios v2.0b3 and have a strange problem with contact groups Here is a breakdown of the issues: - I create 2 contacts, one called 'brutter' and another 'tward' - I then create a contact group called 'TRMStaff' and add both users - Any service I set the contact group of 'TRMStaff' to works flawlessly - Any host I set the contact group of 'TRMStaff' to works flawlessly So at this point, all is well...then the strange part - I create a new contact called 'lgroup' - I then create a contact group called 'LG' and add the 'lgroup' user - Any service I set the contact group of 'LG' to works fine AS LONG AS the HOST of that service is set to 'TRMStaff' as the contact group. If I have a host with contact group 'TRMStaff' and a service of that host with contact group 'LG', everything works as it should. As soon as I change the contact group on the host to 'LG', that host disappears from the list of hosts in the GUI and alerts are not generated for the hosts OR the services related to that host. I have tried creating multiple groups with all sorts of different names and assigning different users to no avail I need to be able to have the 'LG' contact group assigned to both HOSTS and it's corresponding services. I have checked the syntax up and down a hundred times and everything seems to be on point. Is there anything illegal in the group or contact names that I've chosen? Any suggestions out there??? This is killing me... --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick ___ 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ 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] Limiting Views of Hosts
Yes. Set them up as a contact and only include them on the hosts you want them to see. Here's an example of one of my host configuration files: # 'acsdb' host definitiondefine host{ use sunservers host_name acsdb alias acsdb address 192.168.40.40 contact_groups sys-admins,localonline } 'sys-admins' is setup for everything. 'localonline' only gets a subset of hosts that those folks are concerned with. Todd - Original Message - From: Joseph Hardeman To: nagios-users@lists.sourceforge.net Sent: Thursday, December 01, 2005 7:18 PM Subject: [Nagios-users] Limiting Views of Hosts Hi Everyone,I am wondering if there is a way to allow people who login to only view a specific set of hosts. This way I can have one Nagios system checking multiple clients but the clients can only see thier hosts and thier host results. I am running the newest version 2.0b6.Thanks in advance.Joseph
Re: [Nagios-users] Dealing with unwanted questions (was: trouble getting started...)
I think this section of the documentation says it all: Advice for Beginners Congrats on choosing to try Nagios! Nagios is quite powerful and flexible, but unfortunately its not very friendly to newbies. Why? Because it takes a lot of work to get it installed and configured properly. That being said, if you stick with it and manage to get it up and running, you'll never want to be without it. :-) Here are some very important things to keep in mind for those of you who are first-time users of Nagios: Relax - its going to take some time. Don't expect to be able to compile Nagios and start it up right off the bat. Its not that easy. In fact, its pretty difficult. If you don't want to spend time learning how things work and getting things running smoothly, don't bother using this software. Instead, pay someone to monitor your network for you or hire someone to install Nagios for you. :-) Read the documentation. Nagios is difficult enough to configure when you've got a good grasp of what's going on, and nearly impossible if you don't. Do yourself a favor and read before blindly attempting to install and run Nagios. If you're the type who doesn't want to take the time to read the documentation, you'll probably find that others won't find the time to help you out when you have problems. RTFM. Use the sample config files. Sample configuration files are provided with Nagios. Look at them, modify them for your particular setup and test them! The sample files are just that - samples. There's a very good chance that they won't work for you without modifications. Sample config files can be found in the sample-config/ subdirectory of the Nagios distribution. Seek the help of others. If you've read the documentation, reviewed the sample config files, and are still having problems, try sending a descriptive email message describing your problems to the nagios-users mailing list. Due to the amount of work that I have to do for this project, I am unable to answer most of the questions that get sent directly to me, so your best source of help is going to be the mailing list. If you've done some background reading and you provide a good problem description, odds are that someone will give you some pointers on getting things working properly. If you're not willing to at least do some up front reading, i.e., setup my system for me, then you're truly out of your league in dealing with this software or any other software. Get a COTS solution and have a consultant set it up for you and make sure you have a support contract so that someone can tell you what to do when things go wrong. A certain amount of responsibility falls upon the individual who wishes to embark on setting up a system. They need to accept that. JMTC, Todd - Original Message - From: "David Leangen" <[EMAIL PROTECTED]> To: Sent: Thursday, December 01, 2005 7:54 PM Subject: [Nagios-users] Dealing with unwanted questions (was: trouble getting started...) > > Thought I'd add my 2 cents... This seems to be a recurring problem. > > > As a general statement, the amount of help received is commensurate > > with the amount of work put into solving the problem before coming > > here _and_ the amount of detail about the actual problem that is > > provided. > > Excellent reply, Marc. > > I've been on quite a few lists in various OS communities, and this one, > although very helpful, can be quite hostile at times. > > I certainly understand the frustration of those wanting to help, but who > are overloaded by simple questions that have already been answered many > times before. > > On the other hand, though, I also understand others who have trouble > with basic things. > > > Is there not some way to chide people a little more gently? > > > For instance, perhaps a new "newbie" list could be created, so people > who are particularly annoyed with receiving newbie mails could simply > avoid that list? > > Or maybe we could have some kind of standard statement that we copy- > paste that points to the guidelines for posting to the list. > > No matter how much we want the problem not to exist, there will always > be people who post questions that others may be frustrated with. Quite > frankly, some of the replies, although understandable, have shifted a > bit to the nasty side. I just think that there must be a better way of > dealing with the problem other than replying with a nasty tone. > > > Anyway, just a few ideas... > > > > > > --- > This SF.net email is sponsored by: Splunk Inc. Do you grep through log files > for problems? Stop! Download the new AJAX search engine that makes > searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! > http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click > ___ > Nagios-users mailing list > Nagios-use
RE: [Nagios-users] how can i change the timeout value for check_http
check_http --help shows you can specify a -t to set that. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Randy Paries Sent: Tuesday, November 29, 2005 11:16 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] how can i change the timeout value for check_http hello, i have a remove nagios box that i get a lot of false messages. I need to change the timeout value for check_http i have changed the ping timeouts with args, but does not appear to be any for check_http Thanks for any help --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37&alloc_id865&op=ick ___ 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 --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click ___ 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 father, script son ??
/etc/init.d/nagios stop sleep 30 ps –ef|grep nagios echo “now stopping sendmail” /etc/init.d/sendmail restart sleep 30 echo “now calling named” /etc/init.d/named echo “now starting nagios” /etc/init.d/nagios start This should give you a pretty good idea as to where the script is failing, based on what echo statements get processed. If you’re not running the script interactively then redirect the output to a log, i.e., /usr/local/nagios/bin/mynagios_script > /usr/local/nagios/tmp/mynagios_script.log. These are basic script debugging techniques. You may do well getting yourself a good shell scripting reference guide. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of enrico fanti Sent: Friday, November 18, 2005 8:19 AM To: Todd Barbera Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios father, script son ?? Hi Todd, I tried your hint, but isn't ok. Wath do you mean with "you could put in a process grep in the script" ? Thank you Enrico Todd Barbera wrote: Hi Enrico, Try putting in the following: /etc/init.d/nagios stopsleep 30echo "now to stop sendmail"/etc/init.d/sendmail restartsleep 30echo "now to call named"/etc/init.d/named This will help determine if the script is truly dying because the nagiosprocess stops. 30 seconds should be far more time needed for nagios toshutdown, although I suppose you could put in a process grep in the scriptto verify. Todd - Original Message - From: "enrico fanti" <[EMAIL PROTECTED]>To: <[EMAIL PROTECTED]>; Sent: Friday, November 18, 2005 7:18 AMSubject: Re: [Nagios-users] Nagios father, script son ?? Hi,I tried that but it doesn't work.. It seems to be very stange case...Jamie Pratt wrote: did you try tagging an & on the end of the command line to fork it offinto the background? sometimes this will help.. regards,jamie -- James PrattUnix Systems AdministratorNorwich University - Information Technology[EMAIL PROTECTED] | 1-802-485-2532 enrico fanti wrote: Hi to all I have this problem Nagios executes a script.This script have to restart the Nagios process in this way: /etc/init.d/nagios stop/etc/init.d/sendmail restart/etc/init.d/named/etc/init.d/nagios start The problem is that when the script execute this sequence, itexecutes only: /etc/init.d/nagios stop/etc/init.d/sendmail stop It seems that the father Nagios execute the son script, but thisscript dies when the father dies (Nagios). Is there a way to run the son script separately from the fatherThak you Enrico -- ===Enrico FantiPointerCom s.p.a - http://www.pointercom.itVia Francesco De Sanctis, 900195 Roma - ITALYtel. +39-06-37591259fax +39-06-37591202[EMAIL PROTECTED] -- ===Enrico FantiPointerCom s.p.a - http://www.pointercom.itVia Francesco De Sanctis, 900195 Roma - ITALYtel. +39-06-37591259fax +39-06-37591202[EMAIL PROTECTED]
Re: [Nagios-users] Nagios father, script son ??
Hi Enrico, Try putting in the following: /etc/init.d/nagios stop sleep 30 echo "now to stop sendmail" /etc/init.d/sendmail restart sleep 30 echo "now to call named" /etc/init.d/named This will help determine if the script is truly dying because the nagios process stops. 30 seconds should be far more time needed for nagios to shutdown, although I suppose you could put in a process grep in the script to verify. Todd - Original Message - From: "enrico fanti" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]>; Sent: Friday, November 18, 2005 7:18 AM Subject: Re: [Nagios-users] Nagios father, script son ?? > Hi, > I tried that but it doesn't work.. > > It seems to be very stange case... > > > > > Jamie Pratt wrote: > > > did you try tagging an & on the end of the command line to fork it off > > into the background? sometimes this will help.. > > > > regards, > > jamie > > > > -- > > > > James Pratt > > Unix Systems Administrator > > Norwich University - Information Technology > > [EMAIL PROTECTED] | 1-802-485-2532 > > > > > > > > enrico fanti wrote: > > > >> Hi to all > >> > >> I have this problem > >> > >> Nagios executes a script. > >> This script have to restart the Nagios process in this way: > >> > >> /etc/init.d/nagios stop > >> /etc/init.d/sendmail restart > >> /etc/init.d/named > >> /etc/init.d/nagios start > >> > >> The problem is that when the script execute this sequence, it > >> executes only: > >> > >> /etc/init.d/nagios stop > >> /etc/init.d/sendmail stop > >> > >> It seems that the father Nagios execute the son script, but this > >> script dies when the father dies (Nagios). > >> > >> > >> Is there a way to run the son script separately from the father > >> Thak you > >> > >> Enrico > >> > > > > > > > > -- > === > Enrico Fanti > PointerCom s.p.a - http://www.pointercom.it > Via Francesco De Sanctis, 9 > 00195 Roma - ITALY > tel. +39-06-37591259 > fax +39-06-37591202 > [EMAIL PROTECTED] > > > > > --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problems with Notification
Hi Mark, On my log checks, I needed to set max_check_attempts to 1. This is because on the first pass, it would see the error. Unless the error occurs again in passes 2-, you won't get notified. I also set it to not notify me on a "recovery", since I merely need to know if the string has occurred within my logfile. Todd - Original Message - From: Mark Limburg To: Nagios-users@lists.sourceforge.net Sent: Wednesday, November 09, 2005 11:54 PM Subject: [Nagios-users] Problems with Notification Howdy,I'm missing something here I'm sure.Nag is working well, but I can't seem to force an email from a logcheck. It comes up with a warning (manually triggering the logcheck by inserting lines), but its not emailing .. # CHECK LOCAL, TEST LOGdefine service{ use generic-service host_name ADL0805 service_description LOCAL TEST LOG WARN is_volatile 0 check_period 24x7 max_check_attempts 4 normal_check_interval 3 retry_check_interval 1 contact_groups sysadmins, trumps-admins notification_interval 960 notification_period 24x7 check_command check_nrpe!check_testlog } I can get emails to trigger on *some* other checks (and state restores), but all checks pretty much use the same default settings (at the moment) so I'm pretty lost.Any ideas to point me in the right direction? Mark
RE: [Nagios-users] NRPE + raidutil ?
Hi Jason, I'm doing the same thing on a Solaris server and I needed to set the suid bit on my plugin script. The other way to do so would be to configure sudo. I hope this helps. Todd -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jason Byrns Sent: Monday, November 07, 2005 2:37 PM To: Nagios Users Subject: [Nagios-users] NRPE + raidutil ? Good afternoon, all. I'm trying to monitor RAID array status using NRPE. But I'm running into minor security issues. * Adaptec 2100S RAID controller * CentOS 4.2 * raidutil RPM from http://i2o.shadowconnect.com When logged directly into the system to monitor, the raidutil command only works if I am root. But NRPE refuses to start if I tell it to use root as user and group. (Running under xinetd, in this case) Can anyone tell me the best (most secure) way to get this working properly? This web page seems to talk about it, but in Czech... http://homel.vsb.cz/~jas02/raid/ I am using an apparently custom Nagios plugin called "check_dpt_raid" and again, it seems to run manually just fine as long as I am root. (Can't remember where I got the plugin -- maybe from someone's mention of it on the mailing list. Nothing comes up when I search for the name!) Thanks as always! -- Jason Byrns Production Manager System Administrator http://www.MicroLnk.com/ 402-328-8600 ext. 653 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ 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 --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ 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