Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring
Hi, What is the wrong output being returned ? This might give us all a clue as to the cause of the problem. When you run the check manually, are you doing this as the same user that check_nrpe will use ? Regards, Deborah From: Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] Sent: 14 May 2013 08:43 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Greetings! Could someone send me nagios plugin which is tested and works well for monitoring IPTABLES in Linux. I have tested below script but it is not returning correct output to nagios server. If I execute script manually, it shows correct output... But if I execute via ./check_nrpe - H localhost -c check_iptables, it shows wrong output. Below is my plugin -- #!/bin/bash set -x IPT='/sbin/iptables' GREP='/bin/grep' AWK='/bin/awk' EXPR='/usr/bin/expr' WC='/usr/bin/wc' A='/usr/bin/sudo' E_SUCCESS=0 E_CRITICAL=2 E_UNKNOWN=3 CHAINS=`$A $IPT -nvL | $GREP 'Chain' | $AWK '{ print $2 }'| $GREP Cid | $WC -l` if [ $CHAINS -ne 0 ] ; then echo Firewall is running! exit ${E_SUCCESS} elif [ $CHAINS -eq 0 ] ; then echo Firewall is not running exit ${E_CRITICAL} fi This e-mail and any files transmitted with it are strictly confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- AlienVault Unified Security Management (USM) platform delivers complete security visibility with the essential security capabilities. Easily and efficiently configure, manage, and operate all of your security controls from a single console and one unified framework. Download a free trial. http://p.sf.net/sfu/alienvault_d2d___ 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 Plugin for IPTABLES Monitoring
Ok - if I look at your output, manually, when the plugin is run as the root user it produces the correct result. But, you haven't said what the nrpe user is that is running on the remote node and whether the same manual run of the check produces the same output. For example, I run remote plugins through nrpe as the nagios user so if I want to manually test a plugin on the remote node, I would first login as the nagios user to ensure I've got the same environment that would be used when running via nrpe. It might be that the variables you have set in the script only work as the root user. It's never a good idea to test as the root user but only as the same user as that used by nagios or nrpe. Regards, Deborah From: Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] Sent: 14 May 2013 09:58 To: Nagios Users List Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Hi Deborah, Thanks for the response.. please find the details below. [root@abc libexec]# pwd /usr/local/nagios/libexec [root@abc libexec]# ./check_iptables.sh - Executing manually script + IPT=/sbin/iptables + GREP=/bin/grep + AWK=/bin/awk + EXPR=/usr/bin/expr + WC=/usr/bin/wc + A=/usr/bin/sudo + E_SUCCESS=0 + E_CRITICAL=2 + E_UNKNOWN=3 ++ /usr/bin/sudo /sbin/iptables -nvL ++ /bin/grep Chain ++ /bin/awk '{ print $2 }' ++ /bin/grep Cid ++ /usr/bin/wc -l + CHAINS=5 + '[' 5 -ne 0 ']' + echo 'Firewall is running!' Firewall is running! + exit 0 -- it shows firewall running ( correct output ) [root@abc libexec]# Client - NRPE config file [root@abc libexec]# cat /usr/local/nagios/etc/nrpe.cfg |grep -i iptable command[check_iptables]=/usr/local/nagios/libexec/check_iptables.sh [root@abc libexec]# [root@abc libexec]# ./check_nrpe -H localhost -c check_iptables Firewall is not running - executing via check_nrpe ( wrong output ) [root@abc libexec]# NRPE Logs - May 14 18:52:28 abc nrpe[31158]: Added command[check_Partion_db]=/usr/local/nagios/libexec/check_disk -w 15% -c 5% -p /db May 14 18:52:28 abc nrpe[31158]: Added command[check_Partion_app]=/usr/local/nagios/libexec/check_disk -w 15% -c 5% -p /app May 14 18:52:28 abc nrpe[31158]: Added command[check_iptables]=/usr/local/nagios/libexec/check_iptables.sh May 14 18:52:28 abc nrpe[31158]: INFO: SSL/TLS initialized. All network traffic will be encrypted. May 14 18:52:28 abc nrpe[31158]: Handling the connection... May 14 18:52:28 abc nrpe[31158]: Host is asking for command 'check_iptables' to be run... May 14 18:52:28 abc nrpe[31158]: Running command: /usr/local/nagios/libexec/check_iptables.sh May 14 18:52:28 abc nrpe[31158]: Command completed with return code 2 and output: Firewall is not running May 14 18:52:28 abc nrpe[31158]: Return Code: 2, Output: Firewall is not running Kind Regards, Thilak From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: Tuesday, 14 May 2013 6:44 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Hi, What is the wrong output being returned ? This might give us all a clue as to the cause of the problem. When you run the check manually, are you doing this as the same user that check_nrpe will use ? Regards, Deborah From: Thilakraj.Shanmugam [mailto:thilakraj.shanmu...@canberra.edu.au] Sent: 14 May 2013 08:43 To: nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios Plugin for IPTABLES Monitoring Greetings! Could someone send me nagios plugin which is tested and works well for monitoring IPTABLES in Linux. I have tested below script but it is not returning correct output to nagios server. If I execute script manually, it shows correct output... But if I execute via ./check_nrpe - H localhost -c check_iptables, it shows wrong output. Below is my plugin -- #!/bin/bash set -x IPT='/sbin/iptables' GREP='/bin/grep' AWK='/bin/awk' EXPR='/usr/bin/expr' WC='/usr/bin/wc' A='/usr/bin/sudo' E_SUCCESS=0 E_CRITICAL=2 E_UNKNOWN=3 CHAINS=`$A $IPT -nvL | $GREP 'Chain' | $AWK '{ print $2 }'| $GREP Cid | $WC -l` if [ $CHAINS -ne 0 ] ; then echo Firewall is running! exit ${E_SUCCESS} elif [ $CHAINS -eq 0 ] ; then echo Firewall is not running exit ${E_CRITICAL} fi This e-mail and any files transmitted with it are strictly confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised
[Nagios-users] Configuration changes not taking effect after restart of Nagios
Hi, I'm using Nagios 3.4.4 on SLES 11 SP2. This has been running for around two months. Recently I needed to change the configuration for a service escalation to remove a contact group that would get sms alerts. I restarted Nagios and everything ran fine. However, it's been reported that recently, the team that shouldn't be getting the sms alerts are still getting them. When I look at the Configuration for service escalations, I can now see two entries for the same escalation, one which is the new , with the sms contact group removed and one with the old config which has the sms contact group included. But when I look at the actual .cfg file for the service escalation definition, there is not mention of the sms group anymore. I've checked, and re-checked and still I can't see why this has happened. I've even stopped Nagios for a short while and restarted it from scratch and this still doesn't make any difference. Has anyone else see any oddities like this where config changes don't seem to take effect after a restart of Nagios ? Is there a cache file I can remove from the configuration forcing nagios to recreate it from scratch so that reads the rest of the .cfg files properly ? Any pointers / ideas on where I go from here would be really appreciated. Regards, Deborah Deborah Martin Kognitio Analytical Platform Support __ Direct +44 1344 788670 Switch +44 1344 300770 | deborah.mar...@kognitio.com __ [Description: Description: cid:image006.jpg@01CD1C86.AAF068D0]http://www.kognitio.com/ www.kognitio.comhttp://www.kognitio.com/ [Description: Description: Description: Description: Description: Description: Facebook]http://www.facebook.com/pages/Kognitio/259254109883 [Description: Description: Description: Description: Description: Description: Twitter] http://www.twitter.com/kognitio [Description: Description: Description: Description: Description: Description: Youtube] http://www.youtube.com/kognitiowx2 [Description: Description: Description: Description: Description: Description: LinkedIn] http://www.linkedin.com/companies/kognitio [Description: Description: Description: Description: Description: Description: Blog] http://kognitio.blogspot.com/ This e-mail and any files transmitted with it are strictly confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. inline: image001.jpginline: image002.jpginline: image003.jpginline: image004.jpginline: image005.jpginline: image006.jpg-- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr___ 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] Configuring NSCA for failover scenario
Hi Folks, I have two nagios boxes, one production and one planned to be a proper failover box. If I configure NSCA, as suggested in the docs I've read so far, do I put the send_nsca daemon on the production box so that it sends passive check results to the failover box ? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ 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: R: R: check_memory does not work properly
Can you run check_memory plugin on the command line to get the full menu of options available to the plugin and post it here. Regards, Deborah From: Marco Borsani [mailto:m.bors...@it.net] Sent: 02 August 2012 15:28 To: 'Nagios Users List' Subject: [Nagios-users] R: R: R: check_memory does not work properly 1) Nagios user 2) Yes 3) Which details ? the point is that the plugin work correctly on command line, but not on web gui... Command line out -- OK + memory info + exit status 0 Web gui output -- WARNING + (null message) + exit status 1 Log file -- SERVICE ALERT: host address; service description;WARNING;HARD;3;(null) Regards Da: James Osbourn [mailto:james.osbo...@citrix.com]mailto:[mailto:james.osbo...@citrix.com] Inviato: giovedì 2 agosto 2012 15:58 A: Nagios Users List Oggetto: Re: [Nagios-users] R: R: check_memory does not work properly What user is your Nagios server running as? Is it the same as the user that you are using on the command line? Could you post more details about the exact check_memory command that you are using, there are several of them out there. The output you are getting from Nagios, is this on the web gui, or in one of the log files. It could be many things related to the check scripts itself, who you are running as where you are running the command. The command line is not always the same as when the server executes. James From: Marco Borsani [mailto:m.bors...@it.net]mailto:[mailto:m.bors...@it.net] Sent: 02 August 2012 14:48 To: 'Nagios Users List' Subject: [Nagios-users] R: R: check_memory does not work properly No idea? Regards Da: Marco Borsani [mailto:m.bors...@it.net]mailto:[mailto:m.bors...@it.net] Inviato: mercoledì 1 agosto 2012 09:19 A: 'Nagios Users List' Oggetto: [Nagios-users] R: check_memory does not work properly Commands.cfg # 'check_local_memory' command definition define command{ command_namecheck_local_memory command_line$USER1$/check_memory -w $ARG1$ -c $ARG2$ } Services.cfg define service{ use active-service host_name ip- addresses service_description check_local_memory check_command check_local_memory!10%!5% max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 check_period 24x7 notification_interval 120 notification_period24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups CG_admin } From line command: $ ./check_memory -w 10% -c 5% OK - free memory is 27% which is within expected threshold| mem=27;10;5;0;100 Regards Da: Morris, Patrick [mailto:patrick.mor...@hp.com]mailto:[mailto:patrick.mor...@hp.com] Inviato: martedì 31 luglio 2012 23:24 A: nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Oggetto: Re: [Nagios-users] check_memory does not work properly Posting your check configuration is really helpful in cases like this. It's almost impossible to give a good answer without knowing how you've set the check up. From: Marco Borsani [mailto:m.bors...@it.net]mailto:[mailto:m.bors...@it.net] Sent: Tuesday, July 31, 2012 6:52 AM To: NAGIOS Subject: [Nagios-users] check_memory does not work properly Hi all I am using a simple plug-in to check the nagios server memory. When I run it like user Nagios, it works perfectly. I see this output: OK - free memory is 40% which is within expected threshold| mem=40;10;5;0;100 When I run it with Nagios program I receive this notification: . Command: check_local_memory State: WARNING Message:(null) Any idea ? This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats.
Re: [Nagios-users] Help with DISK UNKNOWN - free space: error
Check in /var/log/messages (or wherever you are logging to) on the server that should be running check_hda1 to ensure that the nagios node is able to communicate via nrpe. Also check you can run /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/root on the nrpe node. Is it owned by the nagios user, does it belong to the nagios group (or whatever you’ve defined for this in nrpe.cfg) Regards, Deborah From: RichTea [mailto:m...@catsnest.co.uk] Sent: 19 June 2012 14:40 To: Nagios Users List Subject: Re: [Nagios-users] Help with DISK UNKNOWN - free space: error On Tue, Jun 19, 2012 at 1:06 PM, Ernesto Sanchez e.sanc...@libelium.commailto:e.sanc...@libelium.com wrote: Hello, I've a server with nrpe and the following commands in /usr/local/nagios/etc/nrpe.cfg : command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/root command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200 command[check_mem]=/usr/local/nagios/libexec/check_mem.sh 85 95 if I exec in a console /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p /dev/root i obtain the following: DISK OK - free space: /var/named/chroot/var/run/dbus 24513 MB (52% inode=88%);| /var/named/chroot/var/run/dbus=21787MB;39005;43881;0;48757 In the nagios server i've the following config file: define host{ use generic-host; Name of host template to us host_name server_name alias alas_server_name address ip_address icon_image base/linux40.jpg statusmap_image base/linux40.gd2 } # Check hda1 define service{ use generic-service host_name server_name service_description Disk check_command check_nrpe!check_hda1 } But nagios report an DISK UNKNOWN - free space: on web interface and the same if I do /usr/lib/nagios/plugins/check_nrpe -H ip_address -c check_hda1 Somebody can help me? Check the permissions on the remote server, eg can the NRPE User run the command locally. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- A lot of thanks in advance. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto: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 e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ 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] Use of customized macro in CONTACT definition
Hi, I'm trying to define a customized contact macro so that I can pass it to an event handler My contact definition is :- define contact{ contact_nametest-admin alias test-admin service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email deborah.mar...@kognitio.commailto:deborah.mar...@kognitio.com _EMAILID deborah.mar...@kognitio.commailto:deborah.mar...@kognitio.com } Then in my script test I just do echo EMAILID=$NAGIOS__CONTACTEMAILID This doesn't work. But if I put the same customized macro into a service definition and change the test script to EMAILID=$NAGIOS__SERVICEEMAILID it works fine. According to the docs, I'm specifying this correctly. I'm using nagios 3.2.0 on SLES10. So, am I doing something that should work and is a bug and if so is it fixed in a later nagios version or have I done something silly here...? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ 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] Use of customized macro in CONTACT definition
Alex, Thanks, but I set _EMAILID in my contact definition so by echoing it in my script via defining a service that calls that script as a plugin which has a contact defined as test-admin surely I have set it. According to the docs, nagios prefixes custom macros with NAGIOS__CONTACT if it's a contact definition macro which it is. So the environment variable becomes $NAGIOS__CONTACTEMAILID - note the two underlines are correct and the _ prefix in the definition is stripped. As documented it states it's to avoid name collision with $NAGIOS_nagios_macro such as the macro $HOSTALIAS$ would expand to $NAGIOS_HOSTALIAS as an environment variable that can be used in scripts such as eventhandlers. But I could also have _HOSTALIAS which would expand to NAGIOS__SERVICEHOSTALIAS to make a distinction with NAGIOS_HOSTALIAS... And as mentioned when i take that _EMAILID and put in my service definition instead, the same script that now does echo EMAILID=$NAGIOS__SERVICEEMAILID works but the only difference is I've moved the EMAILID from part of a contact definition to a service definition yet the docs supports custom macros in a contact definitions. By docs I'm referring to the documentation link on the nagios web interface and search for macros. Regards, Deborah From: Alex Griffin [agrif...@nagios.com] Sent: 25 April 2012 18:16 To: Nagios Users List Subject: Re: [Nagios-users] Use of customized macro in CONTACT definition You said you tried to echo “EMAILID=$NAGIOS__CONTACTEMAILID”, but echoing this string will not set EMAILID to the value of $NAGIOS_CONTACTEMAILID. You should set EMAILID, and then echo it afterwards. Otherwise, looking over your settings they seem to be fine. Alex Griffin --- Tech Team agrif...@nagios.com Deborah Martin wrote: Hi, I’m trying to define a customized contact macro so that I can pass it to an event handler My contact definition is :- define contact{ contact_name test-admin alias test-admin service_notification_period 24x7 host_notification_period 24x7 service_notification_options w,u,c,r host_notification_options d,u,r service_notification_commands notify-by-email host_notification_commands host-notify-by-email email deborah.mar...@kognitio.com mailto:deborah.mar...@kognitio.com _EMAILID deborah.mar...@kognitio.com mailto:deborah.mar...@kognitio.com } Then in my script test I just do echo “EMAILID=$NAGIOS__CONTACTEMAILID” This doesn’t work. But if I put the same customized macro into a service definition and change the test script to “EMAILID=$NAGIOS__SERVICEEMAILID” it works fine. According to the docs, I’m specifying this correctly. I’m using nagios 3.2.0 on SLES10. So, am I doing something that should work and is a bug and if so is it fixed in a later nagios version or have I done something silly here…? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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 -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ 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
[Nagios-users] Flexible downtime not working
Hi, We use Nagios 3.2.0 on SLES 10 SP2 to monitor a few hundred services. Yesterday, we put a particular service into flexible downtime from around 7am to 2pm. However, it seems to still be stuck in flexible downtime so any alerts after 2pm haven't been sent out. I'm not entirely sure why this is happening as I've used this before and never had any problems. Has anyone come across this before ? Is there a way to kick this service back into normal monitoring ? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ 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] Flexible downtime not working
Hi Claudio, Thanks for info. But I'm a little puzzled. I clarified the steps that were taken. It turns out that he didn't use Flexible but instead used fixed. However, he's sure that the dates were set to 1st April for the start and end date. So, surely once the date changed to the 2nd April, at the very least, normal monitoring should have resumed or is that not correct ? In fact I took your advice and removed the fixed downtime manually. These are the nagios log entries I see for this service :- 04-01-2012 00:00:00 04-01-2012 06:00:00 0d 6h 0m 0s SERVICE OK (HARD) 60 rows in dsa.mdf_reservation in last 10 minutes 04-01-2012 06:00:00 04-01-2012 06:46:11 0d 0h 46m 11s SERVICE DOWNTIME START Start of scheduled downtime 04-01-2012 06:46:11 04-01-2012 14:00:10 0d 7h 13m 59s SERVICE CRITICAL (HARD) 0 rows in dsa.mdf_reservation in last 10 minutes 04-01-2012 14:00:10 04-02-2012 11:26:18 0d 21h 26m 8s SERVICE OK (HARD) 331 rows in dsa.mdf_reservation in last 10 minutes 04-02-2012 11:26:18 04-02-2012 11:47:16 0d 0h 20m 58s+ SERVICE DOWNTIME END End of scheduled downtime The last entry is when I manually put the service back to normal monitoring. Regards, Deborah From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: 02 April 2012 10:29 To: Nagios Users List Subject: Re: [Nagios-users] Flexible downtime not working Hello Deborah, If you use Flexible Downtimes, don't forget to select Flexible from the Select-Menu (Type). Otherwise the fixed dates are taken (Start Date, End Date). To remove a host or service from a scheduled downtime, click on Downtime in the left navigation. There you can delete the wanted entry. cheers On Mon, Apr 2, 2012 at 10:42 AM, Deborah Martin deborah.mar...@kognitio.commailto:deborah.mar...@kognitio.com wrote: Hi, We use Nagios 3.2.0 on SLES 10 SP2 to monitor a few hundred services. Yesterday, we put a particular service into flexible downtime from around 7am to 2pm. However, it seems to still be stuck in flexible downtime so any alerts after 2pm haven't been sent out. I'm not entirely sure why this is happening as I've used this before and never had any problems. Has anyone come across this before ? Is there a way to kick this service back into normal monitoring ? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netmailto: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 e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ 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 check frequency
Wadud, Surely, a check frequency of 60 minutes is not a good idea since, it could be that the node has been down for an hour before anyone knows anything about it ? I would recommend checking every 10 minutes to start with since that is the frequency you'd want to check if it was a NON-OK status anyway. You can set your notifications to be a longer period between checks which is how I configure Nagios. We check a database every 20 minutes for example, for RAM usage, but only notify every 4 hours. So, users still get the initial alert that ram usage has breached a threshold but are only reminded every 4 hours. And of course, if there is a recovery to an OK status within that 4 hours, users would be emailed as well. It works well for us and doesn't bombard users with emails either which means they are less likely to filter nagios alerts into the Deleted email folder. Of course, you probably have an excellent reason for only checking every 60 minutes which I haven't thought of so this is really just my tuppence worth! Regards, Deborah -Original Message- From: Wadud Miah (ITCS) [mailto:w.m...@uea.ac.uk] Sent: 23 January 2012 12:24 To: Andreas Ericsson; Nagios Users List Subject: Re: [Nagios-users] Nagios check frequency Hi Andreas, Thanks for the reply. The retry_interval will retry to ensure the service is actually down, which is the case here. This is set to three in my configuration. However, once it exceeds retry_interval and the service is deemed as not-OK, it is then that I want it to increase the check frequency. I couldn't find anything in the documentation. Regards, Wadud. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Monday, January 23, 2012 12:20 PM To: Nagios Users List Cc: Wadud Miah (ITCS) Subject: Re: [Nagios-users] Nagios check frequency On 01/23/2012 12:48 PM, Wadud Miah (ITCS) wrote: Hello Nagios users, I would like Nagios to increase the check frequency once the service is in a critical state. For example, if a check has a frequency of every 60 minutes, once it has reached a critical state, I want the check frequency to run at, say, every 10 minutes until the check has reached an OK state. Use retry_interval. I have set the max_check_attempts to three, and wanted to know if this is the case when nrpe times out. Does it check nrpe checks 3 times even if it times out on the first attempt? That depends on how you've configured it. Timeouts doesn't matter in the slightest for Nagios' scheduling logic though, so it will run the check 3 times if that's what you've configured. -- 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. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ 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 Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net
Re: [Nagios-users] Next check jumps from 5min to 24h
Folks, I had exactly the same problem with the same version on SLES10 SP2, when I came in this morning and realised that the last_check time was wrong for most checks. I had to jump start Nagios by disabling all active checks and reenabling them. This is weird problem but wondered if it was anything to do with the clocks changing over the weekend in the UK ? Perhaps it isn't if people in a non-UK timezone had the same problem ? Regards, Deborah -Original Message- From: MAD [mailto:m...@b-care.net] Sent: 31 October 2011 11:28 To: Nagios-Users Subject: [Nagios-users] Next check jumps from 5min to 24h Hi list, Something strange happened last night. At about 23:00 the 30th of October, all checks (hosts and services) were scheduled to run the 31st of October at 23:00 instead of the usual 5min later. I had to rescheduled all checks manually this morning to restart my monitoring. I'm running Nagios 3.2.0 Have someone heard about a similar issue? Thanks in advance, Marc-André -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World#153; now supports Android#153; Apps for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev ___ 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 Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- Get your Android app more play: Bring it to the BlackBerry PlayBook in minutes. BlackBerry App World#153; now supports Android#153; Apps for the BlackBerryreg; PlayBook#153;. Discover just how easy and simple it is! http://p.sf.net/sfu/android-dev2dev ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Check_tcp - port monitoring best practice
Hi, I just wondered what would be the best practice for monitoring ports. At the moment we specify 10,20,25 seconds for ok, warning and critical alerts. Is that too little - we are seeing a few critical alerts generated and wondered if increasing the thresholds would be better. What does a socket timeout generally mean as some of the ports we're monitoring are on systems which are idle at the moment. Could these be caused by network glitches between the nagios box and the target ports - the systems we're monitoring aren't local on the nagios network but in different parts of the world. I wonder if a local nagios instance would be better to try and reduce socket timeouts as otherwise people oncall are going to get called out quite a lot (?) Any input / ideas would be really appreciated. Regards, Deborah Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2d-oct ___ 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] Nrpe and Windows
Folks, Thanks for the suggestions. I'll give check_wmi_plus consideration. It's disappointing that nrpe is failing like this though. I'm only checking local disk usage using check_pdm.exe for the c: drive at the moment. We wouldn't be able to work with NRPE like this as once we have production systems up and running nrpe (or whatever we decide to use) needs to reliable. Regards, Deborah -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 22 September 2011 15:51 To: Nagios Users List Subject: Re: [Nagios-users] Nrpe and Windows Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? The problem is not 'standard' so to speak; check your windows server eventlog (e.g,)( Is nrpe the best way to monitor windows boxes or should I consider other options out there ? You may consider agent less monitoring, I have been using it for a while, google on check_wmi_plus M. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ 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 Complimentary Events and Webinars on In-Memory, Massively Parallel Processing and 'In the Cloud' - for more information click here This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 ___ 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] Nrpe and Windows
Folks, Nagios 3.2.0 is running on SLES 10 SP 1 NRPE running on Windows It all seems to work fine for a while (10 mins) and then I start seeing socket timeout errors. The only way to fix this is to restart the nrpe service on the node that is being monitored. Has anyone else had this this happen and if so, what was the solution to this sort of problem ? Is nrpe the best way to monitor windows boxes or should I consider other options out there ? Any help / pointers / opinions would be really appreciated. Thanks, Deborah Attend complimentary seminar in New York City. Stop Dreaming make virtual cubes a reality, for those who face OLAP cube nightmares Register Now at http://www.kognitio.com/stopdreaming This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity and more. Splunk takes this data and makes sense of it. Business sense. IT sense. Common sense. http://p.sf.net/sfu/splunk-d2dcopy1 ___ 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] Web interface errors
Check that /usr/local/nagios/var/rw/nagios.cmd is owned / exectuable by the nagios user. -Original Message- From: m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] Sent: 14 September 2011 11:42 To: Nagios Users List Subject: Re: [Nagios-users] Web interface errors On Tue, Sep 13, 2011 at 7:27 PM, Jim Nachlin jim.nach...@gawker.com wrote: Hi, I'm receiving the most common, dreaded Error: Could not read object configuration data! message on all of my cgi-generated web interface pages. My configuration files have no warnings in them. /var/log/nagios/nagios.log does not give me any hints. There are no errors in the Apache logs. Checks are actually working - so the non-web part of Nagios is OK. I am running the RPM version on RHEL6: nagios-3.2.3-8.el6.x86_64 and nagios-common-3.2.3-8.el6.x86_64, plus a number of plugins, also from RPM. SELinux is set to permissive. I am about at my wit's end. Since there are no errors in any log file, I don't know what to try next. Is there some file ownership or permissions settings I could change? Most of what's under /etc/nagios is owned by nagios:nagios, with the exception of the passwd file, group apache. The nagios process itself is also owned by nagios user. /usr/share/nagios/ is chowned -R nagios. Thanks in advance for any suggestions. Try adding apache to the nagios group... As Apache needs to be able to read the object file thats where the cgis get there data from. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- -Jim -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ 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 -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ 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 Attend complimentary seminar in New York City. Stop Dreaming make virtual cubes a reality, for those who face OLAP cube nightmares Register Now at http://www.kognitio.com/stopdreaming This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused -- BlackBerryreg; DevCon Americas, Oct. 18-20, San Francisco, CA Learn about the latest advances in developing for the BlackBerryreg; mobile platform with sessions, labs more. See new tools and technologies. Register for BlackBerryreg; DevCon today! http://p.sf.net/sfu/rim-devcon-copy1 ___ 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] Printer error
I wouldn't just restart Nagios and hope the problem goes away but try and find out why / where the problem lies. Have you checked by running the plugin itself as the nagios user to ensure it works properly from the command line ? Does the plugin exist in the location that you've configured Nagios to look for it ? Regards, Deborah From: Wilfred de Bondt [mailto:wilf...@stachanov.com] Sent: 29 June 2011 12:36 To: Nagios Users List Subject: Re: [Nagios-users] Printer error Hi all, Usually we get this problem after a nagios reload and not a restart. So just stop and start nagios? Yours faithfully, Wilfred de Bondt -- Systems Administrator Stachanov Group: phone: (+31)205091010 For more information, see website web: www.stachanov.com/http://www.stachanov.com/ www.issuu.com/stachanovhttp://www.issuu.com/stachanov From: nag ios [mailto:nagiost...@gmail.com] Sent: woensdag 29 juni 2011 13:31 To: Nagios Users List Subject: [Nagios-users] Printer error Hi i have configured nagios for monitoring Printers but i'm getting the error as return code of 127 is out of bounds - plugin may be missing Please help me regarding this issue. -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2___ 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] Notification after Acknowledgment
Andre, I wouldn't acknowledge it unless you plan to actually do something about it. I use escalations which instigate callouts to engineers. When the oncall engineer acks an alert it means they are investigating. It would be pointless surely to ack something which you aren't going to do anything about. Also, think about why you'd ack at 80% if it's just a warning. We have thresholds of 85% for disk usage warnings but in all honesty it's there as exactly that - a warning. We don't send notifications for warnings on disk usage. We just monitor via the web interface. Notifications are sent on critical alerts because that is the time when action needs to be taken and users need to pay attention. But this is all based on our requirements rather than yours so this is just my tuppence worth! Regards, Deborah From: Andre Kruger [mailto:andre.kru...@trw.com] Sent: 13 May 2011 08:35 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Notification after Acknowledgment Hi Can you guys please give me your input on how you handle the following situation. Lets take monitoring a disk as an example. For arguments sake lets say when the disk reaches 80% capacity I send out a warning and at 90% I send out a critical. There is also a Service Escalation configured to send out notifications when this service reaches critical. So at 80 percent I get my notification all is well. I then go ahead and acknowledge the event and in doing so Nagios will not send out any further notifications. Which according to the Nagios logic is correct. The problem is if the disk in the mean time reaches critical, 90% capacity, I won't get another notification. Not even the Service Escalation helps here, because the event has already been acknowledged. Do you guys have any suggestions on how this problem can be solved? Regards Andre P Please consider your environmental responsibility before printing this e-mail or any other document. Ask yourself whether you need a hard copy. -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay___ 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] Default Acknowledge Behavior
It might be nice to have a flag in nagios.cfg or somewhere so that the behaviour can be set system wide. This gives the flexibility to everyone to have the behaviour they want. From: Andre Kruger [mailto:andre.kru...@trw.com] Sent: 13 May 2011 09:30 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Default Acknowledge Behavior Hi Can the default behavior for acknowledging an event be changed. As in can the default be changed from the Sticky Acknowedgement being always checked, to always unchecked? I have read a post on the internet that this is hard coded and you would have to change the source and recompile in order to accomplish this. http://article.gmane.org/gmane.network.nagios.user/54147 This post is very old...maybe this has changed in 3.2.3? Regards Andre P Please consider your environmental responsibility before printing this e-mail or any other document. Ask yourself whether you need a hard copy. -- Achieve unprecedented app performance and reliability What every C/C++ and Fortran developer should know. Learn how Intel has extended the reach of its next-generation tools to help boost performance applications - inlcuding clusters. http://p.sf.net/sfu/intel-dev2devmay___ 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] Plugins for informatica and microstrategy
Folks, Nagios 3.2.0 / SLES 10 SP2 Does anyone know if there are nagios plugins for monitoring informatica or microstrategy out there. Or could anyone point me to some scripts that I could adapt. I've trawled through google but I get vast amounts of results back which are hit and miss on what I'm trying to achieve. Any pointers and help would be really appreciated. Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** -- Xperia(TM) PLAY It's a major breakthrough. An authentic gaming smartphone on the nation's most reliable network. And it wants your games. http://p.sf.net/sfu/verizon-sfdev___ 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] Monitoring Microstrategy
Folks, Would anyone know where I could get a plugin to monitor Microstrategy ? I've googled but not really found anything useful. Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** -- Enable your software for Intel(R) Active Management Technology to meet the growing manageability and security demands of your customers. Businesses are taking advantage of Intel(R) vPro (TM) technology - will your software be a part of the solution? Download the Intel(R) Manageability Checker today! http://p.sf.net/sfu/intel-dev2devmar ___ 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] servicedependency problem
Jorn, You haven't mentioned which version of Nagios is running so I'll assume it's 3.2.0 which is the same as mine... I think I'd translate your servicedependency definition differently :- If functionality_LB is in w,c,u state don't do functionality_cl1 because funcationality_cl1 relies on functionality_LB to be in a non warning,critical or unknown state for functionality_cl1 to work ? define servicedependency { host_name s.test.com service_descriptionfunctionality_LB --- Parent dependent_service_description functionality_cl1 --- Child execution_failure_criteria w,c,u notification_failure_criteria w,c,u dependent_hostgroup_name hg_test } Think of a parent-child relationship where a child check should only run if the parent is running ok. And if the parent is in a specific state (w,c,u) surpress the child check and also notifications. So functionality_LB is the parent and functionality_cl1 is the child in your case. Hope that helps / makes sense. Regards, Deborah -Original Message- From: Gaertner, Joern [mailto:joern.gaert...@wirecard.com] Sent: 27 January 2011 15:27 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] servicedependency problem Hi, I have a problem with servicedendencies. My config looks like this: define servicedependency { host_name s.test.com execution_failure_criteria w,c,u service_descriptionfunctionality_LB dependent_service_description functionality_cl1 notification_failure_criteria w,c,u dependent_hostgroup_name hg_test } If I am not wrong this should translate to: Do always functionality_LB on s.test.com. If functionality_LB is in state w,c,u do functionality_cl1 on hg_test but not if functionality_LB is in state OK. But it doesn't work. functionality_LB is in state OK. If I go in the web frontend on the details for check functionality_cl1 I can see the last check is always less than 3 min ago and new cheks are always scheduled. Does anyone know what is going wrong here? Thanks Jörn -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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] servicedependency problem
Jorn, You haven't mentioned which version of Nagios is running so I'll assume it's 3.2.0 which is the same as mine... I think I'd translate your servicedependency definition differently :- If functionality_LB is in w,c,u state don't do functionality_cl1 because funcationality_cl1 relies on functionality_LB to be in a non warning,critical or unknown state for functionality_cl1 to work ? define servicedependency { host_name s.test.com service_descriptionfunctionality_LB --- Parent dependent_service_description functionality_cl1 --- Child execution_failure_criteria w,c,u notification_failure_criteria w,c,u dependent_hostgroup_name hg_test } Think of a parent-child relationship where a child check should only run if the parent is running ok. And if the parent is in a specific state (w,c,u) surpress the child check and also notifications. So functionality_LB is the parent and functionality_cl1 is the child in your case. Hope that helps / makes sense. Regards, Deborah -Original Message- From: Gaertner, Joern [mailto:joern.gaert...@wirecard.com] Sent: 27 January 2011 15:27 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] servicedependency problem Hi, I have a problem with servicedendencies. My config looks like this: define servicedependency { host_name s.test.com execution_failure_criteria w,c,u service_descriptionfunctionality_LB dependent_service_description functionality_cl1 notification_failure_criteria w,c,u dependent_hostgroup_name hg_test } If I am not wrong this should translate to: Do always functionality_LB on s.test.com. If functionality_LB is in state w,c,u do functionality_cl1 on hg_test but not if functionality_LB is in state OK. But it doesn't work. functionality_LB is in state OK. If I go in the web frontend on the details for check functionality_cl1 I can see the last check is always less than 3 min ago and new cheks are always scheduled. Does anyone know what is going wrong here? Thanks Jörn -- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Special Offer-- Download ArcSight Logger for FREE (a $49 USD value)! Finally, a world-class log management solution at an even better price-free! Download using promo code Free_Logger_4_Dev2Dev. Offer expires February 28th, so secure your free ArcSight Logger TODAY! http://p.sf.net/sfu/arcsight-sfd2d___ 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] Differences of certain parameters set in Nagios.cfg
Folks, I'm running nagios 3.2.2 on SLES 10 SP2 # HOST AND SERVICE PERFORMANCE DATA PROCESSING COMMANDS # These commands are run after every host and service check is # performed. These commands are executed only if the # enable_performance_data option (above) is set to 1. The command # argument is the short name of a command definition that you # define in your host configuration file. Read the HTML docs for # more information on performance data. service_perfdata_command=command to process performanace data and # HOST AND SERVICE PERFORMANCE DATA FILE PROCESSING COMMANDS # These commands are used to periodically process the host and # service performance data files. The interval at which the # processing occurs is determined by the options above. service_perfdata_file_processing_command=command to process performance data I'm using the parameter service_perfdata_file_processing_command to process performance data for pnp4nagios. The first parameter service_perfdata_command is commented out. But could I still use that first parameter? It would solve a big issue I'm having if I could use it as I need to keep a legacy set of performance data for reports at the same time as being able to graph a a subset of the same data. Any help / pointers would be much appreciated. Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Increase Visibility of Your 3D Game App Earn a Chance To Win $500! Tap into the largest installed PC base get more eyes on your game by optimizing for Intel(R) Graphics Technology. Get started today with the Intel(R) Software Partner Program. Five $500 cash prizes are up for grabs. http://p.sf.net/sfu/intelisp-dev2dev___ 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] More than one command defined
Hi, I have a need to run two different commands when processing the performance data from Nagios (3.2.2) I want the first command to run the process-perfdata.pl script from pnp4nagios and the second command to log various things to a different log file. The reason is that we've only just had a requirement to process performance data for pnp4nagios graphing. But historically we've created our own performance data log which is then used within a database to produce SLA reports developed in-house (no graphing just numbers produced for the SLA reports) If I do the following I don't get an errors when I run nagios -v nagios.cfg ... :- define command { command_name process-service-perfdata-file command_line first command - process performance data for pnp4nagios command_line second command - log different data to a different file } I'd like to avoid creating a script with both commands in if I can help it as it's extremely useful to keep it simple and visible in the misccommands.cfg file. Perhaps there is some other way I can do this or is a script with both commands really the only way ? Any help / pointers would be really appreciated. If I'm being dense about this and the answer is staring right at me feel free to say so! Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ 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] More than one command defined
Thanks for the input everyone. Much appreciated. I'll try with merlin and see where that goes. And the script idea as well. The trouble is Nagios is a complicated beast (to me anyway). Coupled with that and getting pnp4nagios working as well this week, my head hurts from config file overload :) Anyway all food for thought! Thanks again. Deborah -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: 18 November 2010 17:10 To: Nagios Users List Cc: Deborah Martin Subject: Re: [Nagios-users] More than one command defined On 11/18/2010 05:25 PM, Deborah Martin wrote: Hi, I have a need to run two different commands when processing the performance data from Nagios (3.2.2) I want the first command to run the process-perfdata.pl script from pnp4nagios and the second command to log various things to a different log file. The reason is that we've only just had a requirement to process performance data for pnp4nagios graphing. But historically we've created our own performance data log which is then used within a database to produce SLA reports developed in-house (no graphing just numbers produced for the SLA reports) If I do the following I don't get an errors when I run nagios -v nagios.cfg ... :- define command { command_name process-service-perfdata-file command_linefirst command - process performance data for pnp4nagios command_linesecond command - log different data to a different file } I'm not surprised. This is a sort of unintentional fallout that comes from using the template system the way it's defined today. I guess only the second command_line will get run though, right? I'd like to avoid creating a script with both commands in if I can help it as it's extremely useful to keep it simple and visible in the misccommands.cfg file. Perhaps there is some other way I can do this or is a script with both commands really the only way ? You could use Merlin and set the perfdata_table option in the database section of the daemon compound. Then you can grab the perfdata items from the merlin database. Note that you'll have to drop old entries from that table every once in a while though, as the table will surely grow huge otherwise. That doesn't really let you have things visible in the misccommands.cfg file though, so you'll have to pick your poison on this one. -- 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Beautiful is writing same markup. Internet Explorer 9 supports standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 L3. Spend less time writing and rewriting code and more time creating great experiences on the web. Be a part of the beta today http://p.sf.net/sfu/msIE9-sfdev2dev___ 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] Best use of check_ntp_time plugin
Folks, We've had a problem recently where the timestamp has been drifting hours ahead on the VM box running nagios. (v3.2.0 with SLES 10 SP2) As a consequence I'm setting up the plugin check_ntp_time to ensure that the clock on the nagios monitoring box doesn't drift too far ahead (or behind.) without telling us so that we can do something about it. For the threshold for warning and critical, I was thinking of -w 30 and -c 60 - would this seem sensible ? And also, if the alert did become critical because the drift was greater than 60 seconds what would be a sensible way of fixing this without human intervention. I thought that an event handler might be the way to go here that would restart the ntpd daemon. I'd be interested to know what your thoughts are / whether there is a better way ? thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- ___ 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] FW: Timeperiods and oncall rotation with UK Public holidays
Is anybody able to help with this ? Thanks, Deborah _ From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: 21 April 2010 12:25 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Timeperiods and oncall rotation with UK Public holidays Importance: High Folks, I'm using SLES 10 and Nagios 3.2.0. We have 4 oncall engineers which rotate over a 4 week period, each being oncall one week at a time. The oncall period is 17:30 - 08:00 each working day and then the whole period for any weekend or UK public holiday. My definitions are :- define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } This is for all normal monitoring of our systems. Each oncall engineer is defined :- define timeperiod{ timeperiod_name person1-oncall alias person1-oncall 2010-03-29 / 28 17:30-24:00 ; Monday 2010-03-30 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-03-31 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-01 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-02 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-03 / 28 00:00-24:00 ; Saturday 2010-04-04 / 28 00:00-24:00 ; Sunday 2010-04-05 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person2-oncall alias person2-oncall 2010-04-05 / 28 17:30-24:00 ; Monday 2010-04-06 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-07 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-08 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-09 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-10 / 28 00:00-24:00 ; Saturday 2010-04-11 / 28 00:00-24:00 ; Sunday 2010-04-12 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person3-oncall alias person3-oncall 2010-04-12 / 28 17:30-24:00 ; Monday 2010-04-13 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-14 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-15 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-16 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-17 / 28 00:00-24:00 ; Saturday 2010-04-18 / 28 00:00-24:00 ; Sunday 2010-04-19 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person4-oncall alias person4-oncall 2010-04-19 / 28 17:30-24:00 ; Monday 2010-04-20 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-21 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-22 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-23 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-24 / 28 00:00-24:00 ; Saturday 2010-04-25 / 28 00:00-24:00 ; Sunday 2010-04-26 / 28 00:00-08:00 ; Monday } I have escalations set for one particular client which will happen during oncall hours only and depending on the notification number, (4,5,6) will send an SMS alert to the relevant person oncall. ## Escalation ONE: define serviceescalation { host_name dbhost1 service_description DB Conn Check first_notification 4 last_notification 6 notification_interval 15 escalation_options c ; Only escalate for CRITICAL alerts escalation_period oncall contact_groups wx2-sms-oncall-group } define timeperiod{ timeperiod_name oncall alias Oncall Hours sunday 00:00-24:00 monday 00:00-08:00,17:30-24:00 tuesday 00:00-08:00,17:30-24:00 wednesday 00:00-08:00,17:30-24:00 thursday00:00-08:00,17:30-24:00 friday 00:00-08:00,17:30-24:00 saturday00:00-24:00 } And the sms-oncall-group defined for the service escalation includes all 4 oncall engineers but only the person actually oncall should get the sms alert based on their oncall timeperiods. define contactgroup{ contactgroup_name wx2-sms-oncall-group alias WX2 Oncall members person1-oncall, person2-oncall, person3-oncall, person4-oncall } However, I've now hit a snag - how do I define UK public holidays periods as being 24 hours (particularly if they fall on a weekday) and put that timeperiod
[Nagios-users] Timeperiods and oncall rotation with UK Public holidays
Folks, I'm using SLES 10 and Nagios 3.2.0. We have 4 oncall engineers which rotate over a 4 week period, each being oncall one week at a time. The oncall period is 17:30 - 08:00 each working day and then the whole period for any weekend or UK public holiday. My definitions are :- define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } This is for all normal monitoring of our systems. Each oncall engineer is defined :- define timeperiod{ timeperiod_name person1-oncall alias person1-oncall 2010-03-29 / 28 17:30-24:00 ; Monday 2010-03-30 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-03-31 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-01 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-02 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-03 / 28 00:00-24:00 ; Saturday 2010-04-04 / 28 00:00-24:00 ; Sunday 2010-04-05 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person2-oncall alias person2-oncall 2010-04-05 / 28 17:30-24:00 ; Monday 2010-04-06 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-07 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-08 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-09 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-10 / 28 00:00-24:00 ; Saturday 2010-04-11 / 28 00:00-24:00 ; Sunday 2010-04-12 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person3-oncall alias person3-oncall 2010-04-12 / 28 17:30-24:00 ; Monday 2010-04-13 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-14 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-15 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-16 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-17 / 28 00:00-24:00 ; Saturday 2010-04-18 / 28 00:00-24:00 ; Sunday 2010-04-19 / 28 00:00-08:00 ; Monday } define timeperiod{ timeperiod_name person4-oncall alias person4-oncall 2010-04-19 / 28 17:30-24:00 ; Monday 2010-04-20 / 28 00:00-08:00,17:30-24:00 ; Tuesday 2010-04-21 / 28 00:00-08:00,17:30-24:00 ; Wednesday 2010-04-22 / 28 00:00-08:00,17:30-24:00 ; Thursday 2010-04-23 / 28 00:00-08:00,17:30-24:00 ; Friday 2010-04-24 / 28 00:00-24:00 ; Saturday 2010-04-25 / 28 00:00-24:00 ; Sunday 2010-04-26 / 28 00:00-08:00 ; Monday } I have escalations set for one particular client which will happen during oncall hours only and depending on the notification number, (4,5,6) will send an SMS alert to the relevant person oncall. ## Escalation ONE: define serviceescalation { host_name dbhost1 service_description DB Conn Check first_notification 4 last_notification 6 notification_interval 15 escalation_options c ; Only escalate for CRITICAL alerts escalation_period oncall contact_groups wx2-sms-oncall-group } define timeperiod{ timeperiod_name oncall alias Oncall Hours sunday 00:00-24:00 monday 00:00-08:00,17:30-24:00 tuesday 00:00-08:00,17:30-24:00 wednesday 00:00-08:00,17:30-24:00 thursday00:00-08:00,17:30-24:00 friday 00:00-08:00,17:30-24:00 saturday00:00-24:00 } And the sms-oncall-group defined for the service escalation includes all 4 oncall engineers but only the person actually oncall should get the sms alert based on their oncall timeperiods. define contactgroup{ contactgroup_name wx2-sms-oncall-group alias WX2 Oncall members person1-oncall, person2-oncall, person3-oncall, person4-oncall } However, I've now hit a snag - how do I define UK public holidays periods as being 24 hours (particularly if they fall on a weekday) and put that timeperiod into each oncall engineers timeperiod so whoever is oncall on a particular UK public holiday will get the escalation alerts for the entire 24 hour period rather than the usual defined oncall period of 00:00-08:00 and 17:30-24:00 I'd rather not explicitly define a UK holiday date to an oncall engineer as this would need to be maintained. I'd rather just have to update the
Re: [Nagios-users] Unable to log in to Nagios
Chris, The file name the error is referring to is htpasswd.users [Fri Dec 11 13:20:09 2009] [error] [client 192.168.2.102] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users But your directory listing shows -rwxrwxrwx 1 nagios nagios26 Dec 11 12:52 htpassword.users Rename the file to htpasswd.users and that may resolve it! Regards, Deborah -Original Message- From: Chris Blake [mailto:chris.bl...@tauspace.com] Sent: 11 December 2009 11:57 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Unable to log in to Nagios On Fri, Dec 11, 2009 at 12:18 PM, Martin Melin mme...@gmail.com wrote: From the quickstart: 5) Configure the Web Interface [...] Create a nagiosadmin account for logging into the Nagios web interface. Remember the password you assign to this account - you'll need it later. htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin [...] Your htpasswd file probably either does not contain what you think it does, or is not where it should be. Try re-creating it and using a very simple password. Regards, Martin Melin Hi again, I followed a bunch of instructions relating to configuring Apache directives and setting things in nagios.conf, and I`m still not able to log in. I am really confused now, when I tail the logs for Apache I get this when trying to log in : [Fri Dec 11 13:20:09 2009] [error] [client 192.168.2.102] (2)No such file or directory: Could not open password file: /usr/local/nagios/etc/htpasswd.users [Fri Dec 11 13:20:09 2009] [error] [client 192.168.2.102] access to /nagios/ failed, reason: verification of user id 'nagiosadmin' not configured I have the following permissions set up : [r...@zabbix etc]# pwd /usr/local/nagios/etc [r...@zabbix etc]# ls -l total 88 -rw-rw-r-- 1 nagios nagios 11408 Dec 11 13:16 cgi.cfg -rwxrwxrwx 1 nagios nagios26 Dec 11 12:52 htpassword.users -rw-rw-r-- 1 nagios nagios 43776 Dec 11 10:36 nagios.cfg drwxrwxr-x 2 nagios nagios 4096 Dec 11 10:36 objects -rw-rw 1 nagios nagios 1340 Dec 11 10:36 resource.cfg [r...@zabbix etc]# Can someone please help me, I have gone through a few articles and I am obviously missing something as to why I cannot log in Thank you. -- Regards Chris Blake TAU SPACE Operations Manag -- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Return on Information: Google Enterprise Search pays you back Get the facts. http://p.sf.net/sfu/google-dev2dev ___ 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] Business objects plugin
Folks, Does anyone know if a plugin exists for Business Objects. We have a requirement to replicate end users and their use of Business Objects so that we can determine if they are receiving a service within their agreed SLA. Basically, we want Nagios to connect to the BO environment and actually run a BO report in the same way as the end user. I've googled but so far not seen anything that can help. If anyone has any ideas, pointers etc, it would be really appreciated. thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com___ 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] Service latency suddenly through the roof
Hi, I'm running nagios 2.0b4, on suse 9.3. The plan is to upgrade to 3.0.6 (nagios) and SLES10 sp1. Recently, during some checking of the data that I collect for SLA reporting, I noticed the service latency has gone through the roof! The only recent change I've made is to put ssh checks as a host check. This was to filter ssh checks away from the service problem web interface as we do have to shut nodes down from time to time but we don't want to be alerted as a service problem. I then had to introduce check_dummy as the service check (otherwise the pre-flight check outputs hundred of lines stating the no services was associated with host). The check_dummy service check is only done on a Sunday once per host as it's a dummy check. I thought this would put less load on Nagios (please correct me if I'm wrong) We regard service problems to only be checks against our databases. Does anyone know of what could set this servicelatency to suddenly increase like this ? regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___ 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] Service latency suddenly through the roof
Andreas, Thanks for your reply. I completely agree with the suggestion of upgrading. I'm currently migrating configs across to Nagios 3.0.6 with the hope of switching to this box in about a week. I was hoping to keep the configs on the nagios 2.0b4 box fairly consistent with the new box so we can run them in parallel for about a month before trashing it. Should I expect latency to be a lot lower with the new version of Nagios ? I'm currently looking at the logs produced so far for the new version to see what the latency levels are like. regards, deborah -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: 23 March 2009 14:02 To: Deborah Martin Cc: 'nagios-users@lists.sourceforge.net' Subject: Re: [Nagios-users] Service latency suddenly through the roof Deborah Martin wrote: Hi, I'm running nagios 2.0b4, on suse 9.3. The plan is to upgrade to 3.0.6 (nagios) and SLES10 sp1. Recently, during some checking of the data that I collect for SLA reporting, I noticed the service latency has gone through the roof! The only recent change I've made is to put ssh checks as a host check. This was to filter ssh checks away from the service problem web interface as we do have to shut nodes down from time to time but we don't want to be alerted as a service problem. Did you also enable scheduled host checks? In 2.x, nagios stops everything as soon as it runs a host check, so latency will naturally go through the roof. I then had to introduce check_dummy as the service check (otherwise the pre-flight check outputs hundred of lines stating the no services was associated with host). The check_dummy service check is only done on a Sunday once per host as it's a dummy check. I thought this would put less load on Nagios (please correct me if I'm wrong) We regard service problems to only be checks against our databases. Does anyone know of what could set this servicelatency to suddenly increase like this ? Since you're running a beta release that's more than 2 years old, I'm not even remotely interested to guess or investigate this matter. At least upgrade to latest 2.x stable (2.12, I think?). If the problem still persists, then it's worth investigating. -- 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___ 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] Host checks instead of service checks
Hi Folks, Currently, the main nagios box (running old version of SuSE) and Nagios 2.0b4 is running just with service checks, one of which is an ssh check (we don't allow ping) So in the web interface, I see all hosts as up. However, I've built a new box (which hopefully will replace the above) with SLES 10SP1 and Nagios 3.0.6. I've put the same config files (services.cfg and hosts.cfg) on the this new system. But now the hosts all show as Pending. So I then moved the ssh check from a service check to a host check and can see that the more hosts I move the less hosts are pending. That's good so far... But, when I run the pre-flight check (/usr/local/nagios/bin/nagios -v nagios.cfg), I now get warnings to say some hosts don't have any service checks associated with it! This is true as some nodes will only have ssh checks against them whilst others will have other checks against them. I'd rather it didn't warn me as I have hundreds of hosts appear in the pre-flight check warnings and it now looks incredibly untidy to see all this. How can I get rid of these warnings ? I'm probably missing something here so any help would be appreciated. I'm wondering for example, if I should force the initial state to be UP for hosts rather than moving the ssh service check to a host check. But then what would happen if the service check found a node was down - would it reflect that in the host problems ? regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___ 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] Host checks instead of service checks
Thanks Richard. I'll give that a try. regards, deborah -Original Message- From: Richard Quintin [mailto:rich+nag...@quintinz.com] Sent: 16 March 2009 15:26 To: Deborah Martin Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Host checks instead of service checks You could use check_dummy for the host check and just have it always return OK. Or perhaps the opposite you could add a check_dummy service check for all hosts. Which you choose will depend upon your personal preference and how you want dependencies to be handled. On Mon, Mar 16, 2009 at 11:06 AM, Deborah Martin deborah.mar...@kognitio.com wrote: Hi Folks, Currently, the main nagios box (running old version of SuSE) and Nagios 2.0b4 is running just with service checks, one of which is an ssh check (we don't allow ping) So in the web interface, I see all hosts as up. However, I've built a new box (which hopefully will replace the above) with SLES 10SP1 and Nagios 3.0.6. I've put the same config files (services.cfg and hosts.cfg) on the this new system. But now the hosts all show as Pending. So I then moved the ssh check from a service check to a host check and can see that the more hosts I move the less hosts are pending. That's good so far... But, when I run the pre-flight check (/usr/local/nagios/bin/nagios -v nagios.cfg), I now get warnings to say some hosts don't have any service checks associated with it! This is true as some nodes will only have ssh checks against them whilst others will have other checks against them. I'd rather it didn't warn me as I have hundreds of hosts appear in the pre-flight check warnings and it now looks incredibly untidy to see all this. How can I get rid of these warnings ? I'm probably missing something here so any help would be appreciated. I'm wondering for example, if I should force the initial state to be UP for hosts rather than moving the ssh service check to a host check. But then what would happen if the service check found a node was down - would it reflect that in the host problems ? regards, deborah ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ** * -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 -- Richard Quintin, DBA Database Application Administration Virginia Tech *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT
Re: [Nagios-users] Host checks instead of service checks
Folks, I should have also mentioned that the reason for doing this is to filter out host problems separately to service problems. If I leave ssh checks as a service and 44 nodes are switched off, I see 44 ssh critical alerts under Service Problems. I'd rather see 44 ssh critical alerts under Host Problems. (I thought my method below would a good way to filter these out). When we resize database systems, we only want to know about critical alerts for the database as a service problem (we may reduce a DB by 50 nodes but DB is still valid for monitoring) regards, deborah _ From: Deborah Martin Sent: 16 March 2009 15:06 To: 'nagios-users@lists.sourceforge.net' Subject: Host checks instead of service checks Importance: High Hi Folks, Currently, the main nagios box (running old version of SuSE) and Nagios 2.0b4 is running just with service checks, one of which is an ssh check (we don't allow ping) So in the web interface, I see all hosts as up. However, I've built a new box (which hopefully will replace the above) with SLES 10SP1 and Nagios 3.0.6. I've put the same config files (services.cfg and hosts.cfg) on the this new system. But now the hosts all show as Pending. So I then moved the ssh check from a service check to a host check and can see that the more hosts I move the less hosts are pending. That's good so far... But, when I run the pre-flight check (/usr/local/nagios/bin/nagios -v nagios.cfg), I now get warnings to say some hosts don't have any service checks associated with it! This is true as some nodes will only have ssh checks against them whilst others will have other checks against them. I'd rather it didn't warn me as I have hundreds of hosts appear in the pre-flight check warnings and it now looks incredibly untidy to see all this. How can I get rid of these warnings ? I'm probably missing something here so any help would be appreciated. I'm wondering for example, if I should force the initial state to be UP for hosts rather than moving the ssh service check to a host check. But then what would happen if the service check found a node was down - would it reflect that in the host problems ? regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ***-- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com___ 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] Host checks instead of service checks
Folks, Whilst using check_dummy as a service check does resolve the pre-flight warnings, it's not the solution I think I'm looking for. The total number of service checks now includes the dummy checks which i've chosen to always exit as UP so that it doesn't show up as a service problem - which to me doesn't sound like the right way to do this. I want all service checks to be useful service checks rather than have checks which would need to be ignored as they don't return anything useful as with check_dummy - I wouldn't ever use that check in any Nagios SLA reporting. What I really want to do is the following : Hosts -- ssh check -- When CRITICAL alert under Host problems only. The docs show a distinct difference for behaviour between Nagios 2.0b4 and Nagios 3.0.6. From Nagios 2.0b4, under Host Definitions:- check_command: This directive is used to specify the short name of the http://193.35.206.171/nagios/docs/xodtemplate.html#command command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is alive. The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will not be checked - Nagios will always assume the host is up. This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the http://193.35.206.171/nagios/docs/configmain.html#host_check_timeout host_check_timeout option. From Nagios 3.0.6 check_command: This directive is used to specify the short name of the http://193.35.206.117/nagios/docs/objectdefinitions.html#command command that should be used to check if the host is up or down. Typically, this command would try and ping the host to see if it is alive. The command must return a status of OK (0) or Nagios will assume the host is down. If you leave this argument blank, the host will not be actively checked. Thus, Nagios will likely always assume the host is up (it may show up as being in a PENDING state in the web interface). This is useful if you are monitoring printers or other devices that are frequently turned off. The maximum amount of time that the notification command can run is controlled by the http://193.35.206.117/nagios/docs/configmain.html#host_check_timeout host_check_timeout option. The difference is highlighted in RED. So on changing the ssh check from a service to a host definition (to prevent PENDING on the hosts), the pre-flight warnings now complain there are no services associated with the hosts. On big systems here (100 nodes+) this makes the pre-flight output really unreadable and not really accurate as surely we should be able to choose whether something is a host check or service check but not have to define BOTH! Ultimately, I just want to filter SSH check problems to appear under Host problems rather than under Service problems so users can easily spot other service problem issues and not have to trawl through 100's of lines of output in the web interface. Believe me, Nagios web interface users can be a fickle bunch! A switch to tell Nagios to not complain about this would be really useful unless anyone thinks of a good reason why this would be a bad idea. any help / pointers would be appreciated, even if it's to tell me politely how stupid i'm being - I can take it! regards, deborah _ From: Deborah Martin [mailto:deborah.mar...@kognitio.com] Sent: 16 March 2009 15:34 To: 'Richard Quintin' Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Host checks instead of service checks Thanks Richard. I'll give that a try. regards, deborah -Original Message- From: Richard Quintin [mailto:rich+nag...@quintinz.com mailto:rich+nag...@quintinz.com ] Sent: 16 March 2009 15:26 To: Deborah Martin Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Host checks instead of service checks You could use check_dummy for the host check and just have it always return OK. Or perhaps the opposite you could add a check_dummy service check for all hosts. Which you choose will depend upon your personal preference and how you want dependencies to be handled. On Mon, Mar 16, 2009 at 11:06 AM, Deborah Martin deborah.mar...@kognitio.com wrote: Hi Folks, Currently, the main nagios box (running old version of SuSE) and Nagios 2.0b4 is running just with service checks, one of which is an ssh check (we don't allow ping) So in the web interface, I see all hosts as up. However, I've built a new box (which hopefully will replace the above) with SLES 10SP1 and Nagios 3.0.6. I've put the same config files (services.cfg and hosts.cfg) on the this new system. But now the hosts all show as Pending. So I then moved the ssh check from a service check to a host check and can see that the more hosts I move
[Nagios-users] Using SLES10 and Nagios 3.x under VMWare
Hi, I've never used SLES10 + Nagios 3.x as a VM Ware box and I wondered if any of you had come across any issues that I should be aware of. (A new environment is being built in this way to replace an old PC running nagios) Basically, the nagios 3.x setup is very simple. We use it to monitor database activity such as RAM or disk usage amongst others using plugins that I wrote. Nagios monitors a few other nodes using ping or ssh but other than that it's not a complicated setup. Any feedback / advice on running Nagios within VM Ware would be really useful. thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** -- 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] Using SLES10 and Nagios 3.x under VMWare
Hi Christian, The vmware environment (i.e Sles10) is built by IT services here so I don't have any insight on this part. I shall then build nagios from source so that I have a more granular control over where things go although it's mostly to standard places i.e /usr/local/nagios etc regards, deborah -Original Message- From: Christian Schneemann [mailto:cschneem...@suse.de] Sent: 19 February 2009 14:17 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Using SLES10 and Nagios 3.x under VMWare On Thursday February 19 2009 02:30:29 pm Deborah Martin wrote: Hi, I've never used SLES10 + Nagios 3.x as a VM Ware box and I wondered if any of you had come across any issues that I should be aware of. (A new environment is being built in this way to replace an old PC running nagios) Basically, the nagios 3.x setup is very simple. We use it to monitor database activity such as RAM or disk usage amongst others using plugins that I wrote. Nagios monitors a few other nodes using ping or ssh but other than that it's not a complicated setup. Any feedback / advice on running Nagios within VM Ware would be really useful. thanks, deborah Hi, we've used an vmware image for testing our config and new nagios packages and everything went fine. We now changed to xen guests because I prefer xen ;) I see no problems with running nagios in a virtual machine. Do you use the official packages from SLES or the ones from buildservice? Or do you install nagios from sources? Greetings, Christian ** * This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA ** * --- --- 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 *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake
[Nagios-users] Is there a size limit in the Email directive of a contact definit ion
Hi, Just wondered if anybody knew of a limit as to the number of email addresses or rather is there a limit to the number of characters I can specify in total for the email directive in the contact definition. I want to add four addresses which are of the form mobilenumber@mail2txt160.net. I've looked at the docs and there is no mention of a character limitation but I'm thinking that doesn't mean there isn't one (it could just be so large that it's not likely to ever be reached perhaps (?) or it's just not documented!) Or would it be better practice to create four new separate contacts and then add those to the contact groups directive in my service definition ? (This is only a temporary measure so I'd to do the least amount of admin in setting this up as it it will be activated for only 3 days at most) thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** -- This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword ___ 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] Migrating from Nagios 2.0b4 to Nagios 3.03
Hi, I'm using Suse 10 / Nagios 3.03. I have migrated all of my .cfg files across to Nagios 3.03 and all seems to work well except that, I still have all the host checks still pending on nagios 3.03. But on Nagios 2.0b4, all the hosts have a status of up. (Each version runs on it's own dedicated box.) I only define service checks such as an ssh check per host to ensure a host is up (ping isn't allowed) Is this a known behaviour difference between the versions ? Do I need to make some changes to this new version ? Any pointers / ideas would be much appreciated. regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** -- ___ 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] Alerts generated when max_check_attempts set to 3
Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Alerts generated when max_check_attempts set t o 3
Thanks Seth - that's brilliant - just what I wanted! Regards, Deborah -Original Message- From: Seth Simmons [mailto:[EMAIL PROTECTED] Sent: 24 November 2008 12:36 To: Deborah Martin Cc: Nagios User list Subject: RE: [Nagios-users] Alerts generated when max_check_attempts set to 3 Yes you are. If you have a host notification and set max_check_attempts to 1 and, let's say you also have check_interval to 60 (1 min) for a host then disconnect the cable, within the next minute Nagios check will fail and send immediate notification of host down because the check attempt was 1. If you say max_check_attempts is 3, and do the same thing, the host will show as down, but unless you reconnect within the next couple min before that 3rd check, Nagios won't send out a notification. Once it hits that 3rd check and is still in a down state, it will then send notification of host down. If by the 3rd check it has recovered, no notification is sent. HTH -Original Message- From: Deborah Martin [mailto:[EMAIL PROTECTED] Sent: Monday, November 24, 2008 6:08 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Alerts generated when max_check_attempts set to 3 Importance: High Hi, Just a quick question - I'm changing the max_check_attempts from 1 to 3 for a specific plugin and I wondered, does this mean that an email notification won't go out until the 3rd attempt is reached ? (Which is what I want to achieve). Or will all 3 attempts generate an email notification. The docs say the following :- max_check_attempts: This directive is used to define the number of times that Nagios will retry the service check command if it returns any state other than an OK state. Setting this value to 1 will cause Nagios to generate an alert without retrying the service check again. Am I understanding this correctly ? Thanks, Deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great
[Nagios-users] Service check timeouts
Hi, I have a service check plugin which basically runs a query against our database (It's not a database that has standard plugins already in existence e.g Oracle, Mysql, SQL Server etc etc ) which I've written. Based on it's success or failure, most errors come from the database so I can manipulate the error handling tell Nagios what it's exit status should be. However, every now and again I get an error 'Service Check Timed Out' and the exit status changes to CRITICAL automatically. But I'd rather it didn't Is there a way to manipulate this exit status - I'd rather it was set to UNKNOWN. As far as I understand it, this error is based on the plugin itself having a timeout which I've set to 120 seconds (nagios.cfg: service_check_timeout=120) The timeouts we set for the database vary between 15 and 90 seconds (depending on the each database requirement for this) Or is there a way of looking at the $SERVICEOUTPUT$ string returned by Nagios and grepping for 'Service Check Timed Out' and manipulating the exit code that way ? I'm using v2.0b4 but I know there is a way of using the macros as environment variables in later versions of Nagios. If I can't resolve it until I upgrade then that's fine. If anyone has any pointers on the way forward for this it would be really appreciated. thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited, a company registered in England and Wales. Registered number 0212 7833. Registered Office: 3a Waterside Park, Cookham Road, Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. Kognitio Inc, a company incorporated in Delaware, principal office 180 North Stetson, Suite 3500, Chicago, IL 60601, USA *** - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] service templates
They are available as part of the standard config. I've used them since 2005. -Original Message- *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** From: Aaron M. Segura [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 15:34 To: Terry Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] service templates What you're talking about sounds like Service Profiles, which, I believe, are not available via regular nagios configs, but rather via a third party GUI configuration tool like Monarch (amongst others, probably). On Tue, 2008-05-06 at 09:30 -0500, Terry wrote: Thanks for the reply. I do this already. This just cuts down on the number of lines in a service check. It doesn't allow me to glob a set of services into a single service or host definition though, which is what I want (i think). On Tue, May 6, 2008 at 9:20 AM, Deborah Martin [EMAIL PROTECTED] wrote: Terry, You can do exactly that : In the main services.cfg, define your template define service{ namemy-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } You need to change / add whatever else you want in there. Then for the service definition specific to a host : define service{ use my-service ; this will load the service template my-service host_name yourhostname service_description yourdescription contact_groups yourcontactgroups servicegroups yourservicegroups max_check_attempts 1 normal_check_interval 5 retry_check_interval1 notifications_enabled 1 ; Service notifications are enabled notification_interval 240 notification_period 24x7 notification_optionsc,r ; Notifications are sent out on CRITICAL or RECOVERY check_period24x7 check_command check_ping!100.0,20%!500.0,60% } You can do lots of stuff with this. I use the above for checking databases, but each database is slightly different so I use a template for the base, then define only the differences in the individual service definitions. Also, if you define the check_command in the template, but want to change the check_command slightly like the parameters passed to it, anything you put in the service definition overrides the template definition. Very useful if you want to test a plugin on a live system but don't want to change for everything until you're happy with it. Hope that helps. regards, deborah -Original Message
Re: [Nagios-users] service templates
P.S I don't use 3rd party tools for my nagios configs as I've never found them to have all of what I wanted in a config tool. I think the generic-service template comes as part of the sample configs that come with Nagios which is where I got the idea on how to generate my own customised templates. regards, deborah -Original Message- *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** From: Aaron M. Segura [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 15:34 To: Terry Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] service templates What you're talking about sounds like Service Profiles, which, I believe, are not available via regular nagios configs, but rather via a third party GUI configuration tool like Monarch (amongst others, probably). On Tue, 2008-05-06 at 09:30 -0500, Terry wrote: Thanks for the reply. I do this already. This just cuts down on the number of lines in a service check. It doesn't allow me to glob a set of services into a single service or host definition though, which is what I want (i think). On Tue, May 6, 2008 at 9:20 AM, Deborah Martin [EMAIL PROTECTED] wrote: Terry, You can do exactly that : In the main services.cfg, define your template define service{ namemy-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! } You need to change / add whatever else you want in there. Then for the service definition specific to a host : define service{ use my-service ; this will load the service template my-service host_name yourhostname service_description yourdescription contact_groups yourcontactgroups servicegroups yourservicegroups max_check_attempts 1 normal_check_interval 5 retry_check_interval1 notifications_enabled 1 ; Service notifications are enabled notification_interval 240 notification_period 24x7 notification_optionsc,r ; Notifications are sent out on CRITICAL or RECOVERY check_period24x7 check_command check_ping!100.0,20%!500.0,60% } You can do lots of stuff with this. I use the above for checking databases, but each database is slightly different so I use a template for the base, then define only the differences in the individual service definitions. Also, if you define the check_command in the template, but want to change the check_command slightly like the parameters passed to it, anything you put in the service definition
Re: [Nagios-users] service templates
I think you're right, my email seems to be coming in whatever order it likes... doh! -Original Message- *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** From: Aaron M. Segura [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 15:43 To: Terry Cc: Deborah Martin; Nagios Users mailinglist Subject: Re: [Nagios-users] service templates I'm pretty sure Deborah is confused on this point, mistaking Service Templates for Service Profiles. If I were you I would start looking at Monarch (or similar). On Tue, 2008-05-06 at 09:39 -0500, Terry wrote: Please point me to these service profiles in the documentation, having trouble finding them. On Tue, May 6, 2008 at 9:31 AM, Deborah Martin [EMAIL PROTECTED] wrote: They are available as part of the standard config. I've used them since 2005. -Original Message- *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** From: Aaron M. Segura [mailto:[EMAIL PROTECTED] Sent: 06 May 2008 15:34 To: Terry Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] service templates What you're talking about sounds like Service Profiles, which, I believe, are not available via regular nagios configs, but rather via a third party GUI configuration tool like Monarch (amongst others, probably). On Tue, 2008-05-06 at 09:30 -0500, Terry wrote: Thanks for the reply. I do this already. This just cuts down on the number of lines in a service check. It doesn't allow me to glob a set of services into a single service or host definition though, which is what I want (i think). On Tue, May 6, 2008 at 9:20 AM, Deborah Martin [EMAIL PROTECTED] wrote: Terry, You can do exactly that : In the main services.cfg, define your template define service{ namemy-service ; The 'name' of this service template, referenced in other service definitions active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 1 ; Passive service checks are enabled/accepted parallelize_check 1 ; Active service checks should be parallelized (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are enabled event_handler_enabled 1 ; Service event handler is enabled flap_detection_enabled 1 ; Flap detection is enabled process_perf_data 1
[Nagios-users] Plugin to check Business Objects
Hi, Is there a plugin for nagios to check whether Business Objects is running. We have it running through Citrix - I've implemented the plugin to check an Application is being published using one of the citrix plugins but I need to monitor Business Objects to ensure it is running properly. Any help / pointers would be appreciated. regards, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Accessing macros as environment variables
Hi, I want to access some of the macros such as $SERVICEOUTPUT$ as an environment variable. I've installed and configured Nagios 3.0rc2 and its all working fine. I have enabled enable_environment_macros=1 in nagios.cfg Does anyone have any idea of how I can access the macro from a shell script for example ? Are the environment variables prefixed with anything ? I can't seem to find it in the docs or FAQs elsewhere. Any pointers would be much appreciated! thanks, deborah *** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. Kognitio Limited Registered in England: 0212 7833 Registered Address: 3a Waterside Park Cookham Road Bracknell Berks RG12 1RB VAT number: 864 4378 92 *** - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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 display statusmap?
usually statusmap.cgi is found in /usr/local/nagios/sbin which is aliased to cgi-bin within apache. It could be that you need gd-devel as well as gd installed when compiling the cgi's as i had this problem when upgrading to nagios 2.5 Do you get the same problem when trying to view trends ? If you built from source, try looking in the source directory/cgi to see if you have the statusmap.c and .cgi - if not check you have gd-devel installed. If you built from RPMS then try finding out if the right RPMS were installed. hth, -Original Message-From: Hari Sekhon [mailto:[EMAIL PROTECTED]Sent: 09 August 2006 09:24To: Arief IqbalCc: nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] how to display statusmap?Arief Iqbal wrote: hi,I really need your help. I've already intalled lipng, libgd, etc in my system, and i have reconfigure it, but the statusmap still does not appear in my nagios web interface, there's a message: Not Found The requested URL /nagios/cgiurl/statusmap.cgi was not found on this server. Apache/2.0.52 (Fedora) Server at 192.168.87.100 Port 80where can i found this /nagios/cgiurl/statusmap.cgi??? can you help me to solve this problem?? I use fedora core 3thank you Yahoo! Music Unlimited - Access over 1 million songs. Try it free. You should address all emails to nagios-users@lists.sourceforge.net so that all people can read them and help you.Personally I think you're using an awful distro to start with, but that aside, you need to make sure you have configured apache correctly. You need to look here and follow it's instructions.http://nagios.sourceforge.net/docs/2_0/installweb.htmlIt looks like the web server isn't finding the cgi, so you need to read the sections on cgis in the Docs and also make sure that the web url and filesystem paths are mapped correctly.-h This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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] Externals Commands
can you forward the contents of the .htaccess file that resides in the cgi-bin directory? and a listing of the rest of the directory including the permissions -Original Message-From: Justin Craig [mailto:[EMAIL PROTECTED]Sent: 01 August 2006 14:46To: Deborah MartinCc: Hari Sekhon; Martin J. Green; nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Externals Commands i'm logged in as nagiosadmin and i have that username in all my cgi's. I have the sameissue, can't schedule downtime or issue external commands with the same error. I'm running nagios 2.4 On 8/1/06, Deborah Martin [EMAIL PROTECTED] wrote: look at your /usr/local/nagios/sbin directory and check a) file permissions are correct and also whether your .htaccess authrization file is present. This error is generally caused by not correctly using .htaccess and also not configuring apache properly - check your httpd.conf is correctly configured -Original Message-From: Hari Sekhon [mailto: [EMAIL PROTECTED]]Sent: 01 August 2006 14:14To: Martin J. GreenCc: nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Externals CommandsMartin J. Green wrote: I can't get external commands to work either (appears it can't write to the file for some reason), but its so low on my list of priorities I haven't gotten to it yet. From: [EMAIL PROTECTED] [ mailto:[EMAIL PROTECTED]] On Behalf Of Hari SekhonSent: 01 August 2006 13:48To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Externals Commands I am having real difficulty getting external commands to work and don't full understand what's going wrong, despite having RTFMing several times. As an example, I log in to the web interface as nagiosadmin via basic apache auth successfully as usual. I go to "comments" in the left hand pane and enter one for a host but when I click submit, I get the error: "Sorry, but you are not authorized to commit the specified command. Read the section of the documentation that deals with authentication and authorization in the CGIs for more information. Return from whence you came"As far as I can tell, I have all the perms set right according to the docs:cgi.cfguse_authentication=1authorized_for_system_information=nagiosadmin authorized_for_configuration_information=nagiosadminauthorized_for_system_commands=nagiosadminauthorized_for_all_services=nagiosadminauthorized_for_all_hosts=nagiosadminauthorized_for_all_service_commands=nagiosadmin authorized_for_all_host_commands=nagiosadminnagios.cfgcommand_file=/var/nagios/rw/nagios.cmdcheck_external_commands=1# NOTE: Setting this value to -1 causes Nagios to check the external# command file as often as possible. command_check_interval=-1ll /var/nagios/ | grep rw/drwxrws--- 2 nagios apache 4096 Aug 1 13:28 rw/ll /var/nagios/rw/nagios.cmdprw-rw 1 nagios apache 0 Aug 1 13:28 /var/nagios/rw/nagios.cmd| The apache process is run by the apache user, a member of the apache group, so has full perms to the directory and the pipe file nagios.cmd. Nagios is run by nagios who is also a member of the apache group.This all looks as it should be according to the docs as far as I can see. What am I missing?HariI think quite a lot of people have trouble with this but a lot give up or are satisfied that the main bit is working and don't bother with this... does anybody have this working and if so could you post your configs so I can see anything you have different to me?are external commands generally broken or is there something missing in the docs/our configs/our brains? I'm using Version 1.4.1Hari This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or dama
Re: [Nagios-users] Externals Commands
no idea! i use .htaccess and it works for me! my httpd.conf has the following which is what i extracted from the docs! ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbinDirectory "/usr/local/nagios/sbin" AllowOverride AuthConfig Options ExecCGI Order allow,deny Allow from all/Directory Directory /usr/local/nagios/sbinAllowOverride AuthConfigorder allow,denyallow from allOptions ExecCGI/Directory Alias /nagios /usr/local/nagios/shareDirectory "/usr/local/nagios/share" Options None AllowOverride AuthConfig Order allow,deny Allow from all/Directory Directory /usr/local/nagios/shareAllowOverride AuthConfigorder allow,denyallow from all/Directory Maybe there is something else that is fundamentally wrong! -Original Message-From: Justin Craig [mailto:[EMAIL PROTECTED]Sent: 01 August 2006 16:22To: Deborah MartinCc: Martin J. Green; Hari Sekhon; nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Externals Commands okay so here is my output:in my httpd.conf file I have:ScriptAlias /nagios/cgi-bin "/usr/local/nagios/sbin"Directory "/usr/local/nagios/sbin" Options ExecCGI AllowOverride AuthConfig Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user/DirectoryAlias /nagios "/usr/local/nagios/share"Directory "/usr/local/nagios/share" Options None AllowOverride AuthConfig Order allow,deny Allow from all AuthName "Nagios Access" AuthType Basic AuthUserFile /usr/local/nagios/etc/htpasswd.users Require valid-user/Directory#Where is my problem for not being able to execute external commands or schedule downtime for a host? On 8/1/06, Deborah Martin [EMAIL PROTECTED] wrote: actually you can use .htaccess or the httpd.conf file it doesn't matter. If you put in the httpd.conf you have to restart apache - not always convenient to do that. But using .htaccess means you don't have to do that and can simply add this file into the locations required with immediate effect. Also, htpasswd(2) does as you say come with apache but it has been known to be included with Nagios! -Original Message-From: Martin J. Green [mailto:[EMAIL PROTECTED]]Sent: 01 August 2006 15:36To: Deborah Martin; Justin CraigCc: Hari Sekhon; nagios-users@lists.sourceforge.netSubject: RE: [Nagios-users] Externals Commands The .htaccess is only required if you don't have root access to the server thus can't add it to the main httpd.conf. If you have root access, its almost always better to add it there. In that case you would have no .htaccess file, it would all be in the server config. M From: Deborah Martin [mailto:[EMAIL PROTECTED]] Sent: 01 August 2006 15:32 To: 'Justin Craig'Cc: Hari Sekhon; Martin J. Green; nagios-users@lists.sourceforge.netSubject: RE: [Nagios-users] Externals Commands ok - somewhere in the nagios docs are the details with regard to setting up .htaccess but I think there is a utility in the nagios install directory under bin called htpasswd or htpasswd2 and you run this util to generate a htpasswd.users file where all the users that have web interface access are stored including nagiosadmin. I store mine in the etc install directory. Then in my .htaccess file i have the following AuthName "Nagios Access"AuthType BasicAuthUserFile /usr/local/nagios/etc/htpasswd.usersrequire valid-user This file resides in the sbin directory (which is also cgi-bin). Note though - change the AuthUserFile path to wherever you are storing the htpasswd.users file. When i was getting the 'return from whence you came error', this was exactly my problem - i hadn't set up authorisation correctly and the above was how i fixed it. hope this helps. -Original Message-From: Justin Craig [mailto:[EMAIL PROTECTED]]Sent: 01 August 2006 15:07 To: Deborah Martin Cc: Hari Sekhon; Martin J. Green; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Externals Commands so obviously I RTFM or I wouldn't have got this far. One part that I did have questions of was the .htaccess creation, as the documentation I read only provided information for setting up users via htpasswd -c and changing your authorization functionality in the CGI's to 1. So I did a find / -name *.ht
Re: [Nagios-users] Sugguestion/Question?
i think my post has gotten mixed up with this one! -Original Message-From: Tedman Eng [mailto:[EMAIL PROTECTED]Sent: 20 July 2006 22:08To: 'Tom Tran'; nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Sugguestion/Question? First off, please do not REPLY to a message if you're not replying tothat message. Post a NEW message. Secondly, Nagios' design separates Hosts from Services. Nagios does not actively monitor hosts. Yes, it checks hosts, but it does not monitor them. What's the difference? Think of hosts as points or intersectionsalong a road, services as being houses along the side of these roads. Nagios only monitors houses (services). If for some reason it cannot reach a house, it checks to see if there is a problem in the road (host)preventing it from getting to the house (service), and reports these findings to you. If you wantNagios to work like CA's product, that can be done as well, but you'll lose ther ability to determine where along the roadway is the problem. To do this,use check_cluster for your check-host-alive. -Original Message-From: Tom Tran [mailto:[EMAIL PROTECTED]Sent: Thursday, July 20, 2006 10:02 AMTo: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Sugguestion/Question? Re: Notifications and acknowledgements Dear All, I am a newbie with Nagios but long time user of Enterprise Management (CA Unicenter in particular)... Here is my suggestion (not sure If i implemented correctly...) or it has been designed this way. Suppose I am monitoring a Server which I am trying to monitoring the following: Ping, disk space, Load... And i set the threshold for my disk space.. and the disk space exceeds my critical threshold; therefore, the status for my Disk Space Watcher is Red (Critical)... According to what i see right now.. the status for the whole server is GREEN.. I am not sure it is supposed to be green? Isn't it supposed to be RED because of the propagation from a child level? Hope my explanation is clear enough. Best regards, Tom Tran EESImed. Deborah Martin [EMAIL PROTECTED] wrote: Hi, I'm running Suse 9.1 with Nagios 2.0b4I have a service alerting as Critical which I then acknowledged.Notifications were then supressed. However, I had to restart Nagios sometime later after adding some furtherservices/hosts and it seems that the acknowledgement still remains acrossthe restart but the notifications have started again. Is this expected behaviour ? I've trawled through the docs and archives butcannot find a definitiveanswer so any advice would be appreciated. thanks,deborah This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom theyare addressed. Any unauthorised distribution or copying is strictly prohibited.Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are stronglyadvised to undertake your own anti-virus precautions.Kognitio grants no warranties regarding performance,use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.***-Take Surveys. Earn Cash. Influence the Future of ITJoin SourceForge.net's Techsay panel and you'll get the chance to share youropinions on IT business topics through brief surveys -- and earn cashhttp://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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 Do you Yahoo!?Everyone is raving about the all-new Yahoo! Mail Beta. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https
[Nagios-users] Notifications and acknowledgements
Hi, I'm running Suse 9.1 with Nagios 2.0b4 I have a service alerting as Critical which I then acknowledged. Notifications were then supressed. However, I had to restart Nagios sometime later after adding some further services/hosts and it seems that the acknowledgement still remains across the restart but the notifications have started again. Is this expected behaviour ? I've trawled through the docs and archives but cannot find a definitive answer so any advice would be appreciated. thanks, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Notifications and acknowledgements
Hi, I'm running Suse 9.1 with Nagios 2.0b4 I have a service alerting as Critical which I then acknowledged. Notifications were then supressed. However, I had to restart Nagios sometime later after adding some further services/hosts and it seems that the acknowledgement still remains across the restart but the notifications have started again. Is this expected behaviour ? I've trawled through the docs and archives but cannot find a definitive answer so any advice would be appreciated. thanks, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios2 and Service Problems page
It is possible. Can you send your services.cfg file ? which of the defined services are in a warning state and not showing up under service problems ? -Original Message- From: Marcin Wasilewski [mailto:[EMAIL PROTECTED] Sent: 28 June 2006 12:23 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Nagios2 and Service Problems page Hello, Recently I moved from Nagios1 to Nagios2 and have a question about Service Problems page. At this page Nagios2 shows only services that are in CRITICAL state, but doesn't show services that are in WARNING state while they are still visible on Tactical Overview and Service Detail pages. Is it possible for Nagios2 to display also services in WARNING state? Best regards Marcin Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 list of process IDs must follow -p
and have you followed the advice set out below ? -Original Message- From: REMY Julien [mailto:[EMAIL PROTECTED] Sent: 23 June 2006 14:20 To: Marc Powell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] nagios list of process IDs must follow -p It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file. Thank you. But in Nagios, if I select menus, the message is : Whoops! Error: Could not read object configuration data! Here are some things you should check in order to resolve this error: 1. Verify configuration options using the -v command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. What want to say? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Marc Powell Envoyé : vendredi 23 juin 2006 14:27 À : nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] nagios list of process IDs must follow -p -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of REMY Julien Sent: Friday, June 23, 2006 4:07 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios list of process IDs must follow -p Hello, Nagios don't start in my computer (/etc/init.d/nagios start). If I do /etc/init.d/nagios status, an error message appears : ERROR: list of process IDs must follow -p What wants to say this message? Based on what you said previously, it probably means that nagios isn't starting or isn't able to create the pid file. Try running manually and look for errors with '/path/to/nagios /path/to/nagios.etc'. Make sure nagios can write to the files you've specified as lock_file, state_retention_file, comment_file, downtime_file and temp_file in nagios.cfg. Make sure the command_file directory exists and is configured as per the documentation if you have enabled external commands. As for your CGI errors, the http logs you provided show no attempted access to any of the CGI's. Why is that? Since you're using RHEL4, you'll want to verify that either SELinux is disabled or you've created a policy that allows http access to the CGI's and possibly daemon access to other files. If you see 'avc denied' errors related to nagios in /var/log/messages then you need to disable or modify your SELinux policy. There are several discussions in the archives on how to do this. -- Marc Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with
Re: [Nagios-users] nagios list of process IDs must follow -p
If the configuration can't be read, check the paths in the nagios.cfg correspond to the correct locations of the .cfg files. Check permissions and owner of the files. When you run the nagios -v nagios.cfg preflight check what is the output ? -Original Message- From: REMY Julien [mailto:[EMAIL PROTECTED] Sent: 23 June 2006 15:40 To: Deborah Martin; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] nagios list of process IDs must follow -p Yes I follow all but it's the same problem -Message d'origine- De : Deborah Martin [mailto:[EMAIL PROTECTED] Envoyé : vendredi 23 juin 2006 15:18 À : REMY Julien; Marc Powell; nagios-users@lists.sourceforge.net Objet : RE: [Nagios-users] nagios list of process IDs must follow -p and have you followed the advice set out below ? -Original Message- From: REMY Julien [mailto:[EMAIL PROTECTED] Sent: 23 June 2006 14:20 To: Marc Powell; nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] nagios list of process IDs must follow -p It's OK for the starting of Nagios. It missed the /var/run/nagios.pid file. Thank you. But in Nagios, if I select menus, the message is : Whoops! Error: Could not read object configuration data! Here are some things you should check in order to resolve this error: 1. Verify configuration options using the -v command-line option to check for errors. 2. Check the Nagios log file for messages relating to startup or status data errors. 3. Make sure you've compiled the main program and the CGIs to use the same object data storage options (i.e. default text file or template-based file). Make sure you read the documentation on installing, configuring and running Nagios thoroughly before continuing. If all else fails, try sending a message to one of the mailing lists. More information can be found at http://www.nagios.org. What want to say? -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] De la part de Marc Powell Envoyé : vendredi 23 juin 2006 14:27 À : nagios-users@lists.sourceforge.net Objet : Re: [Nagios-users] nagios list of process IDs must follow -p -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of REMY Julien Sent: Friday, June 23, 2006 4:07 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios list of process IDs must follow -p Hello, Nagios don't start in my computer (/etc/init.d/nagios start). If I do /etc/init.d/nagios status, an error message appears : ERROR: list of process IDs must follow -p What wants to say this message? Based on what you said previously, it probably means that nagios isn't starting or isn't able to create the pid file. Try running manually and look for errors with '/path/to/nagios /path/to/nagios.etc'. Make sure nagios can write to the files you've specified as lock_file, state_retention_file, comment_file, downtime_file and temp_file in nagios.cfg. Make sure the command_file directory exists and is configured as per the documentation if you have enabled external commands. As for your CGI errors, the http logs you provided show no attempted access to any of the CGI's. Why is that? Since you're using RHEL4, you'll want to verify that either SELinux is disabled or you've created a policy that allows http access to the CGI's and possibly daemon access to other files. If you see 'avc denied' errors related to nagios in /var/log/messages then you need to disable or modify your SELinux policy. There are several discussions in the archives on how to do this. -- Marc Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 email and any files transmitted
Re: [Nagios-users] Modify USB speed
what does that have to do with Nagios ? -Original Message- From: Marco Borsani [mailto:[EMAIL PROTECTED] Sent: 07 June 2006 09:56 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Modify USB speed Importance: High Hi all ! I need to reduce USB port speed to 9600bps, because I have to connect a radiomodem. It supports only that speed. Normally the radiomodem is connected to the serial port, but now all serial ports are busy. I connect it to the USB port with an adapter. My S.O. is a RedHat 3.0 ES. Any idea? Regards! Marco ___ 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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** ___ 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] service dependencies problem
One of your (many) definitions is : define servicedependency{ host_name sonorys_gateway service_description PING dependent_host_name sonorys_checkpoint dependent_service_description PING notification_failure_criteria c,u execution_failure_criteria c,u I don't think you can have dependency_service_description being the same as the 'service_description' as it will just loop. In the nagios -v check, you should probably have also seen under 'Checking service dependencies' an error along the lines of 'dependency definition for service 'yourservice' on host yourhost is circular (it depends on itself' I've just tested this scenario and errors are the same as yours. I also noticed the errors only occur when the dependent service is the same. When different, there doesn't appear to be a problem. Test this! Remove all of the definitions so that you are only left with the ones that match in both the service_description and the dependent_service_description and run the nagios -v check again. You'll get the same errors again. Then add one definition where the descriptions were different. You'll see the difference. hth, -Original Message- From: Grzegorz Rumatowski [mailto:[EMAIL PROTECTED] Sent: 31 May 2006 10:37 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] service dependencies problem Hello, During checking nagios config with nagios -v I'm getting: Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'YESSS-Firewall'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'YESSS-Firewall'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'YESSS-Firewall'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'YESSS-Firewall'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'SSH' on host '[EMAIL PROTECTED]'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'onein1'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'SSH' on host 'onein1'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'onein2'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'SSH' on host 'onein2'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'PING' on host 'onein3'! Error: A circular execution dependency (which could result in a deadlock) exists for service 'SSH' on host 'onein3'! I've defined following service deps: define servicedependency{ host_name sonorys_gateway service_description PING dependent_host_name sonorys_checkpoint dependent_service_description PING notification_failure_criteria c,u execution_failure_criteria c,u } define servicedependency{ host_name sonorys_checkpoint service_description PING dependent_host_name SILns1,SILns2,SILns3 dependent_service_description PING notification_failure_criteria c,u execution_failure_criteria c,u } define servicedependency{ host_name SILns1 service_description PING dependent_host_name YESSS-Firewall dependent_service_description PING notification_failure_criteria c,u execution_failure_criteria c,u } define servicedependency{ host_name SILns2 service_description PING dependent_host_name YESSS-Firewall dependent_service_description PING notification_failure_criteria c,u execution_failure_criteria c,u } define servicedependency{ host_name
RE: [Nagios-users] Service Groups
yes - read the docs -Original Message- From: Oliver Marshall [mailto:[EMAIL PROTECTED] Sent: 31 May 2006 11:35 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Service Groups Does Nagios support service groups ? I want to create a group called Fil Print Servers which contains all the servers that perform file and print duties. That service group would then have a group of commands associated with it, so that any server that's part of that group also inherits these services ? I'm finding that most of my servers fall in to one of four groups, each group sharing similar services. Olly --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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] Auth problems
Have you added nagiosadmin to the htpasswd.users file ? regards, deborah -Original Message- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** From: Nicola Agnelli [mailto:[EMAIL PROTECTED] Sent: 25 May 2006 11:37 To: Nicola Agnelli Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Auth problems Nicola Agnelli wrote: Nicola Agnelli wrote: Jim Perrin wrote: On 5/24/06, Nicola Agnelli [EMAIL PROTECTED] wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, i've installed Nagios 2.3.1 on a Gentoo Linux box, but i've a problem during autentication: when i go to http://ip/nagios tha nagios main page appears to me, and when i click on host details for example it require me the authentication so i insert my user and pass but i cant' login ... the login request returns to me.. I've followed this guide: http://gentoo-wiki.com/HOWTO_Install_Nagios Double check the permissions you have defined in your cgi.cfg I've inserted nagiosadmin (as user) everywhere .. how can i do ? -- Nicola --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 I still have many problems with authentication.. i've read docs but i can't resolve.. Have anyone some ideas ? Thank you very much, Regards -- Nicola --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 i've tried to cancel my user and recreate it, but with no results.. i can't login on my nagios interface! I've no more ideas... can anyone help me pls ? Thank you -- Nicola --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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] Best web front end
This has been discussed to death. I'd suggest use google and look around to see what is out there - try them out because everyone has difference preferences to what will work for them. Alternatively, write your own and then you only have yourself to please! :) regs, deborah -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: 24 May 2006 09:57 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Best web front end On Wed, May 24, 2006 at 09:20:39AM +0100, Oliver Marshall wrote: What are peoples opinions on a decent web based management/configuration front end for Nagios, ideally PHP? looking forward to it - my boss sure would like it. :-) -- --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=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] Pgsql host list and check_ping
I believe if a .cfg file changes, nagios has to be restarted in order to load the changes. With plugin changes, I believe it isn't necessary. regards, -Original Message- From: Janet Post [mailto:[EMAIL PROTECTED] Sent: 26 April 2006 13:53 To: nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] Pgsql host list and check_ping Thanks!! I do not believe you have to restart. I have added components to my nagios configuration and it just took effect without any issues. I think that state retention might cause problems with this, but I am not sure. If it does, you could have nagios reread the configuration files using '/etc/init.d/nagios reload'. I am not too experienced in this area, so I defer to other more experienced users here who may be able to give you a better answer. Janet -Original Message- From: Shawn Holland [mailto:[EMAIL PROTECTED] Sent: April 26, 2006 9:43 AM To: nagios-users@lists.sourceforge.net Cc: Janet Post Subject: Re: [Nagios-users] Pgsql host list and check_ping Janet, I will be working on it today. When I get it done I will forward it to you. My question still remains. If the configs are rebuilt does nagios need to be restarted? On Wednesday 26 April 2006 9:37 am, Janet Post wrote: Shawn, I would be very interested in getting a copy of this script when you have it written. Would you be willing to share? Janet. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Shawn Holland Sent: April 26, 2006 9:15 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Pgsql host list and check_ping I will try that. Does Nagios need to be restarted everytime the script rebuilds the config? (say if there is a new host added to the DB or one changes) to recognize the changes? On Wednesday 26 April 2006 2:05 am, Hugo van der Kooij wrote: On Tue, 25 Apr 2006, Shawn Holland wrote: I have setup a server running Nagios 2.2 with nagios-plugins-1.4.3. My Linux server has a Postgres database that has a table containing all devices on the network with their IP address and host name. I was wondering what a recommended way to allow Nagios to use this list and do a check_ping to each device and report their status? I know I could manually set each within a host and multiple services to ping each one. But I want it to utilize the existing db list as it may change and I want to cut down on overhead. I suggest you write a small script to generate a nagios config file for these hosts and services and dropt it in a subdirectory of your nagios config directory. Then point nagios to it with the cfg_dir statement. There is no recommended way as there is no way presently to do it. You have to build it yourself. Hugo. -- Regards, Shawn Holland Sandara Technologies Ltd. Ph. 1-902-405-3344 Fx. 1-902-405-3345 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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. :::
RE: [Nagios-users] Is this possible: Debugging Nagios -- logging commands and their exit codes.
Have you tried manually running the plugin on the command-line ? 'No output' usually means Nagios doesn't get a result back that it understands. A manual test of the plugin may tell you why... -Original Message- From: Jan Bessels [mailto:[EMAIL PROTECTED] Sent: 25 April 2006 12:16 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Is this possible: Debugging Nagios -- logging commands and their exit codes. Using Nagios 2.1. When adding things to the .cfg files sometimes things go wrong. The output of a plugin is then for example 'No output'. This is NOT very usefull at all. It would be usefull to see which cmd is really being executed. Am I missing here something or. Older msgs on the mailinglist (don't know for which versiion) suggest trying to log things usings commands like 'ps -efUnagios PID or top and putting things in a logfile. Doesn't workl that well for me. The only thing I can come up with is the following. Hopefully you can provide me with a better solution. Extending the command_line option for a command. define command { command_name check_ping command_line command_to_exec } When I change it to the following I get things logged in a logfile define command { command_name check_ping command_line /bin/echo command_to_exec /tmp/ping.log } Of course this is NOT a very good solution. Though the commands you want to log is added to the logfile but the command is NOT executed. UNFORTUNATELY the following is NOT possible. command_line command_to_exec ; echo command_to_exec /tmp/ping.log Everything after the ; is removed be Nagios (checked objects.cache). The only thing I can imagine which hopefully wil do the trick is the followig. define command { command_name check_ping command_line /user/home/jbessels/log_and_exec_cmd.sh command_to_exec } The log_and_exec_cmd.sh script should do the following: Parse the commandline args supplied to log_and_exec_cmd.sh to get the cmd to execute (will be called $cmd) echo $cmd /tmp/logfile execute $cmd and store contents in pluginoutput variable store exit code of cmd run in returncode variable echo $pluginoutput variable /tmp/logfile echo $pluginout exit $returncode The last two lines are crucial I think. Because command_line has to return an ascii string and and exitcode. Does perhaps anyone have created such a script. If so I would be VERY happy if you could supply me with it. Haven't that much time to figure it all out.. If what I do is nonsense and can be accomplished in a better way I would like to know also. PS. I had hoped Nagios would have had support for this kind of things out of the box, but maybe I didn't RTFM thoroughly enough. Grtz, Jan Bessels --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=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] Performance data in web interface of Nagios
Yes - thats definitely set to 1. ok - so to test this theory about plugins generating the data - which plugins out of the box would do this ? I'd like to satisfy my curiousity on this. thanks, deborah -Original Message- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** From: Terry [mailto:[EMAIL PROTECTED] Sent: 06 April 2006 19:17 To: Deborah Martin Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Performance data in web interface of Nagios process_performance_data=1 in nagios.cfg? On 4/6/06, Deborah Martin [EMAIL PROTECTED] wrote: Hi, I'm using Nagios 2.0 on Suse 9.3 which runs without any issues. However, one thing i've been meaning to find out is why on the web interface, when you select a service check to view, the 'Performance Data' field is empty under the 'Service State information'. What do I need to configure to get this field to give me meaningful info - I've trawled my cfg files and I have enabled the options I think relevant for this so I'm not sure what i've missed. Has anybody else had this working ? Any pointers to docs or suggestions would be appreciated. regs, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=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] dependencies.cfg
Title: dependencies.cfg Have you checked that nagios.cfg isnot pointing to another copy of dependencies.cfg elsewhere on your system ? regs, deborah -Original Message-From: Brunker, Jay [mailto:[EMAIL PROTECTED]Sent: 16 March 2006 17:01To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] dependencies.cfg Greetings: I'm having some troubles getting nagios to start correctly. On my first attempt to start I received an error due to 'check_host_alive' being defined in a couple of spots ... bigger.cfg and minimal.cfg ... read a post where it was recommended to comment out minimal.cfg in nagios.cfg ... OK ... so far so good. Now, when I attempt to start nagios I get an error due to dependencies.cfg not being readable. The file is owned by nagios.nagios ( 664 ) , but a test of nagios.cfg still gives me a 'cannot read' dependencies.cfg error. Permissions on the directory '/usr/local/nagios/etc': 775 What up with dependencies.cfg ? Any help will be greatly appreciated. Thanks, JZB. Jay Brunker Unix Systems Administrator Texas Workforce Commission 101 E. 15th St. 512-475-2625 Desk Phone 512-849-4985 Pager This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. ***
RE: [Nagios-users] Additional Info in email notification
i never said it didn't! -Original Message-From: Toto Capuccino [mailto:[EMAIL PROTECTED]Sent: 10 February 2006 15:09To: Deborah MartinCc: [EMAIL PROTECTED]; nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] Additional Info in email notification$OUTPUT$ works for nagios 1.3 actually. 2006/2/10, Deborah Martin [EMAIL PROTECTED]: try the following : essentially instead of using $OUTPUT$, replace with$SERVICEOUTPUT$This works fine for me.define command{command_namenotify-by-emailcommand_line/usr/bin/printf "%b" "* Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:$SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditionalInfo:\n\n$SERVICEOUTPUT$" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$}regards,deborah-Original Message-From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED]]Sent: 10 February 2006 14:43To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Additional Info in email notificationI have already tried this but I don't to receive Additional Info.What can I do now?ThsHi,try to put something like this in your miscommands.cfg file that shouldcontact the email notification command : define command{command_namehost-notify-by-emailcommand_line/usr/bin/printf "%b" "* Nagios*\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nAdditional Info:$OUTPUT$\n\nDate/Time:$DATETIME$\n" | /usr/bin/sendmail "Host $HOSTSTATE$ alert for $HOSTNAME$!"$CONTACTEMAIL$} 10 Feb 2006 10:44:26 -, [EMAIL PROTECTED] [EMAIL PROTECTED]: Sei stanco di girare a vuoto?Con il nuovo motore di ricerca Interfree trovi di tutto.Vieni a trovarci: http://search.interfree.it/Lo Staff di Interfree ---This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makes searching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reportingany issue.::: Messages without supporting info will risk being sent to /dev/null This email and any files transmitted with it are confidential andintended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictlyprohibited.Whilst Kognitio Limited takes steps to prevent the transmission ofviruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are stronglyadvised to undertake your own anti-virus precautions.Kognitio grants no warranties regarding performance,use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused.***---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 makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://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-- Le bon sens est la chose du monde la mieux partagée.
[Nagios-users] DEPENDENCIES
Hi, I have dependencies working mainly fine. However, i'm still not 100% satisfied that its behaving correctly. Using Nagios 2.0rc2 on suse 9.2 (i've used later releases for testing but behaviour is the same) I have one main service which is a database connection plugin to ensure the database is up and running. I have 3 additional dependency plugins which do various other checks such as ram and disk usage. When the main database plugin check goes to warning or critical I want to suppress email notifications on the 3 remaining checks as there is no point in running these (they won't return anything useful apart from timeouts). However, this rarely happens. Usually, I get the main check email notification plus 1 other email notification from one of the dependencies (though it may not always be the same dependency) Is there something i'm missing here ? Why can't it supress all three as i would expect ? Do i need to set a parameter setting somewhere ? My main plugin checks every 5 mins with the dependencies every 20 mins. Should i change these timings to something different and if so why ? This is driving me somewhat insane and any pointers / help would be very welcomed. regards, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=lnkkid=103432bid=230486dat=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] Plugin return codes
Hi, I'm using Nagios 2.0b4 on Suse 9.2 I have some plugins which do various database checks such as disk usage. In the plugin, I want to define the exit codes depending on the status of the check. I noticed that there is an exit status of STATE_DEPENDENT (defined in utils.sh which comes with the nagios plugins package) When should this exit status be used. I'm guessing it should be when a service check is a dependency and its master service has failed and therefore the dependency should exit with this status. Am I correct ? The documentation lists the other exit state codes (0,1,2,3) but doesn't mention 4. I've checked 2.0b6 docs as well. BTW - When i use the STATE_DEPENDENT exit code for a dependency service check I get the error 'Return code of 4 is out of bounds' I have the dependency service check defined in dependencies.cfg Any pointers / help would be very appreciated. thanks, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=lnkkid=103432bid=230486dat=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] Dependency issue
thanks for the tip but this doesn't work. It seems that its very dependent on when the next scheduled check will be. If I set max_check_attempts to 5 for services B or C, and then have max_check_attempts set to 1 on service A, it makes no difference. Service B or C could still be scheduled to be checked before service A. In fact, on the first check attempt for service B, for example, a critical alert is generated. I want Nagios to detect that Service B or C is a dependency on Service A, and then if Service A is alerting, suppress alerts for Service B or C. But nagios doesn't seem to do any kind of dependency lookup if a dependency is already alerting. Kind of defeats, in my view, the logic of dependencies. There is no point in Nagios telling me that Service B or C is down, when Service A is down. Service A must be UP for any of its dependencies to work. If however, Service A is OK, then yes - Service B or C should alert if necessary. If I were to have 20 dependencies against a master service, I don't want 20 potential alerts being generated! Plus I want to know the EXACT cause of the problem not have to hunt it down every time. Isn't that one of the points of Nagios - to be able to finely tune plugin checks so that we can easily investigate a problem ? It seems that I needn't bother with dependencies if this is how it's going to work. Does anyone else agree / disagree because it seems to me that either the docs are not explaining dependencies correctly, or Nagios is not behaving correctly. I would appreciate feedback on this issue. regards, deborah -Original Message- From: Tedman Eng [mailto:[EMAIL PROTECTED] Sent: 06 January 2006 20:35 To: 'Deborah Martin'; 'nagios-users@lists.sourceforge.net' Subject: RE: [Nagios-users] Dependency issue If Service B happens to be queued to be checked before Service A is, you'll get notified of it's problem first, so that's why it's only sometimes that you get this behavior. As for simple solution to your question, increase the max_check_attempts of Service B/C, so that Service A will error out before Service B/C does, thus skirting the check queue phenomenon. -Original Message- From: Deborah Martin [mailto:[EMAIL PROTECTED] Sent: Friday, January 06, 2006 3:11 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] Dependency issue Hi, I have setup dependencies which all seem to work fine to a point. Example : I have 1 host with 3 services HOST A | Service A (master service) | --- || Service BService C If service A fails, checks and notifications are suppressed for Service B and Service C which is fine. However, i've had a couple of situations where Service B or Service C may fail first, generate an alert AND then Service A fails which also generates an alert. Is there a way in Nagios that can flip over to only alerting for Service A in this situation and supress anything for Service B and Service C until recovery occurs. Do I need to define further service dependencies or use inheritance of parent ? I've read the docs (several times) but can't seem to find the answers there. I'm using Nagios 2.0b4 / Suse 9.2. Any help, pointers to docs that can help, or even a padded cell would be much appreciated! regards, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=7637alloc_id=16865op=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
[Nagios-users] Dependency issue
Hi, I have setup dependencies which all seem to work fine to a point. Example : I have 1 host with 3 services HOST A | Service A(master service) | --- || Service BService C If service A fails, checks and notifications are suppressed for Service B and Service C which is fine. However, i've had a couple of situations where Service B or Service C may fail first, generate an alert AND then Service A fails which also generates an alert. Is there a way in Nagios that can flip over to only alerting for Service A in this situation and supress anything for Service B and Service C until recovery occurs. Do I need to define further service dependencies or use inheritance of parent ? I've read the docs (several times) but can't seem to find the answers there. I'm using Nagios 2.0b4/ Suse 9.2. Any help, pointers to docs that can help, or even a padded cell would be much appreciated! regards, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. ***
[Nagios-users] Dependency issue
Hi, I have setup dependencies which all seem to work fine to a point. Example : I have 1 host with 3 services HOST A | Service A(master service) | --- || Service BService C If service A fails, checks and notifications are suppressed for Service B and Service C which is fine. However, i've had a couple of situations where Service B or Service C may fail first, generate an alert AND then Service A fails which also generates an alert. Is there a way in Nagios that can flip over to only alerting for Service A in this situation and supress anything for Service B and Service C until recovery occurs. Do I need to define further service dependencies or use inheritance of parent ? I've read the docs (several times) but can't seem to find the answers there. I'm using Nagios 2.0b4/ Suse 9.2. Any help, pointers to docs that can help, or even a padded cell would be much appreciated! regards, deborah This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. ***
RE: [Nagios-users] Sound notification on nagios server
Have you enabled sound in cgi.cfg ? -Original Message- From: Marcio Merlone [mailto:[EMAIL PROTECTED] Sent: 14 December 2005 12:33 To: nagios-users Subject: [Nagios-users] Sound notification on nagios server Hello all. I searched the web for this but could not find a proper solution. I am trying to make the nagios server (not the web gui) play a sound when there is something wrong. In this effort, I set: misccommands.cfg: define command{ command_nameplay_siren command_line/sbin/sirene.sh } /sbin/sirene.sh: #!/bin/bash data=`date` echo $data Making noise /var/log/buzina.log /usr/bin/aplay -q /usr/share/nagios/htdocs/media/critical.wav contacts.cfg: define contact{ contact_namesirene alias Sound card on sever service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,u,c,r host_notification_options d,u,r service_notification_commands play_siren host_notification_commands play_siren email [EMAIL PROTECTED] } contactgroups.cfg: define contactgroup{ contactgroup_name buzina alias Placa de som na cedro members sirene } hosts.cfg: define host{ use generic-host host_name teste alias Just for fun address 10.0.0.124 check_command check-host-alive max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_optionsd,u,r } services.cfg: define service{ use generic-service hostgroup_name teste service_description PING is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval1 contact_groups router-admins,buzina notification_interval 240 notification_period 24x7 notification_optionsc,r check_command check_ping!100.0,20%!500.0,60% } I have a sound card attached to the server, and issuing this command by hand I can hear the sound. But when the test server is down the command is not executed. The machine is an ubuntu 5.10 running kernel 2.6.12-10-k7, and nagios-mysql 1.3-cvs.20050402-4ubuntu3. Please let me know if you need further information. Thanks in advance for any help or hint. Best regards, -- Marcio Merlone [EMAIL PROTECTED] Ambiente Brasil --- 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=7637alloc_id=16865op=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=7637alloc_id=16865op=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] Sound notification on nagios server
probably a dumb question - but why have the sound on your server and not through a client front-end ? Surely a nagios server would be hosted in a computer room somewhere and the clients would be those monitoring from their desktops ? Or why not have a web browser open on the server then ? -Original Message- This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** From: Marcio Merlone [mailto:[EMAIL PROTECTED] Sent: 14 December 2005 13:47 To: Deborah Martin Cc: nagios-users Subject: RE: [Nagios-users] Sound notification on nagios server On Qua, 2005-12-14 at 13:15 +, Deborah Martin wrote: Have you enabled sound in cgi.cfg ? Yes, but this regards only for web clients browsing nagios, and it is working fine. BUT, I want the sound to be played on the nagios server, not my workstation. -- Marcio Merlone [EMAIL PROTECTED] Ambiente Brasil --- 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=7637alloc_id=16865op=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] CGI error in 2.0b4 2.0b5
Actually, just looking at my 2.0b4 build directory under sample-config and nagios.cfg states [EMAIL PROTECTED]@/nagios.log so i don't think that can be the issue. regards, deborah -Original Message- From: Ton Voon [mailto:[EMAIL PROTECTED] Sent: 23 November 2005 14:44 To: Nagios Users Subject: Re: [Nagios-users] CGI error in 2.0b4 2.0b5 On 23 Nov 2005, at 13:49, Marcel Mitsuto Fucatu Sugano wrote: On Tue, 2005-11-22 at 11:47 +0100, Hans Veneman wrote: In about 3% of the requests (for any of the cgi's) they give an internal server error. Same here. Not tried within all cgis, but status.cgi gives me this error sometimes. Not sure if it is about 3% of time, but i've seen this error before. SuSE9.3, x86, with practically the same configure options. I've got a small Nagios 2.0b5 installation I am playing with, but haven't come across this. I've run a small loop to hammer the status.cgi but no errors after 1000 iterations: cd /usr/local/nagios/sbin i=0; while [[ $i -lt 1000 ]] ; do REQUEST_METHOD=GET REMOTE_USER=admin ./status.cgi /dev/null; if [[ $? -ne 0 ]] ; then echo Error; break; fi; let i=$i+1; done I'm running on Debian 2.6.8-2-386. I notice that the error Hans got from the strace was for nagios.log. However, the sample configuration file for Nagios 2.0b5 has status_file=nagios.dat (used to be status.log). Could you be using a Nagios 1 config file for a Nagios 2 install? Ton http://www.altinity.com T: +44 (0)870 787 9243 F: +44 (0)845 280 1725 Skype: tonvoon --- 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=7628alloc_id=16845op=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=7628alloc_id=16845op=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] Non-US date formats in CGIs
Ian, On my version of nagios (2.0b4) in nagios.cfg there is the following set of options you can tweak for the date option. # DATE FORMAT OPTION # This option determines how short dates are displayed. Valid options # include: # us (MM-DD- HH:MM:SS) # euro(DD-MM- HH:MM:SS) # iso8601 (-MM-DD HH:MM:SS) # strict-iso8601 (-MM-DDTHH:MM:SS) # date_format=euro This might help although i've never used earlier versions of nagios regards, deborah -Original Message- From: Ian Chard [mailto:[EMAIL PROTECTED] Sent: 23 November 2005 16:23 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Non-US date formats in CGIs Hi, Is there any way to coax the CGIs, specifically when you set downtimes, so that they use the British date format (DD/MM/)? - Ian -- Ian Chard, Unix Network Administrator | E: [EMAIL PROTECTED] Systems and Electronic Resources Service | T: 80587 / (01865) 280587 Oxford University Library Services| F: (01865) 242287 --- 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=7637alloc_id=16865op=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=7637alloc_id=16865op=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] test email
yes - i have a number of times since joining the list in September! regards, deborah -Original Message- From: Subhendu Ghosh [mailto:[EMAIL PROTECTED] Sent: 16 November 2005 16:11 To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] test email Q. Is anyone other than me getting these back for the list on posting? -- -sg -- Forwarded message -- Date: 16 Nov 2005 16:04:35 - From: junk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Re: RE: [Nagios-users] snmp not working HeyYou got the wrong address but maybe you should check out http://www.GMAIL.COM.AU --- 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=7628alloc_id=16845op=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 email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio Limited takes steps to prevent the transmission of viruses via e-mail, we can not guarantee that any email or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. *** --- 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=7628alloc_id=16845op=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