Re: [Nagios-users] ESXi/vCenter Monitoring
Hi Daniel, We monitor our VM servers with Nagios but point to their IP addresses in the hosts.cfg. Since these don't change and Nagios doesn't care what VM host the server is running it is not a problem. We make the network switch the parent, not the VMware host. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) From: Daniel Ceola [mailto:daniel.ce...@occfiber.com] Sent: Monday, August 12, 2013 11:09 AM To: Nagios Users (nagios-users@lists.sourceforge.net) Subject: [Nagios-users] ESXi/vCenter Monitoring Hello all, I have a lot of host servers as VM's on our ESXi infrastructure, managed with vCenter. We also use vSphere DRS to help keep the load on host systems balanced. Due to the DRS, our VM's can sometimes move around from being on one host to being on another w/o my knowledge beforehand. Does anyone know if there is any sort of plugin available for Nagios Core that would basically talk to my vCenter system and find out what VM's are on which hosts, and automatically update that VM's Parent directive in the host definition? Daniel Ceola System Administrator daniel.ce...@occfiber.commailto:daniel.ce...@occfiber.com -- 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://pubads.g.doubleclick.net/gampad/clk?id=48897031iu=/4140/ostg.clktrk___ 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] Log Rotations Issue
Hi Alaric, I had a similar issue and never did figure it out. Unfortunately, I only had one server but it was virtual so I just built a new one from scratch and transferred my configs. Sometimes expediency demands undesirable methods. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -Original Message- From: Alaric [mailto:paxindust...@gmail.com] Sent: Thursday, January 31, 2013 10:57 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Log Rotations Issue Hi, I was hoping that someone on this list might have some insight to an issue that I recently ran into after upgrading my Nagios core installation to 3.4.4 (out of the EPEL Repo) After upgrading, log rotation stopped on one of my two servers, and perfdata_file_processing_commands stopped working, and whatever Job that sets 'CURRENT HOST STATE' in the main nagios logs stopped working. I upgraded both my Dev server, and my Production server, and only my Prod servers seems to have the issue. Both run the same code, and both have the same configs. I'm confident the configs as the same, as both get the configs deployed via puppet. I've googled around quite a bit, and haven't had any luck figuring it out. Has anyone seen anything similar? My feeling, based on the behavior of my Dev server is that it's not a problem with the code, but that something got stuck but I'm darned if I can figure out what. I've cleared out the logs, restarted nagios, rebooted the server. Audited configs and checked the debug output. Any help is much appreciated! -a -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ 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 -- Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_jan ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios Permissions Error ?
Hi Everyone, I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a problem with a couple of plugins that I think is related to a permissions issue. I installed from source as root (sudo su). I can run ./usr/local/nagios/libexec/check_iftraffic4.pl -H ipaddress -C communitystring -i F24 -b 100 -u m from the command line as root no problem, however the web interface shows critical (nul). If I try to run the same command logged in as any other user, I get Can't locate Net/DNS.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/check_iftraffic4.pl line 247. Net::DNS is installed. Any thoughts? -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ 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 Permissions Error ?
Thanks very much, that was it. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) From: Sunil Sankar [mailto:su...@sunil.cc] Sent: Monday, January 14, 2013 4:17 PM To: Nagios Users List Subject: Re: [Nagios-users] Nagios Permissions Error ? Please install apt-get install libnet-dns-perl On Tue, Jan 15, 2013 at 2:35 AM, Sunil Sankar su...@sunil.ccmailto:su...@sunil.cc wrote: This is a due to missing cpan module On Tue, Jan 15, 2013 at 1:21 AM, Martin Hugo martin_h...@hboe.orgmailto:martin_h...@hboe.org wrote: Hi Everyone, I have recently rebuilt Nagios 3.4.3 on Ubuntu 12.04 and am having a problem with a couple of plugins that I think is related to a permissions issue. I installed from source as root (sudo su). I can run ./usr/local/nagios/libexec/check_iftraffic4.plhttp://check_iftraffic4.pl -H ipaddress -C communitystring -i F24 -b 100 -u m from the command line as root no problem, however the web interface shows critical (nul). If I try to run the same command logged in as any other user, I get Can't locate Net/DNS.pm in @INC (@INC contains: /root/perl5/lib/perl5/x86_64-linux-gnu-thread-multi /root/perl5/lib/perl5 /etc/perl /usr/local/lib/perl/5.14.2 /usr/local/share/perl/5.14.2 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.14 /usr/share/perl/5.14 /usr/local/lib/site_perl .) at ./usr/local/nagios/libexec/check_iftraffic4.plhttp://check_iftraffic4.pl line 247. BEGIN failed--compilation aborted at ./usr/local/nagios/libexec/check_iftraffic4.plhttp://check_iftraffic4.pl line 247. Net::DNS is installed. Any thoughts? -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master Visual Studio, SharePoint, SQL, ASP.NEThttp://ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412 ___ 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 -- Regards Sunil Sankar -- Regards Sunil Sankar -- Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS, MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only -- learn more at: http://p.sf.net/sfu/learnmore_122412___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Nagios not working except for local host
Hello, My Nagios server died and I am having to rebuild (ran well for the best part of two years). I am running Nagios Core 3.4.3 on Ubuntu 12.04 and have added pnp4nagios 0.6.19. Nagios and pnp4nagios were installed from source. I believe I have configured it correctly but I have obviously missed something. My Nagios pre-flight check shows no errors (one warning about a host with no services assigned - which I am aware of), it correctly lists the number of hosts and services but, when I go to the web interface, it only shows the local host. Can anyone suggest where I might start troubleshooting this? Thanks very much. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ 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 not working except for local host
Thanks for the Reponses guys. I went back and reconfigured from source and now Nagios is working! So now it's on to pnp4nagios and then NRPE. Thanks again. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -Original Message- From: Frost, Mark {BIS} [mailto:mark.fro...@pepsico.com] Sent: Tuesday, January 08, 2013 9:13 AM To: Nagios Users List Subject: Re: [Nagios-users] Nagios not working except for local host Martin, Remember that the UI shows you hosts and services based on the user you're logged into the UI as (or the user that apache thinks you are and then passes that on to the Nagios CGIs). The hosts/services shown to a userid in the UI are based on either what Nagios thinks that user is a contact for (i.e. that id is a contact for a given host or service therefore you see it in the UI) or based on what settings you have for that user in your cgi.cfg file. So if you're logged in as martin in the UI and martin doesn't match a contact in Nagios, then you would want to change your cgi.cfg to give martin permissions to say view all hosts, etc. Mark -Original Message- From: Martin Hugo [mailto:martin_h...@hboe.org] Sent: Tuesday, January 08, 2013 8:30 AM To: 'Nagios Users List' Subject: [Nagios-users] Nagios not working except for local host Hello, My Nagios server died and I am having to rebuild (ran well for the best part of two years). I am running Nagios Core 3.4.3 on Ubuntu 12.04 and have added pnp4nagios 0.6.19. Nagios and pnp4nagios were installed from source. I believe I have configured it correctly but I have obviously missed something. My Nagios pre-flight check shows no errors (one warning about a host with no services assigned - which I am aware of), it correctly lists the number of hosts and services but, when I go to the web interface, it only shows the local host. Can anyone suggest where I might start troubleshooting this? Thanks very much. -- Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ 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 -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ 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 -- Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS and more. Get SQL Server skills now (including 2012) with LearnDevNow - 200+ hours of step-by-step video tutorials by Microsoft MVPs and experts. SALE $99.99 this month only - learn more at: http://p.sf.net/sfu/learnmore_122512 ___ 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] Weird Nagios Problem
You are right, it was using check_local_load, is there a remote version of this command? Thanks. Marty -Original Message- From: C. Bensend [mailto:be...@bennyvision.com] Sent: Tuesday, December 04, 2012 6:05 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Weird Nagios Problem I have been running Nagios for over a year with no issues. All of a sudden, all of my current loads on my linux servers all go into warning state at the same time, showing the exact same load, which then increments every hour to critical. After a while (3 or 4 hours) they all come back down to normal. Checking on the servers themselves using HTOP shows normal load levels throughout the time period. Hmmm, yeah. Check that service and checkcommand definition. I bet you're actually testing the load on the *Nagios* server, and not the individual servers you think you're testing it on. What's the Nagios server's load during that time? I bet it matches up... -- Unless you're a lawyer, you don't understand Oracle licensing. That applies equally to Oracle employees as well as customers. -- Me, 2012-05-10 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ 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 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d ___ 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] Weird Nagios Problem
I have been running Nagios for over a year with no issues. All of a sudden, all of my current loads on my linux servers all go into warning state at the same time, showing the exact same load, which then increments every hour to critical. After a while (3 or 4 hours) they all come back down to normal. Checking on the servers themselves using HTOP shows normal load levels throughout the time period. Another issue is one check_Interface_Table that returns 255 out of bounds but over 30 others (in the same service group using the same command) return normal. The problem is obviously with Nagios but I don't know where to look. Any suggestions? Martin T. Hugo Network Administrator Hilliard City Schools Tel: 614-921-7102 -- LogMeIn Rescue: Anywhere, Anytime Remote support for IT. Free Trial Remotely access PCs and mobile devices and provide instant support Improve your efficiency, and focus on delivering more value-add services Discover what IT Professionals Know. Rescue delivers http://p.sf.net/sfu/logmein_12329d2d___ 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] Where can arguments go?
David, You could use something like the check_iftraffic3 plug-in, that would also give you bandwidth useage. Martin T. hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-921-7243 (Fax) -Original Message- From: David Dyer-Bennet [mailto:d...@dd-b.net] Sent: Tuesday, February 21, 2012 6:42 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Where can arguments go? I'm looking to use a special check command to verify routers are in operation by checking the main link port of the router (instead of the default ping). I'm running into confusion, because I need to specify a port number in the host definition, and I can't really see how to do it. I use soemthing like this for a template: define host { namesnmp-switch ; The name of this host template use generic-switch #check_command check-host-alive ; Default command to check if routers are alive check_command check-snmp-switch-alive $HOSTADDRESS$ $ARG1$ $ARG2$ register0 ; DONT REGISTER THIS - ITS JUST A TEMPLATE } I'm not sure the args on the check_command line are legal And I'm not sure that arguments on a use snmp-switch line referencing this could have arguments on them. Is this a possible / sane thing to do? Is this the right way to approach it, or am I missing a way that actually makes sense? -- David Dyer-Bennet, d...@dd-b.net; http://dd-b.net/ Snapshots: http://dd-b.net/dd-b/SnapshotAlbum/data/ Photos: http://dd-b.net/photography/gallery/ Dragaera: http://dragaera.info -- Keep Your Developer Skills Current with LearnDevNow! 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-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 -- Virtualization Cloud Management Using Capacity Planning Cloud computing makes use of virtualization - but cloud computing also focuses on allowing computing to be delivered as a service. http://www.accelacomm.com/jaw/sfnl/114/51521223/ ___ 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] Suggestions for checking DHCP Scopes
Hello, We are running Nagios, Ndoutils and PnP4 in an enterprise environment. We use NSClient++ exclusively on our Windows servers. Does anyone have any suggestions for checking DHCP scopes on Windows servers. I saw one util on Nagios Exchange that uses a vbs script but I have no idea how I would set that up. Thanks. Marty -- 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
Re: [Nagios-users] snmpwalk is working, check_snmp is not ?
Have you made any changes since you compiled the plugins? I saw this a while ago with a different plugin (unfortunately I can't remember what I had changed) but a recompile of the plugins fixed it. Marty -Original Message- From: wer...@aloah-from-hell.de [mailto:wer...@aloah-from-hell.de] Sent: Monday, August 29, 2011 2:07 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] snmpwalk is working, check_snmp is not ? Hi again, now I get: root@nagios:~# /usr/lib/nagios/plugins/check_snmp -H 192.168.2.1 -P2c -o 1.3.6.1.4.1.25461.2.1.2.1.11.0 -w 100 -c 200 No valid data returned Any hints? Thanks, Werner -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-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 -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-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
Re: [Nagios-users] Problem Executing Passive Checks
A GUI instigated check may run under a different username than that used in a terminal script. Were you root in terminal? Marty From: Muhammad Haseeb [mailto:has...@carepvtltd.com] Sent: Friday, August 26, 2011 8:05 AM To: Nagios Users List Subject: Re: [Nagios-users] Problem Executing Passive Checks Can anyone solve my problem. I am waiting for reply. From: Muhammad Haseeb [mailto:has...@carepvtltd.com] Sent: Thursday, August 25, 2011 2:37 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Problem Executing Passive Checks Hi I want to get information for hosts and services when user needs it using Service Command - Re-schedule the next check of this service in Nagios GUI. I write submit command in commands.cfg and in services.cfg I define passive service which is used that command as check command. I used the sample script provided by Nagios for sending commands to Nagios. Script successfully execute in terminal but when I initiate from Nagios GUI using Reschedule Service Command, it gets executed and after that it gets to OK state with (null) plugin output every time as shown in below nagios logs. I used the nagios 3.2.2, nagios pugins 1.4.15 and Fedora 12 32bit. Following is the configuration, nagios log file and sample scripts. Commands.cfg define command{ command_name passive_check command_line /$USER1$/submit_check_result $HOSTNAME$ $SERVICEDESC$ $ARG1$ } Services.cfg define service { use generic-service ; your template host_name anjum service_description passive_test is_volatile 1 ; every change is logged ... max_check_attempts 1 ; a change is after only 1 try ... active_checks_enabled 0 ; unset template's default ... passive_checks_enabled 1 ; ditto ... check_freshness0 freshness_threshold300 notification_options n ; no notifications ... check_command passive_check } Sample Script echocmd=/bin/echo CommandFile=/usr/local/nagios/var/rw/nagios.cmd # get the current date/time in seconds since UNIX epoch datetime=`date +%s` # create the command line to add to the command file cmdline=[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4 # append the command to the end of the command file `$echocmd $cmdline $CommandFile` Log file [1314265019] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;anjum;passive_test;1314265018 [1314265019] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;anjum;passive_test;1;haseeb [1314265029] PASSIVE SERVICE CHECK: anjum;passive_test;1;haseeb [1314265029] SERVICE ALERT: anjum;passive_test;WARNING;HARD;1;haseeb [1314265029] SERVICE ALERT: anjum;passive_test;OK;HARD;1;(null) [1314265236] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;anjum;passive_test;1314265235 [1314265236] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;anjum;passive_test;1;haseeb [1314265239] PASSIVE SERVICE CHECK: anjum;passive_test;1;haseeb [1314265239] SERVICE ALERT: anjum;passive_test;WARNING;HARD;1;haseeb [1314265239] SERVICE ALERT: anjum;passive_test;OK;HARD;1;(null) As mention in above log, after executing my passive check, service alert is raised and suddenly another service alert with OK state and (null) plugin output is raised and visible in Nagios GUI. Looking forward for quick response. Thanks. Regards Muhammad Haseeb Software Engineer -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-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
Re: [Nagios-users] Problem Executing Passive Checks
Try the check from terminal as the same user as GUI and see what happens. Marty From: Muhammad Haseeb [mailto:has...@carepvtltd.com] Sent: Friday, August 26, 2011 9:11 AM To: Nagios Users List Subject: Re: [Nagios-users] Problem Executing Passive Checks Yes, I used terminal as root user and from GUI script executed logged in nagios.log file. From: Martin Hugo [mailto:martin_h...@hboe.org] Sent: Friday, August 26, 2011 5:52 PM To: 'Nagios Users List' Subject: Re: [Nagios-users] Problem Executing Passive Checks A GUI instigated check may run under a different username than that used in a terminal script. Were you root in terminal? Marty From: Muhammad Haseeb [mailto:has...@carepvtltd.com]mailto:[mailto:has...@carepvtltd.com] Sent: Friday, August 26, 2011 8:05 AM To: Nagios Users List Subject: Re: [Nagios-users] Problem Executing Passive Checks Can anyone solve my problem. I am waiting for reply. From: Muhammad Haseeb [mailto:has...@carepvtltd.com]mailto:[mailto:has...@carepvtltd.com] Sent: Thursday, August 25, 2011 2:37 PM To: nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Problem Executing Passive Checks Hi I want to get information for hosts and services when user needs it using Service Command - Re-schedule the next check of this service in Nagios GUI. I write submit command in commands.cfg and in services.cfg I define passive service which is used that command as check command. I used the sample script provided by Nagios for sending commands to Nagios. Script successfully execute in terminal but when I initiate from Nagios GUI using Reschedule Service Command, it gets executed and after that it gets to OK state with (null) plugin output every time as shown in below nagios logs. I used the nagios 3.2.2, nagios pugins 1.4.15 and Fedora 12 32bit. Following is the configuration, nagios log file and sample scripts. Commands.cfg define command{ command_name passive_check command_line /$USER1$/submit_check_result $HOSTNAME$ $SERVICEDESC$ $ARG1$ } Services.cfg define service { use generic-service ; your template host_name anjum service_description passive_test is_volatile 1 ; every change is logged ... max_check_attempts 1 ; a change is after only 1 try ... active_checks_enabled 0 ; unset template's default ... passive_checks_enabled 1 ; ditto ... check_freshness0 freshness_threshold300 notification_options n ; no notifications ... check_command passive_check } Sample Script echocmd=/bin/echo CommandFile=/usr/local/nagios/var/rw/nagios.cmd # get the current date/time in seconds since UNIX epoch datetime=`date +%s` # create the command line to add to the command file cmdline=[$datetime] PROCESS_SERVICE_CHECK_RESULT;$1;$2;$3;$4 # append the command to the end of the command file `$echocmd $cmdline $CommandFile` Log file [1314265019] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;anjum;passive_test;1314265018 [1314265019] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;anjum;passive_test;1;haseeb [1314265029] PASSIVE SERVICE CHECK: anjum;passive_test;1;haseeb [1314265029] SERVICE ALERT: anjum;passive_test;WARNING;HARD;1;haseeb [1314265029] SERVICE ALERT: anjum;passive_test;OK;HARD;1;(null) [1314265236] EXTERNAL COMMAND: SCHEDULE_FORCED_SVC_CHECK;anjum;passive_test;1314265235 [1314265236] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;anjum;passive_test;1;haseeb [1314265239] PASSIVE SERVICE CHECK: anjum;passive_test;1;haseeb [1314265239] SERVICE ALERT: anjum;passive_test;WARNING;HARD;1;haseeb [1314265239] SERVICE ALERT: anjum;passive_test;OK;HARD;1;(null) As mention in above log, after executing my passive check, service alert is raised and suddenly another service alert with OK state and (null) plugin output is raised and visible in Nagios GUI. Looking forward for quick response. Thanks. Regards Muhammad Haseeb Software Engineer -- EMC VNX: the world's simplest storage, starting under $10K The only unified storage solution that offers unified management Up to 160% more powerful than alternatives and 25% more efficient. Guaranteed. http://p.sf.net/sfu/emc-vnx-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
Re: [Nagios-users] Help required please for custom OWA monitor
Hi John, Wow, that's a tall order. The account used for the monitor would need full access to all mailboxes, an admin nightmare in any Exchange environment. I am intrigued by the problem though. Do the suspect emails open correctly in a desktop client? If you examine the messages, what is bloating the size? Do you have message size limits in place, if so, does removing them make the error go away? What, if any, log entries are created on the Exchange server when this occurs? Could you simply monitor the event logs for that error? Not really an answer I'm afraid but it is an interesting problem (albeit frustrating for you I'm sure). Martin T. Hugo Network Administrator Hilliard City Schools Tel: 614-921-7102 From: Roberson, John [j.rober...@tees.ac.uk] Sent: Wednesday, July 27, 2011 5:31 AM To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] FW: Help required please for custom OWA monitor Hello, I have a problem that I am trying to monitor and would be grateful for any help. What I want to do is check individual emails via outlook web access (OWA) for a specific error. The error occurs when the email is opened and is related to an archiving tool we are using. For information, the achieving tool is EAS. The error manifests itself in two ways. Firstly when the email is opened via OWA a HTTP 5000 Internal Server error appears. Is it possible to create a monitor to log on to account, open the first email and capture the resulting error? The second way the error can be detected is by examining the size of the email in OWA if the email is 25k it is likely that the problem exists. So my second question is, is it possible to monitor a OWA account and check for emails of a particular size. If you have any ideas of how to resolve this issue please contact me. Regards, John Roberson ICT Senior Technical Officer Room CL2.51a Clarendon Building Teesside University Middlesbrough TS1 3BA Internal Extension:2848 Direct line: (01642) 34 2848 Fax: (01642) 34 2925 Mail to:j.rober...@tees.ac.uk This email (and any attachments) is intended for the above named only and may contain private and confidential information. If this has come to you in error you must take no action based on it, nor must you copy or show it to anyone. Please notify the originator immediately. -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ 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 -- Got Input? Slashdot Needs You. Take our quick survey online. Come on, we don't ask for help often. Plus, you'll get a chance to win $100 to spend on ThinkGeek. http://p.sf.net/sfu/slashdot-survey ___ 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] error: (Return code of 127 is out of bounds - plugin may be missing)
What plugin (check) are you attempting to use? What distro (Linux ver) are you using? Did you install from RPM or source? These answers will help people point you in the right direction. Martin T. Hugo Network Administrator Hilliard City Schools Tel: 614-921-7102 From: عبد الحميد [serajddin.mahm...@gmail.com] Sent: Monday, July 25, 2011 5:16 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] error: (Return code of 127 is out of bounds - plugin may be missing) Hi , i've configured a windows machine and a router to monitor with SNPM and localhost But i've this error : (Return code of 127 is out of bounds - plugin may be missing) when i open the Web Interface Monitoring in my browser any help? -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/___ 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] error: (Return code of 127 is out of bounds - plugin may be missing)
Typically, one can see that error if the actual plugin is missing from your plugins folder (path will vary depending on distro and source). Check that the actual plugins are there. Also, check that the command functions from the command line. Be sure to test it as the nagios user, if it works as root but not nagios then it's likely permissions. If it doesn't work from command line and the plugins are there, check your syntax and, if neccessary recompile your plugins. Martin T. Hugo Network Administrator Hilliard City Schools Tel: 614-921-7102 From: عبد الحميد [serajddin.mahm...@gmail.com] Sent: Monday, July 25, 2011 7:00 AM To: Nagios Users List Subject: Re: [Nagios-users] error: (Return code of 127 is out of bounds - plugin may be missing) i've used this guid to monitor with snmp : http://wiki.monitoring-fr.org/nagios/mise-en-place-complete-nagios-sur-rhel-5.4/supervision-nagios-snmp: -- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/___ 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] error: (Return code of 127 is out of bounds - plugin may be missing)
Is that path correct for your installation? I installed on CentOS 5.x from source and my path is different /usr/local/Nagios/libexec. The path will vary depending on your OS and how you installed the app and configured the plugins. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print From: عبد الحميد [mailto:serajddin.mahm...@gmail.com] Sent: Monday, July 25, 2011 8:20 AM To: Nagios Users List Subject: Re: [Nagios-users] error: (Return code of 127 is out of bounds - plugin may be missing) i'v installed snpm_plugins and move them to the directory : /usr/lib/nagios/plugins i've also created commands inline: image001.gif-- Storage Efficiency Calculator This modeling tool is based on patent-pending intellectual property that has been used successfully in hundreds of IBM storage optimization engage- ments, worldwide. Store less, Store more with what you own, Move data to the right place. Try It Now! http://www.accelacomm.com/jaw/sfnl/114/51427378/___ 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 obvious 127 plugin error
Hi Craig, Not sure if it will help you but when I had a check reporting a similar plug-in error that ran just fine from the terminal I removed the password variable from the comd def and hard-coded the pwd in there instead. Worked for me. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) -Original Message- From: Craig Stewart [mailto:craig.stew...@corp.xplornet.com] Sent: Wednesday, June 01, 2011 10:48 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Non obvious 127 plugin error Good day folks, I've spent the better part of a week using Google and combing forums for an answer to this question without much luck. First the specs: Nagios version 3.2.3 Nagios and associated plugins installed on CentOS 5.6 and Fedora 15 servers via package management (i.e. yum) I have a couple plugins that simply won't execute. One of which is the check_dig command. I'll use this for an example. From the commands.cfg file for Nagios: define command{ command_namecheck_dns command_line/usr/lib/nagios/plugins/check_dig -H $HOSTADDRESS$ -l $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -t $ARG5$ } From the Nagios log file: [1306863226] Warning: Return code of 127 for check of service 'DNS-Check' on host 'TS-TOR-DNS-1' was out of bounds. Make sure the plugin you're trying to run actually exists. Okay, first to see if it exists: [root@nms ~]# locate check_dig /usr/lib/nagios/plugins/check_dig [root@nms ~]# Ownership and permissions check: [root@nms ~]# ls -l /usr/lib/nagios/plugins/check_dig -rwxr-xr-x. 1 nagios nagios 43292 Mar 23 15:42 /usr/lib/nagios/plugins/check_dig [root@nms ~]# Try running it as root: [root@nms ~]# /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED* -a *BLANKED* -c 5 -w 0.25 DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A *BLANKED*)|time=0.004967s;0.25;5.00;0.00 So it works as root. Now to try as Nagios user: [root@nms ~]# su - nagios -bash-4.2$ /usr/lib/nagios/plugins/check_dig *BLANKED* -l *BLANKED* -a *BLANKED* -c 5 -w 0.25 DNS OK - 0.005 seconds response time (*BLANKED*. 900 IN A *BLANKED*)|time=0.004967s;0.25;5.00;0.00 It works as the Nagios user as well. So, I'm sure you can see my confusion. The plugin exists and is executable for a user on the system, but even when called directly as opposed to using the $USER1$ macro, the Nagios process can't run it. Any thoughts anyone? Cheers! Craig -- Craig Stewart Systems Integration Analyst craig.stew...@corp.xplornet.com Xplornet - Broadband, Everywhere -- 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. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-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 -- 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. Data protection magic? Nope - It's vRanger. Get your free trial download today. http://p.sf.net/sfu/quest-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] Services are dependent on the host they run on?
Hi Robi, I have never done it but I know you can make hosts/services children that will not report if the parent is down. Hope this puts you on the right track. Marty -Original Message- From: Roberto Nunnari [mailto:roberto.nunn...@supsi.ch] Sent: Thursday, May 26, 2011 12:47 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Services are dependent on the host they run on? Hi all. Some time ago, I've installed and configured nagios to monitor our IT infrastructure. It works very well and we're happy with it. There's still one problem though: When a host goes down, nagios sends notifications not only for host down, but also for all services running on that host. When a host goes down, I would like nagios to only send notifications about the host down, and not for all the services running on that host. How can I achive that? May it be a configuration error from my side? I thought that to nagios, services would be dependent from the host running them.. Any hint/advice/guidance is very welcome. Thank you and best regards. Robi -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-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 -- vRanger cuts backup time in half-while increasing security. With the market-leading solution for virtual backup and recovery, you get blazing-fast, flexible, and affordable data protection. Download your free trial now. http://p.sf.net/sfu/quest-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] pnp4nagios Nagios
Did you add the pnp4nagios commands to your commands file? Are your hosts using the host-pnp template? Is your service definition using the srv-pnp template? Marty From: khurram aziz [mailto:khurramazizkha...@yahoo.com] Sent: Friday, May 13, 2011 10:58 AM To: nagios mailinglist Subject: [Nagios-users] pnp4nagios Nagios Hi All, I have configured Nagios 3.2.3 with default settings and for generating graphs i have configured pnp4nagios-0.6.11. I have added a server in Nagios by installing the host file on that server and its working fine. i am also able to generate graphs for that server in pnp4nagios. b Now i have added 4 of my web servers using SNMP and they are all added in Nagios but they dont appear in pnp4nagiogs. can some1 tell me how i can make these web servers appear in pnp4nagios so that i can generate graph. Khurram Aziz Khalid -- 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] pnp4nagios Nagios
Hmm, don't know why it is not showing up. I know that I have to add the host-pnp and srv-pnp templates to my hosts and services to generate graphs. I typically add host-pnp to every host definition and then just add srv-pnp to every service check that I want graphed. So a windows server would be use windows-server,host-pnp and my switches are use generic-switch,host-pnp. I also made all the edits to the Nagios.cfg and commands file as documented in the Nagios Manual. I am running on CentOS installed from source. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print From: khurram aziz [mailto:khurramazizkha...@yahoo.com] Sent: Friday, May 13, 2011 12:07 PM To: Nagios Users List Subject: Re: [Nagios-users] pnp4nagios Nagios perfdata is enabled is I am using generic services for all of my servers. graphs are generated by using perfdata for the server on which i have installed the client and performance data is also being collected for the server which is added using SNMP. Attaced screenshot shows that performance data is being collected for the later server. Khurram Aziz Khalid From: Michael Friedrich michael.friedr...@univie.ac.at To: nagios-users@lists.sourceforge.net Sent: Fri, May 13, 2011 8:44:51 PM Subject: Re: [Nagios-users] pnp4nagios Nagios khurram aziz wrote: * Did you add the pnp4nagios commands to your commands file? * NO i did not add any pnp4nagios commands to my commands file, not for the server that is showing grpahs in pnp4nagios and not for the servers which i have added using SNMP * Are your hosts using the host-pnp template? * NO, my hosts are using the default templates * Is your service definition using the srv-pnp template? * No, my service definitions are using the default definitions. Khurram Aziz Khalid check - service defitions - enable perfdata - check plugin itsself - does it return perfdata - read the pluginapi.html for further information how perfdata will look like From: Martin Hugo martin_h...@hboe.orgmailto:martin_h...@hboe.org To: Nagios Users List nagios-users@lists.sourceforge.netmailto:nagios-users@lists.sourceforge.net Sent: Fri, May 13, 2011 8:23:20 PM Subject: Re: [Nagios-users] pnp4nagios Nagios Did you add the pnp4nagios commands to your commands file? Are your hosts using the host-pnp template? Is your service definition using the srv-pnp template? Marty From: khurram aziz [mailto:khurramazizkha...@yahoo.com] Sent: Friday, May 13, 2011 10:58 AM To: nagios mailinglist Subject: [Nagios-users] pnp4nagios Nagios Hi All, I have configured Nagios 3.2.3 with default settings and for generating graphs i have configured pnp4nagios-0.6.11. I have added a server in Nagios by installing the host file on that server and its working fine. i am also able to generate graphs for that server in pnp4nagios. b Now i have added 4 of my web servers using SNMP and they are all added in Nagios but they dont appear in pnp4nagiogs. can some1 tell me how i can make these web servers appear in pnp4nagios so that i can generate graph. Khurram Aziz Khalid -- 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 -- DI (FH) Michael Friedrich Vienna University Computer Center Universitaetsstrasse 7 A-1010 Vienna, Austria email: michael.friedr...@univie.ac.atmailto:michael.friedr...@univie.ac.at phone: +43 1 4277 14359 mobile: +43 664 60277 14359 fax:+43 1 4277 14338 web:http://www.univie.ac.at/zid http://www.aco.net Icinga Core IDOUtils Developer http://www.icinga.org inline: image001.gif-- 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
Re: [Nagios-users] R: smstools3 with nagios
Hi Marco, Not sure if this will help but I had a similar problem trying to monitor bandwidth on my HP Procurve switch ports. Command line worked OK, Nagios command failed. The solution was to hard code my password in the command definition instead of a variable and take that part out of the service definition. e.g. Command Definition: $USER1$/check_iftraffic3.pl -h $HOSTADDRESS$ -C $USER3$ -i etc Replace $USER3$ with actual password string. Service Definition: check_iftraffic3!pwd!28!1000 Remove !pwd from service definition. Hope this helps in some way. Marty From: Marco Borsani [mailto:m.bors...@it.net] Sent: Thursday, May 12, 2011 2:49 AM To: 'Ennis Ibarra - NMCOURTS.GOV'; 'Nagios Users List' Subject: [Nagios-users] R: smstools3 with nagios Command file is the same. Running that command like root or Nagios user manually it is ok In the Nagios file (does not send sms): command_line/usr/local/bin/sendsms 0039$CONTACTPAGER$ Host:$HOSTALIAS$ is $HOSTSTATE$ Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$ In command line (running OK): # /usr/local/bin/sendsms 0039$CONTACTPAGER$ Host:$HOSTALIAS$ is $HOSTSTATE$ Type:$NOTIFICATIONTYPE$. $OUTPUT$ Date:$SHORTDATETIME$ Marco Da: Ennis Ibarra [mailto:en...@nmcourts.gov] Inviato: mercoledì 11 maggio 2011 18:10 A: Nagios Users List Oggetto: Re: [Nagios-users] smstools3 with nagios Check your commands file, see if there you can find a difference, what's the directory smstools2/3 is pointing to, what is the command? _ Supreme Court of New Mexico Ennis Ibarra - Original Message - From: Marco Borsani m.bors...@it.net To: NAGIOS nagios-users@lists.sourceforge.net Sent: Wednesday, May 11, 2011 6:12:38 AM Subject: [Nagios-users] smstools3 with nagios Hi all As many people to send sms with Nagios I usually use smstools2 , all is working fine. Now I am testing smstools3, I can send sms using command line (as root and Nagios user too), but Nagios program did not send any sms …. Are there differences in the configuration between smstools2 an smstools3 ? regards Marco Borsani Unix and Monitoring Sysadmin Technical Operations Dpt. tel: +39 010 4310115 fax: +39 02 30130311 cell: +39 329 5953944 ITnet Srl Società con socio unico Direzione e Coordinamento di … -- 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] Notification Emails
Have you defined an internal mail connector on your EXCH2010 Hub server(s) for internal smtp servers that you want to allow to send out mail through your Exchange Server? Setup their IP Addresses in the lower portion of the Network Tab and select the appropriate permissions and groups on the Authentication and Permission Groups tabs? Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is likely a 2010 issue, not a Nagios one. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print From: Daniel Ceola [mailto:dce...@twgi.net] Sent: Wednesday, May 04, 2011 1:00 PM To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List Subject: Re: [Nagios-users] Notification Emails Thanks again! When I tried your suggestion below, it told me this: nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo TEST | mail -s this is a test -S smtp=twgiex.twgi.net dce...@twgi.net mail: invalid option -- 'S' usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ... [-- sendmail-options ...] mail [-dEIiNnv] -f [name] mail [-dEIiNnv] [-u user] You don’t have to take time out of your day to help me with this, and I recognize that you are – I appreciate it! Thanks, Daniel Ceola From: Ennis Ibarra [mailto:en...@nmcourts.gov] Sent: Wednesday, May 04, 2011 12:53 PM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails If it helps, do your tests through your Ubuntu command line, using nagios as your user with something like: echo TEST | mail -s This is a test -S smtp=EX10server.com yourem...@yourdomain.com When this is successful, chances are you nailed it. Good luck then. _ Supreme Court of New Mexico - Ennis Ibarra - Original Message - From: Daniel Ceola dce...@twgi.net To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Wednesday, May 4, 2011 10:21:19 AM Subject: Re: [Nagios-users] Notification Emails Thank you for the assistance. I was afraid that there was no actual location within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll start working towards resolution within Exchange. Thanks, Daniel Ceola From: Ennis Ibarra [mailto:en...@nmcourts.gov] Sent: Wednesday, May 04, 2011 11:37 AM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails Sorry to hear you upgraded to EX10, but what are you going to do right ? Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so my guess is that the mail routing is not hard-coded into any configuration within Ubuntu, probably you have a relay issue in your EX10 where your Nagios server massages are not allowed to relay, you may want to check on that. On the specific notification by email command that Nagios actually performs, you may want to verify if you have something like: command_line /usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /usr/bin/mailx -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ** $CONTACTEMAIL$ In such case, yes, your Nagios server is your MailX as well. If you'd like to use your EX10 to relay email directly, although I don't know how to configure that in EX10, you may want to change the command for something like: command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /bin/mail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ** -S smtp=yourEX10.server.com $CONTACTEMAIL$ This way you'll use your EX10 to relay all the email generated by Nagios instead the local (to the Nagios box) MX, you can even turn off that service in your Ubuntu box, one less service to watch. Hope you find this useful. _ Supreme Court of New Mexico - Ennis Ibarra - Original Message - From: Daniel Ceola dce...@twgi.net To: Nagios Users (nagios-users@lists.sourceforge.net) nagios-users@lists.sourceforge.net Sent: Wednesday, May 4, 2011 8:07:31 AM Subject: [Nagios-users] Notification Emails Hello all! My company recently migrated to a new exchange email server (ex03 - ex10). Nagios has been up and running wonderfully in our environment for some while (was running when I started working here). I have discovered that the notification emails were being routed through the now nonexistent ex03 server in our network. Since we have taken that system down, we are now not getting any notification emails. From what I understand, and have been told – our Nagios installation was performed on Ubuntu, basically using the info I the quick-start install guide. As such, this should mean
Re: [Nagios-users] Notification Emails
Hmm, then I have to say I am stumped. That’s all I did and my notifications work fine. Are you able to telnet from your Nagios box to your exchange Hub server on port 25? Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print From: Daniel Ceola [mailto:dce...@twgi.net] Sent: Wednesday, May 04, 2011 1:45 PM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails Thanks for the response! We have configured the internal mail connectors, and at this time I’m confident it’s not a Nagios or Ubuntu configuration issue. Thanks, Daniel Ceola From: Martin Hugo [mailto:martin_h...@hboe.org] Sent: Wednesday, May 04, 2011 1:40 PM To: 'Nagios Users List' Subject: Re: [Nagios-users] Notification Emails Have you defined an internal mail connector on your EXCH2010 Hub server(s) for internal smtp servers that you want to allow to send out mail through your Exchange Server? Setup their IP Addresses in the lower portion of the Network Tab and select the appropriate permissions and groups on the Authentication and Permission Groups tabs? Since your Nagios was sending mail OK to your EXCH2003 system, I agree it is likely a 2010 issue, not a Nagios one. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print From: Daniel Ceola [mailto:dce...@twgi.net] Sent: Wednesday, May 04, 2011 1:00 PM To: Ennis Ibarra - NMCOURTS.GOV; Nagios Users List Subject: Re: [Nagios-users] Notification Emails Thanks again! When I tried your suggestion below, it told me this: nagios@UbuntuTest:/usr/local/nagios/etc/objects$ echo TEST | mail -s this is a test -S smtp=.twgi.net dce...@twgi.net mail: invalid option -- 'S' usage: mail [-dEIinv] [-a header] [-b bcc-addr] [-c cc-addr] [-s subject] to-addr ... [-- sendmail-options ...] mail [-dEIiNnv] -f [name] mail [-dEIiNnv] [-u user] You don’t have to take time out of your day to help me with this, and I recognize that you are – I appreciate it! Thanks, Daniel Ceola From: Ennis Ibarra [mailto:en...@nmcourts.gov] Sent: Wednesday, May 04, 2011 12:53 PM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails If it helps, do your tests through your Ubuntu command line, using nagios as your user with something like: echo TEST | mail -s This is a test -S smtp=EX10server.com yourem...@yourdomain.com When this is successful, chances are you nailed it. Good luck then. _ Supreme Court of New Mexico - Ennis Ibarra - Original Message - From: Daniel Ceola dce...@twgi.net To: Nagios Users List nagios-users@lists.sourceforge.net Sent: Wednesday, May 4, 2011 10:21:19 AM Subject: Re: [Nagios-users] Notification Emails Thank you for the assistance. I was afraid that there was no actual location within Nagios/Ubuntu that had any configuration that needed to be changed. I’ll start working towards resolution within Exchange. Thanks, Daniel Ceola From: Ennis Ibarra [mailto:en...@nmcourts.gov] Sent: Wednesday, May 04, 2011 11:37 AM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails Sorry to hear you upgraded to EX10, but what are you going to do right ? Yes, most likely your Ubuntu Server is using it's own MAILX to send emails, so my guess is that the mail routing is not hard-coded into any configuration within Ubuntu, probably you have a relay issue in your EX10 where your Nagios server massages are not allowed to relay, you may want to check on that. On the specific notification by email command that Nagios actually performs, you may want to verify if you have something like: command_line /usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /usr/bin/mailx -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ** $CONTACTEMAIL$ In such case, yes, your Nagios server is your MailX as well. If you'd like to use your EX10 to relay email directly, although I don't know how to configure that in EX10, you may want to change the command for something like: command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n | /bin/mail -s ** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ ** -S smtp=yourEX10.server.com $CONTACTEMAIL$ This way you'll use your EX10 to relay all the email generated by Nagios instead the local (to the Nagios box) MX, you can even turn off that service in your Ubuntu box, one less service to watch. Hope you find this useful. _ Supreme Court of New Mexico - Ennis Ibarra - Original Message
[Nagios-users] Monitoring HP Procurve Interfaces
Hello, I am trying to monitor the interfaces on my HP Procurve 5400 series switch. I have tried both check_iftraffic3 and check_snmp_int. The commands work perfectly from the command line. However the web interface reports (return code of 255 is out of bounds) for check_iftraffic3 and (return code of 127 is out of bounds) for check_snmp_int . I am able to monitor all other hardware on the switch through Nagios just fine. Any thoughts on this? Thanks. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) [Think before you print.]Think before you print inline: image001.gif-- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-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] Monitoring HP Procurve Interfaces
Here is my command: /usr/bin/perl ./check_iftraffic3.pl -H 10.4.228.2 -C password -i F24 -b 1000 -I 1000 -O 1000 -u m And it returns: Average IN: 3.63MBs (2.91%), Average OUT: 3.93MBs (3.14%)brTotal RX: 1634.52 MBytes, Total TX: 2705.54 MBytes|inUsage=2.91%;85;98 outUsage=3.14%;85;98 inBandwidth=3.63MBs outBandwidth=3.93MBs inAbsolut=1713920494 outAbsolut=2836966927 I did notice that when I run the command from the command line (as Nagios user) it writes the file to /tmp but I do not see the file being updated by Nagios. Plus, if I delete the file created by the command line operation, nothing get saved to /tmp when the web check happens. Marty From: Ashcor Technologies [mailto:ash...@optonline.net] Sent: Tuesday, April 19, 2011 11:55 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Monitoring HP Procurve Interfaces I believe the problem is that the code being returned is not 0,1,2 for (ok, warning, critical) and so nagios doesn't like it. When you run the command manually from the command line, what is the result returned? On Tue, Apr 19, 2011 at 11:24 AM, Martin Hugo wrote: Hello, I am trying to monitor the interfaces on my HP Procurve 5400 series switch. I have tried both check_iftraffic3 and check_snmp_int. The commands work perfectly from the command line. However the web interface reports (return code of 255 is out of bounds) for check_iftraffic3 and (return code of 127 is out of bounds) for check_snmp_int . I am able to monitor all other hardware on the switch through Nagios just fine. Any thoughts on this? Thanks. Martin T. Hugo Network Administrator Hilliard City Schools 614-921-7102 (Ph) 614-771-7243 (Fax) Think before you print. Think before you print -- -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-sfdev2dev http://p.sf.net/sfu/vmware-sfdev2dev -- ___ Nagios-users mailing list Nagios-users@lists.sourceforge.netjavascript:parent.wgMail.openComposeWindow('Nagios-users@lists.sourceforge.net') javascript:parent.wgMail.openComposeWindow('Nagios-users@lists.sourceforge.net') https://lists.sourceforge.net/lists/listinfo/nagios-users 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 -- Benefiting from Server Virtualization: Beyond Initial Workload Consolidation -- Increasing the use of server virtualization is a top priority.Virtualization can reduce costs, simplify management, and improve application availability and disaster protection. Learn more about boosting the value of server virtualization. http://p.sf.net/sfu/vmware-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