Re: [Nagios-users] getting repeat emails
Hi Kriek! If you want just to be notified one time, you must set : notification_interval 0 regards -- Fernando Rocha Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Kriek Jooste" wrote: > I am sure I am missing something simple, and would like some extra > eyes on this. > > The effect I'm seeing is that when a service is in a state I want to > send notifications (e.g. CRITICAL) for, it seems to keep on sending > notifications out, every 20 or 30 minutes or so. For example: > 2009-9-29 13:36:38 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1065(1000.0) > 2009-9-29 14:06:25 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1128(1000.0) > 2009-9-29 14:46:33 SERVICE NOTIFICATION: > kriek-email;kokeyserver;Login > Requests;CRITICAL;notify-by-email;CRITICAL LoginRequests:1046(1000.0) > > What I want is for it to notify me only once when it goes from OK to > CRITICAL, until the service is OK again. > > I would have thought this is controlled by notification interval, but > here's the service from the objects cache: > > define service { > host_name kokeyserver > service_description Login Requests > check_period24x7 > check_command service-is-stale > contact_groups linux-admins > notification_period 24x7 > initial_state o > check_interval 5.00 > retry_interval 1.00 > max_check_attempts 3 > is_volatile 0 > parallelize_check 1 > active_checks_enabled 0 > passive_checks_enabled 1 > obsess_over_service 0 > event_handler_enabled 1 > low_flap_threshold 0.00 > high_flap_threshold 0.00 > flap_detection_enabled 0 > flap_detection_options o,w,u,c > freshness_threshold 1800 > check_freshness 1 > notification_optionsu,w,c,r > notifications_enabled 1 > notification_interval 10080.00 > first_notification_delay0.00 > stalking_optionsn > process_perf_data 1 > failure_prediction_enabled 1 > retain_status_information 1 > retain_nonstatus_information1 > } > > -- > Come build with us! The BlackBerry® Developer Conference in SF, > CA > is the only developer event you need to attend this year. Jumpstart > your > developing skills, take BlackBerry mobile applications to market and > stay > ahead of the curve. Join us from November 9-12, 2009. Register > now! > http://p.sf.net/sfu/devconf > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to > /dev/null > > __ __ -- Come build with us! The BlackBerry® Developer Conference in SF, CA is the only developer event you need to attend this year. Jumpstart your developing skills, take BlackBerry mobile applications to market and stay ahead of the curve. Join us from November 9-12, 2009. Register now! http://p.sf.net/sfu/devconf ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Any firewall gotchas for NRPE?
Hi Gabriel, Could you send the command that you are using? []'s -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Gabriel - IP Guys" wrote: > > I’ve just finished configuring a Nagios instance, and I have also install NRPE locally on the same machine. I have configured NRPE and checked that it’s working by running the following, # /usr/lib/nagios/plugins/check_nrpe -H 127.0.0.1 NRPE v2.12 The result comes back as expected. Also, checking swap returns the following. # /usr/lib/nagios/plugins/check_swap -w 20% -c 10% SWAP OK - 100% free (1983 MB out of 1983 MB) |swap=1983MB;396;198;0;1983 So I know that NRPE itself is working, what I can’t figure out is why Nagios not giving me the extra data, I just get the error msg CHECK_NRPE: Socket timeout after 10 seconds. Any advice appreciated. Just to clarify, Nagios and NRPE are running on the same box. --- Kind Regards, Mr Gabriel > -- > Stay on top of everything new and different, both inside and around Java > (TM) technology - register by April 22, and save $200 on the JavaOne (SM) > conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on > sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p > ___ Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include > Nagios version, plugin version (-v) and OS when reporting any issue. ::: > Messages without supporting info will risk being sent to /dev/null-- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] event handler
Hello Anirudh! If you change the check_nrpe to check_nt it will not work. This plugin uses nsclient++, that supports to run commands remotely over the nrpe. To add the event handlers you must change the the agent installed at hosts. To be easily, you can use the OpMon Agent, that is nsclient++ based, has built-in a similar plugin to control windows services and supports also yours check_nt commands. http://www.opservices.com.br/agentes opmonagent-2.8.2.0_autoinstall.exe So, just uninstall the current agent, install the OpMon Agent and use the check_nrpe to run the event handler. > define command{ > command_name win_service_restart > command_line $USER1$/ check_nrpe -H $HOSTADDRESS$ -p 5666 -c service_control > -n -a > } You have also get installed the nrpe on your nagios host, that provides the check_nrpe. -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Anirudh Srinivasan" wrote: > Hey Folks > I am currently working on event handlers to restart services on Windows machines > I have NC_Net installed on all client windows machines. I was looking at this plugin " Windows Failed Service restart batch file" at Nagios Exchange. > File: win_service_restart.cmd > Author: Vadims Zenins http://vadimszenins.blogspot.com > Version: 1.03 > Date: 16/12/2008 17:19 > Windows Failed Service restart batch file for Nagios Event Handler > > Copy win_service_restart.cmd to \NSClient++\scripts\ folder. > > Nagios commands.cfg: > define command{ > command_name win_service_restart > command_line $USER1$/ check_nrpe -H $HOSTADDRESS$ -p 5666 -c > win_service_restart -a "$SERVICEDESC$" $SERVICESTATE$ $SERVICESTATETYPE$ > $SERVICEATTEMPT$ > } > > Nagios template-services_common-win.cfg.cfg > define service{ > name generic-service-win-wuauserv > service_description wuauserv > display_name Automatic Updates > event_handler win_service_restart > event_handler_enabled 1 > check_command check_nt!SERVICESTATE!-d SHOWALL -l $SERVICEDESC$ > } > > NSCLIENT++ NSC.ini: > [NRPE] > allowed_hosts= 192.168.1.1/32 ; your Nagios server IP > allow_arguments=1 > [External Script] > allow_arguments=1 > allow_nasty_meta_chars=1 > [NRPE Handlers] > command[win_service_restart]=scripts\win_service_restart.cmd "$ARG1$" $ARG2$ > $ARG3$ $ARG4$ > > It uses check_nrpe at the commands.cfg file, but here we use check_nt . > My question is, will this work if i change it to check_nt . Or is there any changes that has to be made. > Can anyone please shed light on this . > - > Anirudh Srinivasan > > > -- > Stay on top of everything new and different, both inside and around Java > (TM) technology - register by April 22, and save $200 on the JavaOne (SM) > conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on > sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p > ___ Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include > Nagios version, plugin version (-v) and OS when reporting any issue. ::: > Messages without supporting info will risk being sent to /dev/null -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Untraceable service by-email notification
Hi Kyle, Could you please send your host definition? Probably you have the 'contact_groups' variable at the host definition, and it will be implicitly inherite. take a look at 'Implied Inheritance' from http://nagios.sourceforge.net/docs/3_0/objectinheritance.html []'s -- Fernando Rocha OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Kyle Tucker" wrote: > Hi all, > > I have defined a custom service notification command that I am using > to > send alerts to CA Spectrum. That part is working, but for every alert > I > send, I am also getting a corresponding service notification by email > to > the nagiosadmins contact group despite my service having an inherited > > contacts statement. I have spent hours trying to track this down and > just can't resolve it. I am sure it's being inherited from somewhere, > but I can't see it. Can anyone tell me why the notify-service-by-email > > command is being called? Thanks. > > - Kyle > > Here is the service. > > define service{ > use spectrum-sbgw-service > host_name bt-lin-datactr3 > max_check_attempts1 > service_description check-sbgw-test > check_command check_sbgw > } > > Here is the service template and contact. > > define service{ > name spectrum-sbgw-service ; Spectrum Southbound Gateway > contacts spectrum-sbgw > check_period 24x7 > max_check_attempts3 > normal_check_interval 10 > retry_check_interval 1 > register 1 > } > > define contact{ > contact_name spectrum-sbgw > service_notification_commands notify-service-by-spectrum > service_notification_options w,u,c,r,f,s > service_notification_period 24x7 > host_notification_commandsnotify-host-by-email > host_notification_options d,u,r,f,s > host_notification_period 24x7 > register 1 > } > > The command. > # 'notify-service-by-spectrum' command definition > define command{ > command_name notify-service-by-spectrum > command_line /usr/bin/sudo -u spectrum > /usr/local/scripts/spectrum-sbgw $HOSTNAME$ $HOSTADDRESS$ > $SERVICEDESC$ $SERVICESTATE$ "$SERVICEOUTPUT$" > } > > And here is the action logged. > > Mon Apr 20 10:52:31 2009 SERVICE ALERT: > bt-lin-datactr3;check-sbgw-test;CRITICAL;HARD;1;CRIT: Test failed with > CRIT > Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: > nagiosadmin;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-email;CRIT: > Test failed with CRIT > Mon Apr 20 10:52:31 2009 SERVICE NOTIFICATION: > spectrum-sbgw;bt-lin-datactr3;check-sbgw-test;CRITICAL;notify-service-by-spectrum;CRIT: > Test failed with CRIT > > -- > - Kyle > - > ky...@panix.com http://www.panix.com/~kylet > - > > -- > Stay on top of everything new and different, both inside and > around Java (TM) technology - register by April 22, and save > $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. > 300 plus technical and hands-on sessions. Register today. > Use priority code J9JMT32. http://p.sf.net/sfu/p > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > ::: Messages without supporting info will risk being sent to /dev/null -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Compile Nagios Plugin 1.4.13
Hello Felipe! To compile MySQLPerf plugin i just did it: - compile the nagios plugins $ tar -zxvf nagios-plugins-1.4.13.tar.gz $ cd nagios-plugins-1.4.13 $ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-cgiurl=/nagios/cgi-bin $pwd /usr/local/src/nagios-plugins-1.4.13 - put the plugins path at --with-officialplugins $ tar -zxvf check_mysql_perf-1.3.2.3.tar.gz $ cd check_mysql_perf-1.3.2.3 $ ./configure --prefix=/usr/local/nagios --with-nagios-user=nagios --with-nagios-group=nagios --with-officialplugins=/usr/local/src/nagios-plugins-1.4.13 And it works fine! About the packages that you have talked about I got installed the following packages: openssl-0.9.7a-42.2 openssl-devel-0.9.7a-42.2 freeradius-1.0.1-2.FC3.1 openldap-2.2.13-2 openldap-servers-2.2.13-2 openldap-clients-2.2.13-2 openldap-devel-2.2.13-2 I hope it helps you! []'s -- Fernando Rocha Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Felipe Ferreira" wrote: > Problems Compile Nagios Plugin 1.4.13 > All this big mess started because I need the MySQLPerf plugin, whitch > is > a really cool plugin, but it needs the > source of the official plugin. > > The version I am compiling is the 1.4.13 and by running the config I > got > quite a few (WARNINGS): > > configure:22140: WARNING: Skipping PostgreSQL plugin (check_pgsql) > configure:22142: WARNING: LIBS="-lcrypt " CPPFLAGS="" > configure:22144: WARNING: install PostgreSQL libs to compile this > plugin > (see REQUIREMENTS). > configure:22309: WARNING: Skipping radius plugin > configure:22311: WARNING: install radius libs to compile this plugin > (see REQUIREMENTS). > configure:22581: WARNING: Skipping LDAP plugin > configure:22583: WARNING: install LDAP libs to compile this plugin > (see > REQUIREMENTS). > configure:27208: WARNING: Could not find qmail-qstat or eqivalent > > Since I would like to have the radius and LDAP option I looked up the > Requirements: > > check_radius > # wget ftp://ftp.cityline.net/pub/radiusclient/radiusclient-0.3.tar.gz > # cd radiusclient-0.3 > # ./configure > # make > # make install > > check_ldap: > - Requires the LDAP libraries available from > http://www.openldap.org/ > Lib: libldap, liblber > Redhat Source: openldap-1.2.9-6.i386.rpm, > openldap-devel-1.2.9-6.i386.rpm > I was unable to get LDAP libraries to work. > > I just did: > # ./configure --with-openssl=/usr/include/openssl > --enable-perl-modules > --with-perl=/usr/bin/perl --with-nagios-user=nagios > > --with-apt-get-command: /usr/bin/apt-get > --with-ping6-command: /bin/ping6 -n -U -w %d -c %d %s > --with-ping-command: /bin/ping -n -U -w %d -c %d %s > --with-ipv6: yes > --with-mysql: /usr/bin/mysql_config > --with-openssl: yes > --with-gnutls: no > --enable-extra-opts: no > --with-perl: /usr/bin/perl > --enable-perl-modules: yes > --with-cgiurl: /nagios/cgi-bin > --with-trusted-path: /bin:/sbin:/usr/bin:/usr/sbin > > After download and compiling both radiusclient-ng and the official > one: > I get error on the make. > /include/openssl/include -I/usr/include/openssl/include -g -O2 -MT > check_radius.o -MD -MP -MF ".deps/check_radius.Tpo" -c -o > check_radius.o > check_radius.c; \ > then mv -f ".deps/check_radius.Tpo" ".deps/check_radius.Po"; else rm > -f > ".deps/check_radius.Tpo"; exit 1; fi > check_radius.c: In function ‘main’: > check_radius.c:142: error: ‘BUFFER_LEN’ undeclared (first use in this > function) > check_radius.c:142: error: (Each undeclared identifier is reported > only once > check_radius.c:142: error: for each function it appears in.) > make[2]: *** [check_radius.o] Error 1 > > I see the ./configure does: > configure:22158: checking for rc_read_config in -lradiusclient > configure:22193: gcc -o conftest -g -O2 -L. conftest.c -lradiusclient > >&5 > ac_cv_lib_radiusclient_rc_read_config=yes > EXTRAS=' check_radius check_ide_smart check_mysql check_mysql_query > check_procs check_nagios check_dns check_hpjd check_snmp check_game > check_fping check_by_ssh check_swap check_dig check_apt check_nt' > RADIUSLIBS='-lradiusclient' > > Then I find the radiusclient: > # dpkg -l | grep radius > ii libpam-radius-auth 1.3.16-4.3 The PAM RADIUS authentication module > # dpkg -purge libpam-radius-auth > Still no LUCKY > Updated OPENSSL > From openssl 0.9.8c-4etch3 to openssl_0.9.8c-4etch4_i386.deb > > Installed both debian radius called "libradius1" and "libradius1-dev". > > Still same problem! > 2 questions, > 1.Is it possi
Re: [Nagios-users] FW: Warning examples
Hi Machiel, You can use the Snare EventLog Agent for windows to send the events to the nagios server and then handle like a simple local log. http://www.intersectalliance.com/projects/SnareWindows/ -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Machiel Richards" <[EMAIL PROTECTED]> wrote: > > Hi everyone We are trying to find something we can use in order to monitor these Windows type event log for specific event codes and then to report warnings on the codes. Can anyone tell me if there is something available for Nagios that can do this? We are currently using Nagios as our monitoring system and would like to keep everything on there. Here are an example of the evn logs I am reffering to. *** Disclaimer *** The information contained in this e-mail is confidential and legally privileged and is intended solely for the addressee and to others who have the authority to receive it. Access to this e-mail by anyone else is unauthorized and as such, any disclosure, copying, distribution or any action taken or omitted in reliance on it is unlawful. If you have received this e-mail in error, please notify the sender immediately. The views expressed in this e-mail are the views of the individual sender and should in no way be construed as the views of the Company. The Company is not liable to ensure that outgoing e-mails are virus-free. The Company is not liable, should information or data, for whatever reason, be corrupted or fail to reach its intended addressee. The Company is not liable for any loss or damage of whatsoever nature and howsoever arising resulting from the opening or the use of the information in this e-mail, including its attachments and links. The sender of this e-mail is subject to and bound by the terms and conditions of Company’s Electronic Communications Usage Policy. > - > This SF.Net email is sponsored by the Moblin Your Move Developer's challenge > Build the coolest Linux based applications with Moblin SDK & win great prizes > Grand prize is a trip for two to an Open Source event anywhere in the world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Alerts generated when max_check_attempts set to 3
Hi Deborah, As Seth said, you are right! The point is when the service changes its state type. It is also responsable for the send notifications. http://nagios.sourceforge.net/docs/3_0/statetypes.html []'s -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Seth Simmons" <[EMAIL PROTECTED]> wrote: > Yes you are. > > If you have a host notification and set max_check_attempts to 1 and, > let's say you also have check_interval to 60 (1 min) for a host then > disconnect the cable, within the next minute Nagios check will fail > and > send immediate notification of host down because the check attempt > was > 1. If you say max_check_attempts is 3, and do the same thing, the > host > will show as down, but unless you reconnect within the next couple > min > before that 3rd check, Nagios won't send out a notification. Once it > hits that 3rd check and is still in a down state, it will then send > notification of host down. If by the 3rd check it has recovered, no > notification is sent. > > HTH > > -Original Message- > From: Deborah Martin [mailto:[EMAIL PROTECTED] > Sent: Monday, November 24, 2008 6:08 AM > To: 'nagios-users@lists.sourceforge.net' > Subject: [Nagios-users] Alerts generated when max_check_attempts set > to > 3 > Importance: High > > Hi, > > Just a quick question - I'm changing the max_check_attempts from 1 to > 3 > for > a specific plugin and I wondered, does this mean that an email > notification > won't go out until the 3rd attempt is reached ? (Which is what I want > to > achieve). Or will all 3 attempts generate an email notification. > > The docs say the following :- > > "max_check_attempts: This directive is used to define the number of > times > that Nagios will retry the service check command if it returns any > state > other than an OK state. Setting this value to 1 will cause Nagios to > generate an alert without retrying the service check again. " > > Am I understanding this correctly ? > > Thanks, > Deborah > > > > > *** > This email and any files transmitted with it are confidential and > intended solely for the use of the individual or entity to whom they > are > addressed. > > Any unauthorised distribution or copying is strictly prohibited. > Whilst Kognitio Limited takes steps to prevent the transmission of > viruses via e-mail, we can not guarantee that any email 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. > > Kognitio Limited, a company registered in England and Wales. > Registered > number 0212 7833. Registered Office: 3a Waterside Park, Cookham > Road, > Bracknell, Berks, RG12 1RB. VAT number 864 4378 92. > > Kognitio Inc, a company incorporated in Delaware, principal office > 180 > North Stetson, Suite 3500, Chicago, IL 60601, USA > > *** > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win > great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/lis
Re: [Nagios-users] check for crash?
Hi Israel, I think that by the check_process is hard to identify this issue, because as you said the process still running and just stop to work. How do you know when it crashes? Is there some log occurrences? Does it gives some errors on the web page? -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Israel Brewster" <[EMAIL PROTECTED]> wrote: > I'm wondering if anyone can give me suggestions as to how to monitor a > > specific process to make sure it keeps running properly. The specific > > issue I have is that I have a Java Webstart applet running on OpenBSD > > 4.4 that, from time to time, randomly crashes. I can't just use > check_process (I don't think so, at least) because when it "crashes" > > the process never actually exits- it just stops working. I have to go > > in and manually kill it before I can restart it. Does anyone have any > > thoughts as to how I could check for this situation? I realize this > may not strictly be a nagios question, and I apologize to anyone who > > is bothered by that, but since I would be doing the monitoring with > Nagios this seemed the most logical place I could think of to ask. > Thanks! > > --- > Israel Brewster > Computer Support Technician > Frontier Flying Service Inc. > 5245 Airport Industrial Rd > Fairbanks, AK 99709 > (907) 450-7250 x293 > --- > > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 monitoring SQL?
Hi Esteban, When you use the parameter -S in the tsql you should specify the SERVER on the /etc/freetds.conf, it is like a tnsnames.ora for Oracle databases. look at there if you have a entrance that looks like that: [MYSERVER] host = 10.10.10.10 port = 1433 tds version = 7.0 #try domain login = yes try server login = yes nt domain = MYDOMAIN otherwise you can change the -S by the -H an -p. /usr/local/bin/tsql -H 10.10.10.10 -p 1433 -U user -P pass []'s -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Esteban Torres Rodriguez" <[EMAIL PROTECTED]> wrote: > Anyone can send me the plugin modify correct for mysql? > > + tsqlcmd=/usr/local/bin/tsql > ++ which cat > + catcmd=/bin/cat > ++ which grep > + grepcmd=/bin/grep > ++ which rm > + rmcmd=/bin/rm > ++ which mktemp > + mktempcmd=/bin/mktemp > ++ which wc > + wccmd=/usr/bin/wc > ++ which sed > + sedcmd=/bin/sed > ++ which tr > + trcmd=/usr/bin/tr > ++ which uniq > + uniqcmd=/usr/bin/uniq > + hostname=server > + usr=user > + pswd=pass > + srv=2000 > + '[' '!' 4 == 4 ']' > + '[' /usr/local/bin/tsql == '' ']' > + exit=3 > ++ /bin/mktemp /tmp/server.XX > + tmpfile=/tmp/server.Zy3286 > + '[' 2000 == 7 ']' > + '[' 2000 == 2000 ']' > + spid=50 > + echo -e 'select loginame from sys.sysprocesses where spid > 50 > order > by loginame asc\ngo' > ++ /bin/mktemp /tmp/server.XX > + resultfile=/tmp/server.jn3287 > ++ /bin/mktemp /tmp/server.XX > + errorfile=/tmp/server.Xa3288 > + /usr/local/bin/tsql -S server -U user -P pass > + /bin/grep -q 'Login failed for user' /tmp/server.Xa3288 > + '[' 1 == 0 ']' > + /bin/grep -q 'There was a problem connecting to the server' > /tmp/server.Xa3288 > + '[' 0 == 0 ']' > + /bin/rm -f /tmp/server.Zy3286 /tmp/server.jn3287 /tmp/server.Xa3288 > + echo CRITICAL - Could not make connection to SQL server. Incorrect > server name or SQL service not running. > CRITICAL - Could not make connection to SQL server. Incorrect server > name or SQL service not running. > + exit 2 > > > Esteban Torres Rodríguez > ÁREA DE SOPORTE TÉCNICO Subdirección de Sistemas Informáticos > Empresa Pública Desarrollo Agrario y Pesquero, > email: [EMAIL PROTECTED] > > > >>> Fernando Rocha <[EMAIL PROTECTED]> 19/11/2008 > 14:25 > >>> > Hi Esteban, > > Try to run the command with "sh -x" before the check_mssql.sh and > then > send the result to us: > > [EMAIL PROTECTED] libexec]# sh -x check_mssql.sh server user pass 2000 > > []'s > -- > Fernando Rocha <[EMAIL PROTECTED]> > Analista de Suporte - Operação > OpServices - Porto Alegre - RS - Brasil > +55 51 3275.3588 > www.opservices.com.br > www.opmon.org > > - "Esteban Torres Rodriguez" <[EMAIL PROTECTED]> wrote: > > > how to monitoring SQL? > > > > I tried monitoring SQL, but not running. > > > > I use check_mssql.sh. > > > > > > > > ./check_mssql.sh server user pass 2000 > > > > CRITICAL - Could not make connection to SQL server. Incorrect > server > > name or SQL service not running. > > > > Esteban Torres Rodríguez > > ÁREA DE SOPORTE TÉCNICO Subdirección de Sistemas Informáticos > > Empresa Pública Desarrollo Agrario y Pesquero, > > email: [EMAIL PROTECTED] > > > > > > > - > > This SF.Net email is sponsored by the Moblin Your Move Developer's > > challenge > > Build the coolest Linux based applications with Moblin SDK & win > great > > prizes > > Grand prize is a trip for two to an Open Source event anywhere in > the > > world > > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > > ___ > > Nagios-users mailing list > > Nagios-users@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/nagios-users > > ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios not sending service alerts
Hi Alexus, Is just for this contact/service? have you tried by the command line? is there some occurrence on the nagios logs? -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "alexus" <[EMAIL PROTECTED]> wrote: > anyone else have some ideas? > > > > On Tue, Nov 18, 2008 at 3:25 PM, alexus <[EMAIL PROTECTED]> wrote: > > everything is enabled > > > > through WEB UI as well > > > > On Tue, Nov 18, 2008 at 11:09 AM, Marc Powell <[EMAIL PROTECTED]> wrote: > >> > >> On Nov 18, 2008, at 9:46 AM, alexus wrote: > >> > >>> define contactgroup { > >>> contactgroup_name staff > >>> alias staff > >>> members DAC2 > >>> } > >>> > >>> define contact { > >>> contact_nameDAC2 > >>> alias XXX > >>> host_notification_period24x7 > >>> service_notification_period 24x7 > >>> host_notification_options d,u,r > >>> service_notification_optionsw,u,c,r > >>> host_notification_commands notify-host-by-email > >>> service_notification_commands notify-service-by-email > >>> email [EMAIL PROTECTED] > >>> pager [EMAIL PROTECTED] > >>> } > >> > >> Looks fine. Are notifications disabled for the service in the web > >> interface or disabled globally, either in nagios.cfg or via the > web > >> interface? > >> > >> -- > >> Marc > >> > >> > >> > - > >> This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > >> Build the coolest Linux based applications with Moblin SDK & win > great prizes > >> Grand prize is a trip for two to an Open Source event anywhere in > the world > >> http://moblin-contest.org/redirect.php?banner_id=100&url=/ > >> ___ > >> Nagios-users mailing list > >> Nagios-users@lists.sourceforge.net > >> https://lists.sourceforge.net/lists/listinfo/nagios-users > >> ::: Please include Nagios version, plugin version (-v) and OS when > reporting any issue. > >> ::: Messages without supporting info will risk being sent to > /dev/null > >> > > > > > > > > -- > > http://alexus.org/ > > > > > > -- > http://alexus.org/ > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 monitoring SQL?
Hi Esteban, Try to run the command with "sh -x" before the check_mssql.sh and then send the result to us: [EMAIL PROTECTED] libexec]# sh -x check_mssql.sh server user pass 2000 []'s -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Esteban Torres Rodriguez" <[EMAIL PROTECTED]> wrote: > how to monitoring SQL? > > I tried monitoring SQL, but not running. > > I use check_mssql.sh. > > > > ./check_mssql.sh server user pass 2000 > > CRITICAL - Could not make connection to SQL server. Incorrect server > name or SQL service not running. > > Esteban Torres Rodríguez > ÁREA DE SOPORTE TÉCNICO Subdirección de Sistemas Informáticos > Empresa Pública Desarrollo Agrario y Pesquero, > email: [EMAIL PROTECTED] > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge > Build the coolest Linux based applications with Moblin SDK & win great > prizes > Grand prize is a trip for two to an Open Source event anywhere in the > world > http://moblin-contest.org/redirect.php?banner_id=100&url=/ > ___ > Nagios-users mailing list > Nagios-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/nagios-users > ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Notify more than once
Hi Ed, I haven't see nothing wrong, the service definition should overwrite the template definition. But, you can try the volatile services to send notifications until the service isn't reset by an OK. http://nagios.sourceforge.net/docs/3_0/volatileservices.html []'s -- Fernando Rocha <[EMAIL PROTECTED]> Analista de Suporte - Operação OpServices - Porto Alegre - RS - Brasil +55 51 3275.3588 www.opservices.com.br www.opmon.org - "Ed Greenberg" <[EMAIL PROTECTED]> wrote: > I have a bunch of active, and even some passive, alerts that notify > every 'notification_interval' minutes properly until reset by an OK, > but > I have on stubborn one. > > Below I've provided all the config info that I think is relevant. > Also > the entry in service.dat showing an unissued notification. > > Can somebody help me figure out what I've done wrong? > > Here is the definition of the service and everything that should > define > the need to alert every five minutes. > define service { > use passive-alert-only-service > register 1 > notification_interval 5 < I expect a notify every > five > minutes > service_description viral_email_not_received > hostgroup_name viral_email_not_received > check_command generic_notify!viral email not received > contact_groups edg > } > define service { > name passive-alert-only-service > use generic-service > is_volatile 0 > active_checks_enabled 0 > passive_checks_enabled 1 > check_freshness 0 > register 0 > max_check_attempts 1 > normal_check_interval 1 > retry_check_interval1 > notification_interval 0<--- this should have been > overridden by the line in the service definition above, right? > notification_period 24x7 > notification_options c > } > > define contactgroup{ > contactgroup_name edg > alias edg > members edg > } > > define contact{ > contact_nameedg <- This is me > alias Another Nagios Admin > host_notification_period24x7 > service_notification_period 24x7 > host_notification_options d,r > service_notification_optionsw,u,c,r > host_notification_commands > host-notify-by-email,host-notify-by-epager > service_notification_commands > notify-by-email,notify-by-epager > email xxx > pager xxx > } > > The alert was fired with the following string sent to send_nsca: > admin005.geni.com viral_email_not_received2 > sample_email not received > > This is the current state of the alert from status.dat: > service { > host_name=admin005.geni.com > service_description=viral_email_not_received > modified_attributes=0 > check_command=generic_notify!viral email not received > event_handler= > has_been_checked=1 > should_be_scheduled=0 > check_execution_time=0.000 > check_latency=3.015 > check_type=1 > current_state=2 > last_hard_state=2 > current_attempt=1 > max_attempts=1 > state_type=1 > last_state_change=1227034513 > last_hard_state_change=1227034513 > last_time_ok=0 > last_time_warning=0 > last_time_unknown=0 > last_time_critical=1227034513 > plugin_output=sample_email not received > performance_data= > last_check=1227034513 > next_check=0 > current_notification_number=1 > last_notification=1227034516< this time is accurate > as > to the first alert > next_notification=1227034816< this alert never > happened > and is now eleven minutes in the past as I write > no_more_notifications=0 > notifications_enabled=1 > active_checks_enabled=0 > passive_checks_enabled=1 > event_handler_enabled=1 > problem_has_been_acknowledged=0 > acknowledgement_type=0 > flap_detection_enabled=1 > failure_prediction_enabled=1 > process_performance_data=1 > obsess_over_service=1 > last_update=1227035386 > is_flapping=0 > percent_state_change=6.25 > scheduled_downtime_depth=0 > } > > > > > - > This SF.Net email is sponsored by the Moblin Your Move Developer's > challenge >
Re: [Nagios-users] Service Return Code 255 Problem
Hi, The Nagios plugins should return codes based on the POSIX. Probably your plugin is returning a code out of this range. Take a look: http://nagiosplug.sourceforge.net/developer-guidelines.html#AEN78 Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Mark Novak" <[EMAIL PROTECTED]> To: nagios-users@lists.sourceforge.net Sent: Friday, November 14, 2008 2:40:19 PM (GMT-0300) Auto-Detected Subject: [Nagios-users] Service Return Code 255 Problem Hello Everyone, I have searched the archives and also googled for my scenario, but have not found any answers that relate. I am running Nagios 3.0.5 stable to monitor a few servers and services. For one particular SAP server, I am using the check_sap_ccms service to check some SAP services. Seemingly randomly yesterday, two of the SAP checks (FrontEndNetTime and DialogResponseTime) have started showing a "Return Code of 255 is out of bounds" error in the Nagios log and also on the web front end. Strangely, those are just two of about 10 different checks that all use the same "check_sap_ccms" check with the same argument for hostname and only these two are having errors. Even stranger, I can execute those two checks via command line and they work fine. The error is only in Nagios. Any advice on where to look would be much appreciated! Thanks, Mark Novak EDS, an HP Company SAP Practice Bestshore/GC Architect Delivery Lead Cell:214-725-5295 Email: [EMAIL PROTECTED] - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 Processes in Linux
Hi Edwin! Could you please give more details about the OS? Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Edwin Zoeller" <[EMAIL PROTECTED]> To: nagios-users@lists.sourceforge.net Sent: Tuesday, August 12, 2008 4:21:13 PM (GMT-0300) Auto-Detected Subject: [Nagios-users] Check Processes in Linux I have downloaded to check_procs scripts for the exchange and I am having a hell of a time to get it to work. I get "bad interpreter" and have done all I could to fix it. Can someone let me know what I am doing wrong or how they are monitoring processes. Thanks, Ed - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services
This is Portuguese and we'll translate that for the next release. Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Fernando Rocha" <[EMAIL PROTECTED]> Cc: "Nagios Users Mailinglist" Sent: Tuesday, July 15, 2008 7:42:56 PM (GMT-0300) Auto-Detected Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services OK, after some searching I found another download of OpMonAgent and it has a lot more in it. The previous one had 3 files whereas this one has numerous .bat files and others. However the ini is still in Spanish. [NRPECOMMAND] ;Usado para testar se está funcionando o agente test=c:\opmon\test.bat ;Usado para verificar se existe algum serviço configurado como automático mas que não está rodando services=cmd /c cscript //NOLOGO "c:\opmon\check_all_services.wsf" ;Usado para verificar se existe algum serviço configurado como automático mas que não está rodando, ;porém ignora o "Service Name" ou "Display Name" passado por parâmetro, para mais de um separe por vírgula services_exclude=cmd /c cscript //NOLOGO "c:\opmon\check_all_services.wsf" /exclude:$ARG1$ ;Usado de forma genérica para plugins opservices.exe, passando por parâmetro "nome_executável" e mais 8 possíveis parâmetros ;onde um parâmetro não usado deve-se passar 0 check_remote=c:\opmon\check_remote.cmd $ARG1$ $ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$ $ARG9$ ;Usado para iniciar, parar ou restartar um serviço, deve-se passar por parâmetro o "Service Name" e a "ação"(stop, start ou restart) service_control=c:\opmon\service-control.cmd $ARG1$ $ARG2$ ;Lê o conteúdo de um arquivo, que contenha uma linha com um valor read_file=c:\opmon\read_file.bat $ARG1$ I tried some translator apps but a bad translation is probably harder to read than actual Spanish. From: Fernando Rocha [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 2:11 PM To: Jonathan Williams Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Jonathan, The client installed on the host doesn't matter if both of them have support to nrpe. They will have a configuration file where you'll define the commands to run over check_nrpe. NSClient++ uses NSC.ini OpMonAgent uses opmonagent.ini But to make it easy, the OpMonAgent has a command to restart services built-in his configuration file. So, if you have the OpMonAgent running on host, you just need run the following command from your nagios server: /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "spooler" start But, if you are using NSClient++ you need define a command into the configuration file first, then you'll use this command in the check_nrpe. Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Fernando Rocha" <[EMAIL PROTECTED]> Cc: "Nagios Users Mailinglist" Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I feel like I am back at square one. It seems like a simple task to get Nagios to restart a service. I have NRPE now running on the server under xinedt, and switched the client back to NSClient++ from OpMon Agent. Both support NRPE. I am not sure if I am supposed to get a service restarted with a NRPE_Check command like: /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "spooler" start Or am is supposed to create scripts on the host that will restart a service like a .bat file with a “net start spooler” command and than get an event_handler set up to call that script. It seems there are different ways to do it and I am being pulled both directions. I am new to Nagios as well as Linux and have been able to scrap my way thus far while learning a lot about both, but am about ready to call it quits. I was pointed to the NakedNuns website to the section on CheckExternalScripts, but honestly could not make much sense of it. From: Fernando Rocha [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:38 AM To: Jonathan Williams Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Jonathan, make sure that you have the xinetd installed and check if there is the following directory: [EMAIL PROTECTED] ~]# ls /etc/xinetd.d/ chargen-dgram daytime-dgram discard-dgram echo-dgram eklogin gssftp krb5-telnet ktalk rsync time-dgram chargen-stream daytime-stream discard-stream echo-stream ekrb5-telnet k
Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services
Jonathan, The client installed on the host doesn't matter if both of them have support to nrpe. They will have a configuration file where you'll define the commands to run over check_nrpe. NSClient++ uses NSC.ini OpMonAgent uses opmonagent.ini But to make it easy, the OpMonAgent has a command to restart services built-in his configuration file. So, if you have the OpMonAgent running on host, you just need run the following command from your nagios server: /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "spooler" start But, if you are using NSClient++ you need define a command into the configuration file first, then you'll use this command in the check_nrpe. Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Fernando Rocha" <[EMAIL PROTECTED]> Cc: "Nagios Users Mailinglist" Sent: Tuesday, July 15, 2008 4:57:07 PM (GMT-0300) Auto-Detected Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I feel like I am back at square one. It seems like a simple task to get Nagios to restart a service. I have NRPE now running on the server under xinedt, and switched the client back to NSClient++ from OpMon Agent. Both support NRPE. I am not sure if I am supposed to get a service restarted with a NRPE_Check command like: /usr/local/nagios/libexec/check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "spooler" start Or am is supposed to create scripts on the host that will restart a service like a .bat file with a “net start spooler” command and than get an event_handler set up to call that script. It seems there are different ways to do it and I am being pulled both directions. I am new to Nagios as well as Linux and have been able to scrap my way thus far while learning a lot about both, but am about ready to call it quits. I was pointed to the NakedNuns website to the section on CheckExternalScripts, but honestly could not make much sense of it. From: Fernando Rocha [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 15, 2008 4:38 AM To: Jonathan Williams Cc: Nagios Users Mailinglist Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Jonathan, make sure that you have the xinetd installed and check if there is the following directory: [EMAIL PROTECTED] ~]# ls /etc/xinetd.d/ chargen-dgram daytime-dgram discard-dgram echo-dgram eklogin gssftp krb5-telnet ktalk rsync time-dgram chargen-stream daytime-stream discard-stream echo-stream ekrb5-telnet klogin kshell nrpe tcpmux-server time-stream if you don't have that, try to install by apt-get! and then, run the command again Make install-xinetd or you can install just writing a file like this: [EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe service nrpe { flags = REUSE socket_type = stream wait = no only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE) user = nagios (PUT THE NAGIOS USER HERE) server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER) server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE CONFIG FILE) log_on_failure += USERID disable = no } and then restart xinetd! Fernando Rocha OpServices Tecnologia da Informação ----- Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Fernando Rocha" <[EMAIL PROTECTED]> Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I was able to compile that without ssl and was able to install the pugin’s using the following Make install-plugin Make install-daemon Make install-daemon-config Those worked finer however the next step says: Install the NRPE daemon as a service under xinetd Make install-xinetd I run that command and get: [EMAIL PROTECTED]:- /downloads/nrpe-2.8# cannot create regular file ‘/ect/xinetd.d/nrpe’ No such file or directory make: *** [install-xinetd] Error 1 Any thoughts?? Thanks, Jon From: Fernando Rocha [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 11:49 AM To: Jonathan Williams Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Hi Jonathan! try to use the option --disable-ssl when you run ./configure Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Paulo Ribas" <[EMAIL PROTECTED]> Cc: nagios-users@lists.sourceforge.net Sent: Monday, July 14, 2008 11:52:48 AM (GMT-0300) Auto-Detected Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I am having a little trouble installing
Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services
Jonathan, make sure that you have the xinetd installed and check if there is the following directory: [EMAIL PROTECTED] ~]# ls /etc/xinetd.d/ chargen-dgram daytime-dgram discard-dgram echo-dgram eklogin gssftp krb5-telnet ktalk rsync time-dgram chargen-stream daytime-stream discard-stream echo-stream ekrb5-telnet klogin kshell nrpe tcpmux-server time-stream if you don't have that, try to install by apt-get! and then, run the command again Make install-xinetd or you can install just writing a file like this: [EMAIL PROTECTED] ~]# cat /etc/xinetd.d/nrpe service nrpe { flags = REUSE socket_type = stream wait = no only_from = 127.0.0.1 (PUT YOURS NARIOS SERVER'S IPS HERE) user = nagios (PUT THE NAGIOS USER HERE) server = /usr/local/nagios/libexec/nrpe (THE NRPE SERVER) server_args = -c /usr/local/nagios/libexec/nrpe.cfg --inetd (THE NRPE CONFIG FILE) log_on_failure += USERID disable = no } and then restart xinetd! Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Fernando Rocha" <[EMAIL PROTECTED]> Sent: Monday, July 14, 2008 7:07:57 PM (GMT-0300) Auto-Detected Subject: RE: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I was able to compile that without ssl and was able to install the pugin’s using the following Make install-plugin Make install-daemon Make install-daemon-config Those worked finer however the next step says: Install the NRPE daemon as a service under xinetd Make install-xinetd I run that command and get: [EMAIL PROTECTED]:- /downloads/nrpe-2.8# cannot create regular file ‘/ect/xinetd.d/nrpe’ No such file or directory make: *** [install-xinetd] Error 1 Any thoughts?? Thanks, Jon From: Fernando Rocha [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 11:49 AM To: Jonathan Williams Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Hi Jonathan! try to use the option --disable-ssl when you run ./configure Fernando Rocha OpServices Tecnologia da Informação - Original Message - From: "Jonathan Williams" <[EMAIL PROTECTED]> To: "Paulo Ribas" <[EMAIL PROTECTED]> Cc: nagios-users@lists.sourceforge.net Sent: Monday, July 14, 2008 11:52:48 AM (GMT-0300) Auto-Detected Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services I am having a little trouble installing the NRPE 2.8 plug in Ubuntu. I am able to extract the source code tarball and than I am having issues after that. Per the instructions I am trying to compile the NRPE add-on by running ./configure make all After I type ./configure I get a message at the end of the compile job saying “configuration error: Cannot find ssl libraries. Than if I try to go further by installing the plugins by typing make all or the individual make install-pluggin I get an error saying ** No rule to make target ‘all’. Stop. From: Paulo Ribas [mailto:[EMAIL PROTECTED] Sent: Friday, July 11, 2008 2:04 PM To: Jonathan Williams Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to restart services Ok, If you need, contact me. []'s -- - "Jonathan Williams" wrote: > I found the NRPE add-on (not plug-in) so I will download and install that. I’ll let you know if I run into anything. You have been more than helpful. Thanks, Jon From: Paulo Ribas [mailto:[EMAIL PROTECTED] > Sent: Friday, July 11, 2008 1:49 PM > To: Jonathan Williams > Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to > restart services check_nrpe is part of the package nrpe, if you use ubuntu, I believe that only an "apt-get install nrpe" solve your problem. []'s > -- > > > - "Jonathan Williams" wrote: > > OK.. I do not have check_nrpe so apparently I need to download that plug-in on by Ubuntu box. From: Paulo Ribas [mailto:[EMAIL PROTECTED] > > Sent: Friday, July 11, 2008 1:42 PM > > To: Jonathan Williams > > Subject: Re: [Nagios-users] Help - I am unable to get the NSClient++ to > > restart services The commando must be: > > > > define command{ command_name restart-Spooler command_line PATH/ check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "Spooler" start } > > > > ex: define command{ command_name restart-Spooler command_line /usr/local/nagios/libexec/ check_nrpe -H $HOSTADDRESS$ -p 5666 -n -c service_control -a "Spooler" start } risk being sent to /dev/null - Sponsored by: SourceForge.net Community Choice Awards: VOTE N