[Nagios-users] Notifications only to service contacts, not to host contacts?
Hi, I have some services defined, that are just interesting for some people, especially not for all contacts defined for the host. So the service has a single contact defined. Now the problem is, that the notifications are not only send to the contact defined for this service, they are also send to the contacts (contact_group) defined for the host this service is defined for. The contact_group is defined for this host in the host-template. define service{ use service-template hostgroup_name check_zypper service_description check for updates check_command check_nrpe!check_zypper contactscontact1 } define host{ use example-template host_name hostname.example.org alias example host address hostname.example.org hostgroups example-hosts, check_zypper } What am I doing wrong? Any suggestions? Greetings, Christian -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Notifications only to service contacts, not to host contacts?
On Feb 16, 2009, at 3:49 AM, Christian Schneemann wrote: Hi, I have some services defined, that are just interesting for some people, especially not for all contacts defined for the host. So the service has a single contact defined. Nagios expects this kind of notification granularity. Now the problem is, that the notifications are not only send to the contact defined for this service, they are also send to the contacts (contact_group) defined for the host this service is defined for. Nagios will not do this unless you specifically configure it to do so. Nagios has been told that it should. Are they service notifications or host notifications? Is there anything else unusual about the notifications or their content? What does nagios.log show related to these notifications? The contact_group is defined for this host in the host-template. define service{ contactscontact1 } define host{ use example-template host_name hostname.example.org alias example host address hostname.example.org hostgroups example-hosts, check_zypper } What am I doing wrong? Any suggestions? Who are the host contacts? Please post the entire host and service definitions, including the templates with the important bits. You might want to grab the definitions from objects.cache. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] CPU Critical
Jon Angliss wrote: On Fri, 13 Feb 2009 00:54:34 -, Martyn mar...@chetnet.co.uk wrote: Hi All I have noticed whilst monitoring my NT server the CPU load level has been at critical status for 3d 8h 29m 32s and sitting at 100%, this is good news from a monitoring point of view as it was spotted, however I need to solve it. I know I can just jump on to my server and look at the processors I would find what was hogging it but is there a plugin/module or add-on that I can use to see what processors maxing out. If you're any good at scripting, you can tinker with the WMI script from here: http://www.databasejournal.com/features/mssql/article.php/3560366/Monitor-CPU-Usage-of-All-Running-Processes--Part-I.htm It's a WMI script that will walk through all the processes, and return the CPU usage. With some tweaking, you can probably sort the results, add the values, and use it as a CPU counter, and return the top process as part of the check. Also, if you only want the _Total_ processor usage and have NSCP installed you can access the perfmon counter with a check_command like: define command{ command_name check-processor-nscp command_line $USER1$/check_nt -H $HOSTADDRESS$ -v COUNTER -l \\Processor(_Total)\\% Processor Time,Processor Used %2.f%% -p 12489 } (NB I run nscp on port 12489 hence the -p argument). Steve. __ This email has been scanned by the MessageLabs Email Security System. For more information please visit http://www.messagelabs.com/email __ -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Notifications only to service contacts, not to host contacts?
On Monday February 16 2009 03:13:00 pm Marc Powell wrote: On Feb 16, 2009, at 3:49 AM, Christian Schneemann wrote: Hi, I have some services defined, that are just interesting for some people, especially not for all contacts defined for the host. So the service has a single contact defined. [...] What am I doing wrong? Any suggestions? Who are the host contacts? Please post the entire host and service definitions, including the templates with the important bits. You might want to grab the definitions from objects.cache. Thanks for the hint with the objects.cache. The contact_group is defined in the template for the service. so a define service { ... contactscontact1 contact_groups } unsets the value and I hope it will work now. Thanks for helping :) -- Marc --- --- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Christian Schneemann - SUSE LINUX Products GmbH, Maxfeldstr. 5, D - 90409 Nürnberg Phone: +49 (0)911 - 740 53 0 e-mail: cschneem...@suse.de - SUSE LINUX Products GmbH, GF: Markus Rex HRB 16746 (AG Nürnberg) -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] send_nsca to monitor a remote log via passive checks.
Hello I have a problem I am using a program logsurfer which scan logfiles and realtime it is running on a remote host, i have created a passive check in nagios and I want to use send_nsca to send the errors in the logs to the monitoring server. whenever i launch send_nsca manually in the command line it works but when I set it in the config file of logsurfer it does not sends any passive checks to the nagios server. here is the command i try to use in order to send it to the nagios server. /usr/bin/echo host\tlogfile\t2\t\$0\ | /etc/nagios/send_nsca -H 123.123.123.123 -c /etc/nagios/send_nsca.cfg it is there an error in syntax, does anyone of you know logsurfer and it's maybe the logsurfer problem if the syntax of send_nsca is correct. $0 is supposed to be the entire line that will be sent to the monitoring server. thank you for your help; it will be priceless. Mario Garcia Ortiz/ABSI-- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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 notifications depending on warning?
I don't know if this is possible, but is there any way to make nagios send different alerts (or, rather not send alerts) depending on what exactly a warning state is? My understanding is that nagios only looks at the return code, not the status text, so this shouldn't be possible, but I figured it couldn't hurt to ask. The problem I am trying to solve is the following: I am monitoring a number of printers via SNMP, and there are a number of conditions that will trigger a WARNING status on the printer: Out of paper, open front cover, low toner, etc. Some of these, such as out of paper, can be and typically are quickly and easily solved by the end user, and as such there is no point in e-mailing us about it, at least not until it has been empty for a while. However, it should still show up as a warning in nagios, because there have been situations where someone is being unable to print to a remote printer, and it turns out it is because no one in the remote location noticed that it was out. Other WARNING situations we need to be notified about immediately, such as (primarily) low toner, in which case we need to make sure we have a replacement available, and perhaps even sent out, if the location is remote. I suppose I could write a plugin that looks at the status text and upgrades certain warnings, such as low toner, to critical status, but this would be problematic as well, because we would then loose the distinction between low toner, which just means we need to make sure we have more, and toner empty, which means we need to go replace it. So is there a good solution to this dilemma that I am missing? Thanks. --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 notifications depending on warning?
On Feb 16, 2009, at 11:34 AM, Israel Brewster wrote: I suppose I could write a plugin that looks at the status text and upgrades certain warnings, such as low toner, to critical status, but this would be problematic as well, because we would then loose the distinction between low toner, which just means we need to make sure we have more, and toner empty, which means we need to go replace it. So is there a good solution to this dilemma that I am missing? Thanks. Not within nagios that I know of. There are two points of possible action that I see. The first, as you've already discovered, is to modify the way that it's checked and add the logic there. The second is to add the logic to your notifications. The notification program can be anything at all. You could easily create your own notification script to act as a wrapper to /bin/mail that filters out those things that shouldn't really generate an alert. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 notifications depending on warning?
2009/2/16 Israel Brewster isr...@frontierflying.com I don't know if this is possible, but is there any way to make nagios send different alerts (or, rather not send alerts) depending on what exactly a warning state is? My understanding is that nagios only looks at the return code, not the status text, so this shouldn't be possible, but I figured it couldn't hurt to ask. In the past I have written my own notification program to do similar things, ie instead of having nagios send email directly, pass it off to some other program that looks at whatever conditions you want and makes some decisions based on that. In this case you could just write a printer notification program that doesn't send email when the service output says low on paper. .r' -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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 notifications depending on warning?
On Feb 16, 2009, at 9:07 AM, RijilV wrote: 2009/2/16 Israel Brewster isr...@frontierflying.com I don't know if this is possible, but is there any way to make nagios send different alerts (or, rather not send alerts) depending on what exactly a warning state is? My understanding is that nagios only looks at the return code, not the status text, so this shouldn't be possible, but I figured it couldn't hurt to ask. In the past I have written my own notification program to do similar things, ie instead of having nagios send email directly, pass it off to some other program that looks at whatever conditions you want and makes some decisions based on that. In this case you could just write a printer notification program that doesn't send email when the service output says low on paper. Sounds promising. I'll give it a shot. --- Israel Brewster Computer Support Technician Frontier Flying Service Inc. 5245 Airport Industrial Rd Fairbanks, AK 99709 (907) 450-7250 x293 --- .r' -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] How to set postfix to send notifications
Hi Folks I do need a help, i'm dealing with a nightmare overhere. I got the Nagios working pretty fine (hosts, contacts, hostgroups, contactgroups, and else), but nothing about notification. I'm working with a slackware 12.2 version, have installed postfix but don't know what to do with it. It's says that need a MTA, that's why I have installed postfix, because in many forum people say it's most simple than sendmail or else. Give me a light on this!!! Thanks -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] New to Nagios - Need help with nagios.cfg
Hello, I'm very new to Nagios. I'm running version Nagios 3.0.6 on CentOS RHEL 5.1. I used the FC6 instructions for my installation. I've successfully installed the program per the Quick-start guide provided on the Website. We presently have another server with an older version of Nagios installed. It's using cfg_dir=/opt/nagios/etc as its location for all *.cfg giles. Here's a problem: When I try to create an alternate directory (cfg_dir) in the nagios config file, I keep getting a CONFIG ERROR when I try to restart the service. I would like to use cfg_dir=/opt/nagios/etc/main to hold all the config files. Here is a list of that directory right now: [root@ ~ main]# ls -l total 68 -rwxrwxr-x 1 nagios nagios 7714 Feb 13 16:55 commands.cfg -rwxrwxr-x 1 nagios nagios 2166 Feb 13 16:52 contacts.cfg -rwxrwxr-x 1 nagios nagios 240 Feb 13 14:28 hostgroups.cfg -rwxrwxr-x 1 nagios nagios 163 Feb 13 16:51 hosts.cfg -rwxrwxr-x 1 nagios nagios 2414 Feb 13 16:39 services.cfg -rwxrwxr-x 1 nagios nagios 10812 Feb 13 16:41 templates.cfg -rwxrwxr-x 1 nagios nagios 3209 Feb 13 16:55 timeperiods.cfg [root@ ~ main]# service nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. I've hashed out all the other cfg in nagios.cfg to only use this directory. [root@ ~ main]# grep cfg_ /usr/local/nagios/etc/nagios.cfg # cfg_file=/usr/local/nagios/etc/objects/commands.cfg # cfg_file=/usr/local/nagios/etc/objects/contacts.cfg # cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg # cfg_file=/usr/local/nagios/etc/objects/templates.cfg # cfg_file=/opt/nagios/etc/commands.cfg # cfg_file=/opt/nagios/etc/contacts.cfg # cfg_file=/opt/nagios/etc/timeperiods.cfg # cfg_file=/opt/nagios/etc/templates.cfg # cfg_file=/usr/local/nagios/etc/objects/localhost.cfg cfg_dir=/opt/nagios/etc/main #cfg_file=/usr/local/nagios/etc/objects/windows.cfg #cfg_file=/usr/local/nagios/etc/objects/switch.cfg #cfg_file=/usr/local/nagios/etc/objects/printer.cfg # extension) in a particular directory by using the cfg_dir #cfg_dir=/usr/local/nagios/etc/servers #cfg_dir=/usr/local/nagios/etc/printers #cfg_dir=/usr/local/nagios/etc/switches #cfg_dir=/usr/local/nagios/etc/routers # object configuration files (see the cfg_file and cfg_dir options above). Please help! Thanks. Eric Chatham CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] New to Nagios - Need help with nagios.cfg
On Feb 16, 2009, at 2:58 PM, Eric Chatham wrote: Hello, I’m very new to Nagios. I'm running version Nagios 3.0.6 on CentOS RHEL 5.1. I used the FC6 instructions for my installation. I’ve successfully installed the program per the Quick-start guide provided on the Website. We presently have another server with an older version of Nagios installed. It’s using “cfg_dir=/opt/nagios/ etc” as its location for all *.cfg giles. Here's a problem: When I try to create an alternate directory (cfg_dir) in the nagios config file, I keep getting a CONFIG ERROR when I try to restart the service. I would like to use “cfg_dir=/opt/ nagios/etc/main” to hold all the config files. Here is a list of that directory right now: [root@ ~ main]# ls -l total 68 -rwxrwxr-x 1 nagios nagios 7714 Feb 13 16:55 commands.cfg -rwxrwxr-x 1 nagios nagios 2166 Feb 13 16:52 contacts.cfg -rwxrwxr-x 1 nagios nagios 240 Feb 13 14:28 hostgroups.cfg -rwxrwxr-x 1 nagios nagios 163 Feb 13 16:51 hosts.cfg -rwxrwxr-x 1 nagios nagios 2414 Feb 13 16:39 services.cfg -rwxrwxr-x 1 nagios nagios 10812 Feb 13 16:41 templates.cfg -rwxrwxr-x 1 nagios nagios 3209 Feb 13 16:55 timeperiods.cfg [root@ ~ main]# service nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. Seems like one of the config files probably has an error in it. Run '/ path/to/nagios -v /path/to/nagios.cfg'. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] fork issues and latency
Thomas Guyot-Sionnest wrote: On 14/02/09 09:43 PM, Jeff Frost wrote: On Sat, 14 Feb 2009, Thomas Guyot-Sionnest wrote: Which OS/distribution are you running? How much RAM do you have? Free RAM? SWAP? Please send results of free -m with and without Nagios running. Gentoo With nagios running (and fork errors happening): free -m total used free sharedbuffers cached Mem: 4096 1421 2674 0 51 1078 -/+ buffers/cache:292 3803 Swap: 511 0511 nagios4808 6.8 0.2 72716 11916 ?Rsl 02:00 2:47 /usr/sbin/nagios -d /etc/nagios/nagios.cfg Without nagios running: # free -m total used free sharedbuffers cached Mem: 4096 1364 2732 0 51 1073 -/+ buffers/cache:238 3857 Swap: 511 0511 Immediately after nagios start: # free -m total used free sharedbuffers cached Mem: 4096 1386 2709 0 51 1079 -/+ buffers/cache:255 3840 Swap: 511 0511 This is very strange as you should have plenty of available memory (this is a 64bit system right?) even when you see the fork() errors. I know, huh? 64-bit: Are you able to find the exact errorno with strace? ENOMEM: [pid 21754] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|S IGCHLD, child_tidptr=0x2b482d8ad440) = -1 ENOMEM (Cannot allocate memory) [pid 21754] clone(child_stack=0, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|S IGCHLD, child_tidptr=0x2b482d8ad440) = -1 ENOMEM (Cannot allocate memory) Let me know if you want anything more specific. That was done with a -e trace=process. Which kernel are you using? Do you have any security features enabled (selinux, grsecurity, pax, etc?) 2.6.18-xenU #1 SMP Fri Jun 15 17:50:34 PDT 2007 x86_64 Intel(R) Xeon(R) CPU E5345 @ 2.33GHz GenuineIntel GNU/Linux None of the security features are enabled. Is there anything logged by the kernel (dmesg)? No. :-( -- Jeff Frost, Owner j...@frostconsultingllc.com Frost Consulting, LLC http://www.frostconsultingllc.com/ Phone: 916-647-6411FAX: 916-405-4032 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] New to Nagios - Need help with nagios.cfg
[root@ ~ bin]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... Error: Unexpected token or statement in file '/opt/nagios/etc/main/commands.cfg' on line 1. *** One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Eric Chatham -Original Message- From: Marc Powell [mailto:m...@ena.com] Sent: Monday, February 16, 2009 16:38 To: Nagios Users Subject: Re: [Nagios-users] New to Nagios - Need help with nagios.cfg On Feb 16, 2009, at 2:58 PM, Eric Chatham wrote: Hello, I'm very new to Nagios. I'm running version Nagios 3.0.6 on CentOS RHEL 5.1. I used the FC6 instructions for my installation. I've successfully installed the program per the Quick-start guide provided on the Website. We presently have another server with an older version of Nagios installed. It's using cfg_dir=/opt/nagios/ etc as its location for all *.cfg giles. Here's a problem: When I try to create an alternate directory (cfg_dir) in the nagios config file, I keep getting a CONFIG ERROR when I try to restart the service. I would like to use cfg_dir=/opt/ nagios/etc/main to hold all the config files. Here is a list of that directory right now: [root@ ~ main]# ls -l total 68 -rwxrwxr-x 1 nagios nagios 7714 Feb 13 16:55 commands.cfg -rwxrwxr-x 1 nagios nagios 2166 Feb 13 16:52 contacts.cfg -rwxrwxr-x 1 nagios nagios 240 Feb 13 14:28 hostgroups.cfg -rwxrwxr-x 1 nagios nagios 163 Feb 13 16:51 hosts.cfg -rwxrwxr-x 1 nagios nagios 2414 Feb 13 16:39 services.cfg -rwxrwxr-x 1 nagios nagios 10812 Feb 13 16:41 templates.cfg -rwxrwxr-x 1 nagios nagios 3209 Feb 13 16:55 timeperiods.cfg [root@ ~ main]# service nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. Seems like one of the config files probably has an error in it. Run '/ path/to/nagios -v /path/to/nagios.cfg'. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] New to Nagios - Need help with nagios.cfg
What's the first line in your commands.cfg? Eric Chatham wrote: [root@ ~ bin]# /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg Nagios 3.0.6 Copyright (c) 1999-2008 Ethan Galstad (http://www.nagios.org) Last Modified: 12-01-2008 License: GPL Reading configuration data... Error: Unexpected token or statement in file '/opt/nagios/etc/main/commands.cfg' on line 1. *** One or more problems was encountered while processing the config files... Check your configuration file(s) to ensure that they contain valid directives and data defintions. If you are upgrading from a previous version of Nagios, you should be aware that some variables/definitions may have been removed or modified in this version. Make sure to read the HTML documentation regarding the config files, as well as the 'Whats New' section to find out what has changed. Eric Chatham -Original Message- From: Marc Powell [mailto:m...@ena.com] Sent: Monday, February 16, 2009 16:38 To: Nagios Users Subject: Re: [Nagios-users] New to Nagios - Need help with nagios.cfg On Feb 16, 2009, at 2:58 PM, Eric Chatham wrote: Hello, I'm very new to Nagios. I'm running version Nagios 3.0.6 on CentOS RHEL 5.1. I used the FC6 instructions for my installation. I've successfully installed the program per the Quick-start guide provided on the Website. We presently have another server with an older version of Nagios installed. It's using cfg_dir=/opt/nagios/ etc as its location for all *.cfg giles. Here's a problem: When I try to create an alternate directory (cfg_dir) in the nagios config file, I keep getting a CONFIG ERROR when I try to restart the service. I would like to use cfg_dir=/opt/ nagios/etc/main to hold all the config files. Here is a list of that directory right now: [root@ ~ main]# ls -l total 68 -rwxrwxr-x 1 nagios nagios 7714 Feb 13 16:55 commands.cfg -rwxrwxr-x 1 nagios nagios 2166 Feb 13 16:52 contacts.cfg -rwxrwxr-x 1 nagios nagios 240 Feb 13 14:28 hostgroups.cfg -rwxrwxr-x 1 nagios nagios 163 Feb 13 16:51 hosts.cfg -rwxrwxr-x 1 nagios nagios 2414 Feb 13 16:39 services.cfg -rwxrwxr-x 1 nagios nagios 10812 Feb 13 16:41 templates.cfg -rwxrwxr-x 1 nagios nagios 3209 Feb 13 16:55 timeperiods.cfg [root@ ~ main]# service nagios restart Running configuration check... CONFIG ERROR! Restart aborted. Check your Nagios configuration. Seems like one of the config files probably has an error in it. Run '/ path/to/nagios -v /path/to/nagios.cfg'. -- Marc -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 CONFIDENTIAL. This e-mail and any attached files are confidential and should be destroyed and/or returned if you are not the intended and proper recipient. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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
[Nagios-users] Acknowledge an alarm and changing severity levels
I am using Nagios 3.02 with NRPE 2.12 and have tested the following scenario for a disk space check. Disk space reaches to a warning threshold, say 70% and it is acknowledged. However no space is gained and the available space continues to shrink till it reaches the critical threshold (90% for example). Nagios won't raise another alarm and send another alert even though the severity has changed, because of the fact that it was acknowledged when the threshold was warning. Is there any way we can get Nagios to send a new alarm when it reaches to critical threshold, even though it was acknowledged when at warning? It seems to me that this would make sense. Many thanks, CP -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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] Nagios and rpmbuild
Hello List i'm building a rpm package with nagios-3.0.6 and i have a question: why my rpm packages don't contain the directory /etc/nagios/objects . What is the secret, somebody can help me? Thanks !!! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 and rpmbuild
Darvin, I added my nagios3.spec file with nagios-3.0.6. Hope this help. On Tue, Feb 17, 2009 at 1:38 AM, Darvin Denmian darvin.denm...@gmail.comwrote: Hello List i'm building a rpm package with nagios-3.0.6 and i have a question: why my rpm packages don't contain the directory /etc/nagios/objects . What is the secret, somebody can help me? Thanks !!! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Cordially, Shadhin Rahman nagios3.spec Description: Binary data -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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 and rpmbuild
You don't specify that directory in your spec file. On Feb 16, 2009, at 8:25 PM, shadih rahman wrote: Darvin, I added my nagios3.spec file with nagios-3.0.6. Hope this help. On Tue, Feb 17, 2009 at 1:38 AM, Darvin Denmian darvin.denm...@gmail.com wrote: Hello List i'm building a rpm package with nagios-3.0.6 and i have a question: why my rpm packages don't contain the directory /etc/nagios/ objects . What is the secret, somebody can help me? Thanks !!! -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 -- Cordially, Shadhin Rahman nagios3 .spec -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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 -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H___ 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