Re: [Nagios-users] check_disk output
atlantis:~# /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p / -p /drbd/ DISK OK - free space: / 796 MB (23% inode=69%); /drbd 9094 MB (94% inode=96%);| /=2575MB;2840;3195;0;3551 /drbd=482MB;8071;9080;0;10089 This is the configuration that I have in /usr/local/nagios/etc/nrpe.cfg: command[check_disk]=/usr/local/nagios/libexec/check_disk -w 15% -c 10% -p / - /drbd For debugging, you should run the exact same command as the nrpe daemon user (e.g. nagios) and look for the differences. If you see different output, you can try it with the setuid (chmod u+s /usr/local/nagios/libexec/check_disk) and try it again. Maybe this helps. -- LIMITED TIME SALE - Full Year of Microsoft Training For Just $49.99! 1,500+ hours of tutorials including VisualStudio 2012, Windows 8, SharePoint 2013, SQL 2012, MVC 4, more. BEST VALUE: New Multi-Library Power Pack includes Mobile, Cloud, Java, and UX Design. Lowest price ever! Ends 9/20/13. http://pubads.g.doubleclick.net/gampad/clk?id=58041151iu=/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] Alerting
On Thu, Aug 22, 2013 at 1:26 AM, Charles Rice cr...@akassociates911.com wrote: you need to put in the config files of the nodes connected to the switch that the switch is a parent device. I do not have the syntax in front of me, but I think it is just parentdevice name It's parents, just for the sake of completeness. -- Introducing Performance Central, a new site from SourceForge and AppDynamics. Performance Central is your source for news, insights, analysis and resources for efficient Application Performance Management. Visit us today! http://pubads.g.doubleclick.net/gampad/clk?id=48897511iu=/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] No performance data when increasing normal_check_interval time
Is it nagiosgraph that you are using? in that case i think the solution is to regenerate .rrd files according to the new check_interval... ... and increase the heartbeat value in nagiosgraph.conf -- This SF.net email is sponsored by Windows: Build for Windows Store. http://p.sf.net/sfu/windows-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] Trying to figure out the PCRE expression for Nagiosgraph Map
On Sat, May 11, 2013 at 1:30 PM, Percy Kwong p...@psk.net wrote: OK. So to make more sense of the whole thing, the only thing that is taken into account is the actual numerical value? In other words, it's automatically parsed? This is what I wasn't sure of. Here is the entry in the mapfile I was using: /output:PROCS.*:(\d+) processes with args 'apache'/ and push @s, ['apache', ['connections', GAUGE, $1] ]; This works, too, when you only want to parse the process checks for apache. You give the RRD description the name connections. I don't think that the number of Apache processes really represent the number of connections. In this case, I suggest you use check_netstat.pl. the problem is there is no perfdata and the rrd file isn't being populated, (and obviously, no graph). I'm attributing this to the fact that the map file entry is wrong. This is really where my problem lies. Am I looking in the wrong place? It's check_procs which doesn't create perfdata. You might need to manually patch it. See: http://www.claudiokuenzler.com/blog/224/nagios-plugin-check_procs-add-performance-data-perfdata-output-nagiosgraph -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ 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] Trying to figure out the PCRE expression for Nagiosgraph Map
The output for one query would be: PROCS OK: 11 processes with args 'apache' Well first of all you'd have to make sure that nagiosgraph also takes the output in account. It's always better to do that with perfdata... You have the choice to also take the output as source to parse, although I strongly recommend to use perfdata. That's what it is for. What would the map rule look like that would do the following? 1. Begin with PROCS OK: 2. End with args 'apache' 3. Extract only the numeric value before the word processes? The regex would look something like this: /output:PROCS.*:(\d+) processes.*/ assuming that you don't care about the args and the status (OK, WARNING, CRITICAL) part. Only the digit (11) would be taken out of the output in this case. -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http with spaces problem
Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H granma.gr -u http://granma.gr/index.html -R Web -w 10 -c 20 Name or service not known HTTP CRITICAL - Unable to open TCP socket You have to break up the -u argument. -u expects the path, not the complete URI. So in this case: /usr/lib64/nagios/plugins/check_http -H granma.gr -u /index.html -R Web -w 10 -c 20 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http with spaces problem
If I use -R Web the response is ok but if i use -R Web somethin it returns error! Because the pattern needs to exist in the source code. ./check_http -H granma.gr -u /index.html -R Web somethin HTTP CRITICAL: HTTP/1.1 200 OK - pattern not found - 4342 bytes in 0.126 second response time |time=0.125853s;;;0.00 size=4342B;;;0 ./check_http -H granma.gr -u /index.html -R Web Design HTTP OK: HTTP/1.1 200 OK - 4342 bytes in 0.125 second response time |time=0.124846s;;;0.00 size=4342B;;;0 2013/5/9 Claudio Kuenzler c...@claudiokuenzler.com Sun May 5 22:29:03 EEST 2013 /usr/lib64/nagios/plugins/check_http -H granma.gr -u http://granma.gr/index.html -R Web -w 10 -c 20 Name or service not known HTTP CRITICAL - Unable to open TCP socket You have to break up the -u argument. -u expects the path, not the complete URI. So in this case: /usr/lib64/nagios/plugins/check_http -H granma.gr -u /index.html -R Web -w 10 -c 20 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ 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 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may ___ 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 -- Learn Graph Databases - Download FREE O'Reilly Book Graph Databases is the definitive new guide to graph databases and their applications. This 200-page book is written by three acclaimed leaders in the field. The early access version is available now. Download your free book today! http://p.sf.net/sfu/neotech_d2d_may___ 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] Alert Precedence
Please paste the config of the host and the service from which you received the notification (in UI - show config). Also show the relevant entries of the Nagios event log. On Thu, Apr 25, 2013 at 5:50 PM, Net Warrior netwarrior...@gmail.comwrote: Hi I reviewed my alerts and increased the service check interval as this: this is the service notifications_enabled 1 notification_optionsw,c notification_period 24x7 check_period24x7 check_interval 10 max_check_attempts 3 first_notification_delay0 notification_interval 15 This is the host: check_interval 1 check_period24x7 notification_period 24x7 max_check_attempts 3 notification_interval 10 flap_detection_enabled 0 first_notification_delay0 So, the host is checked every one minute and on the third failure the alert gets fired, for the service I increased it to check every 10 minutes, so in theory the hosts check happens firts withing 3 minutes, as the service is checked every 10 I should not get any alert on them, but I still get the service notifications after the hosts is down. Any help appreciated. Thanks for your time and support. 2013/4/8 Claudio Kuenzler c...@claudiokuenzler.com This is a basic dependency in Nagios. When the host is down (hard) then you won't receive any alerts for the services defined in this host. What is likely in your case, is that you have scheduled the service checks more often or faster to alert before the host check. This will result in some alerts of services before the actual host down alert comes. You should check out the event log to determine which checks happened faster to become a hard critical state. On Mon, Apr 8, 2013 at 5:43 PM, Net Warrior netwarrior...@gmail.comwrote: Hi guys. I've got a doubt regarding the alerts definitions, I have defined several alerts for a host, for example one of them is to check if the host is up or down, when the host is down I get the alert as usual ans so on, but the other alerts get fired as well, service alerts, my question is, if is there a way to tell nagios, if the server is down, do not tigger the other alerts cuz of course are gonna fail? Thanks for your time and support Best Regards -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ 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 -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ 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 -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New
Re: [Nagios-users] Alert Precedence
Oops, didn't see your second answer where you said you found it. Sorry. On Sun, Apr 28, 2013 at 12:20 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: Please paste the config of the host and the service from which you received the notification (in UI - show config). Also show the relevant entries of the Nagios event log. On Thu, Apr 25, 2013 at 5:50 PM, Net Warrior netwarrior...@gmail.comwrote: Hi I reviewed my alerts and increased the service check interval as this: this is the service notifications_enabled 1 notification_optionsw,c notification_period 24x7 check_period24x7 check_interval 10 max_check_attempts 3 first_notification_delay0 notification_interval 15 This is the host: check_interval 1 check_period24x7 notification_period 24x7 max_check_attempts 3 notification_interval 10 flap_detection_enabled 0 first_notification_delay0 So, the host is checked every one minute and on the third failure the alert gets fired, for the service I increased it to check every 10 minutes, so in theory the hosts check happens firts withing 3 minutes, as the service is checked every 10 I should not get any alert on them, but I still get the service notifications after the hosts is down. Any help appreciated. Thanks for your time and support. 2013/4/8 Claudio Kuenzler c...@claudiokuenzler.com This is a basic dependency in Nagios. When the host is down (hard) then you won't receive any alerts for the services defined in this host. What is likely in your case, is that you have scheduled the service checks more often or faster to alert before the host check. This will result in some alerts of services before the actual host down alert comes. You should check out the event log to determine which checks happened faster to become a hard critical state. On Mon, Apr 8, 2013 at 5:43 PM, Net Warrior netwarrior...@gmail.comwrote: Hi guys. I've got a doubt regarding the alerts definitions, I have defined several alerts for a host, for example one of them is to check if the host is up or down, when the host is down I get the alert as usual ans so on, but the other alerts get fired as well, service alerts, my question is, if is there a way to tell nagios, if the server is down, do not tigger the other alerts cuz of course are gonna fail? Thanks for your time and support Best Regards -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ 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 -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ 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 -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application performance monitoring service that delivers powerful full stack analytics. Optimize and monitor your browser, app, servers with just a few lines of code. Try New Relic and get this awesome Nerd Life shirt! http://p.sf.net/sfu/newrelic_d2d_apr ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try New Relic Now We'll Send You this Cool Shirt New Relic is the only SaaS-based application
Re: [Nagios-users] Alert Precedence
This is a basic dependency in Nagios. When the host is down (hard) then you won't receive any alerts for the services defined in this host. What is likely in your case, is that you have scheduled the service checks more often or faster to alert before the host check. This will result in some alerts of services before the actual host down alert comes. You should check out the event log to determine which checks happened faster to become a hard critical state. On Mon, Apr 8, 2013 at 5:43 PM, Net Warrior netwarrior...@gmail.com wrote: Hi guys. I've got a doubt regarding the alerts definitions, I have defined several alerts for a host, for example one of them is to check if the host is up or down, when the host is down I get the alert as usual ans so on, but the other alerts get fired as well, service alerts, my question is, if is there a way to tell nagios, if the server is down, do not tigger the other alerts cuz of course are gonna fail? Thanks for your time and support Best Regards -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html ___ 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 -- Minimize network downtime and maximize team effectiveness. Reduce network management and security costs.Learn how to hire the most talented Cisco Certified professionals. Visit the Employer Resources Portal http://www.cisco.com/web/learning/employer_resources/index.html___ 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 Graph converting figures to binary bytes rather than decimal
James and I continued the troubleshooting off-list and we came to the solution, which we want to share of course. Here's more or less my mail: --- You're absolutely right, the graphs were not correct. With both *1000**2 and *1024**2. Actually, thanks to your e-mail I figured that in the past years I've lived in denial. I must have come up with the multiplication of 1000 in the map file as a kind of workaround, because the graph was closer to the actual reality. Then I must have forgotten that and went on I broke it down to this: # df Filesystem Size Used Avail Use% Mounted on /dev/md4 682587992 117456312 530731228 19% / # df -h Filesystem SizeUsed Avail Use% Mounted on /dev/md4 651G 113G 507G 19% / So df shows a value in KB (682587992). The Nagios plugin itself takes this value and presents it in MB (666589): /=114709MB;533271;599930;0;666589 So in order to present Nagiosgraph the values, we have to go down to the lowest level, which in this case is Byte. To get Byte value from the Nagios output we have to multiply it with 1024^2: 666589*1024*1024 = 698969227264 The job of Nagiosgraph is now to take this 698969227264 value and divide it so often through 1024 until a reasonable and human readable value is given, which would be the 651 GB. But here's the problem: Nagiosgraph divides 698969227264 through 1000 instead of 1024, showing the graph at 698 GB. But why? It took me some guesses which I had to confirm but: Nagiosgraph BY DEFAULT divides through 1000. Probably because the initial reason for rrd graphs was the graphing of network connections which are usually in bits. Anyhow we need to tell Nagiosgraph to divide through 1024 for our disk checks. There's a special file for that called *rrdopts.conf*. I added the following lines to it: # disk values need to be divided by 1024 not 1000 Diskspace /=-b 1024 Root Partition=-b 1024 The string left defines the service description in Nagios. So in my case this is Diskspace /. -b 1024 tells Nagiosgraph to take 1024 as a base value. See the following entry from the rrdgraph manpage: [*-b*|*--base* *value*] If you are graphing memory (and NOT network traffic) this switch should be set to 1024 so that one Kb is 1024 byte. For traffic measurement, 1 kb/s is 1000 b/s. Now you just have to make sure, that rrdopts.conf is not commented in your nagiosgraph.conf file and there you go. Positive thing is that there is no need to recreate the rrd files. This rrd option is only for viewing/drawing the graphs. Which means that the correct values are shown immediately. On Tue, Dec 18, 2012 at 2:51 PM, James Osbourn james.osbo...@citrix.comwrote: Hi Claudio, ** ** I modified your code as it was not working for me and wanted to check what was going on. I have reverted back to using the example that you have given and I am still getting the same result as can be seen here The filesystem is only 450GB in size, yet the graph values are still showing 460.80, which is the byte value show in decimal GB. ** ** I cannot work out why the graph is showing the wrong values when all other information is correct. ** ** James ** ** *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* 18 December 2012 12:15 *To:* Nagios Users List *Subject:* Re: [Nagios-users] Nagios Graph converting figures to binary bytes rather than decimal ** ** ** ** Hi Claudio, I have entered the map entry below based on your example and I am still seeing the results on the graph show as a decimal version of the Bytes value. /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+)/ and push @s, [$1, ['data', GAUGE, $2*1024*1024 ], ['warn', GAUGE, $3*1024*1024 ], ['crit', GAUGE, $4*1024*1024 ], ['min', GAUGE, $5*1024*1024 ], ['max', GAUGE, $6*1024*1024 ] ]; You didn't follow my example, as you're again multiplying with 1024. Take _another_ look at my example: ['used', GAUGE, $2*1000**2 ], ['total', GAUGE, $6*1000**2 ] ]; -- 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] Nagios Graph converting figures to binary bytes rather than decimal
Hi Claudio, ** ** I have entered the map entry below based on your example and I am still seeing the results on the graph show as a decimal version of the Bytes value. ** ** /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+)/ and push @s, [$1, ['data', GAUGE, $2*1024*1024 ], ['warn', GAUGE, $3*1024*1024 ], ['crit', GAUGE, $4*1024*1024 ], ['min', GAUGE, $5*1024*1024 ], ['max', GAUGE, $6*1024*1024 ] ]; You didn't follow my example, as you're again multiplying with 1024. Take _another_ look at my example: ['used', GAUGE, $2*1000**2 ], ['total', GAUGE, $6*1000**2 ] ]; -- 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] Nagios Graph converting figures to binary bytes rather than decimal
Hi James, Looking at the GB value and converting to bytes and then back to GB using decimal bytes gives these figures. Is there any way to make nagiosgraph using binary bytes rather than decimal. I am not that familiar with nagiosgraph or RRD and cannot work out how to make the change. You will have to manually add an entry into the 'map' file to tell nagiosgraph to use different values. My system (df -h) shows: FilesystemSize Used Avail Use% Mounted on /dev/mapper/vg0-root 20G 5.4G 14G 29% / Nagiosgraph shows: total: 20.32G used: 5.45G You can use the following map entry: # Service Type: check_disk # Nagiosgraph regex by Claudio Kuenzler # Check: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / # Output: DISK OK - free space: / 235120 MB (66% inode=95%): # Perfdata: /=119211MB;298635;335964;0;373294 /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ #/perfdata:(\W)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ # only / partition and push @s, [diskusage, ['used', GAUGE, $2*1000**2 ], ['total', GAUGE, $6*1000**2 ] ]; -- 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] Nagios Graph converting figures to binary bytes rather than decimal
Hi Claudio, ** ** Thanks for the feedback. Just to make sure, where abouts in the map file should these lines go? ** ** Thanks ** ** James Just make sure you add these lines BEFORE the following part: ## # default rule. if none of the other rules did anything, then check for # perfdata that meets the standard format. -- 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] Nagios running checks way too often
On Thu, Dec 6, 2012 at 1:13 AM, Doug Eubanks ad...@dougware.net wrote: Of course you are correct, here's one of the services. According to the site log, it looks like Nagios is firing off three to four requests to the server, each time it's being checked. These log entries are all from one vhost log file, so it's not like Nagios is checking 4 sites, it's checking the same site 4 times at once. NagiosServer - - [05/Dec/2012:19:09:40 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) NagiosServer - - [05/Dec/2012:19:09:40 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) NagiosServer - - [05/Dec/2012:19:09:40 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) NagiosServer - - [05/Dec/2012:19:09:40 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) define service { host_name server service_description www.website.com initial_state o is_volatile 0 max_check_attempts 2 normal_check_interval 2 retry_interval 1 first_notification_delay0 active_checks_enabled 1 passive_checks_enabled 1 check_period24x7 parallelize_check 1 obsess_over_service 1 check_freshness 1 freshness_threshold 60 event_handler_enabled 1 process_perf_data 1 retain_status_information 1 retain_nonstatus_information1 notification_interval 4 notification_period 24x7 notifications_enabled 1 action_url /pnp4nagios/index.php?host=$HOSTNAME$srv=$SERVICEDESC$ check_command check_http - vhost - url - string!www.website.com !/!Ap$ icon_image www.png display_namewebsite.com notification_optionsw,u,c,r,f,s stalking_optionso,w,u,c contact_groups Null Placeholder Group servicegroups Public Facing Services } You're right, the check should only happen every 2 mins (normal_check_interval). But what looks strange to me is the check_command. Do you actually have command definition called check_http - vhost - url - string ? I'm not sure if spaces are allowed in the definition. Can you post the command definition? What happens if you change the check_command to the following: check_commandcheck_website!www.website.com!-u / where the command definition of check_website looks like that: define command{ command_namecheck_website command_line$USER1$/check_http -H $ARG1$ $ARG2$ } -- 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] Nagios running checks way too often
On Fri, Dec 7, 2012 at 6:34 AM, Doug Eubanks ad...@dougware.net wrote: I removed the spaces from the command. I noticed that there were two Nagios processes running, so I killed them both and restarted Nagios. Within a few minutes, it was checking the site more often that it should: Nagios - - [07/Dec/2012:00:29:05 -0500] GET / HTTP/1.1 200 22458 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:29:28 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:30:13 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:31:19 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:31:22 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:31:44 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:32:29 -0500] GET / HTTP/1.1 200 22458 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:33:36 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Nagios - - [07/Dec/2012:00:33:38 -0500] GET / HTTP/1.1 200 22459 - check_http/v1.4.16 (nagios-plugins 1.4.16) Can you still post the command definition? Did you try to use an alternative command defintion, e.g. check_website, see last mail. -- 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] Weird Nagios Problem
On Tue, Dec 4, 2012 at 4:26 AM, Martin Hugo martin_h...@hboe.org wrote: 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. Such an error 255 out of bounds can happen, when the plugin gives too much information Nagios could handle. Happened to me for example when I tried to monitor all ports of a 48-port switch. You'll have to use some regex or another way to narrow down the real information you need. -- 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] Nagios running checks way too often
On Tue, Dec 4, 2012 at 4:44 PM, Doug Eubanks ad...@dougware.net wrote: Nagios is checking services way too often. It's supposed to check once every 2 minutes, then failback to checking once every 1 minute on a failure. I believe this is the relevant parts of the nagios.cfg file: Actually the relevant part for how often a check should be executed is in the service definition of the check. Mostly the service itself uses a template with the use option. In this case you have to check your templates.cfg file. If you don't find it, please post the relevant service definition and the definition of the template being used by the service. -- 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] Check_http status 503 gives 200 OK
Jaap, if you'd use check_http correctly, as the others mentioned, it would work. It just happens that https://latitude.google.com shows a 503 error right this moment and for curiosity's sake I tested it: # ./check_http -H latitude.google.com -S HTTP CRITICAL: HTTP/1.1 503 Service Unavailable - 1119 bytes in 0.071 second response time |time=0.070649s;;;0.00 size=1119B;;;0 As you see, it works as it should if used correctly. On Tue, Nov 20, 2012 at 10:26 AM, Travis Runyard travisruny...@gmail.comwrote: He's not using host headers in his definition. On Tue, Nov 20, 2012 at 12:05 AM, Joerg Linge pitchf...@ederdrom.dewrote: again check_http -H -u http://www.testsomething.com is a proxy request. NOT an valid HTTP request Joerg Am 20.11.2012 um 08:35 schrieb Jaap van Arragon j.vanarra...@lukkien.com : Herewith define service{ use generic-service_24x7 host_name www1 service_description check http url check_command check_http! -u http://www.testsomething.com -w 5 -c 8 } This gives me a HTTP OK: HTTP/1.1 200 OK - 414 bytes in 0.002 second response time Back. But in the browser the check gives me a 503 statuscode back. The Nagios check_http script isn't detecting this 503 error message. Regards, Jaap On 11/20/12 8:20 AM, Joerg Linge pitchf...@ederdrom.de wrote: Please provide a complete example! check_http works correct since years Joerg Am 19.11.2012 um 23:00 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Hey Joerg, The 4xx and 3xx error are handeld correctly but not the 5xx error ;-) any ideas? Regards, Jaap From: Joerg Linge [mailto:pitchf...@ederdrom.de] To: Nagios Users List [mailto:nagios-users@lists.sourceforge.net] Sent: Mon, 19 Nov 2012 18:07:52 +0100 Subject: Re: [Nagios-users] Check_http status 503 gives 200 OK Your example /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 is a proxy request! -I = ip address to connect to -H = HTTP/1.1 Host Header -u = relative url to fetch without protocol infos like http:// some examples check nagios.org OMD[gearman]:~/lib/nagios/plugins$ ./check_http -H nagios.org HTTP OK: HTTP/1.1 200 OK - 54919 bytes in 1.703 second response time |time=1.703114s;;;0.00 size=54919B;;;0 OMD[gearman]:~/lib/nagios/plugins$ host nagios.org nagios.org has address 96.126.126.159 ok, nagios .org runns on 96.126.126.159 lets check a non existing page. we got 404! OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H nagios.org -u /404 HTTP WARNING: HTTP/1.1 404 Not Found - 17141 bytes in 0.536 second response time |time=0.536015s;;;0.00 size=17141B;;;0 lets ask nagios.org for icinga.org ;) and we will get a 302 OMD[gearman]:~/lib/nagios/plugins$ ./check_http -I 96.126.126.159 -H icinga.org -u / HTTP OK: HTTP/1.1 302 Found - 242 bytes in 1.837 second response time |time=1.837209s;;;0.00 size=242B;;;0 Joerg Am 19.11.2012 um 17:14 schrieb Jaap van Arragon j.vanarra...@lukkien.com: Thank you for your reply. I¹ve tried the check without the ip adress option but it makes no difference. Any other ideas? Thanks. On 11/19/12 2:29 PM, Ryan Edwards wyi...@gmail.com wrote: You said u are using it like so: Check: /usr/local/nagios/libexec/check_http -I ip address -u http://url -w1 -c2 Maybe drop the IP address? I dunno, maybe cuz you have both IP and the url its causing problems. Maybe its replying on the IP, but not on the URL your providing. You prob only need one or the other if im not mistaken Cheers! On Mon, Nov 19, 2012 at 7:14 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, Does anyone know why it gives me a 200 back? If you need more info, I will gladly provide it ;-) Thank you. Regards, Jaap On 11/16/12 11:54 AM, Jaap van Arragon j.vanarra...@lukkien.com wrote: Hello, I¹m trying to use the check_http plugin to verify if one of our website is available. When I check our website it gives me a 200 OK status code back even when the website isn¹t available en the URL gives me a 503 status code through the browser. After some searching I came across the post below: http://permalink.gmane.org/gmane.network.nagios.plugins.devel/485 This states that there is a bug in check_http. The only thing is that the post is from 2003 so I expect that the necessary changes are already in the new release. Things I¹ve tried: - recompiled the latest version of the check_http plugin but the necessary changes seems to be integrated there already. - updated the plugins package to the latest version for our release Check: /usr/local/nagios/libexec/check_http -I ip address
Re: [Nagios-users] Plugin check_oracle_health
BUT - a huge discovery when composing this mail. The only service definition that worked from Nagios was the one which has the undocumented argument --method sqlplus. I think i saw on some forums the use of that paramether in the beginning, and it remained in the definition. Anyway, after adding that parammeter to all other service and command definitions, they started to work miracouslly (but still, from command line, the plugin is working without --method argument) Thank you for asking for command and service definition ;) A couple of eyes always see more or in this case if one starts over to explain from zero, the bug is found eventually ;-) Glad it works now. Right in time to enjoy the weekend! -- 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] Plugin check_oracle_health
So my question for someone who has made check_oracle_healt work is: How come all 4 invocation from CLI as nagios user work, but when Nagios runs them, only 2 of them work. I know that the error message tells me that there is some env variable path problem, but why are the first 2 calls of check_oracle_healt work then? Can you, for completion, show your command definitions as well as the service definition? Just fyi: On my installation I used a different way to use --connect, I used EZCONNECT. See: http://labs.consol.de/lang/de/blog/uncategorized/check_oracle_health-kann-ezconnect/ My command definition: # check_oracle_health define command { command_namecheck_oracle_health command_line$USER1$/check_oracle_health --username $USER3$ --password $USER4$ --mode $ARG1$ --connect $HOSTADDRESS$:$ARG2$/$ARG3$ } And one of the service definitions: # Check Oracle define service{ usegeneric-service host_name myoraserver service_description Oracle Connections check_command check_oracle_health!connected-users!1521!SERVICENAME } -- LogMeIn Central: Instant, anywhere, Remote PC access and management. Stay in control, update software, and manage PCs from one command center Diagnose problems and improve visibility into emerging IT issues Automate, monitor and manage. Do more in less time with Central http://p.sf.net/sfu/logmein12331_d2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Plugin check_oracle_health
You didn't correctly install the DBD::Oracle or your env variables are not correct, as your error message shows it: Can't locate DBD/Oracle.pm in @INC (@INC contains: /usr/local/nagios/libexec /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 (eval 13) line 3. You said that you have set the paths in .bashrc: I also set in .bashrc the enviroment variables: export ORACLE_HOME=/usr/lib/oracle/11.2/client export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib You probably set this as root. Don't forget that Nagios runs under its own user! (by default: nagios). On Mon, Oct 29, 2012 at 9:50 AM, Cosmin Neagu cosmin.ne...@omnilogic.rowrote: Hi Nagios Users, Can someone help me or give a hint on why check_oracle_health does not work (as describe below) ? On 10/23/2012 04:59 PM, Cosmin Neagu wrote: Hi all, I manage to install the oracle client on nagios machine after all (google is the best) and making all the necesary setting so that check_oracle_health is working from command line as nagios user: nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect IGAS --username abc --password abc --mode=tnsping Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4163. Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6167. OK - connection established to IGAS. nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect IGAS --username abc --password abc --mode=connection-time Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4163. Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6167. OK - 0.10 seconds to connect as iapc_etl | connection_time=0.0968;1;5 nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health --connect IGAS --username abc --password abc --mode=connected-users Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 4163. Use of qw(...) as parentheses is deprecated at ./check_oracle_health line 6167. OK - 31 connected users | connected_users=31;50;100 The command is defined like this: define command{ command_name check_oracle_health command_line $USER1$/check_oracle_health $ARG1$ } And the services: define service { use generic-service host_name DBIGASDS service_description Reachability via tnsping check_command check_oracle_health! --connect IGAS --username abc --password abc --mode=tnsping contactscosmin } define service { use generic-service host_name DBIGASDS service_description Connection time to DB check_command check_oracle_health!--connect IGAS --username abc --password abc mode=connection-time contactscosmin } define service { use generic-service host_name DBIGASDS service_description Connected users to DB check_command check_oracle_health!--connect IGAS --username abc --password abc mode=connected-users contactscosmin I also set in .bashrc the enviroment variables: export ORACLE_HOME=/usr/lib/oracle/11.2/client export PATH=$PATH:$ORACLE_HOME/bin export LD_LIBRARY_PATH=$ORACLE_HOME/lib But, in Nagios 3.4.1, i do not receive the corect status for those services: For all 3 services i receive: CRITICAL - cannot connect to IGAS. install_driver(Oracle) failed: Can't locate DBD/Oracle.pm in @INC (@INC contains: /usr/local/nagios/libexec /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 (eval 13) line 3. I realy don't know what to check anymore and why does it say that, so any help would be apreciated. More info: nagios@monitor:/usr/local/nagios/libexec$ ./check_oracle_health -V check_oracle_health (1.7.3) nagios@monitor:/usr/local/nagios/etc$ uname -a Linux monitor 3.2.0-29-generic-pae #46-Ubuntu SMP Fri Jul 27 17:25:43 UTC 2012 i686 i686 i386 GNU/Linux nagios@monitor:/usr/local/nagios/etc$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description:Ubuntu 12.04.1 LTS Release:12.04 Codename: precise Cosmin Neagu NOC Team Leader Str. I. G. Duca nr. 36 Otopeni, Judetul Ilfov, 075100 Romania Tel: 021 303 3159 / 0732 669 193 www.omnilogic.ro On 10/03/2012 09:34 AM, Claudio Kuenzler wrote: It's not that hard and a lot of things are written in the documentation of check_oracle_health. I even wrote an article about this in September 2011 explaining the steps: http://www.claudiokuenzler.com/blog/192/install-perl-dbd-oracle
Re: [Nagios-users] Nagios Graph Issue
What Nagios Graphing solution do you use? In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check your map file, you might have to adjust some of the entries to match special plugins/perfdata. On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar amit.anjarle...@gmail.com wrote: Dear All, Nagios graphs scale is improper. Also i added few remote servers for monitoring. For them weekly or monthly data reflecting properly. But not for last 4 hours or 24 hours? Any body have idea on this then plz suggest. Thanks Regards Amit Linux Admin, TCS. -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___ 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 Graph Issue
Sorry, don't really know pnp4nagios, but from other message mails the graphs seem to be handled by templates. You might want to check the pnp4nagios template documentation http://docs.pnp4nagios.org/pnp-0.6/tpl Also take a look at http://www.monitoring-portal.org/wbb/index.php?page=BoardboardID=58 . The pnp4nagios developer is often in that bulletin board. On Mon, Oct 29, 2012 at 11:44 AM, Amit Anjarlekar amit.anjarle...@gmail.com wrote: Hi , I am using pnp4nagios. Could you please let me know as which exactly file i need to check as i am new to nagios.. Also if you have any url where i will get exact idea on which files are called from collecting data till graph creation, it will be gr8 help for m to understand nagios architecture. Thanks Amit On Mon, Oct 29, 2012 at 1:11 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: What Nagios Graphing solution do you use? In case of Nagiosgraph, it does what you tell Nagiosgraph to do. Check your map file, you might have to adjust some of the entries to match special plugins/perfdata. On Mon, Oct 29, 2012 at 11:03 AM, Amit Anjarlekar amit.anjarle...@gmail.com wrote: Dear All, Nagios graphs scale is improper. Also i added few remote servers for monitoring. For them weekly or monthly data reflecting properly. But not for last 4 hours or 24 hours? Any body have idea on this then plz suggest. Thanks Regards Amit Linux Admin, TCS. -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- The Windows 8 Center - In partnership with Sourceforge Your idea - your app - 30 days. Get started! http://windows8center.sourceforge.net/ what-html-developers-need-to-know-about-coding-windows-8-metro-style-apps/___ 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] Plugin check_oracle_health
It's not that hard and a lot of things are written in the documentation of check_oracle_health. I even wrote an article about this in September 2011 explaining the steps: http://www.claudiokuenzler.com/blog/192/install-perl-dbd-oracle-DBD::Oracle-on-SuSE-SLES10-without-cpan You should do it the way you prefer of course. But in my setup I wanted to run check_oracle_health on a standalone Nagios server. That way I also see if there's a latency in the remote sql query. Real life applications rarely use localhost connections. On Wed, Oct 3, 2012 at 8:14 AM, Cosmin Neagu cosmin.ne...@omnilogic.rowrote: Well, thats the hard part for me, installing those ORA files - didnt find yet how to do that. I think installing the plugin on DBServer and using NRPE is easier. Cosmin Neagu NOC Team Leader Str. I. G. Duca nr. 36 Otopeni, Judetul Ilfov, 075100 Romania Tel: 021 303 3159 / 0732 669 193 www.omnilogic.ro On 10/02/2012 06:05 PM, Claudio Kuenzler wrote: The plugin needs to be installed on the Oracle Database server. That's not entirely correct. It can also run on a standalone Nagios server. But you need to install the ora files to be able to launch the plugin against an Oracle DB server. I did that successfully on Nagios 3.3.1 against ORA11. -- 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 listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- 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 -- 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
Re: [Nagios-users] Plugin check_oracle_health
The plugin needs to be installed on the Oracle Database server. That's not entirely correct. It can also run on a standalone Nagios server. But you need to install the ora files to be able to launch the plugin against an Oracle DB server. I did that successfully on Nagios 3.3.1 against ORA11. -- 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
Re: [Nagios-users] Problem with apache2.sh plugin
In your case I'd do: ./check_apache2.sh -H localhost -P 8443 -S And you must have mod_status enabled. I just tested this on a Debian machine. You will also have to install bc if you haven't already. On Tue, Sep 4, 2012 at 7:58 AM, Aravinth Anto t-aravi...@juspay.in wrote: Hi all, I downloaded the plugin from this page : http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details I tested in my local machine like this : ./check_apache2.sh -H https://localhost -P 8443 I get an error like this: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 0.5%. Busy workers: , idle: | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= Why there is an error stating `(standard_in) 2: syntax error`? Can anyone say me where I'm making the mistake? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with apache2.sh plugin
Read the documentation. It says: -S|--secure) Enables HTTPS (no certificate check though). Default is: off So the certificate is not checked. And if you manually check with curl, you should check the correct URL: curl https://localhost/server-status On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.in wrote: It seems that certificate verification is getting failed. I can do something like this : curl https://localhost --insecure Which is returning the page. But in my case how do I specify the plugin to not to use ssl certificate? Thanks in advance. Kindly help me out. On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.inwrote: Hi all, I downloaded the plugin from this page : http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details I tested in my local machine like this : ./check_apache2.sh -H https://localhost -P 8443 I get an error like this: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 0.5%. Busy workers: , idle: | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= Why there is an error stating `(standard_in) 2: syntax error`? Can anyone say me where I'm making the mistake? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with apache2.sh plugin
Note that now you're accessing port 80, instead of 8443... Also before you use the plugin, you should make sure that you have correctly enabled mod_status and the server-status URL is accessible. You can test this with curl or lynx. e.g.: lynx localhost/server-status If this page is not shown, then the plugin won't work. On Tue, Sep 4, 2012 at 8:34 AM, Aravinth Anto t-aravi...@juspay.in wrote: On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler c...@claudiokuenzler.comwrote: Read the documentation. It says: -S|--secure) Enables HTTPS (no certificate check though). Default is: off Thanks for the reply. But Doing so: $ ./check_apache2.sh -H localhost -S Gives me the same sort of error: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 2.4%. Busy workers: , idle: | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= So the certificate is not checked. And if you manually check with curl, you should check the correct URL: curl https://localhost/server-status On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote: It seems that certificate verification is getting failed. I can do something like this : curl https://localhost --insecure Which is returning the page. But in my case how do I specify the plugin to not to use ssl certificate? Thanks in advance. Kindly help me out. On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.inwrote: Hi all, I downloaded the plugin from this page : http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details I tested in my local machine like this : ./check_apache2.sh -H https://localhost -P 8443 I get an error like this: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 0.5%. Busy workers: , idle: | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= Why there is an error stating `(standard_in) 2: syntax error`? Can anyone say me where I'm making the mistake? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages
Re: [Nagios-users] Problem with apache2.sh plugin
You should write to Apache mailing list, not to Nagios ;-) Read http://httpd.apache.org/docs/2.2/mod/mod_status.html The status.conf seems correct. You should be able to access the server-status page from the same host. Try to access it with and without SSL (are you forcing a SSL redirect?). You can also run apache2ctl status to check if the module is correctly loaded. On Tue, Sep 4, 2012 at 9:11 AM, Aravinth Anto t-aravi...@juspay.in wrote: I'm very new to apache. I tried to enable the server status page of apache. I added the `status.conf` and `status.load` to `mods-enabled` directory. I changed the config of `apache2.conf` to include all `mods-enabled` directory. This is the config of `staus.conf`: IfModule mod_status.c # # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Uncomment and change the 192.0.2.0/24 to allow access from other hosts. # Location /server-status SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 #Allow from 192.0.2.0/24 /Location # Keep track of extended status information for each request ExtendedStatus On # Determine if mod_status displays the first 63 characters of a request or # the last 63, assuming the request itself is greater than 63 chars. # Default: Off #SeeRequestTail On IfModule mod_proxy.c # Show Proxy LoadBalancer status in mod_status ProxyStatus On /IfModule /IfModule The default settings. I restarted my server. And when I try `wget localhost/server-status --no-check-certificate` . I get an `404` error message : --2012-09-04 07:04:08-- http://localhost/server-status Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://localhost/server-status [following] --2012-09-04 07:04:08-- https://localhost/server-status Connecting to localhost (localhost)|127.0.0.1|:443... connected. WARNING: no certificate subject alternative name matches requested host name `localhost'. HTTP request sent, awaiting response... 404 Not Found 2012-09-04 07:04:08 ERROR 404: Not Found. I'm very new to apache. Where I went wrong? Thanks in advance. On Tue, Sep 4, 2012 at 12:27 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: Note that now you're accessing port 80, instead of 8443... Also before you use the plugin, you should make sure that you have correctly enabled mod_status and the server-status URL is accessible. You can test this with curl or lynx. e.g.: lynx localhost/server-status If this page is not shown, then the plugin won't work. On Tue, Sep 4, 2012 at 8:34 AM, Aravinth Anto t-aravi...@juspay.inwrote: On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler c...@claudiokuenzler.com wrote: Read the documentation. It says: -S|--secure) Enables HTTPS (no certificate check though). Default is: off Thanks for the reply. But Doing so: $ ./check_apache2.sh -H localhost -S Gives me the same sort of error: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 2.4%. Busy workers: , idle: | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= So the certificate is not checked. And if you manually check with curl, you should check the correct URL: curl https://localhost/server-status On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote: It seems that certificate verification is getting failed. I can do something like this : curl https://localhost --insecure Which is returning the page. But in my case how do I specify the plugin to not to use ssl certificate? Thanks in advance. Kindly help me out. On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.inwrote: Hi all, I downloaded the plugin from this page : http://exchange.nagios.org/directory/Plugins/Web-Servers/Apache/check_apache2-2Esh/details I tested in my local machine like this : ./check_apache2.sh -H https://localhost -P 8443 I get an error like this: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 0.5%. Busy workers: , idle: | 'cpu_load'=0.5 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= Why there is an error stating `(standard_in) 2: syntax error`? Can anyone say me where I'm making the mistake? -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest
Re: [Nagios-users] Problem with apache2.sh plugin
There seems to be something wrong with your redirect then. You need to debug that first. Disable the redirect and check again. In general you should have a correct and working configuration before monitoring services. On Tue, Sep 4, 2012 at 9:56 AM, Aravinth Anto t-aravi...@juspay.in wrote: On Tue, Sep 4, 2012 at 12:55 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: You should write to Apache mailing list, not to Nagios ;-) Read http://httpd.apache.org/docs/2.2/mod/mod_status.html The status.conf seems correct. You should be able to access the server-status page from the same host. Try to access it with and without SSL (are you forcing a SSL redirect?). You can also run apache2ctl status to check if the module is correctly loaded. Yes I'm redirecting it! When tried running sudo apache2ctl status w3m: Can't load http://localhost:80/server-status. And when I hit with curl http://localhost:80/server-status. I'm getting the document : !DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN htmlhead title302 Found/title /headbody h1Found/h1 pThe document has moved a href=https://localhost/server-status here/a./p /body/html But doing curl http://localhost/server-status again getting in 404 page!!! Kindly help me out. On Tue, Sep 4, 2012 at 9:11 AM, Aravinth Anto t-aravi...@juspay.inwrote: I'm very new to apache. I tried to enable the server status page of apache. I added the `status.conf` and `status.load` to `mods-enabled` directory. I changed the config of `apache2.conf` to include all `mods-enabled` directory. This is the config of `staus.conf`: IfModule mod_status.c # # Allow server status reports generated by mod_status, # with the URL of http://servername/server-status # Uncomment and change the 192.0.2.0/24 to allow access from other hosts. # Location /server-status SetHandler server-status Order deny,allow Deny from all Allow from 127.0.0.1 ::1 #Allow from 192.0.2.0/24 /Location # Keep track of extended status information for each request ExtendedStatus On # Determine if mod_status displays the first 63 characters of a request or # the last 63, assuming the request itself is greater than 63 chars. # Default: Off #SeeRequestTail On IfModule mod_proxy.c # Show Proxy LoadBalancer status in mod_status ProxyStatus On /IfModule /IfModule The default settings. I restarted my server. And when I try `wget localhost/server-status --no-check-certificate` . I get an `404` error message : --2012-09-04 07:04:08-- http://localhost/server-status Resolving localhost (localhost)... 127.0.0.1 Connecting to localhost (localhost)|127.0.0.1|:80... connected. HTTP request sent, awaiting response... 302 Found Location: https://localhost/server-status [following] --2012-09-04 07:04:08-- https://localhost/server-status Connecting to localhost (localhost)|127.0.0.1|:443... connected. WARNING: no certificate subject alternative name matches requested host name `localhost'. HTTP request sent, awaiting response... 404 Not Found 2012-09-04 07:04:08 ERROR 404: Not Found. I'm very new to apache. Where I went wrong? Thanks in advance. On Tue, Sep 4, 2012 at 12:27 PM, Claudio Kuenzler c...@claudiokuenzler.com wrote: Note that now you're accessing port 80, instead of 8443... Also before you use the plugin, you should make sure that you have correctly enabled mod_status and the server-status URL is accessible. You can test this with curl or lynx. e.g.: lynx localhost/server-status If this page is not shown, then the plugin won't work. On Tue, Sep 4, 2012 at 8:34 AM, Aravinth Anto t-aravi...@juspay.inwrote: On Tue, Sep 4, 2012 at 11:47 AM, Claudio Kuenzler c...@claudiokuenzler.com wrote: Read the documentation. It says: -S|--secure) Enables HTTPS (no certificate check though). Default is: off Thanks for the reply. But Doing so: $ ./check_apache2.sh -H localhost -S Gives me the same sort of error: (standard_in) 2: syntax error OK - Apache serves Requests per second with an average CPU utilization of 2.4%. Busy workers: , idle: | 'cpu_load'=2.4 'req_psec'= 'bytes_psec'= 'bytes_preq'= 'workers_busy'= 'workers_idle'= So the certificate is not checked. And if you manually check with curl, you should check the correct URL: curl https://localhost/server-status On Tue, Sep 4, 2012 at 8:13 AM, Aravinth Anto t-aravi...@juspay.inwrote: It seems that certificate verification is getting failed. I can do something like this : curl https://localhost --insecure Which is returning the page. But in my case how do I specify the plugin to not to use ssl certificate? Thanks in advance. Kindly help me out. On Tue, Sep 4, 2012 at 11:28 AM, Aravinth Anto t-aravi...@juspay.in wrote: Hi all, I downloaded the plugin from
Re: [Nagios-users] check_openmanage and ESXi
http://exchange.nagios.org/directory/Plugins/Operating-Systems/%2A-Virtual-Environments/VMWare/check_esxi_hardware-2Epy/details On Thu, Aug 16, 2012 at 6:14 PM, Randal, Phil phil.ran...@hoopleltd.co.ukwrote: You get more reported back from check_esxi_hardware.py if the check detects any error conditions. I did a lot of work on this last year, see my blog post about it for example output when things don’t work: http://www.rebee.clara.net/blog/archives/2011/04/entry_185.html Cheers, Phil -- *Phil Randal* *Infrastructure Engineer* *Hoople Ltd | Thorn Office Centre | Hereford HR2 6JT* Tel: 01432 260415 | Email: phil.ran...@hoopleltd.co.uk *From:* Hölzel, Arnold [mailto:arnold.hol...@kpn.com] *Sent:* 16 August 2012 16:00 *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] check_openmanage and ESXi All, I don’t know if anyone else already posted this, I just joined the mail list. We have been using check_openmanage (brilliant piece of work!) to check the hardware status of our Dell machines, lately we are moving from ESX 4 to ESXi 5 and found that the check_openmanage check could not help us with the monitoring of ESXi 5 hardware, because check_openmanage needs OMSA for its checks. Today I found a other plugin to check ESXi hardware, see http://www.claudiokuenzler.com/nagios-plugins/check_esxi_hardware.php There is one disadvantage to this plugin and that is that you always get the same status details back with a OK. I don’t know if it is possible but it would be nice to have the checks from the check_esxi_hardware available in the check_openmanage, only problem is one is written in Python the other in Perl… I hope it helps and that maybe someone (Trond the author of check_openmanage?) can create one check of this. *Met vriendelijke groet/with kind regards,* Arnold Hölzel “Any opinion expressed in this e-mail or any attached files are those of the individual and not necessarily those of Hoople Ltd. You should be aware that Hoople Ltd. monitors its email service. This e-mail and any attached files are confidential and intended solely for the use of the addressee. This communication may contain material protected by law from being passed on. If you are not the intended recipient and have received this e-mail in error, you are advised that any use, dissemination, forwarding, printing or copying of this e-mail is strictly prohibited. If you have received this e-mail in error please contact the sender immediately and destroy all copies of it. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and self signed certs
This should work, also with self-signed certs. Doing this in my Nagios config as well. Whats the check_http command you're launching? What's the error message? On Wed, Aug 15, 2012 at 4:15 PM, Masoud Tabrizi masoud.tabr...@gmail.comwrote: All, We are using version 4.1.13 for the check_http for checking our URLs. it seems like the check_http is not able to get through the self signed certs we have installed; Are there any options or suggestions to get around this? thanks in advance Masoud Tabrizi -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http and self signed certs
On Wed, Aug 15, 2012 at 5:03 PM, masoud.tabr...@gmail.com wrote: Using -H url -I IP -s string -f follow and -p where applicable Timeout seems to be the issue yet the URLs are loading fine in less than a second, (-t is set to 45 seconds as well) Thanks Generally you can use -S and -p 443 for SSL-sites. It doesn't matter if the certificate is verified or self-signed. ./check_http -H www.example.com -p 443 -S -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem in Installing the graph plugin.
The automated install didn't work for me either, for to me unknown reasons. I didn't waste time debugging why it didn't work and did the manual installation instead, which is not that difficult. Work through section Recipe for Manual Installation in the INSTALL file: http://nagiosgraph.svn.sourceforge.net/viewvc/nagiosgraph/trunk/nagiosgraph/INSTALL On Thu, Aug 2, 2012 at 3:37 PM, Aravinth Anto Intern t-aravi...@juspay.inwrote: Hi all, I'm trying to install Nagios Plugin : http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgraph/details I downloaded it, unzip it and then I run the install.pl as *sudo ./install.pl * I accepted every directory as default and done with installation. I changed the side.php to add my Trends link that are supported by this plugin. I restarted the server. But when I click on certain links. I get an error : *The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found on this server. * Why this is happening? I can go into the directory /usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi. But why its not working? Thanks in adavnce -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Retrieve historical data
On Tue, Jul 31, 2012 at 1:57 PM, Mykeul li...@mykeul.com wrote: Hello, If I have a host named myserver, monitored for 1 year, and I rename it myserver1, I loose the whole data history, stats and so on. Can someone explain how to get these datas to make them available for myserver1 ? It might sound stupid but the only way which comes into my mind is to search and replace myserver to myserver1 in the archive logs. At least if you're using log files and no db for check results and logging. If think it would be the same problem if migration from an old nagios server to a new one. Nope it wouldn't. The Nagios config would stay the same - you just need to migrate all the archive logs as well. Thanks for your help Regards Mykeul -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Error: Service check command
On Tue, Jun 12, 2012 at 2:39 PM, Henrique Machado henri@gmail.comwrote: Hi. I'm trying to add the check_ftp command for one of my hosts. But i got this error: Error: Service check command 'check_ftp -H ftpserver' specified in service 'FTP' for host ' ftpserver' not defined anywhere! Checked 89 services. In my commands.cfg I have: # 'check_ftp' command definition define command{ command_namecheck_ftp command_line$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$ } What i'm missing? Show the service definition which fails. The command definition looks alright. Tks -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [SPAM] Large installation
I think mod_gearman is what you're looking for: http://labs.consol.de/lang/en/nagios/mod-gearman/ Also 1400 checks is not that huge of a setup. You can also specify check_interval for certain checks which don't need to be executed every now and then (e.g. Disk Space Utilization, HDD Smart Status or validity of SSL certificates). This can help a lot to bring down the load on your Nagios server. On Sun, Jun 10, 2012 at 2:28 PM, Brandino Andreas ampra...@gmail.comwrote: Hi all, my nagios installation has currently 400+ hosts and around 1400 checks. As the server load grows, delays are appearing. Is any way to move a part of active checks to a second nagios server? And in that case how will these two nagios servers exchange data? If this is feasible can you point me to some documentation? Thank you --- --- --- Brandino Andreas ampra...@gmail.com --- --- --- -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_mysql
On Mon, May 28, 2012 at 2:19 PM, Alexey Terentiev alex...@tehila.gov.ilwrote: Hi! ** ** I am trying to install the nagios plugins with check-mysql parameter, but its keep failing. Show error message please. Usually it already tells you what is missing. It seems that all the librarys needed for the check_msql are installed on the server. ** ** But just to make sure, can you send me the names of the libs required? Depends on your OS/distro. On Debian you will have to install libmysqlclient-dev. And also when I use the “with-mysql=…” where should I point it? ** ** Sincerely yours, Alexey Terentiev ** ** ** ** ** ** ** ** -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios Graphing of Unix Load Average
On Thu, May 17, 2012 at 6:57 PM, a.sm...@ukgrid.net wrote: Hi, not sure if Nagios addons are normally disussed here, but I have a questions relating to nagiosgraph. Basically everything works great, except something odd on graphs for Unix/Linux systems for Load Average. The graphs themselves look fine, but the Avg and Cur values shown below the graphs are things like 91.34m. Unix load average is normally a fraction, like 0.10 etc. Anyone any idea whats going on? Nagiosgraph uses the 'm' when in the whole graph the load never reaches 1.0 . So you can take 91.34m as 0.09 load. As soon as the load has at least once reached 1.0, the smaller loads will be shown as 0.9, 0.8, etc. TBH my main issue is when graphing the RRD in Cacti its also showing up with huge number in the millions but the source of the issue seems to be something to do with nagiosgraph. Any ideas gratefully recieved, thanks, Andy. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios backup
On 05/11/2012 03:12 PM, Luis H. Forchesatto wrote: Hi Someone know the correct backup and restore procedure to export nagios 3.0.6 from one server do another nagios 3.2.1 server? rsync. Nothing important's changed in object config, and the rest will just be simple and quick manual tweaking of nagios.cfg, if any at all. You will have to recompile the Nagios plugins as you change the architecture. But with the configuration files you don't have to worry much - rsync or copy like Andreas suggested works fine. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios backup
On Fri, May 11, 2012 at 3:55 PM, Luis H. Forchesatto luisforchesa...@gmail.com wrote: It really needs rsync, can't I use a simple copy command instead? Whether you use scp, rsync, copy+paste, print out + write new, the postal way or whatever is up to you. The important information is that the config files will be compatible so you have a thousand ways to copy the files from A to B. Just make sure that the nagios user has the correct permissions on the files (thats why Andreas suggested rsync I'd say). 2012/5/11 Claudio Kuenzler c...@claudiokuenzler.com On 05/11/2012 03:12 PM, Luis H. Forchesatto wrote: Hi Someone know the correct backup and restore procedure to export nagios 3.0.6 from one server do another nagios 3.2.1 server? rsync. Nothing important's changed in object config, and the rest will just be simple and quick manual tweaking of nagios.cfg, if any at all. You will have to recompile the Nagios plugins as you change the architecture. But with the configuration files you don't have to worry much - rsync or copy like Andreas suggested works fine. -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Att.* *** -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http script is not working
Hello , ** ** I’m Sankar testing nagios scripts. I have tried to ping URL check from check_http script from nagios. ** ** http://nagiosplugins.org/man/check_http (URL) = Reference ** ** Root# check_http -w 5 -c 10 --ssl -H www.verisign.com Name or service not known HTTP CRITICAL - Unable to open TCP socket ** ** ** You're using a wrong order... See here the difference: # ./check_http -w 5 -c 10 --ssl -H www.verisisgn.com Name or service not known HTTP CRITICAL - Unable to open TCP socket # ./check_http -H www.verisign.com --ssl -w 5 -c 10 HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.822 second response time |time=0.821882s;5.00;10.00;0.00 size=42718B;;;0 I know the way you tried it is shown in the --help but it obviously doesn't work. ** Please help us in checking whether URL is up or down. How efficiently this script can be used ? Is there any way to find out URL availability ? with port ? or ping ? can we pass proxy ? ** ** Thanks in advance. ** ** Best regards, Sankar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http script is not working
Jeez. I should drink a coffee before responding... ouch. The syntax is correct, as you see in my post I had a typo in the verisign domain name. # ./check_http -w 5 -c 10 --ssl -H www.verisign.com HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.830 second response time |time=0.830120s;5.00;10.00;0.00 size=42718B;;;0 So it works. Sorry for false information. Do as Bram suggested, try to open the website with lynx or curl. Hello , ** ** I’m Sankar testing nagios scripts. I have tried to ping URL check from check_http script from nagios. ** ** http://nagiosplugins.org/man/check_http (URL) = Reference ** ** Root# check_http -w 5 -c 10 --ssl -H www.verisign.com Name or service not known HTTP CRITICAL - Unable to open TCP socket ** ** ** You're using a wrong order... See here the difference: # ./check_http -w 5 -c 10 --ssl -H www.verisisgn.com Name or service not known HTTP CRITICAL - Unable to open TCP socket # ./check_http -H www.verisign.com --ssl -w 5 -c 10 HTTP OK: HTTP/1.1 200 OK - 42718 bytes in 0.822 second response time |time=0.821882s;5.00;10.00;0.00 size=42718B;;;0 I know the way you tried it is shown in the --help but it obviously doesn't work. ** Please help us in checking whether URL is up or down. How efficiently this script can be used ? Is there any way to find out URL availability ? with port ? or ping ? can we pass proxy ? ** ** Thanks in advance. ** ** Best regards, Sankar -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Exclude monitoring in holidays
First you create a timeperiod which contains all the holidays you want to specify. I guess you already did that. Let's assume you called this timeperiod *myholidays*. Now you need to exclude this from your usual check timeperiod (24x7 by default): # This defines a timeperiod where all times are valid for checks, # notifications, etc. The classic 24x7 support nightmare. :-) define timeperiod{ timeperiod_name 24x7 alias 24 Hours A Day, 7 Days A Week exclude myholidays sunday 00:00-24:00 monday 00:00-24:00 tuesday 00:00-24:00 wednesday 00:00-24:00 thursday00:00-24:00 friday 00:00-24:00 saturday00:00-24:00 } As you see, the important configuration here is the exclude line. It's actually pretty easy and you can combine many exclusions like this. On Thu, May 3, 2012 at 2:03 PM, Leonardo Bacha Abrantes leona...@lbasolutions.com wrote: Hey people! I don't want that nagios monitoring hosts/services in holidays that I specified. Does anyone know if is it possible, if so, how can I do that ? Many thanks! -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Live Security Virtual Conference Exclusive live event will cover all the ways today's security and threat landscape has changed and how IT managers can respond. Discussions will include endpoint security, mobile security and the latest in malware threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host Log Entries
I'm new using nagios, and i have to generate reports on host's network states. I'd like to know how to set the table Host Log Entries to show lines by day, cause it's showing lines divided by events. Does anyone knows how to solve this? Why invent the wheel again? Why don't you use the availability report? Is there a particular reason? Host Log Entries: 20-02-2012 17:26:0423-02-2012 11:32:352d 18h 6m 31s HOST DOWN (HARD) CRITICAL - Time to live exceeded (IP) 27-02-2012 16:20:0727-02-2012 19:19:270d 2h 59m 20s HOST UP (HARD) PING OK - Packet loss = 0%, RTA = 12.00 ms 27-02-2012 19:19:2727-02-2012 19:50:270d 0h 31m 0sHOST DOWN (HARD) CRITICAL - Time to live exceeded (IP) 27-02-2012 19:50:2710-03-2012 09:20:0311d 13h 29m 36s HOST UP (HARD) PING OK - Packet loss = 0%, RTA = 12.32 ms 10-03-2012 09:20:0310-03-2012 13:31:130d 4h 11m 10s HOST DOWN (HARD) CRITICAL - Time to live exceeded (IP) -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ 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 -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ 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 oracle grid
Don't know about Oracle Grid, but I have another suggestion. If I understood correctly, your issue is to monitor the tablespaces which where added by the DBA's? If so, you should try the plugin check_oracle_health which has an option to monitor ALL tablespaces (not just the utilization of one given tablespace): --mode tablespace-usage If wanted you can also monitor a single tablespace by using: --mode tablespace-usage --tablespace MYTABLE http://labs.consol.de/lang/en/nagios/check_oracle_health/ On Fri, Apr 13, 2012 at 4:11 AM, Tim Dunphy bluethu...@jokefire.com wrote: hello list, We've been monitoring our Oracle Database using a plugin called 'check_oracle'. It's proven quite handy in getting the sizes of tablespaces and alerting based on percentages of space used. However the DBAs point out that the database is very dynamic and that tablespaces are always being added and removed. It seems like they don't want to notify us each time this happens. Keeping on top of them to do this is a pain. They've just installed Oracle Grid and suggested we use nagios to monitor that instead. I've never seen or used Oracle Grid so I was hoping someone out there with a little more knowledge than me on the topic might have some suggestions on how to accomplish this. Are there any plugins already out there that are written to take information from the oracle grid and parse that for use in nagios? Thanks Tim -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ 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 -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] performance data configuration doubts
The performance data can be found in the output of the plugin, if the plugin supports it. There are two types of output actually. The first part before the pipe is handled as output, this will be shown in your Nagios UI and in notifications. The second part behind the pipe is handled as performance data. With this data you'll be able to generate graphs. See here for an example with check_ping: # ./check_ping -H google.com -w 20,50% -c 50,70% PING OK - Packet loss = 0%, RTA = 15.99 ms|rta=15.987000ms;20.00;50.00;0.00 pl=0%;50;70;0 Everything behind the pipe is performance data. On Sun, Apr 8, 2012 at 5:28 PM, asm...@dms.cat wrote: Hi, I'd like to be able to log performance data from Nagios but I have a couple of doubts. First and most fundamental, will I be able to use the normal Nagios perfdata support with passive NSCA clients? Secondly, I have been reading the documentation, ie http://nagios.manubulon.com/traduction/docs14en/perfdata.html And it says that a plugin must return additional data after a pipe | sign for Nagios to accept any perforamnce data from that plugin. I was having a look at the standard plugins and they don't seem to have any support for performance data, ie: # ./check_ping check_ping: Could not parse arguments Usage: check_ping -H host_address -w wrta,wpl% -c crta,cpl% [-p packets] [-t timeout] [-4|-6] There is no option to enable performance data in the plugin output. Am I getting this wrong or do none of the standard plugins allow any performance data capture? thanks in advance! Andy. -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2 ___ 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 -- For Developers, A Lot Can Happen In A Second. Boundary is the first to Know...and Tell You. Monitor Your Applications in Ultra-Fine Resolution. Try it FREE! http://p.sf.net/sfu/Boundary-d2dvs2___ 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] server log plugin
This one is probably the best one: http://labs.consol.de/lang/en/nagios/check_logfiles/ On Thu, Apr 5, 2012 at 6:56 PM, Parkman, Mikhail mikhail_park...@cable.comcast.com wrote: I need to perform the following tasks: ** ** · Demonstrated that Nagios alert is fired when certain messages are logged in the application log file on the target (remote) host · Nagios info message is fired when error condition is cleared. ** ** I found out “logwarn” plugin but I didn’t find detailed configuration instructions for this plugin. ** ** http://exchange.nagios.org/directory/Plugins/Log-Files/check_logwarn/details ** ** And another one – “check_logfiles” – this one is described better in my opinion but referring to something called OPSVIEW that I don’t have any idea about. ** ** http://www.osupport.net/2011/log-files-monitoring-with-nagios-opsview/ ** ** ** ** Did somebody have experience with well documented “check log” plugin, and could recommend one so that the functionality of the recommended plugin matches bulleted tasks in the beginning of this email that I have to accomplish? ** ** Thanks. Mikhail. ** ** -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-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 -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-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_ntp_time problem
Why are you using different NTP servers? On server 1 you use: /usr/lib/nagios/plugins/check_ntp_time -H 192.168.50.7 -v On server 2 you use: /usr/lib64/nagios/plugins/check_ntp_time -H 192.168.50.2 -v Localhost always works as this is the emergency fail-back for ntp. On Tue, Apr 3, 2012 at 6:15 PM, Luc MAIGNAN luc.maig...@winxpert.comwrote: Hi, on a server 1, the plugin works well by specifying its own address : /usr/lib/nagios/plugins/check_ntp_time -H 192.168.50.7 -v sending request to peer 0 response from peer 0: offset -0,0005108481273 sending request to peer 0 response from peer 0: offset -6,853620289e-05 sending request to peer 0 response from peer 0: offset -2,743146615e-05 sending request to peer 0 response from peer 0: offset -2,787803533e-05 overall average offset: -0,0005108481273 NTP OK: Décalage -0,0005108481273 secs|offset=-0,000511s;60,00;120,00; on a second, it doesn't work : /usr/lib64/nagios/plugins/check_ntp_time -H 192.168.50.2 -v sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 re-sending request to peer 0 NTP CRITICAL: No response from NTP server But a request on localhost seems to work : /usr/lib64/nagios/plugins/check_ntp_time -H localhost -v sending request to peer 0 response from peer 0: offset -4,291534424e-06 sending request to peer 0 response from peer 0: offset -2,002716064e-05 sending request to peer 0 response from peer 0: offset -2,062320709e-05 sending request to peer 0 response from peer 0: offset -1,752376556e-05 sending request to peer 1 re-sending request to peer 1 re-sending request to peer 1 re-sending request to peer 1 re-sending request to peer 1 re-sending request to peer 1 re-sending request to peer 1 discarding peer 1: stratum=0 overall average offset: -4,291534424e-06 NTP OK: Décalage -4,291534424e-06 secs|offset=-0,04s;60,00;120,00; The configuration of ntpd daemon are strictly the same on both servers. Has anyone an idea to help me ? Best regards -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-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 -- Better than sec? Nothing is better than sec when it comes to monitoring Big Data applications. Try Boundary one-second resolution app monitoring today. Free. http://p.sf.net/sfu/Boundary-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] Flexible downtime not working
Hello Deborah, If you use Flexible Downtimes, don't forget to select Flexible from the Select-Menu (Type). Otherwise the fixed dates are taken (Start Date, End Date). To remove a host or service from a scheduled downtime, click on Downtime in the left navigation. There you can delete the wanted entry. cheers On Mon, Apr 2, 2012 at 10:42 AM, Deborah Martin deborah.mar...@kognitio.com wrote: Hi, ** ** We use Nagios 3.2.0 on SLES 10 SP2 to monitor a few hundred services. ** ** Yesterday, we put a particular service into flexible downtime from around 7am to 2pm. However, it seems to still be stuck in flexible downtime so any alerts after 2pm haven’t been sent out. ** ** I’m not entirely sure why this is happening as I’ve used this before and never had any problems. Has anyone come across this before ? Is there a way to kick this service back into normal monitoring ? ** ** Thanks, Deborah ** ** ** This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Flexible downtime not working
Well without blaming anyone, the easiest reason for this to cause would be a human mistake in interpreting the schedule downtime form (often happens with fixed/flexible) and by setting a wrong end date. When you were in the Downtime overview, did you take a look at the specified End Time column? What was written there before you clicked the delete icon? I suggest you go to your var/archives folder and check the logfile of April 1st for the external command, sth like this: [158804] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;hostname;NTP;158695;165895;0;0;3600;Nagios Admin;test flexible [173670] EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;hostname;SSH;173648;184448;1;0;7200;Nagios Admin;test fixed These timestamps tell you WHEN the external command was launched, when the downtime starts and when the downtime ends. Also, note the 0 and 1 behind the end timestamp. Integer 0 indicates a flexible downtime, a 1 indicates a fixed scheduled downtime. To answer your question: Yes, after the end of the scheduled downtime, normal monitoring should have resumed. On Mon, Apr 2, 2012 at 2:54 PM, Deborah Martin deborah.mar...@kognitio.comwrote: Hi Claudio, ** ** Thanks for info. But I’m a little puzzled. ** ** I clarified the steps that were taken. It turns out that he didn’t use Flexible but instead used fixed. However, he’s sure that the dates were set to 1st April for the start and end date. So, surely once the date changed to the 2nd April, at the very least, normal monitoring should have resumed or is that not correct ? ** ** In fact I took your advice and removed the fixed downtime manually. ** ** ** ** These are the nagios log entries I see for this service :- ** ** 04-01-2012 00:00:00 04-01-2012 06:00:00 0d 6h 0m 0s SERVICE OK (HARD) 60 rows in dsa.mdf_reservation in last 10 minutes 04-01-2012 06:00:00 04-01-2012 06:46:11 0d 0h 46m 11s SERVICE DOWNTIME START Start of scheduled downtime 04-01-2012 06:46:11 04-01-2012 14:00:10 0d 7h 13m 59s SERVICE CRITICAL (HARD) 0 rows in dsa.mdf_reservation in last 10 minutes 04-01-2012 14:00:10 04-02-2012 11:26:18 0d 21h 26m 8s SERVICE OK (HARD) 331 rows in dsa.mdf_reservation in last 10 minutes 04-02-2012 11:26:18 04-02-2012 11:47:16 0d 0h 20m 58s+ SERVICE DOWNTIME END End of scheduled downtime ** ** The last entry is when I manually put the service back to normal monitoring. ** ** Regards, Deborah ** ** ** ** *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* 02 April 2012 10:29 *To:* Nagios Users List *Subject:* Re: [Nagios-users] Flexible downtime not working ** ** Hello Deborah, If you use Flexible Downtimes, don't forget to select Flexible from the Select-Menu (Type). Otherwise the fixed dates are taken (Start Date, End Date). To remove a host or service from a scheduled downtime, click on Downtime in the left navigation. There you can delete the wanted entry. cheers On Mon, Apr 2, 2012 at 10:42 AM, Deborah Martin deborah.mar...@kognitio.com wrote: Hi, We use Nagios 3.2.0 on SLES 10 SP2 to monitor a few hundred services. Yesterday, we put a particular service into flexible downtime from around 7am to 2pm. However, it seems to still be stuck in flexible downtime so any alerts after 2pm haven’t been sent out. I’m not entirely sure why this is happening as I’ve used this before and never had any problems. Has anyone come across this before ? Is there a way to kick this service back into normal monitoring ? Thanks, Deborah This e-mail and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorised distribution or copying is strictly prohibited. Whilst Kognitio endeavours to prevent the transmission of viruses via e-mail, we cannot guarantee that any e-mail or attachment is free from computer viruses and you are strongly advised to undertake your own anti-virus precautions. Kognitio grants no warranties regarding performance, use or quality of any e-mail or attachment and undertakes no liability for loss or damage, howsoever caused. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages
Re: [Nagios-users] Macros do not expand when debugging
Umm 1299 # 2048 = Macros Right now you've set 1301 debug_level=256 this is to mainly debug the commands. For real debugging of the whole chain you can use the value -1 (for everything). Gives you a whole lot of log but that's always good for debugging. On Fri, Mar 30, 2012 at 7:03 AM, Samuel Kidman samuel.kid...@panres.comwrote: Hello ** ** [1333083426.020333] [2320.2] [pid=19230] Raw Command Input: $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 [1333083426.020347] [2320.2] [pid=19230] Expanded Command Output: $USER1$/check_ping -H $HOSTADDRESS$ -4 -w 1000,33% -c 1000,100% -p 3 -t 1000 ** ** I have enabled debugging in my nagios.cfg file: ** ** 1281 # DEBUG LEVEL 1282 # This option determines how much (if any) debugging information will 1283 # be written to the debug file. OR values together to log multiple** ** 1284 # types of information. 1285 # Values: 1286 # -1 = Everything 1287 # 0 = Nothing 1288 # 1 = Functions 1289 # 2 = Configuration 1290 # 4 = Process information 1291 # 8 = Scheduled events 1292 # 16 = Host/service checks 1293 # 32 = Notifications 1294 # 64 = Event broker 1295 # 128 = External commands 1296 # 256 = Commands 1297 # 512 = Scheduled downtime 1298 # 1024 = Comments 1299 # 2048 = Macros 1300 1301 debug_level=256 1302 1303 1304 1305 # DEBUG VERBOSITY 1306 # This option determines how verbose the debug log out will be. 1307 # Values: 0 = Brief output 1308 # 1 = More detailed 1309 # 2 = Very detailed 1310 1311 debug_verbosity=2 1312 1313 1314 1315 # DEBUG FILE 1316 # This option determines where Nagios should write debugging information. 1317 1318 debug_file=/usr/local/nagios/var/nagios.debug 1319 1320 ** ** However when the commands are output into the debug file, the macros don’t expand. This make debugging difficult. Anyone know what is going on? ** ** *Sam Kidman* *IT System Administrator* -- *T:*08 9225 0944 *M:*0466137318 * * ** ** ** ** [image: Description: panres] ** ** -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] question about alert
Hello, I agree that the server still has plenty of space and also inodes look OK. So what you need to find out now is the WARNING and CRITICAL thresholds. These thresholds determine when a warning or critical notification should be sent by Nagios. The warning threshold is probably set very low. As this check is a NRPE check, you have to find this information on your host serv2 (172.19.4.192) in the nrpe.cfg file. You have to look for the check_command[*] lines and find the check responsible for the disk space. There you will find the warning (-w) and critical (-c) thresholds which you can adapt and then restart the nrpe daemon. On Fri, Mar 23, 2012 at 8:20 PM, csbender csben...@bellsouth.net wrote: Hi Group, I am having a bit of a time understanding a NAGIOS alert that was setup be my predecessor. I will show the alert that is on disc availability, and then below that I show the NAGIOS display of the alert conditions of dic conditions and lastly I show the actual values of the disc df command from the Server itself. My question is this.what is the service complaining about? There appears tobe plenty of disk space based on the email. The actual df itself seems to be that there is space issues looking at bits but the availabile percentage seems high. Thanks for your help in advance. 1. * Nagios * Notification Type: PROBLEM Service: NRPE Check Disk Space Host: serv2 Address: 172.19.4.192 State: WARNING Date/Time: Fri Mar 23 18:41:10 UTC 2012 Additional Info: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24905 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): 2. Service State Information Current Status: WARNING (for 1d 20h 40m 17s) Status Information: DISK WARNING - free space: / 9019 MB (66% inode=92%): /usr01 24894 MB (20% inode=89%): /usr02 11731 MB (85% inode=99%): /opt 106873 MB (92% inode=99%): /export/home 6746 MB (98% inode=99%): ÿ¨ÿ2H@ Performance Data: /=4622MB;11024;12402;0;13780 /usr01=96952MB;98461;110769;0;123077 /usr02=1910MB;11024;12402;0;13780 /opt=8151MB;92948;104567;0;116186 /export/home=74MB;5512;6201;0;6890 Current Attempt: 3/3 (HARD state) Last Check Time: 03-23-2012 19:11:06 Check Type: ACTIVE Check Latency / Duration: 0.169 / 0.054 seconds Next Scheduled Check: 03-23-2012 19:21:06 Last State Change: 03-21-2012 22:35:06 Last Notification: 03-23-2012 18:41:10 (notification 45) Is This Service Flapping? NO (0.00% state change) In Scheduled Downtime? NO Last Update: 03-23-2012 19:15:20 ( 0d 0h 0m 3s ago) Active Checks: ENABLED Passive Checks: ENABLED Obsessing: ENABLED Notifications: ENABLED Event Handler: ENABLED Flap Detection: ENABLED Service Commands Disable active checks of this service Re-schedule the next check of this service Submit passive check result for this service Stop accepting passive checks for this service Stop obsessing over this service Acknowledge this service problem Disable notifications for this service Delay next service notification Send custom service notification Schedule downtime for this service Disable event handler for this service Disable flap detection for this service 3. # df -F ufs -o i Filesystem iused ifree %iused Mounted on /dev/dsk/c0t0d0s0 133920 1562592 8% / /dev/dsk/c0t0d0s31598566 1353167411% /usr01 /dev/dsk/c0t1d0s0 71653 14216347 1% /opt /dev/dsk/c0t1d0s3 22 1696490 0% /usr02 /dev/dsk/c0t1d0s4 5906 842350 1% /export/home -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to check the scheduled downtime for a server for a particular past day in the logs to confirm....
Hi Yes you can check that in the nagios log files. Here an example: nagios-01-13-2012-00.log:[1326360203] HOST DOWNTIME ALERT: myhost;STARTED; Host has entered a period of scheduled downtime In the logs it's also shown when the host exits the scheduled downtime On Thu, Mar 22, 2012 at 1:37 PM, Manish_Kmr manish_...@mahindrasatyam.comwrote: Hi List, For a particular server there was a complaint that even it was in scheduled downtime for some specific period on a particular past day, it sent a host down notification and the ticket has been raised for the same in the integrated ticketing tool. Now I need to check somehow in the logs, is that server was really put into downtime on that day for that specific duration. Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 -- DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Commenting in host and service config file.......
Yep, that works. On Tue, Mar 20, 2012 at 6:00 AM, Manish_Kmr manish_...@mahindrasatyam.comwrote: Hi List, Actually I am using Nagios since a long but still I am not sure of one thing how can I comment some lines in nagios host and service config files. For example:- define service { host_name localhost service_description NPCD status use local-service check_command check_local_npcd!1:1!npcd! max_check_attempts 2 check_interval 5 retry_interval 1 *#event_handler restart-npcd* notification_interval 15 contact_groups admins register1 } Will it work like this… Thanks, Manish Kumar Open Source Tools Team, IMS, Mahindra Satyam Mob: +919035435306 -- DISCLAIMER: This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Can someone at Nagios Enterprises please take a look at old.nagios.org?
This one? http://nagios.sourceforge.net/docs/3_0/extcommands.html On Fri, Mar 16, 2012 at 7:40 PM, C. Bensend be...@bennyvision.com wrote: I've been trying to get to the external commands reference for several hours, keep getting Error connecting to MySQL server... Thanks! Benny -- The problem with quotes on the internet is that it's very hard to verify their authenticity. -- Abraham Lincoln -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] [SOLUCIONADO] RE: Install Error with fresh install of Nagios (nagios.cfg - Line 465)
Hi Amine, Please don't hijack old threads. Create a new mail with your question. Yes, if the directory doesn't exist, create it yourself and give it the correct permissions. Had to do that too in Core 3.3.1 (in previous versions the folders were always correctly created). On Wed, Mar 14, 2012 at 11:30 AM, Amine light_d...@live.fr wrote: hello everyone my name is amine and I have just compiled the source of nagios on my ubuntu machine and i got the same problem Line 465 (Check result path is not a valid directory) whene I cd /usr/local/nagios/var/spool/ it told me it tells me that there is no such directory.what can I do should I just make those directories?? I need help plz. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_disk '/sys not accessable'
Hey Timothy, By reading some old mails in the mailing list, I stumbled over a topic similar to your case from 2011-12-09 (SELinux and RHEL6.2 preventing disk checks via NRPE). I know you said you didn't use SELinux, but I think it doesn't hurt if you read it in the archive: http://sourceforge.net/mailarchive/forum.php?thread_name=15tzkf1x503.fsf%40tux.uio.noforum_name=nagios-users On Tue, Mar 13, 2012 at 9:03 AM, Wenig, Michael (IT/I4Z) michael.we...@ww-informatik.de wrote: We had some similar issues which were originated in missing policies for SELinux. -Ursprüngliche Nachricht- Von: Boyer, Timothy A. [mailto:timothy.bo...@opm.gov] Gesendet: Montag, 12. März 2012 20:57 An: Nagios Users List Betreff: Re: [Nagios-users] check_disk '/sys not accessable' Works fine on all of the other RHEL6 systems. # su - nagios -bash-4.1$ /usr/lib64/nagios/plugins/check_nrpe -H system3 -c check_all_disk 20 10 DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); ... with nothing at all in sudoers. -Original Message- From: davor grgicevic [mailto:dgrgice...@gmail.com] Sent: Monday, March 12, 2012 1:32 PM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this DISK CRITICAL - /dev/pts is not accessible: Permission denied davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. timothy.bo...@opm.gov wrote: $ ./check_disk -w 10% -c 5% -p /sys DISK UNKNOWN - free space:| is the result on both servers. But that’s running locally, which works. The problem is when running via nrpe. Running check_nrpe with –x /sys in the command line returns: DISK CRITICAL - /dev/pts is not accessible: Permission denied Doing the next obvious thing and including /dev in the excludes works, and is a workaround. Thanks much… From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Friday, March 09, 2012 7:46 AM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Nagios 3.3.1. Two identical RHEL6.1 systems, and all I’m trying to do is get a total disk space reading. Well the systems are not identical as the manually launched plugin output of yours shows: [nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); [nagios@server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% inode=99%); /boot 387 MB (84% inode=99%); Note the /home mount point. Have you checked the servers for the different mount points? It looks like on server2 /sys is seen as a partition or mount point while on server1 the check seems to ignore it successfully? Any idea why server2 thinks /sys is a partition or mount point? Can you try to launch it specifically on /sys and output the results (on both servers)? ./check_disk -w 10% -c 5% -p /sys Then try to exclude /sys from the check: ./check_disk -w 10% -c 5% -x /sys By the way the error you're seeing seems to be triggered from this code (at the bottom of the source file): void stat_path (struct parameter_list *p) { /* Stat entry to check that dir exists and is accessible */ if (verbose = 3) printf(calling stat on %s\n, p-name); if (stat (p-name, stat_buf[0])) { if (verbose = 3) printf(stat failed on %s\n, p-name); printf(DISK %s - , _(CRITICAL)); die (STATE_CRITICAL, _(%s %s: %s\n), p-name, _(is not accessible), strerror(errno)); } } On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. timothy.bo...@opm.gov wrote: It's Permissive, so that can't be it. Thanks... -Original Message- From: Sigmund Brandstaetter [mailto:s...@maniladev.com] Sent: Thursday, March 08, 2012 4:12 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_disk '/sys not accessable' Tim, How about SELinux, is it maybe on only on the one that is making the problem? Cheers Sigmund On 3/9/2012 00:49, Boyer, Timothy A. wrote: Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do is get a total disk space reading. So nrpe is running on both, with the identical command in nrpe.cfg: command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. One works fine: -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c check_all_disk -a 20% 10% DISK OK - free space
Re: [Nagios-users] Recommendation needed
It depends on your own skills. If you know a little bit regex (regular expressions), then you're good with Nagiosgraph. I couldn't live without it anymore. PNP4Nagios is, as Daniel said, just working out of the box for many plugins. But on the other hand with Nagiosgraph you're more flexible when it comes to your own plugins or other special plugins. Haven't tried munin myself. On Thu, Mar 15, 2012 at 10:10 PM, Daniel Wittenberg daniel.wittenberg.r...@statefarm.com wrote: I like pnp4nagios, easy to integrate and flexible. Using it with multisite as the front-end make it all just work out of the box. Dan -Original Message- From: Paras pradhan [mailto:pradhanpa...@gmail.com] Sent: Thursday, March 15, 2012 4:02 PM To: Nagios Users List Subject: [Nagios-users] Recommendation needed Hi, We are planning to implement nagios with a graphing tool. I came across nagiosgraph, php4nagios and munin. Among these which is relatively easier to configure or are there other graphing tools that is recommended?. and which one is popular among nagios users? Thanks Paras. -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- This SF email is sponsosred by: Try Windows Azure free for 90 days Click Here http://p.sf.net/sfu/sfd2d-msazure___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_disk '/sys not accessable'
Doing the next obvious thing and including /dev in the excludes works, and is a workaround. Good, but workarounds aren't that nice ;-) Before we think too far, could you make a diff of your different nrpe.cfg's? Maybe you include another file in which the command check_all_disk is defined a second time? That would be a simple explanation... What happens if you add a sudoers entry to allow the nagios user (or the user you're running the nrpe daemon as) to launch check_disk? Modify the check_command so you use sudo before the check_disk command. On Mon, Mar 12, 2012 at 6:32 PM, davor grgicevic dgrgice...@gmail.comwrote: Hi Timothy localy u r workiong as root.. if you try as user Nagios, it wont work .. u have to run sudo for this DISK CRITICAL - /dev/pts is not accessible: Permission denied davor On Mon, Mar 12, 2012 at 6:17 PM, Boyer, Timothy A. timothy.bo...@opm.gov wrote: $ ./check_disk -w 10% -c 5% -p /sys DISK UNKNOWN - free space:| is the result on both servers. But that’s running locally, which works. The problem is when running via nrpe. Running check_nrpe with –x /sys in the command line returns: DISK CRITICAL - /dev/pts is not accessible: Permission denied Doing the next obvious thing and including /dev in the excludes works, and is a workaround. Thanks much… From: Claudio Kuenzler [mailto:c...@claudiokuenzler.com] Sent: Friday, March 09, 2012 7:46 AM To: Nagios Users List Subject: Re: [Nagios-users] check_disk '/sys not accessable' Nagios 3.3.1. Two identical RHEL6.1 systems, and all I’m trying to do is get a total disk space reading. Well the systems are not identical as the manually launched plugin output of yours shows: [nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); [nagios@server2 /]$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 22004 MB (77% inode=96%); /dev/shm 498 MB (100% inode=99%); /boot 387 MB (84% inode=99%); Note the /home mount point. Have you checked the servers for the different mount points? It looks like on server2 /sys is seen as a partition or mount point while on server1 the check seems to ignore it successfully? Any idea why server2 thinks /sys is a partition or mount point? Can you try to launch it specifically on /sys and output the results (on both servers)? ./check_disk -w 10% -c 5% -p /sys Then try to exclude /sys from the check: ./check_disk -w 10% -c 5% -x /sys By the way the error you're seeing seems to be triggered from this code (at the bottom of the source file): void stat_path (struct parameter_list *p) { /* Stat entry to check that dir exists and is accessible */ if (verbose = 3) printf(calling stat on %s\n, p-name); if (stat (p-name, stat_buf[0])) { if (verbose = 3) printf(stat failed on %s\n, p-name); printf(DISK %s - , _(CRITICAL)); die (STATE_CRITICAL, _(%s %s: %s\n), p-name, _(is not accessible), strerror(errno)); } } On Fri, Mar 9, 2012 at 1:16 PM, Boyer, Timothy A. timothy.bo...@opm.gov wrote: It's Permissive, so that can't be it. Thanks... -Original Message- From: Sigmund Brandstaetter [mailto:s...@maniladev.com] Sent: Thursday, March 08, 2012 4:12 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] check_disk '/sys not accessable' Tim, How about SELinux, is it maybe on only on the one that is making the problem? Cheers Sigmund On 3/9/2012 00:49, Boyer, Timothy A. wrote: Nagios 3.3.1. Two identical RHEL6.1 systems, and all I'm trying to do is get a total disk space reading. So nrpe is running on both, with the identical command in nrpe.cfg: command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ command[check_all_disk]=/usr/lib/nagios/plugins/check_disk -w $ARG1$ -c $ARG2$ Running as user nagios from the central server. One works fine: -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server1 -c check_all_disk -a 20% 10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home 7507 MB (98% inode=99%); the other gives me this: -sh-4.1$ /usr/lib/nagios/plugins/check_nrpe -H server2 -c check_all_disk -a 20% 10% DISK CRITICAL - /sys is not accessible: Permission denied Identical versions of nrpe (2.12); a diff on check_disk shows they're both identical; both commands work correctly locally run as user Nagios: [nagios@server1 ~)$ /usr/lib/nagios/plugins/check_disk -w20% -c10% DISK OK - free space: / 24673 MB (98% inode=99%); /dev/shm 12007 MB (100% inode=99%); /boot 154 MB (65% inode=99%); /home
Re: [Nagios-users] check_http issue
I know this doesn't answer your questions, but did you give the check_ssl_cert plugin a try? https://svn.id.ethz.ch/nagios_plugins/check_ssl_cert/check_ssl_cert I'm using this plugin to check ssl certificates, not only on http but also tls On Mon, Mar 12, 2012 at 10:04 AM, Sunny Jaisinghani sunny_jaisingh...@symantec.com wrote: Hello, I am using the check_http plugin for checking the SSL cert expiry. Even if the cert is not due to expire very soon, the plugin reports as CRITICAL. I have few more certs for which the plugin reports correct status. What could be going wrong over here. ?? BAD # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8001 -w 30 -c 30 -C 30 CRITICAL - Certificate expired on 02/17/2062 22:44. # openssl x509 -in abc.example.com.crt -noout –enddate notAfter=Feb 17 22:57:24 2062 GMT GOOD # /usr/lib/nagios/plugins/check_http --ssl -H XX.XX.XX.XX -p 8000 -w 30 -c 30 -C 30 OK - Certificate will expire on 02/09/2013 23:59. # openssl x509 -in xyz.example.com.crt -noout –enddate notAfter=Feb 10 23:59:59 2013 GMT Thanks Sunny -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] monitoring batch jobs
On Fri, Mar 9, 2012 at 9:40 AM, Marki jm+nagios-us...@roth.lu wrote: Hey there, is there a recommended way of monitoring batch jobs when the only kind-of log available are mails sent by each part of the job? In the batchfile you could add a status output to an external file, which is then checked by Nagios. Probably the easiest way to do this. In that case one should also find out if a certain mail was NOT sent, i.e. has not arrived in a certain timeperiod. While all of this is somehow scriptable, I thought I would ask first if there exists something to build such a solution upon... Thanks marki -- 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
Re: [Nagios-users] Root_partition check not reading correctly
Please show the service definition. How do you launch the check? By ssh, by nrpe? Seems you're using the same IP address or dns name as the hostname value. Can you verify this? On Fri, Mar 9, 2012 at 1:19 PM, Wolf Halton wolf.hal...@gmail.com wrote: All my machines show a similar output, regardless of how much is available on their root partitions. Root Partition OK 03-09-2012 07:11:08 28d 22h 18m 15s 1/3 DISK OK - free space: / 15903 MB (86% inode=93%): Up to and including ones that are 100% full. No alarms - ever. Is a client app needed on the monitored clients that has not been mentioned? -Wolf -- This Apt Has Super Cow Powers - http://sourcefreedom.com Advancing Libraries Together - http://LYRASIS.org -- 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 -- 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
Re: [Nagios-users] check_http 1.4.15
Scott, Did you read my answer at all (Feb 27th)? You're looking for something that hasn't been implemented. Here again the post: The link you posted is a user-contributed patch for check_http, posted on the tracker on Jan 3rd 2012. Nagios Plugins v. 1.4.15 were released in July 2010 so you can be sure that this patch has not made it into 1.4.15. You have two options: - Wait and hope that this patch will make it sometime into the branch and next version release (good luck with that) - Re-compile check_http from source with the patch yourself - ck On Wed, Feb 29, 2012 at 11:38 PM, Werner, Robert rwer...@pomwonderful.comwrote: Can you include the command line you are using and what you expect it to do? ** ** -- Robert G. Werner Oracle Apps Systems Administrator rwer...@pomwonderful.com 559.521.5089 ** ** *From:* Scott Ford [mailto:sm_f...@yahoo.com] *Sent:* Tuesday, February 28, 2012 12:03 PM *To:* nagios-users@lists.sourceforge.net *Subject:* [Nagios-users] check_http 1.4.15 ** ** All, I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge that showed the latest version of check_http included an option for regular expression searches in the header of the file. That option does not seem to be available. Can anyone shed some light on this? This is the post I read... ** ** http://sourceforge.net/tracker/index.php?func=detailaid=3469275group_id=29880atid=397599 ** ** Thank you in advance, ** ** Scott ** ** ** ** [sforddev plugins]# ./check_http --help check_http v1.4.15 (nagios-plugins 1.4.15) Copyright (c) 1999 Ethan Galstad nag...@nagios.org Copyright (c) 1999-2008 Nagios Plugin Development Team nagiosplug-de...@lists.sourceforge.net This plugin tests the HTTP service on the specified host. It can test normal (http) and secure (https) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times. Usage: check_http -H vhost | -I IP-address [-u uri] [-p port] [-w warn time] [-c critical time] [-t timeout] [-L] [-a auth] [-b proxy_auth] [-f ok|warning|critcal|follow|sticky|stickyport] [-e expect] [-s string] [-l] [-r regex | -R case-insensitive regex] [-P string] [-m min_pg_size:max_pg_size] [-4|-6] [-N] [-M age] [-A string] [-k string] [-S] [--sni] [-C age] [-T content-type] [-j method] NOTE: One or both of -H and -I must be specified Options: -h, --help Print detailed help screen -V, --version Print version information -H, --hostname=ADDRESS Host name argument for servers using host headers (virtual host) Append a port to include it in the header (eg: example.com:5000) -I, --IP-address=ADDRESS IP address or name (use numeric address if possible to bypass DNS lookup). -p, --port=INTEGER Port number (default: 80) -4, --use-ipv4 Use IPv4 connection -6, --use-ipv6 Use IPv6 connection -e, --expect=STRING Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response (default: HTTP/1.) If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing) -s, --string=STRING String to expect in the content -u, --url=PATH URL to GET or POST (default: /) -P, --post=STRING URL encoded http POST data -j, --method=STRING (for example: HEAD, OPTIONS, TRACE, PUT, DELETE) Set HTTP method. -N, --no-body Don't wait for document body: stop reading after headers. (Note that this still does an HTTP GET or POST, not a HEAD.) -M, --max-age=SECONDS Warn if document is more than SECONDS old. the number can also be of the form 10m for minutes, 10h for hours, or 10d for days. -T, --content-type=STRING specify Content-Type header media type when POSTing -l, --linespan Allow regex to span newlines (must precede -r or -R) -r, --regex, --ereg=STRING Search page for regex STRING -R, --eregi=STRING Search page for case-insensitive regex STRING --invert-regex Return CRITICAL if found, OK if not -a, --authorization=AUTH_PAIR Username:password on sites with basic authentication -b, --proxy-authorization=AUTH_PAIR Username:password on proxy-servers with basic authentication -A, --useragent=STRING String to be sent in http header as User Agent -k, --header=STRING Any other tags to be sent in http header. Use multiple times for additional headers -L, --link Wrap output in HTML link (obsoleted by urlize) -f, --onredirect=ok|warning|critical|follow|sticky|stickyport How to handle redirected pages. sticky is like follow but stick to the specified IP address. stickyport also ensure post stays the same. -m, --pagesize=INTEGER:INTEGER Minimum page size required (bytes) : Maximum page size
Re: [Nagios-users] service parameters
Depending on the checks/the plugins you use for the checks, this will increase the load and decrease performance on the Nagios server. Also, it doesn't make sense to check some services every minute, for example check_disk (disk utilization). I suggest you create a service definition template with the relevant parameters (check_interval 1, retry_check_interval 1) and use this template for the 100 services. On Thu, Mar 1, 2012 at 10:12 AM, Marco Borsani m.bors...@it.net wrote: Hi all ** ** My actual environment has about 1000/1500 services. Usually I set the parameter normal_check_interval at 5 and the retry_check_interval at 1. ** ** One customer ask me to set both parameters to 1 (for about 100 services) , but I am afraid this could be to heavy for the server and the network…what do you think about ? ** ** Are there any parameters inside nagios.cfg that I will be able to increase the performance if is it necessary ? ** ** 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 Libero S.r.l. ** ** -- 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 -- 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
Re: [Nagios-users] Host Availability Report Strange Output
You're looking at the report for the last (almost) 8 days, from February 19th till February 26th (included). If your host was added later than the 19th the report fills up the time, this is declared as Undetermined. If you generate a report for, lets say, the last 2days, you shouldn't see 'Undetermined' values anymore. On Mon, Feb 27, 2012 at 11:23 AM, Andrew Thompson and...@fulgent.co.ukwrote: Can anybody tell me what is meant by an “Undetermined state” and the reason being “insufficient data”? ** ** I added a host last week on Friday 24th and its had no issues at all but my weekly email report gave this output for it ** ** ** ** ** ** *HOST* Availability Report Last Updated: Mon Feb 27 00:01:18 GMT 2012 Nagios® Core™ 3.3.1 - Logged in as *nagiosadmin* ** ** *HOST* '*A WEBSITE*' 19-02-2012 00:01:00 to 26-02-2012 23:59:00 Duration: 7d 23h 58m 0s First assumed host state: First assumed service state [Unspecified \/] [Unspecified \/] Report period: Backtracked archives: [[ Current time range ] \/] 4 [Update] [ Availability report completed in 0 min 0 sec ] ** ** *HOST* State Breakdowns: http://trends.cgi?host=FULGENT+HELPDESKt1=1329609660t2=1330300740includesoftstates=noassumestateretention=yesassumeinitialstates=yesassumestatesduringnotrunning=yesinitialassumedhoststate=0backtrack=4 *State*** *Type / Reason*** *Time*** *% Total Time*** *% Known Time*** UP Unscheduled 4d 23h 59m 0s 62.502% 100.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 4d 23h 59m 0s 62.502% 100.000% DOWN Unscheduled 0d 0h 0m 0s 0.000% 0.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% UNREACHABLE Unscheduled 0d 0h 0m 0s 0.000% 0.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% Undetermined Nagios Not Running 0d 0h 0m 0s 0.000% Insufficient Data 2d 23h 59m 0s 37.498% Total 2d 23h 59m 0s 37.498% All Total 7d 23h 58m 0s 100.000% 100.000% ** ** State Breakdowns For *HOST* Services: *Service*** *% Time OK*** *% Time Warning*** *% Time Unknown*** *% Time Critical*** *% Time Undetermined*** SITE CHECKhttp://avail.cgi?host=FULGENT+HELPDESKservice=SITE+CHECKt1=1329609660t2=1330300740backtrack=4assumestateretention=yesassumeinitialstates=yesassumestatesduringnotrunning=yesinitialassumedhoststate=0initialassumedservicestate=0showscheduleddowntime=yes 62.502% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 37.498% Average 62.502% (100.000%) 0.000% (0.000%) 0.000% (0.000%) 0.000% (0.000%) 37.498% ** ** ** ** ** ** Now I understand that the Unscheduled uptime is right as its 5 days into the weekly report before the host was added. ** ** But I don’t understand the bottom “undetermined” stats ** ** Anybody know if this? ** ** Thanks -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_http 1.4.15
Hi Scott, The link you posted is a user-contributed patch for check_http, posted on the tracker on Jan 3rd 2012. Nagios Plugins v. 1.4.15 were released in July 2010 so you can be sure that this patch has not made it into 1.4.15. You have two options: - Wait and hope that this patch will make it sometime into the branch and next version release (good luck with that) - Re-compile check_http from source with the patch yourself On Thu, Feb 23, 2012 at 11:24 PM, Scott Ford sm_f...@yahoo.com wrote: All, I installed Nagios Plugins v.1.4.15 after reading a post on Sourceforge that showed the latest version of check_http included an option for regular expression searches in the header of the file. That option does not seem to be available. Can anyone shed some light on this? This is the post I read... http://sourceforge.net/tracker/index.php?func=detailaid=3469275group_id=29880atid=397599 Thank you in advance, Scott [sforddev plugins]# ./check_http --help check_http v1.4.15 (nagios-plugins 1.4.15) Copyright (c) 1999 Ethan Galstad nag...@nagios.org Copyright (c) 1999-2008 Nagios Plugin Development Team nagiosplug-de...@lists.sourceforge.net This plugin tests the HTTP service on the specified host. It can test normal (http) and secure (https) servers, follow redirects, search for strings and regular expressions, check connection times, and report on certificate expiration times. Usage: check_http -H vhost | -I IP-address [-u uri] [-p port] [-w warn time] [-c critical time] [-t timeout] [-L] [-a auth] [-b proxy_auth] [-f ok|warning|critcal|follow|sticky|stickyport] [-e expect] [-s string] [-l] [-r regex | -R case-insensitive regex] [-P string] [-m min_pg_size:max_pg_size] [-4|-6] [-N] [-M age] [-A string] [-k string] [-S] [--sni] [-C age] [-T content-type] [-j method] NOTE: One or both of -H and -I must be specified Options: -h, --help Print detailed help screen -V, --version Print version information -H, --hostname=ADDRESS Host name argument for servers using host headers (virtual host) Append a port to include it in the header (eg: example.com:5000) -I, --IP-address=ADDRESS IP address or name (use numeric address if possible to bypass DNS lookup). -p, --port=INTEGER Port number (default: 80) -4, --use-ipv4 Use IPv4 connection -6, --use-ipv6 Use IPv6 connection -e, --expect=STRING Comma-delimited list of strings, at least one of them is expected in the first (status) line of the server response (default: HTTP/1.) If specified skips all other status line logic (ex: 3xx, 4xx, 5xx processing) -s, --string=STRING String to expect in the content -u, --url=PATH URL to GET or POST (default: /) -P, --post=STRING URL encoded http POST data -j, --method=STRING (for example: HEAD, OPTIONS, TRACE, PUT, DELETE) Set HTTP method. -N, --no-body Don't wait for document body: stop reading after headers. (Note that this still does an HTTP GET or POST, not a HEAD.) -M, --max-age=SECONDS Warn if document is more than SECONDS old. the number can also be of the form 10m for minutes, 10h for hours, or 10d for days. -T, --content-type=STRING specify Content-Type header media type when POSTing -l, --linespan Allow regex to span newlines (must precede -r or -R) -r, --regex, --ereg=STRING Search page for regex STRING -R, --eregi=STRING Search page for case-insensitive regex STRING --invert-regex Return CRITICAL if found, OK if not -a, --authorization=AUTH_PAIR Username:password on sites with basic authentication -b, --proxy-authorization=AUTH_PAIR Username:password on proxy-servers with basic authentication -A, --useragent=STRING String to be sent in http header as User Agent -k, --header=STRING Any other tags to be sent in http header. Use multiple times for additional headers -L, --link Wrap output in HTML link (obsoleted by urlize) -f, --onredirect=ok|warning|critical|follow|sticky|stickyport How to handle redirected pages. sticky is like follow but stick to the specified IP address. stickyport also ensure post stays the same. -m, --pagesize=INTEGER:INTEGER Minimum page size required (bytes) : Maximum page size required (bytes) -w, --warning=DOUBLE Response time to result in warning status (seconds) -c, --critical=DOUBLE Response time to result in critical status (seconds) -t, --timeout=INTEGER Seconds before connection times out (default: 10) -v, --verbose Show details for command-line debugging (Nagios may truncate output) Notes: This plugin will attempt to open an HTTP connection with the host. Successful connects return STATE_OK, refusals and timeouts return STATE_CRITICAL other errors return STATE_UNKNOWN. Successful connects, but incorrect reponse messages from the host result in
Re: [Nagios-users] add info on the body of email
Sure, you just need to modify the command, which sends the e-mail. For example: # 'notify-service-by-email' command definition define command{ command_namenotify-service-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$\nYOURURL | /usr/bin/mailx -s ** $NOTIFICATIONTYPE$ Serv ice Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } On Sun, Feb 5, 2012 at 2:11 PM, Nelson Serafica ntseraf...@gmail.comwrote: I just want to confirm. Would it be possible to modify the email content for each services? I have an email alert and I want to put an info (e.g. url) on the content of the email. Below is sample of the email content. * Nagios * Notification Type: PROBLEM Service: SMTP_25 Host: mta Address: 10.0.1.20 State: CRITICAL Date/Time: Sun Feb 5 21:02:47 EST 2012 Additional Info: CRITICAL - Socket timeout after 10 seconds *-- I want to put a URL here -* -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_Ping plugin not Incrementing Check Attempt Value
Yes, you're right. But what's strange in your log are also the missing SOFT states, where are they? Did you define the service to be checked only once (max_check_attempts 1), every minute (check_interval and retry_interval 1) ? Here's an example of a typical soft-to-hard-change: Jan 31 05:15:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space F:;WARNING;SOFT;1;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19 Gb (8%) Jan 31 05:18:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space F:;WARNING;SOFT;2;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19 Gb (8%) Jan 31 05:21:09 nagios-server nagios: SERVICE ALERT: fileserver;Drive Space F:;WARNING;HARD;3;f:\ - total: 49.99 Gb - used: 45.80 Gb (92%) - free 4.19 Gb (8%) The 3rd check was handled as HARD state. I'm sure you know how that all works, but the missing SOFT states are strange anyhow. Could you post the complete definition of this service? Maybe that'll give us a hint. Another question: Is the Ping Check used for the same host for which the check is defined for (host_name) or is this just a ping to another remote host? If the line was down, the target host was definitely down as well, and for Nagios it wouldn't make sense to send notifications for the services defined on a host which is down. On Mon, Jan 30, 2012 at 8:55 PM, Robert V. Bolton rob...@robertvbolton.comwrote: On Mon, Jan 30, 2012 at 11:39 AM, Claudio Kuenzler c...@claudiokuenzler.com wrote: It looks like you use parent-child-relationships? That would explain why it's written Host Unreachable (172.21.10.170) instead of Host Down. Was the parent of this host down as well? In this case, Nagios 'knows' that it doesn't make sense to continue checks on the child hosts. This host is duel homed using both Ethernet and Infiniband networks. To Nagios's point of view the parent of this host is the Ethernet switch that it is plugged into, which didn't go down at all during this outage. Host Unreachable is a valid ICMP code, so that's why the plugin reported this error, not because of any Nagios parent/child relationship. So in this situation Nagios should have increased the check attempts count by one until the max check attempts threshold was reached, thus sending out a service notification. Is this an error in Nagios or the check_ping plugin. I'm using Nagios v3.2.3 and check_ping v1.4.15 by the way. -- *Robert V. Bolton* Email: rob...@robertvbolton.com Web: http://robertvbolton.com -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- 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
Re: [Nagios-users] NRPE/NSClient++ CheckCPU Error?
In the NSClient++ documentation, CheckCPU works with normal integers as thresholds (so no %-sign required). As an alternative, you can also check the CPU Utilization with the NSClientListener/check_nt plugin: http://nsclient.org/nscp/wiki/NSClientListener I use this way of checking the cpu loads/percentages for several hundreds of Windows servers and it works just fine. On Mon, Jan 30, 2012 at 12:06 PM, Matthew Jurgens nagiosus...@edcint.co.nzwrote: You might like to try www.edcint.co.nz/checkwmiplus On 30/01/2012 9:07 PM, Robert Jackson wrote: Why does the NSClient++ command CheckCPU always sit as a critical condition within Nagios? The command I have in place is: ** ** $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckCPU -a warn=$ARG1$ crit=$ARG2$ time=5m ** ** $ARG1$ is set to 80% and $ARG2$ is set to 95% (have tried with and without % symbol) ** ** The output display in Nagios is: CRITICAL: 5m: average load 15% critical ** ** Anyone have any ideas why this is generating a critical condition? ** ** Regards, Rab. = Robert Jackson Phone: +44 (0) 141 332 7999 IT Manager Fax: +44 (0) 141 331 2820 Walker Martyn Ltd 1 Park Circus PlaceEmail: r...@walkermartyn.co.uk Glasgow G3 6AH, Scotland Web: http://www.walkermartyn.co.uk = -- Smartmon System Monitoring http://www.smartmon.com.au www.smartmon.com.au -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_Ping plugin not Incrementing Check Attempt Value
It looks like you use parent-child-relationships? That would explain why it's written Host Unreachable (172.21.10.170) instead of Host Down. Was the parent of this host down as well? In this case, Nagios 'knows' that it doesn't make sense to continue checks on the child hosts. On Mon, Jan 30, 2012 at 7:24 PM, Robert V. Bolton rob...@robertvbolton.comwrote: Over the weekend I had a weird event happen in my monitoring set. I have a host that has an Infiniband interface, and we are running the IP protocol over Infiniband, while using the check_ping plugin to verify network connectivity. This weekend our Ethernet to Infiniband gateway went down and the check_ping plugin reported that state as CRITICAL, however the it didn't increment the check attempt value, and thus a notification wasn't sent out since the max check attempts threshold was never reached. I've included some of the output of /var/log/messages that indicates the problem. Has anyone else seen this issue? As a side note I've since changed my service check to use check_icmp instead of check_ping. Jan 28 17:12:12 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:13:12 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:14:12 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:15:12 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:42:12 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:43:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:44:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:47:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:48:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:49:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 17:50:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:31:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:32:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:33:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:42:23 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:43:23 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:44:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) Jan 28 18:45:22 monitor nagios: SERVICE ALERT: hamrock.chpc.utah.edu;IPv4 IPoIB Ping Check;CRITICAL;HARD;1;CRITICAL - Host Unreachable (172.21.10.170) -- *Robert V. Bolton* Email: rob...@robertvbolton.com Web: http://robertvbolton.com -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you
Re: [Nagios-users] Weekley Report for System uptime
This is quite easy to achieve, once you've downloaded the report. You also have the possibility to download the report as csv file, that's even easier to parse the results. Don't hesitate to write me off-list if you have questions. On Thu, Jan 26, 2012 at 5:30 PM, FTL Nagios ftlnag...@gmail.com wrote: Hi Claudio This is exactly what id like to achieve The uptime data pulled from the Nagios web UI at 9am each week and then email me with all server uptimes. I will check out your link now. If anybody has any more ideas/ simpler ways please share them Thanks in advance On Thu, Jan 26, 2012 at 4:20 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: I don't know if an addon or something similar exists, but you can also create a script, which pulls the reports directly from the web-interface. You can then parse the downloaded data, create pdf's (if wanted) and send it by e-mail on a monthly schedule. I did exactly this with a weekly schedule and wrote a how-to here: http://www.claudiokuenzler.com/blog/117/create-automatic-nagios-availabiltiy-report-pdf I would be surprised though, if there wasn't a simpler solution to achieve this. On Thu, Jan 26, 2012 at 5:10 PM, FTL Nagios ftlnag...@gmail.com wrote: Hello, I monitor alot of remote servers and 1 of the service checks i do is check_nt UPTIME Is it possible to have Nagios email me a report of all the system uptimes say every Monday morning at 9am? I pass on my thanks in advance for any help on the matter. -- 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 -- 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 -- 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 -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] osx nrpe: No output returned from plugin
While Nagios executes the check, do you see a connection on your Mac ? Is anything written in the syslog on your Mac? Something seems to be strange about your output: /usr/lib/nagios/plugins/check_nrpe -H mac.my.domain -c check_users USERS OK - 3 users currently logged in |users=0;5;10;0 Take a look at the perfdata, it shows 0 users while the output shows 3 users. Is that a copy+paste error or is this the actual result when you launch the check on the command line? On Thu, Jan 26, 2012 at 5:37 PM, John Stile j...@stilen.com wrote: Recently I tried to setup nrpe monitoring of an osx system by installing nagios-plugins-1.4.15.tar.gz and nrpe-2.12.tar.gz on osx 10.5, and locally everything works fine. This works: /usr/local/nagios/libexec/check_nrpe -H localhost -c check_users USERS OK - 3 users currently logged in |users=3;5;10;0 Next I tried to configure my nagios server (debian sarge with packaged nagios 1.3-cvs), and from the server command line, this works: /usr/lib/nagios/plugins/check_nrpe -H mac.my.domain -c check_users USERS OK - 3 users currently logged in |users=0;5;10;0 The problem is adding the monitor to /etc/nagios/services.cfg define service{ use generic-service host_name mac.my.domain service_description Users is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval1 contact_groups linux-admins notification_interval 120 notification_period 24x7 notification_optionsw,u,c,r check_command check_nrpe!check_users } Results in web interface shows: Status: UNKNOWN Status Information: (No output returned from plugin) All other nrpe hosts are monitoring well. I have no other osx nrpe monitored machines as a reference. Can anyone offer some ideas (other than upgrade)? -- 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 -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Weekley Report for System uptime
I don't know if an addon or something similar exists, but you can also create a script, which pulls the reports directly from the web-interface. You can then parse the downloaded data, create pdf's (if wanted) and send it by e-mail on a monthly schedule. I did exactly this with a weekly schedule and wrote a how-to here: http://www.claudiokuenzler.com/blog/117/create-automatic-nagios-availabiltiy-report-pdf I would be surprised though, if there wasn't a simpler solution to achieve this. On Thu, Jan 26, 2012 at 5:10 PM, FTL Nagios ftlnag...@gmail.com wrote: Hello, I monitor alot of remote servers and 1 of the service checks i do is check_nt UPTIME Is it possible to have Nagios email me a report of all the system uptimes say every Monday morning at 9am? I pass on my thanks in advance for any help on the matter. -- 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 -- 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
Re: [Nagios-users] Nagios is sending critical false alerts about current users
When Nagios sends the notifications, how is the actual status of that service on the UI? Also, do you see the notifications as they were emailed on the UI (in Notifications)? On Mon, Jan 23, 2012 at 10:06 PM, Saikrishna lovesaikris...@gmail.comwrote: Hello All, Nagios seems to be sending false alerts about few hosts, (ex: There were no users on one host and still Nagios was reporting a critical alert and says 6 users are logged in. How do I fix this one? Also, I have installed nagios and added 12 hosts as a start and monitoring few details on them, how do I send false alerts and check if they are being reported through nagios server? [root@proof etc]# uname -a Linux proof 2.6.18-274.el5 #1 SMP Fri Jul 22 04:43:29 EDT 2011 x86_64 x86_64 x86_64 GNU/Linux [root@proof etc]# cat /etc/redhat-release CentOS release 5.7 (Final) [root@proof objects]# /usr/local/nagios/bin/nagios -v Nagios Core 3.2.3 Copyright (c) 2009-2010 Nagios Core Development Team and Community Contributors Copyright (c) 1999-2009 Ethan Galstad Last Modified: 10-03-2010 License: GPL Website: http://www.nagios.org Usage: /usr/local/nagios/bin/nagios [options] main_config_file Options: -v, --verify-config Verify all configuration data -s, --test-schedulingShows projected/recommended check scheduling and other diagnostic info based on the current configuration files. -x, --dont-verify-paths Don't check for circular object paths - USE WITH CAUTION! -p, --precache-objects Precache object configuration - use with -v or -s options -u, --use-precached-objects Use precached object config file -d, --daemon Starts Nagios in daemon mode, instead of as a foreground process Visit the Nagios website at http://www.nagios.org/ for bug fixes, new releases, online documentation, FAQs, information on subscribing to the mailing lists, and commercial support options for Nagios. [root@proof objects]# /usr/local/nagios/bin/nagiostats Nagios Stats 3.2.3 Copyright (c) 2003-2008 Ethan Galstad (www.nagios.org) Last Modified: 10-03-2010 License: GPL CURRENT STATUS DATA -- Status File:/usr/local/nagios/var/status.dat Status File Age:0d 0h 0m 7s Status File Version:3.2.3 Program Running Time: 0d 1h 16m 58s Nagios PID: 28047 Used/High/Total Command Buffers:0 / 0 / 4096 Total Services: 78 Services Checked: 78 Services Scheduled: 78 Services Actively Checked: 78 Services Passively Checked: 0 Total Service State Change: 0.000 / 12.700 / 1.263 % Active Service Latency: 0.015 / 12.142 / 0.551 sec Active Service Execution Time: 0.005 / 4.028 / 0.678 sec Active Service State Change:0.000 / 12.700 / 1.263 % Active Services Last 1/5/15/60 min: 16 / 44 / 78 / 78 Passive Service Latency:0.000 / 0.000 / 0.000 sec Passive Service State Change: 0.000 / 0.000 / 0.000 % Passive Services Last 1/5/15/60 min:0 / 0 / 0 / 0 Services Ok/Warn/Unk/Crit: 65 / 0 / 0 / 13 Services Flapping: 0 Services In Downtime: 0 Total Hosts:13 Hosts Checked: 13 Hosts Scheduled:13 Hosts Actively Checked: 13 Host Passively Checked: 0 Total Host State Change:0.000 / 0.000 / 0.000 % Active Host Latency:4.145 / 23.283 / 12.981 sec Active Host Execution Time: 4.008 / 4.016 / 4.010 sec Active Host State Change: 0.000 / 0.000 / 0.000 % Active Hosts Last 1/5/15/60 min:0 / 13 / 13 / 13 Passive Host Latency: 0.000 / 0.000 / 0.000 sec Passive Host State Change: 0.000 / 0.000 / 0.000 % Passive Hosts Last 1/5/15/60 min: 0 / 0 / 0 / 0 Hosts Up/Down/Unreach: 13 / 0 / 0 Hosts Flapping: 0 Hosts In Downtime: 0 Active Host Checks Last 1/5/15 min: 3 / 22 / 55 Scheduled: 0 / 13 / 33 On-demand: 3 / 9 / 22 Parallel:0 / 13 / 33 Serial: 0 / 0 / 0 Cached: 3 / 9 / 22 Passive Host Checks Last 1/5/15 min:0 / 0 / 0 Active Service Checks Last 1/5/15 min: 16 / 44 / 135 Scheduled: 16 / 44 / 135 On-demand: 0 / 0 / 0 Cached: 0 / 0 / 0 Passive Service Checks Last 1/5/15 min: 0 / 0 / 0 External Commands Last 1/5/15 min: 0 / 0 / 0
Re: [Nagios-users] Windows Active Sessions
There's also an existing plugin for this: check_user_count.bat http://exchange.nagios.org/directory/Plugins/Remote-Access/Count-number-of-terminal-server-sessions/details However I suggest to use checkCounter, as Jim Avery mentioned it. That way you keep independent of additional files. On Mon, Jan 23, 2012 at 2:54 PM, Robert Jackson r...@walkermartyn.co.ukwrote: Hi Jim, Many thanks for the excellent reply. I'll give it a bash and see if I can get it going. -Original Message- From: Jim Avery [mailto:j...@jimavery.me.uk] Sent: Monday 23 January 2012 13:43 To: Nagios Users List Subject: r...@walkermartyn.co.uk - Re: [Nagios-users] Windows Active Sessions - Bayesian Filter detected spam On 23 January 2012 13:09, Robert Jackson r...@walkermartyn.co.uk wrote: Does anyone know how to return the number of active sessions from a Windows Terminal server? I have installed the NSClient++ service on the Windows server and obviously have the NRPE plugin installed on my Nagios host. Rab, if I've understood correctly then you can query a Windows performance counter. I use an entry in the NSClient++ config file in the [External Alias] section that looks like this:- alias_CheckCounter-ts_act_sess=CheckCounter Counter:sessions=\Terminal Services\Active Sessions ShowAll MaxWarn=40 MaxCrit=50 Then on the Nagios side, the command is simply check_nrpe -H thehostname -c alias_CheckCounter-ts_act_sess So the command definition in Nagios is:- define command{ command_namecheck_nrpe command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -u $ARG1$ } And the service definition looks something like this:- define service{ use srv-pnp,generic-service host_name myhost service_description TS_Active_Sessions check_command check_nrpe!-c ts_act_sess notes Number of Terminal Services Active Sessions contact_groupsnotify-engineers } There are lots of similar ways to do this sort of think using NSClient++. Precisely how you set it up depends a bit on how obsessive you are about security and your particular preference. The method shown above means you can have allow_arguments=0 and allow_nasty_meta_chars=0 in the [nrpe] section which is good for security. The downside is that if you need to change the warning theshold, you have to edit the nsc.ini file on the target system. hth, Jim -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this internet E-mail is confidential and is intended solely for the addressee. Access, copying or re-use of information in it by anyone else is unauthorised. Any views or opinions presented are solely those of the author and do not necessarily represent those of Walker Martyn Ltd or any of its affiliates. If you are not the intended recipient please contact administra...@walkermartyn.co.uk Walker Martyn Ltd, company number SC197533. Company is registered in Scotland and has its registered office at 1 Park Circus Place, Glasgow G3 6AH, UK. -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now! http://p.sf.net/sfu/learndevnow-dev2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Try before you buy = See our experts in action! The most comprehensive online learning library for Microsoft developers is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3, Metro Style Apps, more. Free future releases when you subscribe now!
Re: [Nagios-users] R: check_nt : segmentation fault
It's a bummer you can't upgrade to 3.x... I'm not sure if anyone still uses Nagios 1.x on a 64bit machine. Maybe this is a problem of the old Nagios (core) version itself? You can just for the fun of it install a new Nagios 3.x on a similar machine and just set up some basic configuration to compare the syslogs of both machines. On Thu, Jan 19, 2012 at 9:34 AM, Marco Borsani m.bors...@it.net wrote: I can't upgrade to 3. I compiled nagios and plugins on the new HW, not copied them from the older server. It seems that check_nt run correctly, but I still receive those errors in the syslog. -Messaggio originale- Da: Assaf Flatto [mailto:nag...@flatto.net] Inviato: mercoledì 18 gennaio 2012 16:47 A: Nagios Users List Oggetto: Re: [Nagios-users] check_nt : segmentation fault Please tell me that the nagios version is a typo. if not , you should upgrade to version 3 , and the sooner the better . Since check_nt is communicating with windows server was there any change on the MS platforms ? Did you compile the chdck_nt for the old machine , and just copied across ? Marco Borsani wrote: Hi all Nagios server: 1.4.1 Nagios plugins : 1.4.15 SO: Centos 5.7 64bit I still receive this errors (but check_nt runs on every server): check_nt[10383]: segfault at rip 00394a637a04 rsp 7fff6bf3d3e0 error 4 check_nt[15038]: segfault at rip 00394a637a04 rsp 7fff90fe42a0 error 4 check_nt[19873]: segfault at rip 00394a637a04 rsp 7fff222f89b0 error 4 check_nt[24428]: segfault at rip 00394a637a04 rsp 7d838f10 error 4 check_nt[29177]: segfault at rip 00394a637a04 rsp 7fffaad060c0 error 4 check_nt[1510]: segfault at rip 00394a637a04 rsp 7fffb8555450 error 4 check_nt[6387]: segfault at rip 00394a637a04 rsp 7fff42383290 error 4 check_nt[11234]: segfault at rip 00394a637a04 rsp 7fff15652e90 error 4 check_nt[20926]: segfault at rip 00394a637a04 rsp 7fffc118f5b0 error 4 check_nt[25407]: segfault at rip 00394a637a04 rsp 7fffd984fec0 error 4 check_nt[30172]: segfault at rip 00394a637a04 rsp 7fff847a95d0 error 4 check_nt[2476]: segfault at rip 00394a637a04 rsp 7fff4fc15250 error 4 ……….. Before, with same Nagios releases, but with another hardware (and centos 5.3 32 bit), no erros. Any idea ? 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 … -- -- -- 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 -- 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 -- 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
Re: [Nagios-users] check_nt : segmentation fault
Were the plugins compiled for 32bit? Now you're using them on a 64bit machine. I'd redownload the Nagios plugins and recompile them on your new hw/architecture. On Wed, Jan 18, 2012 at 4:12 PM, Marco Borsani m.bors...@it.net wrote: Hi all ** ** Nagios server: 1.4.1 Nagios plugins : 1.4.15 SO: Centos 5.7 64bit ** ** I still receive this errors (but check_nt runs on every server): ** ** check_nt[10383]: segfault at rip 00394a637a04 rsp 7fff6bf3d3e0 error 4 check_nt[15038]: segfault at rip 00394a637a04 rsp 7fff90fe42a0 error 4 check_nt[19873]: segfault at rip 00394a637a04 rsp 7fff222f89b0 error 4 check_nt[24428]: segfault at rip 00394a637a04 rsp 7d838f10 error 4 check_nt[29177]: segfault at rip 00394a637a04 rsp 7fffaad060c0 error 4 check_nt[1510]: segfault at rip 00394a637a04 rsp 7fffb8555450 error 4 check_nt[6387]: segfault at rip 00394a637a04 rsp 7fff42383290 error 4 check_nt[11234]: segfault at rip 00394a637a04 rsp 7fff15652e90 error 4 check_nt[20926]: segfault at rip 00394a637a04 rsp 7fffc118f5b0 error 4 check_nt[25407]: segfault at rip 00394a637a04 rsp 7fffd984fec0 error 4 check_nt[30172]: segfault at rip 00394a637a04 rsp 7fff847a95d0 error 4 check_nt[2476]: segfault at rip 00394a637a04 rsp 7fff4fc15250 error 4 ……….. ** ** Before, with same Nagios releases, but with another hardware (and centos 5.3 32 bit), no erros. ** ** Any idea ? ** ** ** ** 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 … ** ** -- 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 -- 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
Re: [Nagios-users] Parent/Child relationship for HV/VM
I created a fake host (with IP 0.0.0.0) for the cluster with active checks and notifications disabled. This way I have one and the same parent for all VM's in that cluster. Let me show it this way: switch --- esx1 VM-CLUSTER-1 -- VM1 | esx2 | VM2 | esx3 | VM3 | esx4 |- VM4 I hope you see what I'm trying to show. In text: Parent of vm's 1-4 is the 'fake' host VM-CLUSTER-1. Parents of VM-CLUSTER-1 are esx1, esx2, esx3, esx4. Parent of esx1-4 is switch. Positive: You can represent the cluster with a host and in the map it's clearly seen which physical hosts are part of this cluster. Negative: The host will stay grey (pending) in Nagios as no check will be executed on the fake host. In Nagvis it looks good and it makes sense. On Tue, Jan 3, 2012 at 10:51 PM, Jim Avery j...@jimavery.me.uk wrote: On 3 January 2012 20:58, alexus ale...@gmail.com wrote: I have few hyper-visors that running bunch of VMs. Each VM runs on a HV and can be migrated from one host to another at any given time for whatever reason(s). Should I specify all HVs (where VM can run) for each VM as a parent? That's what I do, yes. -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev ___ 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 -- Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex infrastructure or vast IT resources to deliver seamless, secure access to virtual desktops. With this all-in-one solution, easily deploy virtual desktops for less than the cost of PCs and save 60% on VDI infrastructure costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox___ 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] MIB File Switch C-Class
Found another page: http://www.bladenetwork.net/HP-BladeSystem-2.html Here you can download the collected MIB's of all C-Class switches. 2011/12/19 Usuário do Sistema maico...@ig.com.br Thank you. I'm sure that switches are HP C-Class. this moment then more import for me is OID CPU load that switches. I will be try with your page suggested. thanks Em 19 de dezembro de 2011 17:14, Claudio Kuenzler c...@claudiokuenzler.com escreveu: Maybe you'll find the wanted MIB here: http://www.mibdepot.com/cgi-bin/vendor_index.cgi?r=hp Are you sure the switches are from HP as well? In a C-Class Bladecenter (C7000) I used to work with, there were 2 Cisco switches integrated. 2011/12/19 Usuário do Sistema maico...@ig.com.br Hello everyone, I'm searching the MIB file for switch HP C-Class. this switch is built-in inside of the HP Blade. so I wish monitor the CPU load for it but I haven't found the OID for accomplish this. if anyone has any information about MIB file HP switches or only OID for monitor CPU load please post here. thanks -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ 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 -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ 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 -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ 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 -- Write once. Port to many. Get the SDK and tools to simplify cross-platform app development. Create new or port existing apps to sell to consumers worldwide. Explore the Intel AppUpSM program developer opportunity. appdeveloper.intel.com/join http://p.sf.net/sfu/intel-appdev___ 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] MIB File Switch C-Class
Maybe you'll find the wanted MIB here: http://www.mibdepot.com/cgi-bin/vendor_index.cgi?r=hp Are you sure the switches are from HP as well? In a C-Class Bladecenter (C7000) I used to work with, there were 2 Cisco switches integrated. 2011/12/19 Usuário do Sistema maico...@ig.com.br Hello everyone, I'm searching the MIB file for switch HP C-Class. this switch is built-in inside of the HP Blade. so I wish monitor the CPU load for it but I haven't found the OID for accomplish this. if anyone has any information about MIB file HP switches or only OID for monitor CPU load please post here. thanks -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure ___ 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 -- Learn Windows Azure Live! Tuesday, Dec 13, 2011 Microsoft is holding a special Learn Windows Azure training event for developers. It will provide a great way to learn Windows Azure and what it provides. You can attend the event by watching it streamed LIVE online. Learn more at http://p.sf.net/sfu/ms-windowsazure___ 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 Graph not displaying correct values
You need to delete the already created RRD file. Once the RRD file was written, you can't change it anymore (at least not easily). Find the rrd file for your disk service and delete it, e.g. in /usr/local/nagiosgraph/rrd You can find the path to your rrd files in the nagiosgraph.conf file or you search for the rrd files on your system. The rrd file should then be recreated with the new map configuration. Oh just one more thing: You need to remove the old map entry for check_disk from your map file. Otherwise this one will continue to write the rrd instead of the new map entry. On Wed, Dec 14, 2011 at 11:26 AM, James Osbourn james.osbo...@citrix.comwrote: I tried adding this map but it did not remove the orginal values from the graph and I could not find where they are stored. I do not think that the problem is related to 100 vs 1024 as some manual calculations do not match again the value that I am seeing on the graph. ** ** It has been a while since I have played with RRD and I would of expected a standard check command from Nagios to graph correctly. It just seems to be the RRD interpolation of the performance data as the check command is outputting the correct performance data values. ** ** James ** ** *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* 13 December 2011 15:43 *To:* Nagios Users List *Subject:* Re: [Nagios-users] Nagios Graph not displaying correct values** ** ** ** Some of the default Nagiosgraph map entries are strange and behave not as expected. I basically replaced all the existing entries by own ones. If you like you can use the following one: # Service Type: check_disk # Nagiosgraph regex by Claudio Kuenzler # Check: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / # Output: DISK OK - free space: / 235120 MB (66% inode=95%): # Perfdata: /=119211MB;298635;335964;0;373294 /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ #/perfdata:(\W)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ # only / partition and push @s, [diskusage, ['used', GAUGE, $2*1000**2 ], ['total', GAUGE, $6*1000**2 ] ]; Note that this is a very basic graph which shows the total and current partition usage. Feel free to modify it :-) On Tue, Dec 13, 2011 at 11:41 AM, James Osbourn james.osbo...@citrix.com wrote: I have a weird situation where the Nagios Graph values are not the actual values for a filesystem Eg I have a filesystem and if I run a df I get $ df -h . FilesystemSize Used Avail Use% Mounted on filer01:/vol/data1443G 400G 44G 91% /mnt/filer01_data1 If I run the Nagios check_disk command I get the correct values # ../libexec/check_disk -w 10% -c 5% -p /usr/groups/sources DISK WARNING - free space: /usr/groups/sources 44073 MB (9% inode=48%);| /usr/groups/sources=409354MB;408084;430755;0;453427 But when you look at the graph the figures are all wrong Has anyone else seen this? I was going to look at the usage to try and forecast usage but it will now be very hard. I have just installed Nagios Graph based on the default installation and using the default check_disk plugin. Thanks James -- Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ ___ 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 ** ** -- Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/ ___ 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 -- Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149
Re: [Nagios-users] Nagios directory ownership
I guess you ran into a problem when some folders were not created. You installed the current version 3.3.1 from source? I also had the problem that some folders (in var) weren't created. I'll show you my conf: Everything in etc is nagios:nagios Everything in var is nagios:nagios except the folder rw: pmoinfr01:/usr/local/nagios/var # ll total 4688 drwxr-xr-x 2 nagios nagios4096 Dec 14 00:00 archives -rw-r--r-- 1 nagios nagios 5 Dec 9 14:32 nagios.lock -rw-rw-r-- 1 nagios nagios 186216 Dec 14 17:02 nagios.log -rw-r--r-- 1 nagios nagios 1105810 Dec 14 14:28 objects.cache -rw--- 1 nagios nagios 1721471 Dec 14 16:28 retention.dat drwxrwsr-x 2 nagios nagcmd4096 Dec 14 14:28 rw drwxr-xr-x 3 nagios nagios4096 Nov 14 15:21 spool -rw-rw-r-- 1 nagios nagios 1712042 Dec 14 17:08 status.dat Subfolders and files in archives and spool are also nagios:nagios. Files in rw are nagios:nagcmd. Where nagios=Nagios user, nagcmd=Nagios Command User. On Wed, Dec 14, 2011 at 4:19 PM, Marco Borsani m.bors...@it.net wrote: Hi all May you tell with which are you ownership in the Nagios directory and subdirectory ? ** ** Especially the : nagios/etc … (and subdir) nagios/var … (and subdir) ** ** 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 … ** ** -- Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/ ___ 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 -- Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/___ 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 Graph not displaying correct values
Some of the default Nagiosgraph map entries are strange and behave not as expected. I basically replaced all the existing entries by own ones. If you like you can use the following one: # Service Type: check_disk # Nagiosgraph regex by Claudio Kuenzler # Check: /usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p / # Output: DISK OK - free space: / 235120 MB (66% inode=95%): # Perfdata: /=119211MB;298635;335964;0;373294 /perfdata:(.*)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ #/perfdata:(\W)=(\d+)MB;(\d+);(\d+);(\d+);(\d+).*/ # only / partition and push @s, [diskusage, ['used', GAUGE, $2*1000**2 ], ['total', GAUGE, $6*1000**2 ] ]; Note that this is a very basic graph which shows the total and current partition usage. Feel free to modify it :-) On Tue, Dec 13, 2011 at 11:41 AM, James Osbourn james.osbo...@citrix.comwrote: I have a weird situation where the Nagios Graph values are not the actual values for a filesystem Eg I have a filesystem and if I run a df I get $ df -h . FilesystemSize Used Avail Use% Mounted on filer01:/vol/data1443G 400G 44G 91% /mnt/filer01_data1 If I run the Nagios check_disk command I get the correct values # ../libexec/check_disk -w 10% -c 5% -p /usr/groups/sources DISK WARNING - free space: /usr/groups/sources 44073 MB (9% inode=48%);| /usr/groups/sources=409354MB;408084;430755;0;453427 But when you look at the graph the figures are all wrong Has anyone else seen this? I was going to look at the usage to try and forecast usage but it will now be very hard. I have just installed Nagios Graph based on the default installation and using the default check_disk plugin. Thanks James -- Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ ___ 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 -- Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] How to monitor memory on cisco router
I've made good experience with check_cisco.pl by Ran Leibman: https://github.com/ranl/IT/blob/master/Nagios/check-cisco.pl You have to be aware though, that by default the memory check works backwards - meaning you must define at how many percent of memory _LEFT_ you want the warning. But it's easy to rewrite the warning/critical section in the plugin to set the threshold to the actual usage (e.g. warning at 80%, critical at 90%), that's what I did for my purposes. On Tue, Dec 13, 2011 at 5:52 PM, Jonny Mosco jonny.mo...@gmail.com wrote: Nagios exchange. http://exchange.nagios.org/ You can use check_snmp as well. On Tue, Dec 13, 2011 at 11:41 AM, moses neah mssn...@yahoo.com wrote: Hi all, Where can I find a plugin to monitor cisco routers memory. I got the one that monitors CPU, fan and temperature. -- Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ ___ 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 -- Systems Optimization Self Assessment Improve efficiency and utilization of IT resources. Drive out cost and improve service delivery. Take 5 minutes to use this Systems Optimization Self Assessment. http://www.accelacomm.com/jaw/sdnl/114/51450054/ ___ 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 -- Cloud Computing - Latest Buzzword or a Glimpse of the Future? This paper surveys cloud computing today: What are the benefits? Why are businesses embracing it? What are its payoffs and pitfalls? http://www.accelacomm.com/jaw/sdnl/114/51425149/___ 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_esx3 and ESX5i...
If I understand you correctly you wonder about the negative value? This happens to me from time to time as well, especially with the Network Usage. It's not related to ESXi 5 (the same happened already to ESXi 4.x) by the way. I've set a retry_check_interval to at least 3 mins for checks related to check_esx3.pl. At the second check or at least a minute later the result is correct. On Wed, Dec 7, 2011 at 8:31 AM, Mies, Christian christian.m...@it-novum.com wrote: Hi List, ** ** the check_esx3 Plugin send some interesting Output: ** ** *CHECK_ESX3.PL CRITICAL - cpu usage=-0.01 % * ** ** This Service Output is shown if the ESXi Server has nothing to do. Any Ideas for that? ** ** Regards Christian ** ** it-novum GmbH* i.A. Christian Mies*** Senior Consultant Tel: +49 (661) 103-874 Fax: +49 (661) 103-17874 christian.m...@it-novum.com [image: ITNLogo]** **it-novum GmbH • Edelzeller Straße 44 • 36043 Fulda • http://www.it-novum.com Handelsregister Amtsgericht Fulda, HRB 1934 • Geschäftsführer: Michael Kienle • Sitz der Gesellschaft: Fulda Der Inhalt dieser E-Mail ist vertraulich. Wenn Sie nicht der eigentliche Empfänger sein sollten, informieren Sie bitte sofort den Absender oder vernichten umgehend diese Mail. Jegliche unerlaubte Vervielfältigung oder Weiterleitung dieser Mail ist strengstens verboten. This e-mail may contain confidential and/or priviledged information. If you are not the intended recepient (or have received this e-mail in error) please notify the sender immediately and destroy this e-mail. Any unauthorised copying, disclosure or distribution of material in this e-mail is strictly forbidden. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ 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 -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ 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
So much to what I wrote a few days ago...: you also checked them with your Nagios user, not root, right? But at least it works now ;-) On Sat, Dec 3, 2011 at 12:58 PM, Nick Price np...@hotmail.com wrote: Stupid I forgot that bit ** ** Did chmod 5777 sendmail and it works now ** ** Thanks for the help ** ** ** ** ** ** ** ** *From:* Michael Friedrich [mailto:michael.friedr...@univie.ac.at] *Sent:* Friday, December 02, 2011 12:54 *To:* nagios-users@lists.sourceforge.net *Subject:* Re: [Nagios-users] notification emails ** ** On 02.12.2011 12:36, Nick Price wrote: No its still activated I even copied the configs from the old server. It seems it’s just fedora 16 that has the problem. This version of Nagios works fine with fedora 16. I looked on tactical view Everything is enabled except SSH localhost *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.comc...@claudiokuenzler.com] *Sent:* Friday, December 02, 2011 12:14 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price np...@hotmail.com wrote: Ok I am getting in the debug log Notification viability test failed. No notification will be sent. What is this and how to troubleshoot it. I can send emails from command line. Selinux is disabled *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] *Sent:* Friday, December 02, 2011 10:23 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work** ** I think it’s a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* *** On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. the contact, which will be shown some lines above (always post a complete debug log for a notification!), did not pass the viability tests. this can be notification_options, notification_period, notifications_disabled, etc. so to conclude with, i'd highly advise you to 1/ post the contact object definition from the objects.cache 2/ post the complete service object definition from the objects.cache 3/ post the complete debug for this service and contact notification I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive
Re: [Nagios-users] notification emails
Did you by accident disable the notifications? On the Nagios web interface, click on Tactical Overview. At the end of the page (Monitoring Features) check that Notifications are green/enabled. It would make sense as you don't have SELinux and all commands seem to work from command-line (you also checked them with your Nagios user, not root, right?). On Fri, Dec 2, 2011 at 11:30 AM, Nick Price np...@hotmail.com wrote: Ok ** ** I am getting in the debug log ** ** Notification viability test failed. No notification will be sent. ** ** What is this and how to troubleshoot it. ** ** I can send emails from command line. Selinux is disabled ** ** ** ** ** ** ** ** ** ** *From:* m...@catsnest.co.uk [mailto:m...@catsnest.co.uk] *Sent:* Friday, December 02, 2011 10:23 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails ** ** ** ** On Fri, Dec 2, 2011 at 8:14 AM, Nick Price np...@hotmail.com wrote: Yes printf works I had the same version of Nagios with the same config files working OK with fedora 14 It is only when I installed it on fedora 16 the notifications don’t work** ** I think it’s a bug within Nagios I doubt that its a bug in Nagios, as Nagios just uses your system's commands to send notifications. What is your notification config? can you run the commands the notification uses as the Nagios user? Is there some security such as SE Linux running? You could try adding logging to the Notification command eg add a /var/tmp/Notification.log or instead of the Notification command being a direct command, make a script for it instead. Ritchie, -- -- http://23.me.uk/2 -- --Time flies like an arrow; fruit flies like a banana. -- Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com That went out Ok What to look at next *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* *** On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d
Re: [Nagios-users] notification emails
Did you also do printf ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ? On Wed, Nov 30, 2011 at 9:09 PM, Nick Price np...@hotmail.com wrote: The defaults are there. ** ** ** ** I didecho ‘this is a test’ | /bin/mail –s test_email em...@mydomain.com ** ** ** ** That went out Ok ** ** What to look at next ** ** ** ** ** ** *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 30, 2011 12:37 *To:* Nagios Users List *Subject:* Re: [Nagios-users] notification emails ** ** Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken.* *** On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null ** ** -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] monitor printer from Windows server
Besides of course the Spooler Service, you should also monitor the Windows Event Log. I've experienced a lot of driver issues on an old Windows print server which temporarily caused the affected printer(s) to appear as 'offline'. Such problems appeared in the event log as Warnings with the message content something about the driver. That was on a Windows Server 2003, but I think such driver problems are still logged to the Event Log. On Thu, Dec 1, 2011 at 3:10 PM, Jim Avery j...@jimavery.me.uk wrote: On 1 December 2011 12:39, James Osbourn james.osbo...@citrix.com wrote: I have a Windows 7 server acting as a print server and I would like to check the status of these printers and make sure that they are still online etc. I cannot seem to find a way of checking printers shared from a Windows machine, does anyone have any suggestions or references that I could use. Thanks James I query the windows performance counter for number of print jobs spooling. If a printer breaks then usually this counter starts ramping up quite rapidly as more and more print jobs get stuck in the queue. For example, the [external alias] section of your nsc.ini (assuming you use NSClient++), you can have:- alias_CheckCounter-PrintQJobs=CheckCounter Counter:jobs=\Print Queue(_Total)\Jobs ShowAll MaxWarn=250 MaxCrit=500 Then your service definition would look something like this:- define service { host_name printserver1,printserver2 service_description PrintQJobs use srv-pnp,generic-service check_command check_nrpe!-c PrintQJobs max_check_attempts 6 check_interval 15 retry_interval 5 contact_groups notify-admins notes Records the number of Active Jobs on a Print Server register1 } And the command definition I use is just a generic one for any nrpe check like so:- define command {^M command_namecheck_nrpe command_line$USER1$/check_nrpe -H $HOSTADDRESS$ -u $ARG1$ register1 } Our servers aren't quite as recent as Windows 7, but I guess the counter would still be the same. I hope that helps. Jim -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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
Did you check the command which is used to send notifications in command.cfg or checkcommand.cfg ? Maybe you don't have the binary or you need to rename the command. By default it uses /usr/bin/printf and /usr/bin/mail if I'm not mistaken. On Wed, Nov 30, 2011 at 9:23 AM, Nick Price np...@hotmail.com wrote: Hello I am not sure if this is a bug or config issue. I have a clean install of fedora 16 32 bit with a manual install of nagios 3.3.1 and nagios plugins 1.4.15. I see in the debug log Notification viability test failed. No notification will be sent out. I can send test emails from this server using sendmail and that bit works Is there a solution for this. Regards Nick -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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 with newly created checkcommand andservice
Did you replace the $ARGX$ options by database etc or did you really write them like this? The command definition should look like this: define command { command_name database_connection-time command_line /usr/local/nagios/libexec/check_mssql_health --server=$HOSTADDRESS$--username=$ARG1$--password= $ARG2$ --port=$ARG3$ --mode=connection-time } And the service should then pass the arguments to the command: define service { service_description Database Connection Time check_command database_connection-time!username!mypasswd!1433 host_name database server check_period24x7 contact_groups nt-admins,linux-admins,admins event_handler_enabled 0 active_checks_enabled 1 passive_checks_enabled 0 notifications_enabled 1 check_freshness 0 freshness_threshold 86400 use generic-service } With this you're passing three arguments to the command (username, password and port). The value for --server is automatically using the IP-Address (or DNS name) of your defined host ($HOSTADDRESS$). On Wed, Nov 23, 2011 at 2:35 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- The command definition for database_connection-time is the following: define command { command_namedatabase _connection-time command_line /usr/local/nagios/libexec/check_mssql_health --server=database--username= username --password=password --port=port --mode=connection-time There are arguments that are passed to the command. I did not remove the exclamation point due to another command that also has arguments passed to it. For example: define command { command_name check_nis_server command_line /usr/local/nagios/libexec/check_nis -H server -d domainname has the following definition in the services.cfg file: define service { service_description Check NIS Service check_command check_nis_server! host_name server check_period 24x7 notification_period 24x7 contact_groupslinux-admins event_handler_enabled 0 active_checks_enabled 1 passive_checks_enabled0 notifications_enabled 1 check_freshness 0 freshness_threshold 86400 use generic-service One thing I came across so far. I had imported the configuration files into the NConf utility database of the Nagios server. Among the files that were imported was the commands.cfg file. During the importation process, the commands.cfg file data was imported into a field called checkcommands. When the NConf utility was subsequently used to generate new files, a checkcommands.cfg file was among the them. This file, along with the original commands.cfg file, is located in the /usr/local/nagios/etc/objects directory. However, the nagios.cfg file does not reference it. One idea that I had was to remove the reference within nagios.cfg to commands.cfg, and replace it with a reference to checkcommands.cfg, and see what are the results. What do you think? -- *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Wednesday, November 23, 2011 2:26 AM *To:* Nagios Users List *Subject:* Re: [Nagios-users] problem with newly created checkcommand andservice Hi, Please show the command definition of database_connection-time. Furthermore in the service definition you use the following line: check_command database_connection-time! Didn't you want to pass arguments to the command? If they're already hardcoded in the command definition you can leave the exclamation mark off. On Tue, Nov 22, 2011 at 7:29 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I am going through the motions of adding a new checkcommand, and service to the Nagios server. The command involves the check_mssql_health plugin which runs on the Nagios server. The plugin gets in information via queries to a particular port on the Microsoft SQL server. Here are its particulars: */usr/local/nagios/libexec/check_mssql_health --server=database server --username=username --password=password --port=port --mode=connection-time* The name of the checkcommand is:* database_connection-time * Once the checkcommand was created, so was the service. The configuration of the service in question, taken from the services.cfg
Re: [Nagios-users] e-mail notifications not being sent
Normally the mail binary takes the hostname into account. Verify the following files if you correctly have set up the hostname: /etc/hosts /etc/HOSTNAME You might also want to take a look at .mailrc if the hostname is still not shown. On Mon, Nov 21, 2011 at 10:17 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I checked the nagios.log file, and the problem was due to the mail binary not being at the /bin folder. I created a symbolic link at that location to point to the /usr/bin/mail binary. Once that was done, notifications were sent to the recipient. As a follow-up, the address of the Nagios server is shown to be nagios@localdomain. I would like to change that to reflect the name of the server. What file(s) do I need to modify in order to make that happen? Thanks. -- *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Monday, November 21, 2011 3:25 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] e-mail notifications not being sent Maybe you have to replace the mail program by something on your system, e.g. /usr/bin/mailx. That's always one of the first things I change in a new Nagios installation. What OS are you using? Try to install the required programs (mail/mailx...) if they can't be found in your system. On Mon, Nov 21, 2011 at 8:25 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I completed the installation of Nagios 3.3.1, and I am going through the testing process. The server is able to successfully monitor our various clients, but e-mail notifications for critical conditions are not being sent to the intended recipient. The e-mail server that is on the Nagios server is the Postfix message transfer agent. The troubleshooting steps that I have taken so far are the following: 1. I have been able to send a test e-mail from the Nagios server to the intended recipient using two different mail commands. The test e-mail was done from the command line using the mail and mailx commands using the command syntax: mail e-mail address /etc/fstab mailx -s test e-mail address /etc/fstab 2. I checked the contacts.cfg file, and confirmed the intended recipient is listed with the correct address. 3. I checked the nagios.log, and there were entries that were similar to the following: [1321385615] Warning: Attempting to execute the command /usr/bin/printf %b * Nagios 2.6 *\n\nNotification Type: PROBLEM\nHost: ... Date/Time: Tue Nov 15 14:33:35 EST 2011\n | /bin/mail -…e-mail address resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists… I did a search for the mail binary, and there was none at that location. To correct the problem, I created a symbolic that pointed to the actual location of the mail binary which was located at the /usr/bin/ folder. 4. As far as I can tell, all hosts have e-mail notifications enabled on them. What other steps do I need to take in order to get e-mail notifications to work here? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ 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 with newly created checkcommand and service
Hi, Please show the command definition of database_connection-time. Furthermore in the service definition you use the following line: check_command database_connection-time! Didn't you want to pass arguments to the command? If they're already hardcoded in the command definition you can leave the exclamation mark off. On Tue, Nov 22, 2011 at 7:29 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I am going through the motions of adding a new checkcommand, and service to the Nagios server. The command involves the check_mssql_health plugin which runs on the Nagios server. The plugin gets in information via queries to a particular port on the Microsoft SQL server. Here are its particulars: */usr/local/nagios/libexec/check_mssql_health --server=database server --username=username --password=password --port=port --mode=connection-time* The name of the checkcommand is:* database_connection-time * Once the checkcommand was created, so was the service. The configuration of the service in question, taken from the services.cfg file, is shown below: define service { service_description Database Connection Time check_command database_connection-time! host_name database server check_period24x7 contact_groups nt-admins,linux-admins,admins event_handler_enabled 0 active_checks_enabled 1 passive_checks_enabled 0 notifications_enabled 1 check_freshness 0 freshness_threshold 86400 use generic-service } To verify the new configuration would work, the command: */usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg* was run to verify the configuration. It was here the error message: *Checking services... Error: Service check command 'database_connection-time' specified in service 'Database Connection Time' for host 'database server' not defined anywhere!* I verified the syntax of the command in the checkcommands.cfg file, including the name given to the command. Why would Nagios think the service check command is not defined, and return this error? The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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] e-mail notifications not being sent
Maybe you have to replace the mail program by something on your system, e.g. /usr/bin/mailx. That's always one of the first things I change in a new Nagios installation. What OS are you using? Try to install the required programs (mail/mailx...) if they can't be found in your system. On Mon, Nov 21, 2011 at 8:25 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I completed the installation of Nagios 3.3.1, and I am going through the testing process. The server is able to successfully monitor our various clients, but e-mail notifications for critical conditions are not being sent to the intended recipient. The e-mail server that is on the Nagios server is the Postfix message transfer agent. The troubleshooting steps that I have taken so far are the following: 1. I have been able to send a test e-mail from the Nagios server to the intended recipient using two different mail commands. The test e-mail was done from the command line using the mail and mailx commands using the command syntax: mail e-mail address /etc/fstab mailx -s test e-mail address /etc/fstab 2. I checked the contacts.cfg file, and confirmed the intended recipient is listed with the correct address. 3. I checked the nagios.log, and there were entries that were similar to the following: [1321385615] Warning: Attempting to execute the command /usr/bin/printf %b * Nagios 2.6 *\n\nNotification Type: PROBLEM\nHost: ... Date/Time: Tue Nov 15 14:33:35 EST 2011\n | /bin/mail -…e-mail address resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists… I did a search for the mail binary, and there was none at that location. To correct the problem, I created a symbolic that pointed to the actual location of the mail binary which was located at the /usr/bin/ folder. 4. As far as I can tell, all hosts have e-mail notifications enabled on them. What other steps do I need to take in order to get e-mail notifications to work here? Thanks. The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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 a Microsoft SQL Server
Please let us know if you get it working - I might have to add such a check soon as well. To answer your question: 1433 is the standard port of MSSQL so that should be ok. You can launch nmap or a simple telnet to double-check that. On Thu, Nov 17, 2011 at 4:34 PM, Jim Avery j...@jimavery.me.uk wrote: On 17 November 2011 15:17, Kaplan, Andrew H. ahkap...@partners.org wrote: Hi there -- Thanks for your reply. I tried your suggestion on the two plugins, and here are the results. When the command syntax for check_mssql was the following: ./check_mssql -H ip address -U domain\\username -P password or ./check_mssql -H ip address -U 'domain\\username' -P password The error message displayed on-screen was: UNKNOWN: Invalid characters in the username. The check_mssql plugin is way too fussy about what characters it will allow in host names and user names. On my system I edited the plugin to remove the if/else sections entirely below the comments // Validate the hostname and // Validate the username. hth, Jim -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ 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 a Microsoft SQL Server
The other ports don't appear like typical MSSQL ports. Do you have by any chance the Windows firewall still active? Maybe the port is being blocked there? http://support.microsoft.com/kb/968872 Or do you use a named instance? I found this information on http://benchmarkitconsulting.com/colin-stasiuk/2009/02/02/what-tcp-port-is-sql-server-running-under/: If you have a named instance the TCP port is dynamically configured. I've never seen this in a practical way before though. On Thu, Nov 17, 2011 at 8:59 PM, Kaplan, Andrew H. ahkap...@partners.orgwrote: ** Hi there -- I tried connecting to port 1433 of the SQL server, and the connection was refused. It appears that efforts to connect via the default port will not work in this case. I took the liberty of running the nestat -abn command syntax on the console of the SQL server, and searched for all references to the sqlservr.exe binary. The results are shown below: Active Connections [sqlservr.exe] TCP 0.0.0.0:58477 0.0.0.0:0 LISTENING [sqlservr.exe] TCP 0.0.0.0:62502 0.0.0.0:0 LISTENING [sqlservr.exe] TCP 0.0.0.0:65249 0.0.0.0:0 LISTENING [sqlservr.exe] TCP 127.0.0.1:58751 0.0.0.0:0 LISTENING [sqlservr.exe] TCP 127.0.0.1:62503 0.0.0.0:0 LISTENING [sqlservr.exe] TCP 127.0.0.1:63954 127.0.0.1:63955 ESTABLISHED [sqlservr.exe] TCP 192.168.40.114:62502 192.168.40.122:50342 ESTABLISHED [sqlservr.exe] TCP 192.168.40.114:62502 192.168.40.125:60257 ESTABLISHED [sqlservr.exe] TCP 192.168.125.1:139 0.0.0.0:0 LISTENING [sqlservr.exe] TCP [::]:58477 [::]:0 LISTENING [sqlservr.exe] TCP [::]:62502 [::]:0 LISTENING [sqlservr.exe] TCP [::]:65249 [::]:0 LISTENING [sqlservr.exe] TCP [::1]:58751 [::]:0 LISTENING [sqlservr.exe] TCP [::1]:62005 [::1]:62006 ESTABLISHED [sqlservr.exe] UDP 0.0.0.0:123 *:* If the default port, 1433, is not reachable would one the above ports be the alternate means of connecting to the server? -- *From:* Claudio Kuenzler [mailto:c...@claudiokuenzler.com] *Sent:* Thursday, November 17, 2011 1:39 PM *To:* Nagios Users List *Subject:* Re: [Nagios-users] Monitoring a Microsoft SQL Server Please let us know if you get it working - I might have to add such a check soon as well. To answer your question: 1433 is the standard port of MSSQL so that should be ok. You can launch nmap or a simple telnet to double-check that. On Thu, Nov 17, 2011 at 4:34 PM, Jim Avery j...@jimavery.me.uk wrote: On 17 November 2011 15:17, Kaplan, Andrew H. ahkap...@partners.org wrote: Hi there -- Thanks for your reply. I tried your suggestion on the two plugins, and here are the results. When the command syntax for check_mssql was the following: ./check_mssql -H ip address -U domain\\username -P password or ./check_mssql -H ip address -U 'domain\\username' -P password The error message displayed on-screen was: UNKNOWN: Invalid characters in the username. The check_mssql plugin is way too fussy about what characters it will allow in host names and user names. On my system I edited the plugin to remove the if/else sections entirely below the comments // Validate the hostname and // Validate the username. hth, Jim -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The information in this e-mail is intended only for the person to whom it is addressed. If you believe this e-mail was sent to you in error and the e-mail contains patient information, please contact the Partners Compliance HelpLine at http://www.partners.org/complianceline . If the e-mail was sent to you in error but does not contain patient information, please contact the sender and properly dispose of the e-mail. -- All the data continuously generated in your IT infrastructure contains a definitive record of customers, application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-novd2d___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v
Re: [Nagios-users] Macro values don't seem to be consistent
To follow up on this, I have once more this problem (this time with another server though) and I activated debugging and started to do some deeper research. This time the service 'Disk Space /' on *SERVER21* is in state warning. The host alias for SERVER21 is SERVER21-DEVL. The notification looks like this though: *Service: Disk Space /* * * *Host: SERVER31-UAT* * * *Address: 10.x.x.x* * * *State: WARNING* As you see, the alias for SERVER31 was taken, instead of SERVER21. Now if I take a look at *var/objects.cache* the correct alias is used: define host { host_name SERVER21 alias SERVER21-DEVL If I take a look at *var/retention.dat* I see something strange: host { host_name=SERVER21 alias=SERVER31-UAT display_name=SERVER21 Taking a further look at retention.dat reveils, that another host took the alias for SERVER31-UAT: host { host_name=SERVER33 alias=SERVER31-UAT display_name=SERVER33 I am sure the problem comes from here (retention.dat). But can somebody explain, how such wrong entries are created in retention.dat ? On Mon, Jul 11, 2011 at 5:14 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: This particular one: define service{ use normal-service-trading host_name server14 service_description Service Check check_command check_nrpe!proxy_bs_connections } So there's no alias entry either. It's the very first time that this happens, and it continues. The service is still down (in maintenance) but Nagios continues to send the notification with a wrong HOSTALIAS. On Mon, Jul 11, 2011 at 4:50 PM, Terry Carmen te...@cnysupport.comwrote: Quoting Claudio Kuenzler c...@claudiokuenzler.com: Hello, Since today I have almost the same problem as Jim. The $HOSTALIAS$ macro works fine for all the checks, except one host alias is wrong. I got aware of it today. Same version as Jim's, 3.2.3, compiled from source as well. Host config: define host{ use linux-platform-demo ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name server14 alias SERVER14-RANDOMDEMO address 192.168.0.14 } What does your service definition look like? Terry -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/___ 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] Macro values don't seem to be consistent
A manual correction in retention.dat didn't work - from somewhere the wrong alias entries came back. I still don't know from where though. After deleting the retention.dat file and restarting Nagios, the correct alias values were shown and now the notifications of the affected servers are correct again. This is a dirty workaround though, as Nagios needs to recheck every server and services and looses scheduled host downtimes, acknowledged states, etc. It would be great if someone knew from where exactly the alias values came back into the retention.dat file. It can't be the host definition and neither objects.cache (as you can see in previous mails). On Tue, Jul 19, 2011 at 2:07 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: To follow up on this, I have once more this problem (this time with another server though) and I activated debugging and started to do some deeper research. This time the service 'Disk Space /' on *SERVER21* is in state warning. The host alias for SERVER21 is SERVER21-DEVL. The notification looks like this though: *Service: Disk Space /* * * *Host: SERVER31-UAT* * * *Address: 10.x.x.x* * * *State: WARNING* As you see, the alias for SERVER31 was taken, instead of SERVER21. Now if I take a look at *var/objects.cache* the correct alias is used: define host { host_name SERVER21 alias SERVER21-DEVL If I take a look at *var/retention.dat* I see something strange: host { host_name=SERVER21 alias=SERVER31-UAT display_name=SERVER21 Taking a further look at retention.dat reveils, that another host took the alias for SERVER31-UAT: host { host_name=SERVER33 alias=SERVER31-UAT display_name=SERVER33 I am sure the problem comes from here (retention.dat). But can somebody explain, how such wrong entries are created in retention.dat ? On Mon, Jul 11, 2011 at 5:14 PM, Claudio Kuenzler c...@claudiokuenzler.comwrote: This particular one: define service{ use normal-service-trading host_name server14 service_description Service Check check_command check_nrpe!proxy_bs_connections } So there's no alias entry either. It's the very first time that this happens, and it continues. The service is still down (in maintenance) but Nagios continues to send the notification with a wrong HOSTALIAS. On Mon, Jul 11, 2011 at 4:50 PM, Terry Carmen te...@cnysupport.comwrote: Quoting Claudio Kuenzler c...@claudiokuenzler.com: Hello, Since today I have almost the same problem as Jim. The $HOSTALIAS$ macro works fine for all the checks, except one host alias is wrong. I got aware of it today. Same version as Jim's, 3.2.3, compiled from source as well. Host config: define host{ use linux-platform-demo ; Name of host template to use ; This host definition will inherit all variables that are defined ; in (or inherited by) the linux-server host template definition. host_name server14 alias SERVER14-RANDOMDEMO address 192.168.0.14 } What does your service definition look like? Terry -- All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2d-c2 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Magic Quadrant for Content-Aware Data Loss Prevention Research study explores the data loss prevention market. Includes in-depth analysis on the changes within the DLP market, and the criteria used to evaluate the strengths and weaknesses of these DLP solutions. http://www.accelacomm.com/jaw/sfnl/114/51385063/___ 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