[Nagios-users] check_ide_smart
Hi List! I am using check_ide_smart plugin and it returns (null) in Nagios as 'Status Information', it shows as yellow (warning). The command is defined as: define command{ command_namecheck_ide_smart command_linesudo $USER1$/check_ide_smart -n $ARG1$ } and called in localhost as check_command check_ide_smart!/dev/sda Nagios has sudoers permission. Selinux is set to permissive. When I do a forced check the syslog or nagios log only contains the fact I initiated the check with the given name. Centos 6.x with Nagios 3.2.3 from Epel, I updated Nagios to 3.4.4 with no change. The rest of my plugins work. What am I missing? -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ 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_http with spaces problem
Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has spaces. So the command definition is like: $USER1$/check_http -H $ARG1$ -s $ARG2$ -w 10 -c 20 if i pass an $ARG2$ without spaces it's work fine, but if it has spaces nagios can't make check. Could you give me a help? Thanks, Jim -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ 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] check_http with spaces problem
Please put it within quotes , that should help On Sun, May 5, 2013 at 8:53 PM, Κοκμάδης Δημήτριος dkokma...@gmail.comwrote: Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has spaces. So the command definition is like: $USER1$/check_http -H $ARG1$ -s $ARG2$ -w 10 -c 20 if i pass an $ARG2$ without spaces it's work fine, but if it has spaces nagios can't make check. Could you give me a help? Thanks, Jim -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ 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 -- Regards Sunil Sankar -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ 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] check_http with spaces problem
Put your ARG in quotes. So it looks like this: $USER1$/check_http -H '$ARG1$' -s '$ARG2$' -w 10 -c 20 Then it will handle spaces. Alternatively, you can use custom variables to a check command that is more complex, but in return your service definitions will become much more readable. Example: define service { host_name HOSTNAME service_description http://... check_command okc-check_http use generic-service __RESPONSE_WARNING 2 __RESPONSE_CRITICAL 10 __SEARCH_STRING __VIRTUAL_HOST HOSTNAME __PORT 80 __URI / } define command { command_line $USER1$/check_http -I $HOSTADDRESS$ -H $_SERVICE_VIRTUAL_HOST$ -p $_SERVICE_PORT$ -u $_SERVICE_URI$ -s $_SERVICE_SEARCH_STRING$ -w $_SERVICE_RESPONSE_WARNING$ -c $_SERVICE_RESPONSE_CRITICAL$ command_name okc-check_http } - Original Message - From: Κοκμάδης Δημήτριος dkokma...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Sunday, May 5, 2013 3:23:02 PM Subject: [Nagios-users] check_http with spaces problem Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has spaces. So the command definition is like: $USER1$/check_http -H $ARG1$ -s $ARG2$ -w 10 -c 20 if i pass an $ARG2$ without spaces it's work fine, but if it has spaces nagios can't make check. Could you give me a help? Thanks, Jim -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ 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 -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ 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] check_http with spaces problem
Thank you for the replies. I tried to use all these before asking! By the check_debug.sh Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H granma.gr -u http://granma.gr/index.html -R Web -w 10 -c 20 Name or service not known HTTP CRITICAL - Unable to open TCP socket If i check the same without space it works! Do you have any ideas? 2013/5/5 Páll Guðjón Sigurðsson pa...@ok.is Put your ARG in quotes. So it looks like this: $USER1$/check_http -H '$ARG1$' -s '$ARG2$' -w 10 -c 20 Then it will handle spaces. Alternatively, you can use custom variables to a check command that is more complex, but in return your service definitions will become much more readable. Example: define service { host_name HOSTNAME service_description http://... check_command okc-check_http use generic-service __RESPONSE_WARNING 2 __RESPONSE_CRITICAL 10 __SEARCH_STRING __VIRTUAL_HOST HOSTNAME __PORT 80 __URI / } define command { command_line $USER1$/check_http -I $HOSTADDRESS$ -H $_SERVICE_VIRTUAL_HOST$ -p $_SERVICE_PORT$ -u $_SERVICE_URI$ -s $_SERVICE_SEARCH_STRING$ -w $_SERVICE_RESPONSE_WARNING$ -c $_SERVICE_RESPONSE_CRITICAL$ command_name okc-check_http } - Original Message - From: Κοκμάδης Δημήτριος dkokma...@gmail.com To: nagios-users@lists.sourceforge.net Sent: Sunday, May 5, 2013 3:23:02 PM Subject: [Nagios-users] check_http with spaces problem Hi, I am trying to check multiple http sites, so i configure a bash script which create the service definition but i faced a problem when the expected string has spaces. So the command definition is like: $USER1$/check_http -H $ARG1$ -s $ARG2$ -w 10 -c 20 if i pass an $ARG2$ without spaces it's work fine, but if it has spaces nagios can't make check. Could you give me a help? Thanks, Jim -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ 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 -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2 ___ 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 -- Get 100% visibility into Java/.NET code with AppDynamics Lite It's a free troubleshooting tool designed for production Get down to code-level detail for bottlenecks, with 2% overhead. Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap2___ 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 check_md_raid
Hi all! I'm trying the script check_md_raid [1] of Hari Sekhon (version 0.7.2). It works correctly with Debian GNU/Linux Squeeze, but seems to have a problem with the parsing in Debian GNU/Linux Wheezy (since yesterday is stable). I copy high verbose output: --- sirius:~# /usr/local/nagios/libexec/non-std/check_md_raid.pl -vvv finding all MD arrays via: /sbin/mdadm --detail --scan found array /dev/md0 found array /dev/md1 found array /dev/md2 found array /dev/md3 Now testing raid device /dev/md0 /dev/md0: Version : 0.90 Creation Time : Sat May 24 16:54:22 2008 Raid Level : raid1 Array Size : 979840 (957.04 MiB 1003.36 MB) Used Dev Size : 979840 (957.04 MiB 1003.36 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 0 Persistence : Superblock is persistent Update Time : Sat Feb 16 22:55:30 2013 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : 7ca3a761:0b7f8242:966549c2:cf5e5f4f Events : 0.28032 Number Major Minor RaidDevice State 0 8 170 active sync /dev/sdb1 1 811 active sync /dev/sda1 Now testing raid device /dev/md1 /dev/md1: Version : 0.90 Creation Time : Sat May 24 16:54:41 2008 Raid Level : raid1 Array Size : 96320 (94.08 MiB 98.63 MB) Used Dev Size : 96320 (94.08 MiB 98.63 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 1 Persistence : Superblock is persistent Update Time : Sun May 5 21:46:33 2013 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : e6b6e28f:f1d35cb5:9000b848:259f4f40 Events : 0.306356 Number Major Minor RaidDevice State 0 8 180 active sync /dev/sdb2 1 821 active sync /dev/sda2 Now testing raid device /dev/md2 /dev/md2: Version : 0.90 Creation Time : Sat May 24 16:54:52 2008 Raid Level : raid1 Array Size : 1951808 (1906.38 MiB 1998.65 MB) Used Dev Size : 1951808 (1906.38 MiB 1998.65 MB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 2 Persistence : Superblock is persistent Update Time : Sun May 5 21:46:33 2013 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : f1545e54:3ecbd06e:8a13b91c:feb5b20b Events : 0.2484914 Number Major Minor RaidDevice State 0 8 190 active sync /dev/sdb3 1 831 active sync /dev/sda3 Now testing raid device /dev/md3 /dev/md3: Version : 0.90 Creation Time : Sat May 24 16:55:14 2008 Raid Level : raid1 Array Size : 484355780 (461.92 GiB 495.98 GB) Used Dev Size : 484355780 (461.92 GiB 495.98 GB) Raid Devices : 2 Total Devices : 2 Preferred Minor : 3 Persistence : Superblock is persistent Update Time : Sun May 5 21:46:33 2013 State : clean Active Devices : 2 Working Devices : 2 Failed Devices : 0 Spare Devices : 0 UUID : a18a76b5:cfe1950e:3e109807:c4b19353 Events : 0.3107222 Number Major Minor RaidDevice State 0 8 200 active sync /dev/sdb4 1 841 active sync /dev/sda4 RAID CRITICAL: 4 arrays not ok - Array MD0 is in state clean (raid1), Array MD1 is in state clean (raid1), Array MD2 is in state clean (raid1), Array MD3 is in state clean (raid1) [4 arrays checked] --- As you can see from the output, the four arrays are clean, but the script displays a CRITICAL state. Hari, if you're out there, do you know what could be the problem? Thanks in advance for your reply. Regards, Daniel [1] http://exchange.nagios.org/directory/Plugins/Operating-Systems/Linux/Linux-Software-Raid-Plugin-for-32-2Dbit-and-64-2Dbit-systems/details -- Daniel Bareiro Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 signature.asc Description: Digital signature -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1___ 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
[Nagios-users] Escalation issues
Hi all, I have a working nagios system on fc17, but I don't think I have the escalations configured properly. I have the following service templates defined: At what point are the services converted to being escalated services in my sample below? define service { namestandard-service-24x7 active_checks_enabled 1 passive_checks_enabled 1 parallelize_check 1 obsess_over_service 1 check_freshness 0 notifications_enabled 1 event_handler_enabled 1 flap_detection_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 max_check_attempts 5 # number of min between checks normal_check_interval 4 retry_check_interval1 is_volatile 0 check_period24x7 contact_groups admins # re-notify every ten minutes notification_interval 10 notification_period 24x7 notification_optionsw,u,c,r register0 } define serviceescalation { namecritical-services first_notification 3 last_notification 10 #contact_groups linux-admins,noc-admins,techs-phones contact_groups admins-escal notification_interval 10 register0 } I also have a number of services configured such as this: define service { use standard-service-24x7 host_name mailhost service_description MAILQ-pre check_command check-host-alive } define serviceescalation { use critical-services host_name mailhost service_description MAILQ-pre } I have also interval_length=60 in nagios.cfg. I don't understand why admins-escal isn't consulted after three consecutive attempts at communicating with the service. What am I doing wrong? Thanks, Alex -- Introducing AppDynamics Lite, a free troubleshooting tool for Java/.NET Get 100% visibility into your production application - at no cost. Code-level diagnostics for performance bottlenecks with 2% overhead Download for free and get started troubleshooting in minutes. http://p.sf.net/sfu/appdyn_d2d_ap1 ___ 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