Re: [Nagios-users] pnp4nagios - Hostname not set
Hi, Ok, good shout. I've install the latest version. The config check page looks ok but I'm getting errors where is isn't any rrd data yet. How long does it take to start producing this data when in sync mode? Can I force it along quicker so that I know everything working? Thanks again From: Michael Friedrich [mailto:michael.friedr...@univie.ac.at] Sent: 09 June 2011 22:27 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] pnp4nagios - Hostname not set On 09.06.2011 18:30, Tristan Drinkwater wrote: Hi guys, I've followed the install instruction from here (http://docs.pnp4nagios.org/pnp-0.4/install) to install pnp4nagios v4 on my nagios 3.x running on a fedora 14 box but I'm stuck when verifying the install. any specific reason not to use 0.6.x ? When I do http://servername/Nagios/pnp my first error is 'Hostname is not set' followed by 'perfdata folder is empty' and 'no rrd files' I've looked and sure enough there are no rrd files in the folder, plus there is no entry in the log file. To me this suggests that Nagios isn't firing the command 'process-service-perfdata' after completing a check. My commands.cfg file looks correct; # Added by Tristan for PNP 4 Nagios define command { command_nameprocess-service-perfdata command_line/usr/local/nagios/libexec/process_perfdata.pl } define command { command_nameprocess-host-perfdata command_line/usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA } And so is my Nagios.cfg file; process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata these tow are the only things I've changed from the default install. Any ideas what I've missed?? Any tips on how I can drill down further to see what's not happing and why? Thanks in advance :) Regards, Tristan Drinkwater Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev ___ 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 -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-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] pnp4nagios - Hostname not set
Hi guys, I've followed the install instruction from here (http://docs.pnp4nagios.org/pnp-0.4/install) to install pnp4nagios v4 on my nagios 3.x running on a fedora 14 box but I'm stuck when verifying the install. When I do http://servername/Nagios/pnp my first error is 'Hostname is not set' followed by 'perfdata folder is empty' and 'no rrd files' I've looked and sure enough there are no rrd files in the folder, plus there is no entry in the log file. To me this suggests that Nagios isn't firing the command 'process-service-perfdata' after completing a check. My commands.cfg file looks correct; # Added by Tristan for PNP 4 Nagios define command { command_nameprocess-service-perfdata command_line/usr/local/nagios/libexec/process_perfdata.pl } define command { command_nameprocess-host-perfdata command_line/usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA } And so is my Nagios.cfg file; process_performance_data=1 host_perfdata_command=process-host-perfdata service_perfdata_command=process-service-perfdata these tow are the only things I've changed from the default install. Any ideas what I've missed?? Any tips on how I can drill down further to see what's not happing and why? Thanks in advance :) Regards, Tristan Drinkwater Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-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] Reporting emails
Hey guys, I'm fairly new to Nagios and I'm monitoring about 100 hosts, each doing several checks and things are going great. I'd like to take things up a notch by somehow getting emailed report daily and weekly to tell me what host/services where down, when and for how long? In essence I'm trying to create a systems issues report that I can give to my directory to justify my existence.. :) Many thanks. Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- Simplify data backup and recovery for your virtual environment with vRanger. Installation's a snap, and flexible recovery options mean your data is safe, secure and there when you need it. Discover what all the cheering's about. Get your free trial download today. http://p.sf.net/sfu/quest-dev2dev2 ___ 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] ndoutils 1.4b9 - Mysql Library not found
Hi guys, I'm looking to start filling a database for every alert that Nagios makes. I've come across the ndoutils but when I try to ./configure the install it keeps telling me that it can't find the mysql library's. I have tried the --with-mysql=/usr/lib/mysql and I've checked that the library does indeed exist there. Any ideas on how to get this installed? Or is there a better way of outputting nagios's email alerts into mysql? Thanks in advance Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- 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] ndoutils 1.4b9 - Mysql Library not found
Hi, I'm running fedora 14 with the latest mysql-devel packages installed. Thanks tristan From: ranjib dey [mailto:dey.ran...@gmail.com] Sent: 11 May 2011 12:39 To: Nagios Users List Subject: Re: [Nagios-users] ndoutils 1.4b9 - Mysql Library not found which OS you are running on? Do you have the mysql headers installed (mysql-devel.rpm or something similar)? regards ranjib On Wed, May 11, 2011 at 2:34 PM, Tristan Drinkwater trist...@micro-p.commailto:trist...@micro-p.com wrote: Hi guys, I'm looking to start filling a database for every alert that Nagios makes. I've come across the ndoutils but when I try to ./configure the install it keeps telling me that it can't find the mysql library's. I have tried the --with-mysql=/usr/lib/mysql and I've checked that the library does indeed exist there. Any ideas on how to get this installed? Or is there a better way of outputting nagios's email alerts into mysql? Thanks in advance Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- 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.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 -- 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] ndoutils 1.4b9 - Mysql Library not found
Arh, all ok now. I was still using the command switch after installing the devel package. A straight up ./configure show the lib as found. All's good. ) From: Tristan Drinkwater [mailto:trist...@micro-p.com] Sent: 11 May 2011 12:45 To: Nagios Users List Subject: Re: [Nagios-users] ndoutils 1.4b9 - Mysql Library not found Hi, I'm running fedora 14 with the latest mysql-devel packages installed. Thanks tristan From: ranjib dey [mailto:dey.ran...@gmail.com] Sent: 11 May 2011 12:39 To: Nagios Users List Subject: Re: [Nagios-users] ndoutils 1.4b9 - Mysql Library not found which OS you are running on? Do you have the mysql headers installed (mysql-devel.rpm or something similar)? regards ranjib On Wed, May 11, 2011 at 2:34 PM, Tristan Drinkwater trist...@micro-p.commailto:trist...@micro-p.com wrote: Hi guys, I'm looking to start filling a database for every alert that Nagios makes. I've come across the ndoutils but when I try to ./configure the install it keeps telling me that it can't find the mysql library's. I have tried the --with-mysql=/usr/lib/mysql and I've checked that the library does indeed exist there. Any ideas on how to get this installed? Or is there a better way of outputting nagios's email alerts into mysql? Thanks in advance Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- 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.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 -- 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] check_http encrypted link
Hey guys, I'm struggling to check a http link that's encrypted. The full url works ok in a browser but I get 'unable to open a TCP socket' error when I run 'check_http -H domain/encrypted link' from the command line. I've also tried 'check_http -H domain -u /encrypted link but that's not working either. Is check_http even able to check such a thing? Thanks in advance :) Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- WhatsUp Gold - Download Free Network Management Software The most intuitive, comprehensive, and cost-effective network management toolset available today. Delivers lowest initial acquisition cost and overall TCO of any competing solution. http://p.sf.net/sfu/whatsupgold-sd___ 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 event log
Morning all (depending where you are in the world..) I'm trying to catch all error and warning logs from application event folder but I'm struggling with the filter+generated bit. In a nut shell all I want is anything red that happened within the last 24 hours. Here is my syntax I'm running from the libexec folder till I get it right; ./check_nrpe -H ip -p 5667 -c CheckEventLog -a filter=in file=application filter.eventType==error filter+generated=\24h MaxCrit=1 This return's 12 errors. Only 3 of which happened in the last 24 hours. It seems to be either not using the filter I've detailed or making up its own one!! Can anyone see what I'm doing wrong? Thanks in advance :) Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ 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 CheckEventLog
Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Thanks in advance :) Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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 CheckEventLog
Thanks for the reply. I fear the main problem here is the lack of knowledge that's sat in-between my chair and my pc :) I've edited the ini file on the server to allow both arguments and nasty chars and restarted the service. If I use the -a switch after -c checkEventLog all I get back is 'CHECK_NRPE: Received 0 bytes from daemon... blah, blah blah...' To me, that's suggests something isn't right on my windows server end, but what? Thanks again :) -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 16 February 2011 12:55 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog On Wed, Feb 16, 2011 at 1:38 PM, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Ah, the ole-dead-thing, isn't working as it is supposed too case :-). Usually this means that something is overlooked , or there is a knowledge-gap in corrrect usage of the needed tool ; Some things to remark : - normally in your example command the '-a' flag should appear after checkEventLog to denote arguments following (I think) - in the NSC config file on the remote host, support for arguments must be , explicitly enabled, as also support for nasty meta chars (I think) - further I would advice to make tests against the lastest version of NSClient 0.3.8..x , because the syntax changed somewhat, and this can influence behavior, pending your are looking at links with correct examples w.r.t to the version of NSClient used , or not. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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 Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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 CheckEventLog
Arh, no got it I uncommented the lines in the ini file but didn't change their values from 0 to 1. Not to worry. Thanks all :) -Original Message- From: Tristan Drinkwater [mailto:trist...@micro-p.com] Sent: 16 February 2011 13:13 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog Thanks for the reply. I fear the main problem here is the lack of knowledge that's sat in-between my chair and my pc :) I've edited the ini file on the server to allow both arguments and nasty chars and restarted the service. If I use the -a switch after -c checkEventLog all I get back is 'CHECK_NRPE: Received 0 bytes from daemon... blah, blah blah...' To me, that's suggests something isn't right on my windows server end, but what? Thanks again :) -Original Message- From: Mark Elsen [mailto:mark.el...@gmail.com] Sent: 16 February 2011 12:55 To: Nagios Users List Subject: Re: [Nagios-users] nrpe CheckEventLog On Wed, Feb 16, 2011 at 1:38 PM, Tristan Drinkwater trist...@micro-p.com wrote: Hi guys, I hope someone can help me. I'm trying to set up Nagios to return a warning for all red error logs in both the system and application logs on a windows 2003 server. So far no matter what I try I always get 'Eventlog Check ok' even when I know that there are some red error's showing in the log. I've just been running this from the libexec folder so far as I what to get the syntax right before defining the service and alike. ./check_nrpe -H IP -p 5667 -c checkEventLog file=application file=system filter-eventType==error filter-generated=\1d Any ideas anyone? NSclient 3.3.20 installed on windows machine. Can someone provide a simple syntax that will at least produce something more interesting the 'ok' so I know that's it is possible? At the moment I'm thinking it's stuck at only reporting 'ok' no matter what I do. Ah, the ole-dead-thing, isn't working as it is supposed too case :-). Usually this means that something is overlooked , or there is a knowledge-gap in corrrect usage of the needed tool ; Some things to remark : - normally in your example command the '-a' flag should appear after checkEventLog to denote arguments following (I think) - in the NSC config file on the remote host, support for arguments must be , explicitly enabled, as also support for nasty meta chars (I think) - further I would advice to make tests against the lastest version of NSClient 0.3.8..x , because the syntax changed somewhat, and this can influence behavior, pending your are looking at links with correct examples w.r.t to the version of NSClient used , or not. M. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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 Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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
[Nagios-users] Check_snmp -d -s
Morning all, I'm trying to refine a few snmp checks I do. My command looks like this; ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive -P 2c -v This produces the following; /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.1 READYNAS-MIB::diskState.1 = STRING: dead SNMP OK - dead | Now, as you can see from above, my disk 2 is 'dead' but Nagios reports this as ok. I'm under the impression I need to use the '-s' switch to specify what is good and what is bad, based on matching a string from the output. To me, the output above would suggest that the returning string is dead so to get it to report that this is actually bad I should use -s ok as ok is the string returned on all the other disks that are working ok. - working disk--- /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.2 READYNAS-MIB::diskState.2 = STRING: ok SNMP OK - ok | - working disk--- Sadly, this doesn't work as it seems that ok and dead aren't the returning strings. Neither are 1 and 0 as stated in the readynas MIB documentation. Anyone got any ideas?? Have I messed up the syntax?? Thanks in advance, Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb___ 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_snmp -d -s
Hi, I have just tried that not but dice. :( -Original Message- From: Giles Coochey [mailto:gi...@coochey.net] Sent: 11 February 2011 11:25 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Check_snmp -d -s On 11/02/2011 12:08, Tristan Drinkwater wrote: Morning all, I'm trying to refine a few snmp checks I do. My command looks like this; ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive -P 2c -v This produces the following; /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.1 READYNAS-MIB::diskState.1 = STRING: dead SNMP OK - dead | Now, as you can see from above, my disk 2 is 'dead' but Nagios reports this as ok. I'm under the impression I need to use the '-s' switch to specify what is good and what is bad, based on matching a string from the output. To me, the output above would suggest that the returning string is dead so to get it to report that this is actually bad I should use -s ok as ok is the string returned on all the other disks that are working ok. - working disk--- /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.2 READYNAS-MIB::diskState.2 = STRING: ok SNMP OK - ok | - working disk--- Sadly, this doesn't work as it seems that ok and dead aren't the returning strings. Neither are 1 and 0 as stated in the readynas MIB documentation. Anyone got any ideas?? Have I messed up the syntax?? Have you tried --eregi=ok ? -- Best Regards, Giles Coochey NetSecSpec Ltd NL T-Systems Mobile: +31 681 265 086 NL Mobile: +31 626 508 131 GIB Mobile: +350 5401 6693 Email/MSN/Live Messenger: gi...@coochey.net Skype: gilescoochey Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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_snmp -d -s
Hi, Just in case anyone wanted to know.. I resolved my issue my created a wrap script for the check_snmp plugin. Quite simple really :) script #!/bin/bash # Run check_snmp with param check=$(/usr/local/nagios/libexec/check_snmp -H $1 -o $2 -C nas-drive -P 2c) # echo result (testing) # echo $check # return result if CRITICAL if [[ $check == *dead* ]] then echo Disk OFFLINE - CRITICAL; exit 2 fi # return result if OK if [[ $check == *ok* ]] then echo Disk Online - OK; exit 0 fi # end script -Original Message- From: Tristan Drinkwater [mailto:trist...@micro-p.com] Sent: 11 February 2011 11:34 To: Nagios Users List Subject: Re: [Nagios-users] Check_snmp -d -s Interesting. How do I go about a wrap script then? I take it I call the script from the command_check line? Anything special about outputting the result so Nagios can see it? thanks -Original Message- From: Yueh-Hung Liu [mailto:yuehung@gmail.com] Sent: 11 February 2011 11:24 To: Nagios Users List Subject: Re: [Nagios-users] Check_snmp -d -s you can write a wrap script, which would be the check command, to deal the return string and report correct status to Nagios. of course this script will use check_snmp in it. On Fri, Feb 11, 2011 at 7:08 PM, Tristan Drinkwater trist...@micro-p.com wrote: Morning all, I'm trying to refine a few snmp checks I do. My command looks like this; ./check_snmp -H xx.xx.xx.xx -o READyNAS-MIB::diskState.1 -C nas-drive -P 2c -v This produces the following; /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.1 READYNAS-MIB::diskState.1 = STRING: dead SNMP OK - dead | Now, as you can see from above, my disk 2 is 'dead' but Nagios reports this as ok. I'm under the impression I need to use the '-s' switch to specify what is good and what is bad, based on matching a string from the output. To me, the output above would suggest that the returning string is dead so to get it to report that this is actually bad I should use -s okĀ as ok is the string returned on all the other disks that are working ok. - working disk--- /usr/bin/snmpget -t 1 -r 5 -m ALL -v 2c [authpriv] xx.xx.xx.xx READYNAS-MIB::diskState.2 READYNAS-MIB::diskState.2 = STRING: ok SNMP OK - ok | - working disk--- Sadly, this doesn't work as it seems that ok and dead aren't the returning strings. Neither are 1 and 0 as stated in the readynas MIB documentation. Anyone got any ideas?? Have I messed up the syntax?? Thanks in advance, Tristan Micro Peripherals Limited. Registered Office: Shorten Brook Way, Altham Business Park, Altham, Accrington, Lancs. BB5 5YJ. Tel: (01282) 776776 Fax: (01282) 858790 Micro Peripherals Limited. Registered in England No. 1511931. VAT No. GB 864 4387 91 DISCLAIMER: This e-mail and attachments are confidential and are intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Micro Peripherals Limited. If you are not the intended recipient, be advised that you have received this Email in error and that any use, dissemination, forwarding, printing, or copying of this Email is strictly prohibited. If this transmission is received in error please notify the sender immediately and delete this message from your E-mail system. All electronic transmissions to and from Micro Peripherals Ltd are recorded and may be monitored. -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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 -- The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb ___ 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