[Nagios-users] check_nrpe from Nagios Dashboard
I seem to be having an issue here. It is with various checks that don't have an argument value. If I run check_nrpe -H XXX -c check_uptime from the shell on my nagios server, I get the correct return. However if I setup the serveice check with check_nrpe|check_uptime I get (No output returned from plugin) in the Status information window, and an Unknown status. If I use check_nrpe_noargs - [this doesn't have -a $ARG1$ $ARG2$ $ARG3$ at the end] then the service check on the host works from the webpage. I assume that this is because on these checks there are no actual arguments. Im just wondering if I send a zero value on the end,, which does work, would this be acceptable. As this will be across architectures, im trying to use the same tests, and on some machines there will be actual argument values. I am just using the check_uptime above as an example. There are a few others that this is affecting also. Thanks B The information in this email is confidential and may be legally privileged. It is intended solely for the addressee. Access to this email by anyone else is unauthorized. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. If you are not the intended addressee please contact the sender and dispose of this e-mail. Thank you. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Final stage of getting MRTG working with Nagios v2
I may be wrong here but i thought you had to point the check_mrtg to a rrd file and not the rrdtool log file. Greg Pangrazio pangr...@gmail.com On Sun, Nov 15, 2009 at 8:24 PM, AJay a...@wxsec.com wrote: Your mrtg is probably not working correctly, check you mrtg.cfg and /var/spool/mail/root to see what's going on with mrtg. -- AJay -- Original -- *From: * xmanhostinganth...@xmanhosting.com.au; *Date: * Sat, Nov 14, 2009 12:27 PM *To: * nagios-usersnagios-users@lists.sourceforge.net; *Subject: * [Nagios-users] Final stage of getting MRTG working with Nagios v2 Hello, I have been fluffing around with Nagios for a couple of weeks, and have nearly finally nailed it. I just have one thing to go. I am trying to get MRTG to work with Nagios. I have got MRGT working locally on my machine , and can see it working bygoing to these 2 sites (locally) in a browser: file:///usr/local/mrtg-2/share/mrtg2/icons/index.htmlhttp://m33.mail.qq.com/cgi-bin/frame_html?sid=6AuAxsNrmrW1bmsgr=31ef6d4e0997510a3066d059ab83e370# and file:///usr/local/mrtg-2/share/mrtg2/icons/localhost_2.htmlhttp://m33.mail.qq.com/cgi-bin/frame_html?sid=6AuAxsNrmrW1bmsgr=31ef6d4e0997510a3066d059ab83e370# I followed the tutorial below to set up my router with Nagios: http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/ however I am yet to get MRTG working with Nagios: PING OK 11-14-2009 13:13:56 21d 16h 10m 13s 1/3 PING OK - Packet loss = 0%, RTA = 1.38 ms Port 1 Bandwidth Usage UNKNOWN 11-14-2009 13:09:49 21d 16h 8m 43s 3/3 *check_mrtgtraf: Unable to open MRTG log file* Port 1 Link Status OK 11-14-2009 13:11:29 12d 22h 37m 5s 1/3 SNMP OK - up(1) Uptime OK 11-14-2009 13:10:29 12d 22h 27m 57s 1/3 SNMP OK - Timeticks: (152738042) 17 days, 16:16:20.42 My switch.cfg currently has the following: # Monitor bandwidth via MRTG logs define service{ use generic-service ; Inherit values from a template host_nameBillion service_description Port 1 Bandwidth Usage check_command* check_local_mrtgtraf!/usr/local/mrtg-2/share/mrtg2/icons/localhost2.log!AVG!100,100!500,500!10 * } My localhost2.log is at the location above: * /usr/local/mrtg-2/share/mrtg2/icons/localhost2.log* ,however I still must have something wrong for it to not work. When I run: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg , it says: *Things look okay - No serious problems were detected during the pre-flight check* When I run: /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , it says: --- ERROR: Mrtg will most likely not work properly when the environment variable LANG is set to UTF-8. Please run mrtg in an environment where this is not the case. Try the following command to start: env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg --- When I run: env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , there are no errors. Does anyone know what I am still doing wrong Thanks for any help, Kind regards, Anthony -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] Problems checking external host
Morris, Patrick wrote: The part I'm fairly sure you're missing is that the name in authorized_keys must match the name or address Nagios uses, exactly. That's really the only reason you'd see that error. Hi Patrick: What you mean with address nagios use? You mean the users configured on cgi.cfg file? Or nagios user or nagcmd group? Could be a little explicit on this? I'm very newbie and I try to understand the process Cheers -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Problems checking external host
-Original Message- From: ReynierPM [mailto:rper...@uci.cu] Sent: Monday, November 16, 2009 9:45 AM To: Morris, Patrick Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problems checking external host Morris, Patrick wrote: The part I'm fairly sure you're missing is that the name in authorized_keys must match the name or address Nagios uses, exactly. That's really the only reason you'd see that error. Hi Patrick: What you mean with address nagios use? You mean the users configured on cgi.cfg file? Or nagios user or nagcmd group? Could be a little explicit on this? I'm very newbie and I try to understand the process Cheers Hi Here's a tutorial I found on setting this up - http://www.zdnetasia.com/techguide/opensource/0,39044899,62052006,00.htm regards, jamie -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Problems checking external host
James Pratt wrote: Here's a tutorial I found on setting this up - http://www.zdnetasia.com/techguide/opensource/0,39044899,62052006,00.htm Thanks for the tutorial it really help me a lot but I need to ask some dummie or newbie :( question: if I'm logged in as root, how I can create the ssh-key for nagios from root command line? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Problems checking external host
-Original Message- From: ReynierPM [mailto:rper...@uci.cu] Sent: Monday, November 16, 2009 10:04 AM To: James Pratt Cc: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Problems checking external host James Pratt wrote: Here's a tutorial I found on setting this up - http://www.zdnetasia.com/techguide/opensource/0,39044899,62052006,00.htm Thanks for the tutorial it really help me a lot but I need to ask some dummie or newbie :( question: if I'm logged in as root, how I can create the ssh-key for nagios from root command line? No problem - As root, just run: su - nagios -c ssh nag...@remotebox.com (replace your target hostname here, or use IP) let it connect and accept the key, then do the same on the target box in reverse, so that both sides have the key in ~/.ssh/authorized_keys files. Hth - cheers, James -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] What would you want in a replacement web interface?
Hi there. I've been working on a replacement web interface for Nagios, and it's coming along great! However, I wanted to take the time to ask the community some questions to get your feedback and roll it into the interface. So I have 3 questions to ask you all. If you could answer with as much detail as possible, it would be fantastic. #1) What is the most important thing you want to see in a Tactical Overview replacement? What are the most essential components? #2) When looking at a Host or a Service, what are the details you want/need to see? What can you not live without? #3) What is your biggest gripe regarding the existing Nagios web user interface? -- Taylor Dondich (tdond...@gmail.com) CEO at Lilac Networks (http://www.lilacnetworks.com) Provider of quality support for open source monitoring solutions View our open source Nagios Configuration Tool at http://www.lilacplatform.com -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] Check external hosts using NRPE
Hi every: I'm trying to check some services in a remote host (Ubuntu Linux 9.04 Server) using NRPE. I have the NRPE plugin installed on both machines: the nagios server and the remote host. I describe below what I've done until now: Remote Host (machine to check) 1) Compile and install the nagios plugins and NRPE 2) Check NRPE connection: ~# /usr/local/nagios/libexec/check_nrpe -H localhost NRPE v2.12 3) Install and cofigure xinetd service (/etc/xinetd.d/nrpe) * 10.128.50.2 (is the Nagios Server IP) service nrpe { flags = REUSE socket_type = stream port= 5666 wait= no user= nagios group = nagios server = /usr/local/nagios/bin/nrpe server_args = -c /usr/local/nagios/etc/nrpe.cfg --inetd log_on_failure += USERID disable = no only_from = 127.0.0.1 10.128.50.2 } 4) Add the NRPE daemon to services file (/etc/services) 5) Check if NRPE daemon is running correctly ~# netstat -at | grep nrpe tcp0 0 *:nrpe *:* LISTEN 6) Allow NRPE on iptables ## NRPE Nagios Plugin iptables -A INPUT -p tcp --dport 5666 -j ACCEPT 7) Configure all services at /usr/local/nagios/etc/nrpe.cfg command[check_ping]=/usr/local/nagios/libexec/check_ping!100.0,20%!500.0,60% After all this changes, off course, I restart all services (xinetd, iptables and so on) Server (machine where Nagios is running) 1) Install the NRPE plugin 2) Check connection to remote host ~# /usr/local/nagios/libexec/check_nrpe -H 10.128.50.11 NRPE v2.12 3) Create command definitions (/usr/local/nagios/etc/commands.cfg) #'nrpe' command definition define command{ command_namecheck_nrpe command_line$USERS1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } 4) Create host and service definitions Host Template: -- define host{ namelinux-server use generic-host check_period24x7 check_interval 5 retry_interval 1 max_check_attempts 10 check_command check-host-alive notification_period 24x7 notification_interval 30 notification_optionsd,u,r contact_groups admins register0 } Define Host (bacula-server.cfg) (the server to check): -- define host{ use linux-server host_name bacula-server alias bacula address 10.128.50.11 } Define Services: -- define service{ use generic-service host_name bacula-server service_description PING check_command check_nrpe!check_ping } Just one for now for testing purpose. 5) Restart Nagios ~#/etc/init.d/nagios restart After all this I'm getting, constantly, these errors: [1258389533] Warning: Return code of 127 for check of service 'SAN Space SDB1' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. [1258389583] Warning: Return code of 127 for check of service 'SSH' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. [1258389633] Warning: Return code of 127 for check of service 'Swap Usage' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. [1258389813] Warning: Return code of 127 for check of service 'Total Processes' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. [1258389813] SERVICE NOTIFICATION: nagiosadmin;bacula-server;Total Processes;CRITICAL;notify-service-by-email;(Return code of 127 is out of bounds - plugin may be missing) The funny part is if I run this command (from nagios server): # ./check_nrpe -H 10.128.50.11 -c check_users USERS OK - 1 users currently logged in |users=1;5;10;0 What I miss here? Where is the error? Cheers and thanks in advance -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] check_openmanage.exe cannot find Dell OMSA
Hey folks, I'm trying to teach my newest Nagios installation how to test Dell's hardware on remote Windows boxes via NRPE/NSClient++, and I'm running into a snag: ./check_nrpe -H HOSTNAME -c check_openmanage ERROR: Dell OpenManage Server Administrator (OMSA) is not installed Hmm. It's installed, and it's installed on every host I've tried so far, but each of them report that OMSA is not installed. Running the check_openmanage.exe from the command prompt locally on the Windows machine reports the exact same, that it thinks OMSA is not installed. Thoughts/cluebats? Thanks! Benny -- It's not all about getting up and putting four slices of kickass in a two slice toaster. -- ark86, on Fazed.net -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] inconsistencies across distributed servers
I'm occasionally seeing inconsistencies across my distributed setup. It's very infrequent but the result is that occasionally the data sent to a master will either incorrectly trigger or fail to trigger an alert. The first time I saw this it was with a host being marked as hard down in a distributed server but incorrectly marked as soft down in the master. Today I saw the opposite. distributed server: [11-16-2009 11:29:01] HOST ALERT: server01;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100% master server: [11-16-2009 11:29:24] HOST ALERT: server01;DOWN;HARD;1;PING CRITICAL - Packet loss = 100% The slave servers are using the same config as the master so I'm at a loss as to what could cause this inconsistency. Does anyone have any idea what is going on? -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] inconsistencies across distributed servers
Noel Platzke wrote: I'm occasionally seeing inconsistencies across my distributed setup. It's very infrequent but the result is that occasionally the data sent to a master will either incorrectly trigger or fail to trigger an alert. The first time I saw this it was with a host being marked as hard down in a distributed server but incorrectly marked as soft down in the master. Today I saw the opposite. distributed server: [11-16-2009 11:29:01] HOST ALERT: server01;DOWN;SOFT;1;PING CRITICAL - Packet loss = 100% master server: [11-16-2009 11:29:24] HOST ALERT: server01;DOWN;HARD;1;PING CRITICAL - Packet loss = 100% The slave servers are using the same config as the master so I'm at a loss as to what could cause this inconsistency. Does anyone have any idea what is going on? This would be normal, assuming you've got passive_host_checks_are_soft=0 in your config. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_openmanage.exe cannot find Dell OMSA
C. Bensend be...@bennyvision.com writes: Hey folks, I'm trying to teach my newest Nagios installation how to test Dell's hardware on remote Windows boxes via NRPE/NSClient++, and I'm running into a snag: ./check_nrpe -H HOSTNAME -c check_openmanage ERROR: Dell OpenManage Server Administrator (OMSA) is not installed Hmm. It's installed, and it's installed on every host I've tried so far, but each of them report that OMSA is not installed. Running the check_openmanage.exe from the command prompt locally on the Windows machine reports the exact same, that it thinks OMSA is not installed. Thoughts/cluebats? Hi, Which version of check_openmanage is this? Find out with check_openmanage.exe -V Also, where is omreport.exe installed on your hosts? Cheers, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_openmanage.exe cannot find Dell OMSA
C. Bensend be...@bennyvision.com writes: Hey folks, I'm trying to teach my newest Nagios installation how to test Dell's hardware on remote Windows boxes via NRPE/NSClient++, and I'm running into a snag: ./check_nrpe -H HOSTNAME -c check_openmanage ERROR: Dell OpenManage Server Administrator (OMSA) is not installed Hmm. It's installed, and it's installed on every host I've tried so far, but each of them report that OMSA is not installed. Running the check_openmanage.exe from the command prompt locally on the Windows machine reports the exact same, that it thinks OMSA is not installed. Thoughts/cluebats? Hi, Which version of check_openmanage is this? Find out with check_openmanage.exe -V Also, where is omreport.exe installed on your hosts? Hi Trond, -V reports v3.5.1. I believe that's the latest release. omreport.exe is in F:\dellopenmanage\oma\bin, which is where our infrastructure group stores their software (the F: drive). Is there a way to tell check_openmanage where it is? Thanks! Benny -- It's not all about getting up and putting four slices of kickass in a two slice toaster. -- ark86, on Fazed.net -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] prioritizing state returns
On Fri, Nov 13, 2009 at 2:44 PM, Terry td3...@gmail.com wrote: Hello, I have an nsclient++ checkdrivesize check in place. There is a weird condition where with microsoft clusters, after a failover event, the passive node still has the drive letters around. This causes the check to return an unknown status for those drives: : UNKNOWN: Could not get free space for: E: E: reason: 21 The fix is to reboot the node but that isn't acceptable to us right now. However, it may not be a big deal if I could prioritize warning and critical events before an unknown drive state like what is shown here. For example, if the C drive goes warning, I would want it to say that before it shows this unknown state of E. I am guessing this has to be something that nsclient++ has to do but not seeing it. Any ideas? Thanks! I am still digging to find a solution to this but haven't found anything yet. Anyone have an idea? Thanks -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] This host has not yet been checked, so status information is not available
Hi All - I have installed Nagios on solaris. I have defined a new host in templates.cfg and check_command. I have also define host in localhost.cfg for the new host I have added the command in commands.cfg and I have verified the configuration and did not get any errors. when I opened the Nagios page. I got the servers and but the status is showing as pending instead of UP. I am not able to figure what else I need to do ? Can you please help Regards -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_openmanage.exe cannot find Dell OMSA
C. Bensend be...@bennyvision.com writes: C. Bensend be...@bennyvision.com writes: Hey folks, I'm trying to teach my newest Nagios installation how to test Dell's hardware on remote Windows boxes via NRPE/NSClient++, and I'm running into a snag: ./check_nrpe -H HOSTNAME -c check_openmanage ERROR: Dell OpenManage Server Administrator (OMSA) is not installed Hmm. It's installed, and it's installed on every host I've tried so far, but each of them report that OMSA is not installed. Running the check_openmanage.exe from the command prompt locally on the Windows machine reports the exact same, that it thinks OMSA is not installed. Thoughts/cluebats? Hi, Which version of check_openmanage is this? Find out with check_openmanage.exe -V Also, where is omreport.exe installed on your hosts? Hi Trond, -V reports v3.5.1. I believe that's the latest release. Yep, that is the latest release. omreport.exe is in F:\dellopenmanage\oma\bin, which is where our infrastructure group stores their software (the F: drive). Is there a way to tell check_openmanage where it is? Yes, your problem is that omreport.exe is not installed in the search path of check_openmanage. You can use the '--omreport' option to specify where omreport.exe is, like this: check_openmanage.exe --omreport F:\dellopenmanage\oma\bin\omreport.exe This should be configured in your nsc.ini file on the hosts. Cheers, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_openmanage.exe cannot find Dell OMSA
C. Bensend be...@bennyvision.com writes: C. Bensend be...@bennyvision.com writes: Hey folks, I'm trying to teach my newest Nagios installation how to test Dell's hardware on remote Windows boxes via NRPE/NSClient++, and I'm running into a snag: ./check_nrpe -H HOSTNAME -c check_openmanage ERROR: Dell OpenManage Server Administrator (OMSA) is not installed Hmm. It's installed, and it's installed on every host I've tried so far, but each of them report that OMSA is not installed. Running the check_openmanage.exe from the command prompt locally on the Windows machine reports the exact same, that it thinks OMSA is not installed. Thoughts/cluebats? Hi, Which version of check_openmanage is this? Find out with check_openmanage.exe -V Also, where is omreport.exe installed on your hosts? Hi Trond, -V reports v3.5.1. I believe that's the latest release. Yep, that is the latest release. omreport.exe is in F:\dellopenmanage\oma\bin, which is where our infrastructure group stores their software (the F: drive). Is there a way to tell check_openmanage where it is? Yes, your problem is that omreport.exe is not installed in the search path of check_openmanage. You can use the '--omreport' option to specify where omreport.exe is, like this: check_openmanage.exe --omreport F:\dellopenmanage\oma\bin\omreport.exe This should be configured in your nsc.ini file on the hosts. Thank you, Trond... That fixed everything up! I should have seen that option... Benny -- It's not all about getting up and putting four slices of kickass in a two slice toaster. -- ark86, on Fazed.net -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
[Nagios-users] pnp4nagios, check_snmp, and the `-m' flag
I have a system all setup and running with Nagios and PNP4Nagios. Some of the SNMP checks are not making graphs for me. My general habit has been to anchor the SNMP check with the `-m' flag on the check_snmp command. My command: define command { command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -m $ARG1$ -o $ARG2$ } My service: define service { hostgroup_name power_meters service_description Demand KiloWatts use snmp-service check_command check_snmp! EATON-PWR-MTR-MIB!.1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 servicegroups power_meter_checks } My result: temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -m EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 SNMP OK - 19 kilo-watts | Notice that there's no perfdata. If I leave out the `-m', I get it: temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 SNMP OK - 19 | iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1=19 It would be nice to keep the units on these calls, just for the sake of it, but this is what's keeping the performance data from being reported in these instances. Just thought I'd post this to the list for future reference. If past experience is any indication of future trending, I'll find this through Google in about 3 years when I can't figure out why I can't get performance data in Nagios again. ;-) Regards, dk -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] prioritizing state returns
So the issue is that you have a single check that checks all the drives on the machine, and then return whatever it considers the worst state - in this case UNKNOWN? Couldn't you simply have one check per drive? This way, you'll know if more than one drive goes out of disk space at the same time as well as give you better history for graphs etc. It's late and I am a bit tired so let me know if I'm missing something obvious here :-) Regards, Martin Melin On Mon, Nov 16, 2009 at 8:23 PM, Terry td3...@gmail.com wrote: On Fri, Nov 13, 2009 at 2:44 PM, Terry td3...@gmail.com wrote: Hello, I have an nsclient++ checkdrivesize check in place. There is a weird condition where with microsoft clusters, after a failover event, the passive node still has the drive letters around. This causes the check to return an unknown status for those drives: : UNKNOWN: Could not get free space for: E: E: reason: 21 The fix is to reboot the node but that isn't acceptable to us right now. However, it may not be a big deal if I could prioritize warning and critical events before an unknown drive state like what is shown here. For example, if the C drive goes warning, I would want it to say that before it shows this unknown state of E. I am guessing this has to be something that nsclient++ has to do but not seeing it. Any ideas? Thanks! I am still digging to find a solution to this but haven't found anything yet. Anyone have an idea? Thanks -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july___ 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] prioritizing state returns
This is what I ended up doing. Here's a snippet of checking both cluster nodes and the cluster drives themselves. Sorry for not thinking outside of the box to begin with: define service { use service-active-perf-30 host_name cluster1a,cluster1b service_description disk drives - nrpe check_command check_nrpe_win_drives_free!3G!1G!'D:\\'!'K:\\'!'Q:\\' } define service { use service-active-perf-30 host_name cluster1 service_description disk drives - nrpe check_command check_nrpe_win_drives_free!3G!1G!'C:\\'!'Q:\\' } On Mon, Nov 16, 2009 at 3:18 PM, Martin Melin mme...@gmail.com wrote: So the issue is that you have a single check that checks all the drives on the machine, and then return whatever it considers the worst state - in this case UNKNOWN? Couldn't you simply have one check per drive? This way, you'll know if more than one drive goes out of disk space at the same time as well as give you better history for graphs etc. It's late and I am a bit tired so let me know if I'm missing something obvious here :-) Regards, Martin Melin On Mon, Nov 16, 2009 at 8:23 PM, Terry td3...@gmail.com wrote: On Fri, Nov 13, 2009 at 2:44 PM, Terry td3...@gmail.com wrote: Hello, I have an nsclient++ checkdrivesize check in place. There is a weird condition where with microsoft clusters, after a failover event, the passive node still has the drive letters around. This causes the check to return an unknown status for those drives: : UNKNOWN: Could not get free space for: E: E: reason: 21 The fix is to reboot the node but that isn't acceptable to us right now. However, it may not be a big deal if I could prioritize warning and critical events before an unknown drive state like what is shown here. For example, if the C drive goes warning, I would want it to say that before it shows this unknown state of E. I am guessing this has to be something that nsclient++ has to do but not seeing it. Any ideas? Thanks! I am still digging to find a solution to this but haven't found anything yet. Anyone have an idea? Thanks -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] pnp4nagios, check_snmp, and the `-m' flag
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 16/11/09 03:17 PM, David Krider wrote: I have a system all setup and running with Nagios and PNP4Nagios. Some of the SNMP checks are not making graphs for me. My general habit has been to anchor the SNMP check with the `-m' flag on the check_snmp command. My command: define command { command_name check_snmp command_line $USER1$/check_snmp -H $HOSTADDRESS$ -m $ARG1$ -o $ARG2$ } My service: define service { hostgroup_name power_meters service_description Demand KiloWatts use snmp-service check_command check_snmp! EATON-PWR-MTR-MIB!.1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 servicegroups power_meter_checks } My result: temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -m EATON-PWR-MTR-MIB -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 SNMP OK - 19 kilo-watts | Notice that there's no perfdata. If I leave out the `-m', I get it: temporary configs # /usr/lib/nagios/plugins/check_snmp -H 10.1.25.11 -o .1.3.6.1.4.1.534.8.3.1.5.1.1.4.1 SNMP OK - 19 | iso.3.6.1.4.1.534.8.3.1.5.1.1.4.1=19 It would be nice to keep the units on these calls, just for the sake of it, but this is what's keeping the performance data from being reported in these instances. Just thought I'd post this to the list for future reference. If past experience is any indication of future trending, I'll find this through Google in about 3 years when I can't figure out why I can't get performance data in Nagios again. ;-) The problem is that check_snmp parses the output from snmpget and it appears that when you load the MIB it detects the result as a string (if you post the full debug output (-vvv switch) I will be able to confirm). The best fix would be to use the SNMP C library instead or running snmpget (which would be more reliable too). This is a major rewrite and we don't have time for that right now. - -- Thomas -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFLAd0Z6dZ+Kt5BchYRAr7SAJ40KLEe3jp6GG8S/Vfkc3w15s0oEACfaFBi GVmi/p+ge4iZcg8+CHbDXj8= =531R -END PGP SIGNATURE- -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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] Final stage of getting MRTG working with Nagios v2
My mrtg.cfg: HtmlDir: /var/www/mrtg ImageDir: /var/www/mrtg LogDir: /var/lib/mrtg ThreshDir: /var/lib/mrtg Options[_]: growright, bits #WorkDir: /var/lib/mrtg Target[switch]: 10101:pub...@192.168.1.1 MaxBytes[switch]: 1250 Title[switch]: 3750G Gi1/0/1 Traffic Analysis PageTop[switch]: H1Stats for Gi1/0/1 of 3750G/H1 # [switch] means log file name is switch.log, and it will be created in LogDir. 10101 is the interface-number that I want to monitor. Use snmpwalk -v2c -c community-string HOST 1.3.6.1.2.1.31.1.1.1.1 you'll get lines like this: IF-MIB::ifName.x = STRING: Gi1/0/1 and x is the interface-number. and my switch.cfg: ### define service{ use generic-service host_name 3750G service_description Gi 1/0/1 Traffic check_command check_local_mrtgtraf!/var/lib/mrtg/switch.log!AVG!50,100!150,200!10 } ### The first ARG /var/lib/mrtg/switch.log shows where the mrtg log file is. Make sure it's consistent with the settings in your mrtg.cfg. -- AJay -- Original -- From: xmanhostinganth...@xmanhosting.com.au; Date: Mon, Nov 16, 2009 08:00 PM To: 'AJay'a...@wxsec.com; Subject: RE: [Nagios-users] Final stage of getting MRTG working with Nagios v2 Hello Ajay, Thanks for the reply - however I have no idea what I am looking for in these files as I am new to all of this. Would you be able to point me in the right direction? Kind regards, Anthony. From: xjtu...@qq.com [mailto:xjtu...@qq.com] On Behalf Of AJay Sent: Monday, 16 November 2009 11:24 AM To: xmanhosting; nagios-users Subject: Re:[Nagios-users] Final stage of getting MRTG working with Nagios v2 Your mrtg is probably not working correctly, check you mrtg.cfg and /var/spool/mail/root to see what's going on with mrtg. -- AJay -- Original -- From: xmanhostinganth...@xmanhosting.com.au; Date: Sat, Nov 14, 2009 12:27 PM To: nagios-usersnagios-users@lists.sourceforge.net; Subject: [Nagios-users] Final stage of getting MRTG working with Nagios v2 Hello, I have been fluffing around with Nagios for a couple of weeks, and have nearly finally nailed it. I just have one thing to go. I am trying to get MRTG to work with Nagios. I have got MRGT working locally on my machine , and can see it working by going to these 2 sites (locally) in a browser: file:///usr/local/mrtg-2/share/mrtg2/icons/index.html and file:///usr/local/mrtg-2/share/mrtg2/icons/localhost_2.html I followed the tutorial below to set up my router with Nagios: http://www.thegeekstuff.com/2008/11/how-to-monitor-network-switch-and-ports-using-nagios/ however I am yet to get MRTG working with Nagios: PING OK 11-14-2009 13:13:56 21d 16h 10m 13s 1/3 PING OK - Packet loss = 0%, RTA = 1.38 ms Port 1 Bandwidth Usage UNKNOWN 11-14-2009 13:09:49 21d 16h 8m 43s 3/3 check_mrtgtraf: Unable to open MRTG log file Port 1 Link Status OK 11-14-2009 13:11:29 12d 22h 37m 5s 1/3 SNMP OK - up(1) Uptime OK 11-14-2009 13:10:29 12d 22h 27m 57s 1/3 SNMP OK - Timeticks: (152738042) 17 days, 16:16:20.42 My switch.cfg currently has the following: # Monitor bandwidth via MRTG logs define service{ use generic-service ; Inherit values from a template host_nameBillion service_description Port 1 Bandwidth Usage check_command check_local_mrtgtraf!/usr/local/mrtg-2/share/mrtg2/icons/localhost2.log!AVG!100,100!500,500!10 } My localhost2.log is at the location above: /usr/local/mrtg-2/share/mrtg2/icons/localhost2.log ,however I still must have something wrong for it to not work. When I run: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg , it says: Things look okay - No serious problems were detected during the pre-flight check When I run: /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , it says: --- ERROR: Mrtg will most likely not work properly when the environment variable LANG is set to UTF-8. Please run mrtg in an environment where this is not the case. Try the following command to start: env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg --- When I run: env LANG=C /usr/local/mrtg-2/bin/mrtg /home/mrtg/cfg/mrtg.cfg , there are no errors. Does anyone know what I am still doing wrong Thanks for any help, Kind regards, Anthony-- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and
Re: [Nagios-users] Check external hosts using NRPE
On Nov 16, 2009, at 10:46 AM, ReynierPM wrote: Hi every: I'm trying to check some services in a remote host (Ubuntu Linux 9.04 Server) using NRPE. I have the NRPE plugin installed on both machines: the nagios server and the remote host. I describe below what I've done until now: [reordering for clarity] After all this I'm getting, constantly, these errors: [1258389533] Warning: Return code of 127 for check of service 'SAN Space SDB1' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. 127 means that the program you're trying to run doesn't exist in the path you've specified. #'nrpe' command definition define command{ command_namecheck_nrpe command_line$USERS1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } You mean to use $USER1$ here (presuming that is set to the path to the plugins in resource.cfg). -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 external hosts using NRPE
Marc Powell wrote: After all this I'm getting, constantly, these errors: [1258389533] Warning: Return code of 127 for check of service 'SAN Space SDB1' on host 'bacula-server' was out of bounds. Make sure the plugin you're trying to run actually exists. 127 means that the program you're trying to run doesn't exist in the path you've specified. Did you see the entire email? As I said before I run the command from command line and it works fine. #'nrpe' command definition define command{ command_namecheck_nrpe command_line$USERS1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$ } You mean to use $USER1$ here (presuming that is set to the path to the plugins in resource.cfg). This var is setup and point to /usr/local/nagios/libexec where plugins are located. -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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 external hosts using NRPE
On Nov 16, 2009, at 11:11 PM, ReynierPM wrote: Did you see the entire email? As I said before I run the command from command line and it works fine. So? That's not what's broke as you demonstrated ;) Did you see my entire e-mail? What I'm telling you to fix has nothing to do with manually running it from the command line. -- Marc -- Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july ___ 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