[Nagios-users] Monitoring traffic
Hi, I'd need to keep traffic on a UMTS router monitored, i.e. I'd need to set up something that counts bytes passed and gives an alarm when a particular thresold is reached. The router gives no SNMP information about it. Is there any other way to do that with nagios? Thanks -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] how to fix excessive latency
On 06/29/2010 03:57 AM, wwanghongrui wrote: > Thanks your reply. We are writing to mysql database by ndoutils.We don't use > nsca. About external_command_buffer_slots, we don't set it up. > status_update_interval =15 > > I use vmstate to capture system performance,like below.Maybe the bottleneck > is not at system. > Endeavour to not run Nagios on a virtual server. If you must use a virtual server, make very sure that your checkresult spooldirectory and status data files are on a ramdisk, or you will certainly run into trouble. -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Assign contact_group to a host without notifications
On 29 June 2010 01:34, Matthew Angelo wrote: > Hi Nagios Users, > > We have a super modular config. Essentially [almost] all Service Checks are > defined to HostGroups, and then Hosts merely assign themselve to that > HostGroup. > > > # > # > # HostGroup { > # LINUX_SERVER > # check_cpu > # check_memory > # check_disk > # } > # > # > # Host { > # use TEAM1 > # name MY_LINUXSERVER1 > # hostgroup LINUX_SERVER > # } > # > # > > "use TEAM1" is a Host Template definition which defines contact_group and > notification period. > > > How do I expand on this to allow another team (contact_group) read-only > access or visibility into the Host service checks for MY_LINUXSERVER1. > *without* notifiying them? > > I added: > > contact_groups +TEAM2 > > to the host definition. However it is now also *alerting* to TEAM2 which I > don't want. > > > Think of TEAM1 as "LINUX team" and TEAM2 as the Application team which want > visibility into a server, but not be alerted if disk space starts filling up > on the Server itself. I think whatever you do is going to be a bit messy. It will probably involve setting up two Nagios contact definitions for each physical user (which is what I do in similar circumstances). For example I would set up the contacts which your TEAM2 users log in with to all have host_notification_options = n and service_notification_options = n. I would then set up separate contacts (for example if the user logs in with "Fred", set up a contact called "Fred-notify". This 2nd contact can have host_notification_options and service_notification_options = y. You will then need to structure your contact groups so for example contact group "TEAM2" contains user "Fred" and contact group "TEAM2-notify" contains user "Fred-notify". Those hosts you want TEAM2 to just see, you set contactgroups = "+TEAM2" in the relevant host template. Those hosts you want them to see and get notifications for, you set contactgroups = "+TEAM2,TEAM2-notify" in the relevant host template. Note that the user never has actually to log in using "Fred-notify" so it doesn't need an entry in your htpasswd config - we only set that one up for the notifications. You might be able to do something a little tidier using a custom notification script, but doing that might make your configs less easy for anyone coming from outside to understand. I hope that helps rather than confuses things for you! Cheers, Jim -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] IP and hostname mapping control
We have a service that checks dns addresses. We run it against some of our internal DNS servers (we're checking the DNS server is resolving, so the check belongs on the dns server rather than the host you're interested in). define service{ use infrastructure-dns-service host_name dc1025,dc1026,dc1030 service_description DNS-myserver check_command check_dns!myserver.com!4.5.6.7 } define command{ command_namecheck_dns command_line$USER1$/check_dns -H $ARG1$ -s $HOSTADDRESS$ -a $ARG2$ } (I believe check_dns is a standard plugin) So you'd have: define service { uselocal-service host_name local.dns.server service_description DNS resolving foo.mylan.com check_command check_dns!foo.mylan.com!192.168.0.1 } -- The probability of someone watching you is proportional to the stupidity of your action. Paul Weaver Systems Development Engineer BBC FM&T BETG TDD SDT From: Network Operation Center FMC Luxemburg [mailto:n...@eurofmc.com] Sent: 29 June 2010 06:40 To: Nagios Users List Subject: [Nagios-users] IP and hostname mapping control Hi everybody, I'm looking for a way to check out the mapping between a hostname and IP address. Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not associated with this IP, I would have an alarm. Indeed the script below returns no alarm : define host { use unix-server host_name foo.mylan.com display_namefoo address 192.168.0.1 check_command check_http } define service { uselocal-service host_name foo.mylan.com service_description HTTP local check_command check_http } Any idea? Thanks a lot François -- Network Operation Center LUXEMBURG http://www.bbc.co.uk/ This e-mail (and any attachments) is confidential and may contain personal views which are not the views of the BBC unless specifically stated. If you have received it in error, please delete it from your system. Do not use, copy or disclose the information in any way nor act in reliance on it and notify the sender immediately. Please note that the BBC monitors e-mails sent or received. Further communication will signify your consent to this. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Additional states in Nagios
On 29 June 2010 03:18, Jason W. wrote: > (I've tried Googling for the answer, but there seems to be some > ambiguity in defining terms - even in the Nagios docs) > > I've got Nagios monitoring a bunch of things on our servers and I also > have events being sent to Nagios via passive checks. This is all > useful information to us as sysadmins, but there is a difference in > criticality, e.g. is is down, is it about to go down, or is it purely > informational? > > The latter is what I am writing about. Currently, there are two > "states" we use - WARNING and CRITICAL. This is the ambiguous part > since the docs refer to states as HARD or SOFT, but the plugin API > docs refer to WARNING and CRITICAL as states. I realize there is also > UNKNOWN, but with non-technical people occasionally looking at our > Nagios, that may lead them astray... > > Is there a way to get more states, e.g. INFORMATION? This would allow > one to sort by state in the web interface. Currently, we use WARNING > for most informational messages, so there is a mashup of "Service X is > about to die" and "Server Y did something you may want to know about" I don't believe there is. If you want to make sure that Nagios always records the text for a specific kind of check, you can set the "is_volatile" directive to "1". For services which normally report the same information each time they are checked this could be overkill, but for passive checks which are event-driven, for example SNMP Trap handling it is very useful. If you haven't already found it, it's worth taking a look at the documentation on volatile services: http://nagios.sourceforge.net/docs/3_0/volatileservices.html Cheers, Jim -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 traffic
On 29 June 2010 08:58, sandma...@libero.it wrote: > Hi, > > I'd need to keep traffic on a UMTS router monitored, i.e. I'd need to set up > something that counts bytes passed and gives an alarm when a particular > thresold is reached. > > The router gives no SNMP information about it. > > Is there any other way to do that with nagios? > > Thanks What options are available to you for querying the counter on the router? If, for example, there is a command-line interface you could use then you can at a pinch script something around that. There are a bunch of old AS400 plugins which I think do that kind of thing at http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/AS400/details - it might give you some ideas on how to go about it. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] Additional states in Nagios
Kevin gave a GREAT answer - succinct and yet informative. It sounds like he answered the first part of the question - clearing the ambiguity of the states. I interpreted the second part (the dream) as the desire to have Nagios differentiating between informational messages and things that perhaps require action (alarms). I don't think there is any single 'catch all' solution to this, I suppose it really depends on your environment, admin team, etc. For example, in your company, ALL alerts from S.M.A.R.T. disks might deserve immediate attention. In my world, we take the ostrich approach to those (just kidding, and don't flay me for perpetuating the myth of ostrich heads and sand). I personally use a combination of things to tune the alerts. For example, with printers alerting on low toner, I set the frequency of alerts to once every 24 hours, so as not to flood people with non critical messages. For disk alerts that come in as 'unknown' state, I have set the retry time high to avoid extra alarms getting sent just because network latency is high (thus returning the unknown state). I have also modified the plugins to strip out messages/states that are (to us here) strictly informational and not worth alarming on. And for any alert that comes in, you can always just 'acknowledge' it through the CGIs to hush it if it is strictly informational - it will alarm again (depending on your setup) if/when it changes state again (for better or worse). Lastly, though it is a TON of work, you can rebuild the entire alerting process. I store user preferences in a MySQL database and let the individual admins change those through a CGI. Then I send ALL Nagios alerts through that processor which matches up the alert, time of day, host, service, etc against the user prefs to decide who gets alerted and how. When you do something like that, you can then define alternative methods of alerting. For example, I get alerted on disks at warning level during business hours, but not until critical level off hours. In addition, I have the alerts just going to email during business hours, but I also send via instant messenger and to a home email address in off hours. You could use the same intelligence to split out what are strictly informational messages vs. what are real alerts. Ooops, I said lastly, didn't I? Another thought: maybe you could send all alerts to an Exchange (group) mailbox, and use Exchange rules to filter the informational messages vs. real alerts and send those on to individuals. Just my 2 cents. - Brent -Original Message- From: Kevin Keane [mailto:subscript...@kkeane.com] Sent: Monday, June 28, 2010 11:06 PM To: Nagios Users List Subject: Re: [Nagios-users] Additional states in Nagios Actually, there are four states reported by plugins: OK, WARNING, CRITICAL and UNKNOWN. Services will have the same four states. There are also three states that hosts can have: UP, DOWN, UNREACHABLE. UP, DOWN and unreachable depends on the state reported by the plugin, as well as the state of parents. http://nagios.sourceforge.net/docs/3_0/hostchecks.html HARD and SOFT states are separate from all of that. You can have a soft warning or a hard warning, and a soft critical or a hard critical. http://nagios.sourceforge.net/docs/3_0/statetypes.html OK, WARNING, CRITICAL and UNKNOWN are the actual state of whatever you are monitoring. The plugins decide which state it is. HARD, SOFT, as well as UP or DOWN, are computed by Nagios based on the status reported by the plugins. Exactly how Nagios does that is configurable. -Original Message- From: Jason W. [mailto:jwellb...@gmail.com] Sent: Monday, June 28, 2010 7:18 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Additional states in Nagios (I've tried Googling for the answer, but there seems to be some ambiguity in defining terms - even in the Nagios docs) I've got Nagios monitoring a bunch of things on our servers and I also have events being sent to Nagios via passive checks. This is all useful information to us as sysadmins, but there is a difference in criticality, e.g. is is down, is it about to go down, or is it purely informational? The latter is what I am writing about. Currently, there are two "states" we use - WARNING and CRITICAL. This is the ambiguous part since the docs refer to states as HARD or SOFT, but the plugin API docs refer to WARNING and CRITICAL as states. I realize there is also UNKNOWN, but with non-technical people occasionally looking at our Nagios, that may lead them astray... Is there a way to get more states, e.g. INFORMATION? This would allow one to sort by state in the web interface. Currently, we use WARNING for most informational messages, so there is a mashup of "Service X is about to die" and "Server Y did something you may want to know about" I am guessing not without hacking the source, but I can dream ;) Thoughts & comments appreciated - even if it's to say I'm Doing it Wrong. -- HT
Re: [Nagios-users] IP and hostname mapping control
On Tue, Jun 29, 2010 at 1:40 AM, Network Operation Center FMC Luxemburg wrote: > Hi everybody, > > I'm looking for a way to check out the mapping between a hostname and IP > address. > > Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not > associated with this IP, I would have an alarm. > > Indeed the script below returns no alarm : Take a look at check_dns. - Max -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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 traffic
Try an snmpwalk and check the output Ciao, Giorgio Il giorno 29/giu/2010, alle ore 14:51, Jim Avery ha scritto: > On 29 June 2010 08:58, sandma...@libero.it wrote: >> Hi, >> >> I'd need to keep traffic on a UMTS router monitored, i.e. I'd need to set up >> something that counts bytes passed and gives an alarm when a particular >> thresold is reached. >> >> The router gives no SNMP information about it. >> >> Is there any other way to do that with nagios? >> >> Thanks > > > What options are available to you for querying the counter on the router? > > If, for example, there is a command-line interface you could use then > you can at a pinch script something around that. There are a bunch of > old AS400 plugins which I think do that kind of thing at > http://exchange.nagios.org/directory/Plugins/Hardware/Server-Hardware/IBM/AS400/details > - it might give you some ideas on how to go about it. > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] IP and hostname mapping control
On 29 June 2010 06:40, Network Operation Center FMC Luxemburg wrote: > Hi everybody, > > I'm looking for a way to check out the mapping between a hostname and IP > address. > > Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not > associated with this IP, I would have an alarm. > > Indeed the script below returns no alarm : > > define host { > use unix-server > host_name foo.mylan.com > display_name foo > address 192.168.0.1 > check_command check_http > } > > define service { > use local-service > host_name foo.mylan.com > service_description HTTP local > check_command check_http > } If you are referring to name/address resolution by DNS, then does the check_dns plugin do what you want? -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] how to fix excessive latency
I agree, better not to use Nagios on virtual machine. The I/O layer of vms have poor performances. Ciao, Giorgio Il giorno 29/giu/2010, alle ore 14:23, Andreas Ericsson ha scritto: > On 06/29/2010 03:57 AM, wwanghongrui wrote: >> Thanks your reply. We are writing to mysql database by ndoutils.We don't use >> nsca. About external_command_buffer_slots, we don't set it up. >> status_update_interval =15 >> >> I use vmstate to capture system performance,like below.Maybe the bottleneck >> is not at system. >> > > Endeavour to not run Nagios on a virtual server. If you must use a virtual > server, > make very sure that your checkresult spooldirectory and status data files are > on > a ramdisk, or you will certainly run into trouble. > > -- > Andreas Ericsson andreas.erics...@op5.se > OP5 AB www.op5.se > Tel: +46 8-230225 Fax: +46 8-230231 > > Considering the successes of the wars on alcohol, poverty, drugs and > terror, I think we should give some serious thought to declaring war > on peace. > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] R: Re: Monitoring traffic
>Messaggio originale >Da: j...@jimavery.me.uk >Data: 29/06/2010 14.51 >> The router gives no SNMP information about it. >What options are available to you for querying the counter on the router? It is possible to send a string from the router to a particular port of a remote server. Is there any way to make nagios act as a tcp server so it receives notifications about it? Thanks -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] how to fix excessive latency
Clock skew can be an issue as well depending on the virtualization platform. On 6/29/10, Giorgio Zarrelli wrote: > I agree, better not to use Nagios on virtual machine. The I/O layer of vms > have poor performances. > > Ciao, > > Giorgio > > Il giorno 29/giu/2010, alle ore 14:23, Andreas Ericsson ha > scritto: > >> On 06/29/2010 03:57 AM, wwanghongrui wrote: >>> Thanks your reply. We are writing to mysql database by ndoutils.We don't >>> use nsca. About external_command_buffer_slots, we don't set it up. >>> status_update_interval =15 >>> >>> I use vmstate to capture system performance,like below.Maybe the >>> bottleneck is not at system. >>> >> >> Endeavour to not run Nagios on a virtual server. If you must use a virtual >> server, >> make very sure that your checkresult spooldirectory and status data files >> are on >> a ramdisk, or you will certainly run into trouble. >> >> -- >> Andreas Ericsson andreas.erics...@op5.se >> OP5 AB www.op5.se >> Tel: +46 8-230225 Fax: +46 8-230231 >> >> Considering the successes of the wars on alcohol, poverty, drugs and >> terror, I think we should give some serious thought to declaring war >> on peace. >> >> -- >> This SF.net email is sponsored by Sprint >> What will you do first with EVO, the first 4G phone? >> Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first >> ___ >> 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 Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] R: Re: Monitoring traffic
You can use netcat for this purpose and pipe whatever you watt from the net to Nagios Ciao, Giorgio Il giorno 29/giu/2010, alle ore 16:29, "sandma...@libero.it" ha scritto: >> Messaggio originale >> Da: j...@jimavery.me.uk >> Data: 29/06/2010 14.51 >>> The router gives no SNMP information about it. >> What options are available to you for querying the counter on the router? > > It is possible to send a string from the router to a particular port of a > remote server. > > Is there any way to make nagios act as a tcp server so it receives > notifications about it? > > Thanks > > > -- > This SF.net email is sponsored by Sprint > What will you do first with EVO, the first 4G phone? > Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first > ___ > 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 Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first ___ 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] IP and hostname mapping control
You could use the check_dns plugin with the -a argument. From: Network Operation Center FMC Luxemburg [mailto:n...@eurofmc.com] Sent: Monday, June 28, 2010 10:40 PM To: Nagios Users List Subject: [Nagios-users] IP and hostname mapping control Hi everybody, I'm looking for a way to check out the mapping between a hostname and IP address. Example: IP 192.168.0.1 exists and if the hostname foo.mylan.com is not associated with this IP, I would have an alarm. Indeed the script below returns no alarm : define host { use unix-server host_name foo.mylan.com display_namefoo address 192.168.0.1 check_command check_http } define service { uselocal-service host_name foo.mylan.com service_description HTTP local check_command check_http } Any idea? Thanks a lot François -- Network Operation Center LUXEMBURG -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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] Help with creating a pnp4nagios template
Hi, I was hoping someone out there can help me here, below is my perfdata output for checking disk space on remote Win32/64 servers that have NSClient++ installed. The perfdata received is in the format of: 'C:'=35.62G;3.99;1.99;0;39.98; The command used to query the C:\ is: define command{ command_name check_nrpe_disk command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -u -n -p 12778 -t 30 -c CheckDriveSize -a Drive=$ARG1$ ShowAll=long MinWarnFree=$ARG2$ MinCritFree=$ARG3$ } For my MinWarnFree and MinCritFree, I define a % to warn/crit for minimum allowed space. Can someone give me an example of a rrd template I would use for this so that I can build off it? It would be greatly appreciated, thank you. The Oppenheimer Group CONFIDENTIAL This message is for the designated recipient only and may contain privileged, proprietary, or otherwise private information. If you have received it in error, please notify the sender immediately and delete the original. Any other use of the email by you is prohibited. -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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] how to fix excessive latency
I am sorry for my bad english. My nagios server is not running in virtual server. Nagios3.2.0 + Suse10-sp2 x86_64 + 8 GB mem + 4 x ( Xeon(R) CPU E7420 @ 2.13GHz ), I think this hardware is enough. "I use vmstate to capture system performance", vmstate is a command in SUSE10,not a virtual server. My configuration is like below,I don't know which parameter should I optimize,could you give me suggestions, thanks~ cfg_file=/usr/local/nagios/etc/hosts.cfg cfg_file=/usr/local/nagios/etc/services.cfg cfg_file=/usr/local/nagios/etc/misccommands.cfg cfg_file=/usr/local/nagios/etc/checkcommands.cfg cfg_file=/usr/local/nagios/etc/contactgroups.cfg cfg_file=/usr/local/nagios/etc/contacts.cfg cfg_file=/usr/local/nagios/etc/hostgroups.cfg cfg_file=/usr/local/nagios/etc/servicegroups.cfg cfg_file=/usr/local/nagios/etc/timeperiods.cfg cfg_file=/usr/local/nagios/etc/escalations.cfg cfg_file=/usr/local/nagios/etc/dependencies.cfg cfg_file=/usr/local/nagios/etc/hostextinfo.cfg cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg cfg_file=/usr/local/nagios/etc/meta_commands.cfg cfg_file=/usr/local/nagios/etc/meta_contactgroup.cfg cfg_file=/usr/local/nagios/etc/meta_contact.cfg cfg_file=/usr/local/nagios/etc/meta_dependencies.cfg cfg_file=/usr/local/nagios/etc/meta_escalations.cfg cfg_file=/usr/local/nagios/etc/meta_hostgroup.cfg cfg_file=/usr/local/nagios/etc/meta_host.cfg cfg_file=/usr/local/nagios/etc/meta_services.cfg cfg_file=/usr/local/nagios/etc/meta_timeperiod.cfg resource_file=/usr/local/nagios/etc//resource.cfg log_file=/usr/local/nagios/var/nagios.log temp_file=/usr/local/nagios/var/nagios.tmp status_file=/usr/local/nagios/var/status.log p1_file=/usr/local/nagios/bin/p1.pl status_update_interval=15 nagios_user=nagios nagios_group=nagios enable_notifications=1 execute_service_checks=1 accept_passive_service_checks=1 execute_host_checks=1 accept_passive_host_checks=1 enable_event_handlers=1 log_rotation_method=d log_archive_path=/usr/local/nagios/var/archives/ check_external_commands=1 command_check_interval=1s command_file=/usr/local/nagios/var/rw/nagios.cmd lock_file=/usr/local/nagios/var/nagios.lock retain_state_information=1 retention_update_interval=60 use_retained_program_state=1 use_retained_scheduling_info=1 use_syslog=1 log_notifications=1 log_service_retries=1 log_host_retries=1 log_event_handlers=1 log_initial_states=1 log_external_commands=1 sleep_time=1 service_inter_check_delay_method=s service_interleave_factor=s max_concurrent_checks=2000 service_reaper_frequency=5 interval_length=60 use_agressive_host_checking=1 enable_flap_detection=0 low_service_flap_threshold=25.0 high_service_flap_threshold=50.0 low_host_flap_threshold=25.0 high_host_flap_threshold=50.0 service_check_timeout=60 host_check_timeout=10 event_handler_timeout=30 notification_timeout=30 ocsp_timeout=5 ochp_timeout=5 perfdata_timeout=5 process_performance_data=1 host_perfdata_command=107 service_perfdata_command=process-service-perfdata host_perfdata_file=/usr/local/pnp4nagios/var/host-perfdata service_perfdata_file=/usr/local/pnp4nagios/var/service-perfdata host_perfdata_file_template=DATATYPE::HOSTPERFDATA TIMET::$TIMET$ HOSTNAME::$HOSTNAME$HOSTPERFDATA::$HOSTPERFDATA$ HOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$HOSTSTATE::$HOSTSTATE$ HOSTSTATETYPE::$HOSTSTATETYPE$ service_perfdata_file_template=DATATYPE::SERVICEPERFDATATIMET::$TIMET$ HOSTNAME::$HOSTNAME$ SERVICEDESC::$SERVICEDESC$SERVICEPERFDATA::$SERVICEPERFDATA$ SERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$ HOSTSTATE::$HOSTSTATE$ HOSTSTATETYPE::$HOSTSTATETYPE$ SERVICESTATE::$SERVICESTATE$ SERVICESTATETYPE::$SERVICESTATETYPE$ host_perfdata_file_mode=a service_perfdata_file_mode=a host_perfdata_file_processing_interval=30 service_perfdata_file_processing_interval=30 host_perfdata_file_processing_command=process-host-perfdata-file service_perfdata_file_processing_command=process-service-perfdata-file check_service_freshness=1 date_format=euro illegal_object_name_chars=~!$%^&*"|'<>?,()= illegal_macro_output_chars=`~$^&"|'<> admin_email=admin admin_pager=ad...@localhost broker_module=/usr/local/nagios/bin/ndomod-3x.o config_file=/usr/local/nagios/etc/ndomod.cfg event_broker_options=-1 use_large_installation_tweaks=1 child_processes_fork_twice=0 enable_environment_macros=0 debug_file=/usr/local/centreon/log/Debug-Graphs.log debug_level=-1 max_debug_file_size=6 check_result_reaper_frequency=10 max_check_result_reaper_time=20 Regards HongRui Wang Mail:wwanghong...@cebbank.com 2010-06-30 wwanghongrui 2010-06-30 发件人: Andreas Ericsson 发送时间: 2010-06-29 20:24:12 收件人: wwanghongrui; Nagios Users List 抄送: shadih rahman 主题: Re: [Nagios-users] how to fix excessive latency On 06/29/2010 03:57 AM, wwanghongrui wrote: > Thanks your reply. We are writing to mysql database by ndoutils.We don't use > nsca. About external_command_buffer_slots, we don't set it up. > status_update_interval =15 > > I use vmstate to capture syste
[Nagios-users] Modifying normal_check_interval breaks nagiosgrapher
Hi, While testing and deploying Nagios I used the following service definition: max_check_attempts 1 normal_check_interval 1 retry_check_interval 1 Everything was configured and tested including nagiosgrapher (rrdtool). It passed proof and concept and we have now moved it into production. We tested this against a small set of 200 servers. Then we went to our "production" values of: max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 Data collection still works, but when we try to view a graph it's basically empty data (nothing drawn) for the period in which the new normal_check_internal was changed. If we change it back to 1 from 5, it starts to display data correctly again. How do I *keep* the new normal_check_internal value, but make it work again? Googling led me to this: http://forum.centreon.com/archive/index.php/t-4506.html which essentially says nagios.cfg:normal_check_interval and nrpe.cfg:step are tied together and if you change normal_check_internal you need need to lose all your data. The existing data isn't super critical. We're happy to lose it. I tried removing ./var/rrd directory (well rename) but then all the graphs broke with 'no such device' error. What other directories do I need to delete to clear all nagiosgrapher/rrdtool data? Cheers -- This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first___ 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