Re: [Nagios-users] ESXi/vCenter Monitoring
I did that, but it made the map a complete mess of lines that I couldn't make out. Daniel Ceola System Administrator daniel.ce...@occfiber.com<mailto:daniel.ce...@occfiber.com> From: Jim Avery [mailto:j...@jimavery.me.uk] Sent: Monday, August 12, 2013 3:26 PM To: nagios List Subject: Re: [Nagios-users] ESXi/vCenter Monitoring On 12 Aug 2013 16:50, "Daniel Ceola" mailto:daniel.ce...@occfiber.com>> wrote: > > 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? I specify all of the host servers as parents of the VM. I reckon that makes perfect sense, and it's dead easy to implement. -- 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=48897031&iu=/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
[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.com<mailto: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=48897031&iu=/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] Simple check_ping question
Nevermind on this question. I did a good bit more digging on Google and found a very simple suggestion to add the -4 flag onto the check_ping command to force it to use ipv4. When doing this, it works perfectly. Thanks, Daniel Ceola From: Daniel Ceola [mailto:dce...@twgi.net] Sent: Wednesday, December 12, 2012 9:53 AM To: Nagios Users (nagios-users@lists.sourceforge.net) Subject: [Nagios-users] Simple check_ping question Hello all, Is it meant for the "check_ping" command from the Nagios plugins to not function when using a host name instead of an IP address? I have a handful of hosts that I've setup within Nagios that I want to monitor the ping time (as well as a few other items) on, but since they are dhcp clients, I have the host within Nagios setup with the hostname on my local network instead of an IP address. When I do a simple check_ping using the hostname (which I have entered as the local FQDN, not just a short name), it returns a "Network Unreachable" error. Example: nagios@nagios:/usr/local/nagios/libexec$ ./check_ping -H dceola.twgi.net -w 400,20% -c 600,50% CRITICAL - Network Unreachable (dceola.twgi.net) Thanks, Daniel Ceola -- 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] Simple check_ping question
Hello all, Is it meant for the "check_ping" command from the Nagios plugins to not function when using a host name instead of an IP address? I have a handful of hosts that I've setup within Nagios that I want to monitor the ping time (as well as a few other items) on, but since they are dhcp clients, I have the host within Nagios setup with the hostname on my local network instead of an IP address. When I do a simple check_ping using the hostname (which I have entered as the local FQDN, not just a short name), it returns a "Network Unreachable" error. Example: nagios@nagios:/usr/local/nagios/libexec$ ./check_ping -H dceola.twgi.net -w 400,20% -c 600,50% CRITICAL - Network Unreachable (dceola.twgi.net) Thanks, Daniel Ceola -- 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] Looking for plugin suggestion
Hello all, I'm hoping someone may be able to point me towards a plugin that I can use to check the load time of a webpage. More specifically, I'm hoping to identify a plugin/script that can be run on a Windows system via nsclient++ that can check the load time of a webpage that requires windows domain authentication and can provide performance data. If something similar is identified, we may be able to adapt it to meet our needs; however so far I've not been able to find anything that seems to work. Thanks, Daniel Ceola -- 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_nov___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host seemingly not following escalation rules
Correct, it was for pnp4nagios. Just a bit ago I finally realized my goof. In the host template definition that I titled "cstore" I had assigned the cstore contact group, instead of the 'default' nagios contact, so the users were getting emails from that. I have since changed it, and the hosts seem to properly be following the escalation definitions now. Thanks, Daniel Ceola -Original Message- From: Chris Baldwin [mailto:o...@umich.edu] Sent: Tuesday, October 09, 2012 10:38 AM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Host seemingly not following escalation rules It's probably a host definition used for pnp4nagios. It allows you to display/graph certain performance data. For more info: http://www.pnp4nagios.org/ -Chris B. On 10/9/12 10:02 AM, Assaf Flatto wrote: > And what is "host-pnp" ??? > > > On 09/10/12 14:33, Daniel Ceola wrote: >> >> Hello all, >> >> I have a number of host objects that are sending notifications >> continuously (down notification every half hour for the duration of >> the outage), and aren't following my host escalation rules that are >> defined for the group. I've looked at my config files and can't seem >> to locate whatever is causing the set of hosts to not follow the >> escalation rules. It is a group of sites that are all members of the >> same host group, and use the same template. >> >> Below are the bits of config info pertaining to one individual host, >> it's template, contact group, host escalation and host group. If >> anyone could take a glance at it, to see if I'm missing something on >> why this set of hosts isn't following my escalation rules; or if you >> could point me towards something else that I need to look at, that'd >> be awesome. (for what it's worth, all of my other host escalation >> rules are working fine; it's just this group of hosts that don't seem >> to like following the rules that are screwing with me). >> >> define host { >> >> use cstore,host-pnp >> >> host_name 7608_Madeup_Avenue_Shell_Router >> >> alias 7608_Madeup_Avenue_Shell_Router >> >> address 10.6.8.31 >> >> hostgroups CStore-Sites >> >> } >> >> define hostgroup{ >> >> hostgroup_name CStore-Sites >> >> } >> >> define host{ >> >> name cstore >> >> use generic-switch >> >> notification_period workhours >> >> contact_groups cstore_contacts >> >> register 0 >> >> icon_image cstore.png >> >> statusmap_image cstore.gd2 >> >> notification_options d,r >> >> } >> >> define host{ >> >> name generic-switch >> >> use generic-host >> >> check_period 24x7 >> >> check_interval 5 >> >> retry_interval 1 >> >> max_check_attempts 10 >> >> check_command check-host-alive >> >> notification_period 24x7 >> >> notification_interval 30 >> >> notification_options d,r >> >> contact_groups admins >> >> register 0 >> >> } >> >> define hostescalation{ >> >> hostgroup_name CStore-Sites >> >> contact_groups cstore_contacts >> >> first_notification 3 >> >> last_notification 3 >> >> notification_interval 20 >> >> escalation_period workhours >> >> escalation_options d,r >> >> } >> >> define contactgroup{ >> >> contactgroup_name cstore_contacts >> >> alias Retail Support >> >> members usernames >> >> } >> >> Thanks, >> >> Daniel Ceola >> >> Systems & DB Admin >> >> The Wills Group >> >> 6355 Crain Hwy >> >> La Plata, MD 20646 >> >> 301-932-3600 >> >> 301-932-3643 (direct line) >> >> >> - >> - Don't let slow site performance ruin your business. Deploy >> New Relic APM Deploy New Relic app performance management and know >> exactly what is happening inside your Ruby, Python, PHP, Java, and >> .NET app Try New Relic at no cost today and get our sweet Data Nerd >> shirt too! >> http://p.sf.net/sfu/newrelic-dev2dev >> >> >> ___ >> Nagios-users mailing list >> Nagios-users@lists.sourceforge.net >> https:
[Nagios-users] Host seemingly not following escalation rules
Hello all, I have a number of host objects that are sending notifications continuously (down notification every half hour for the duration of the outage), and aren't following my host escalation rules that are defined for the group. I've looked at my config files and can't seem to locate whatever is causing the set of hosts to not follow the escalation rules. It is a group of sites that are all members of the same host group, and use the same template. Below are the bits of config info pertaining to one individual host, it's template, contact group, host escalation and host group. If anyone could take a glance at it, to see if I'm missing something on why this set of hosts isn't following my escalation rules; or if you could point me towards something else that I need to look at, that'd be awesome. (for what it's worth, all of my other host escalation rules are working fine; it's just this group of hosts that don't seem to like following the rules that are screwing with me). define host { use cstore,host-pnp host_name 7608_Madeup_Avenue_Shell_Router alias 7608_Madeup_Avenue_Shell_Router address 10.6.8.31 hostgroups CStore-Sites } define hostgroup{ hostgroup_name CStore-Sites } define host{ namecstore use generic-switch notification_period workhours contact_groups cstore_contacts register0 icon_image cstore.png statusmap_image cstore.gd2 notification_optionsd,r } define host{ namegeneric-switch use generic-host check_period24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check-host-alive notification_period 24x7 notification_interval 30 notification_optionsd,r contact_groups admins register0 } define hostescalation{ hostgroup_name CStore-Sites contact_groups cstore_contacts first_notification 3 last_notification 3 notification_interval 20 escalation_period workhours escalation_options d,r } define contactgroup{ contactgroup_name cstore_contacts alias Retail Support members usernames } Thanks, Daniel Ceola Systems & DB Admin The Wills Group 6355 Crain Hwy La Plata, MD 20646 301-932-3600 301-932-3643 (direct line) -- Don't let slow site performance ruin your business. Deploy New Relic APM Deploy New Relic app performance management and know exactly what is happening inside your Ruby, Python, PHP, Java, and .NET app Try New Relic at no cost today and get our sweet Data Nerd shirt too! http://p.sf.net/sfu/newrelic-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] Viewing Nagios Uptime/Status in SharePoint
Hi all, I searched around for a bit and only found requests for this, but does anyone know if there has been any sort of SharePoint web part developed that would allow me to easily view what is Down/Critical/etc in Nagios? I currently use Nagstamon on my desktop and it'd be great to have something slightly similar to integrate into our SharePoint site. Thanks, Daniel Ceola Systems Admin The Wills Group La Plata, MD 20646 -- 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] Fwd: How to monitor specific windows services using nsclient++
Hi, I use NSClient++ to monitor a number of services on our servers here. For example, DNS Server, DHCP Server, IIS, Exchange store, and some services for line of business apps. The command definition I use is: # 'check_nt' command definition define command{ command_namecheck_nt command_line$USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$ } Service definition: #dhcp server define service{ use generic-service host_name servername service_description DHCP Server check_command check_nt!SERVICESTATE!-d SHOWALL -l dhcpserver } # Exchange Store service define service{ use generic-service host_name exchangeserver service_description Exchange Store Service check_command check_nt!SERVICESTATE!-d SHOWALL -l MSExchangeIS } >From what I have read, you need to use the service name that you would use if >starting/stopping the service from a command line, rather than the display >name from the services.msc snapin. You can easily find the service name by >running "sc query" at command prompt from the server (or by looking it up in >the system registry) Hope this helps! Thanks, Daniel Ceola From: Manish Kumar [mailto:manikuma...@gmail.com] Sent: Wednesday, June 08, 2011 2:06 PM To: nagios-users Subject: [Nagios-users] Fwd: How to monitor specific windows services using nsclient++ In addition to my previous question...just wanted to elaborate.. How i can monitor which important windows services are running on a remote windows servers and their state using NSClient++ installed on the windows servers and check_nt plugin. thanks.. -- Forwarded message -- From: Manish Kumar mailto:manikuma...@gmail.com>> Date: Wed, Jun 8, 2011 at 11:27 PM Subject: How to monitor specific windows services using nsclient++ To: nagios-users@lists.sourceforge.net<mailto:nagios-users@lists.sourceforge.net> Hi there, Actually i want to monitor specific windows services using nagios and nsclient++ agent installed on Windows servers... Also i don't know which critical windows services to monitor exactly but my boss says it should be done... Can you people give me some help regarding this.. Thanks...in advance... -- Thanks Manish Kumar http://in.linkedin.com/in/manishkumar85 <http://cens.cdac.in/> -- Thanks Manish Kumar http://in.linkedin.com/in/manishkumar85 <http://cens.cdac.in/> -- 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
Re: [Nagios-users] Check_NRPE on AIX
I've finally gotten a chance to look at this again. Thank you to those that responded with helpful information. However, I just realized that I am working on an AIX 5.1 system, and since the binaries I'm using are written for 5.3, there are compatibility issues which seem to be causing my problems. I may need to look around for a different solution, to monitor my AIX system. Thanks, Daniel Ceola From: Kyle O'Donnell [mailto:nag...@isprime.org] Sent: Thursday, May 19, 2011 11:51 PM To: Nagios Users List Subject: Re: [Nagios-users] Check_NRPE on AIX Those are the binaries that I compiled and uploaded a couple years ago. We are still using them today, but if you have any issues let me know. I would suggest running the check_disk with the -x /proc as it is in nrpe as the same user nrpe is running as via command line to ensure it behaves as expected I have had no issue using sudo on aix btw. --kyleo On May 18, 2011 9:32 AM, "Daniel Ceola" mailto:dce...@twgi.net>> wrote: -- 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
Re: [Nagios-users] Check_NRPE on AIX
Thank you for the responses. I am out of town for a training class and will look into this further when I return. I do believe that I have been testing the plugins on the AIX system from the root login. I will try again from the nagios user and see how it reacts. Daniel From: Kyle O'Donnell [nag...@isprime.org] Sent: Thursday, May 19, 2011 11:51 PM To: Nagios Users List Subject: Re: [Nagios-users] Check_NRPE on AIX Those are the binaries that I compiled and uploaded a couple years ago. We are still using them today, but if you have any issues let me know. I would suggest running the check_disk with the -x /proc as it is in nrpe as the same user nrpe is running as via command line to ensure it behaves as expected I have had no issue using sudo on aix btw. --kyleo On May 18, 2011 9:32 AM, "Daniel Ceola" mailto:dce...@twgi.net>> wrote: -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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_NRPE on AIX
Hello all! I've recently been attempting to setup monitoring on my AIX 5.3 servers. After some research, I determined that the best way to accomplish this is through using NRPE. I downloaded the package here: https://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/AIX/AIX-5-3-NRPE-2-12-NSCA-2-7-2-Nagios-Plugins-1-4-11 and followed instructions here http://nagioswiki.com/wiki/index.php/Installing_Nagios_NRPE_on_AIX to install NRPE on the AIX system. I then found an item in the nagios-users archive that suggested that I needed to install sudo on the AIX system and change the NRPE config to use sudo for the commands. http://www.mail-archive.com/nagios-users@lists.sourceforge.net/msg31668.html I have my nagios server's IP in the allowed_hosts list within nrpe.cfg I also have this set (per instructions in below link) command_prefix=/usr/bin/sudo At this point - when I run one of the check (check_disk) scripts locally (on the AIX system) that the NRPE package installed, I am able to get a result # check_disk -w 85 -c 95 DISK CRITICAL - free space: / 307 MB (79% inode=98%); (only copied the first item, but there was a lot of output) However, I cannot seem to get my check from my Nagios system to work properly. nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_nrpe -H 192.168.3.15 -n -c check_aix_disks NRPE: Unable to read output The corresponding command in the nrpe.cfg on the AIX system: command[check_aix_disks]=/usr/local/nagios/libexec/check_disk -w 10m -c 2m -x /proc At this point, I'm unsure of what I need to do in order to get this working. If anyone could provide a possible direction, I would be most grateful! Thanks, Daniel Ceola Systems & DB Admin The Wills Group 6355 Crain Hwy La Plata, MD 20646 301-932-3600 301-932-3643 (direct line) -- What Every C/C++ and Fortran developer Should Know! Read this article and learn how Intel has extended the reach of its next-generation tools to help Windows* and Linux* C/C++ and Fortran developers boost performance applications - including 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] Check_Openmanage configuration question
Trond, Thank you for the assistance. After reading your replies, I realized that in the script file, I somehow had accidentally left a blank line at the very top. After I removed the empty line, the system began running the script correctly, and I can now see results. I knew it had to be something simple like that! Thanks, Daniel Ceola -Original Message- From: Trond Hasle Amundsen [mailto:t.h.amund...@usit.uio.no] Sent: Tuesday, May 10, 2011 8:24 AM To: Nagios Users List Subject: Re: [Nagios-users] Check_Openmanage configuration question Daniel Ceola writes: > Hello all! Hi Daniel, > I have a question regarding the initial configuration of > check_openmanage. I downloaded the version of the script dated Feb 9 > (I don?t see a version number in the script) and am attempting to use > the script through SNMP. Tip: Run the plugin with the '-V' or '--version' switch to view the version number. > I?m attempting to begin using check_openmanage with our Dell servers. > I have installed the Dell OMSA software on one server and it seems to > be working just fine. I configured my command definition in a simple > fashion, according to the installation guide: > > # Dell Check openmanage > > define command{ > command_namecheck_openmanage > command_line$USER1$/check_openmanage -H $HOSTADDRESS$ > } > > I also configured my service definition in a simple fashion, according > to the installation guide: > > define service{ > use generic-service > host_name Server_Name > service_description Dell OMSA > check_command check_openmanage > } This looks correct to me. > However ? my Nagios console is reporting the status as (null). Also, > when I attempt to run the script from the command line (note the file > is saved as check_openmanage with no file extension, I also tried > check_openmanage.pl and receive the same results), I receive a few > errors > > nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_openmanage 192.168.1.5 > ./check_openmanage: line 27: require: command not found > ./check_openmanage: line 28: use: command not found > ./check_openmanage: line 29: use: command not found > ./check_openmanage: line 30: syntax error near unexpected token `(' > ./check_openmanage: line 30: `use POSIX qw(isatty ceil);' Weird. Your system seem to be running the plugin through a shell. The output above is exactly what you'll get if you run sh ./check_openmanage To specify perl as interpreter, run: perl ./check_openmanage However, this should not be needed. The system should identify it as a perl script and use perl to execute it by default. Have you edited the plugin in some way? Check that the md5sum is correct: $ md5sum check_openmanage 5281718fe9e5c4b9570fe76f0fb424ec check_openmanage The above sum is correct for version 3.6.6. You should verify that you get the same (if running 3.6.6). The latest version and its md5sum are available here: http://folk.uio.no/trondham/software/check_openmanage.html#download PS. In your example above you have forgotten the '-H' switch. PPS. The file extension (or the name itself) is unimportant. Cheers, -- Trond H. Amundsen Center for Information Technology Services, University of Oslo -- 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 -- 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_Openmanage configuration question
Hello all! I have a question regarding the initial configuration of check_openmanage. I downloaded the version of the script dated Feb 9 (I don't see a version number in the script) and am attempting to use the script through SNMP. I'm attempting to begin using check_openmanage with our Dell servers. I have installed the Dell OMSA software on one server and it seems to be working just fine. I configured my command definition in a simple fashion, according to the installation guide: # Dell Check openmanage define command{ command_namecheck_openmanage command_line$USER1$/check_openmanage -H $HOSTADDRESS$ } I also configured my service definition in a simple fashion, according to the installation guide: define service{ use generic-service host_name Server_Name service_description Dell OMSA check_command check_openmanage } However - my Nagios console is reporting the status as (null). Also, when I attempt to run the script from the command line (note the file is saved as check_openmanage with no file extension, I also tried check_openmanage.pl and receive the same results), I receive a few errors nagios@UbuntuTest:/usr/local/nagios/libexec$ ./check_openmanage 192.168.1.5 ./check_openmanage: line 27: require: command not found ./check_openmanage: line 28: use: command not found ./check_openmanage: line 29: use: command not found ./check_openmanage: line 30: syntax error near unexpected token `(' ./check_openmanage: line 30: `use POSIX qw(isatty ceil);' I have searched online for a while now and come up mostly emptyhanded. If someone could point me in the correct direction to get this working, I would be most greatful! I'm almost certain it is something stupid or simple that I have overlooked with setting this up. Thanks, Daniel Ceola Systems & DB Admin The Wills Group 6355 Crain Hwy La Plata, MD 20646 301-932-3600 301-932-3643 (direct line) -- 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
Re: [Nagios-users] Notification Emails
Thank you all for the help. At first I thought we had an issue with Exchange, but then found I could send mail through command line on my Nagios system and it worked fine. I actually found the below information that Richard shared earlier this afternoon and reconfigured PostFix to route all mail through our exchange server. At this time, everything is working fine. I appreciate all of the input and assistance! Thanks, Daniel Ceola From: Richard Clark [mailto:n...@fohnet.co.uk] Sent: Wednesday, May 04, 2011 12:58 PM To: Nagios Users List Subject: Re: [Nagios-users] Notification Emails On 4 May 2011, at 16:03, Daniel Ceola mailto:dce...@twgi.net>> wrote: 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 that the system is using mailx to send emails (as >its own mail server) and thus simply using our internal MX records to route >email to our mail server. Our MX record was updated on the day that we made >the final server cutover, and it didn't affect receiving email from Nagios. The question here is this: Is there somewhere within Nagios or the Ubuntu OS that I need to make a config change to route the notification email through the new internal mail server to the recipients? I know we are still ironing out some kinks in our new exchange system, so if there is not a configuration within Nagios/Ubuntu that affects this, I will continue the search for resolution through my exchange system. Thanks, Daniel Ceola Systems & DB Admin Nagios doesn't send mails in itself, it only calls the commands that its configured to based on the criteria that you set. One of which may well be the sending of a mail. Grep through your nagios configuration to see which command it's actually calling. The default MTA for Ubuntu is postfix - sounds like it may have been configured to use an SMTP relay rather than MX based routing. 'dpkg-reconfigure postfix' should give you an ncurses-based wizard if you're not comfortable with postfix configuration. Also, check logs at /var/log/mail.* and probably worth checking if someones done something silly like put a static hostname entry for a mail server in /etc/hosts Cheers, -- Richard Clark rich...@fohnet.co.uk<mailto:rich...@fohnet.co.uk> -- 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
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" To: "Nagios Users List" 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" To: "Nagios Users (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 environme
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" To: "Nagios Users List" 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" To: "Nagios Users (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 that the system is using mailx to send emails (as its own mail server) and thus simply using our internal MX records to route email to our mail server. Our MX record was updated on the day that we made the final server cutover, and it didn’t affect receiving email from Nagios. The question here is this: Is there somewhere within Nagios or the Ubuntu OS that I need to make a config change to route the notification email through the new internal mail server to the recipients? I know we are still ironing out some kinks in our new exchange system, so if there is not a configuration within Nagios/Ubuntu that affects this, I will continue the search f
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" To: "Nagios Users (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 that the system is using mailx to send emails (as its own mail server) and thus simply using our internal MX records to route email to our mail server. Our MX record was updated on the day that we made the final server cutover, and it didn’t affect receiving email from Nagios. The question here is this: Is there somewhere within Nagios or the Ubuntu OS that I need to make a config change to route the notification email through the new internal mail server to the recipients? I know we are still ironing out some kinks in our new exchange system, so if there is not a configuration within Nagios/Ubuntu that affects this, I will continue the search for resolution through my exchange system. Thanks, Daniel Ceola Systems & DB Admin The Wills Group 6355 Crain Hwy La Plata, MD 20646 301-932-3600 301-932-3643 (direct line) -- 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 -- 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
[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 that the system is using mailx to send emails (as >its own mail server) and thus simply using our internal MX records to route >email to our mail server. Our MX record was updated on the day that we made >the final server cutover, and it didn't affect receiving email from Nagios. The question here is this: Is there somewhere within Nagios or the Ubuntu OS that I need to make a config change to route the notification email through the new internal mail server to the recipients? I know we are still ironing out some kinks in our new exchange system, so if there is not a configuration within Nagios/Ubuntu that affects this, I will continue the search for resolution through my exchange system. Thanks, Daniel Ceola Systems & DB Admin The Wills Group 6355 Crain Hwy La Plata, MD 20646 301-932-3600 301-932-3643 (direct line) -- 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