Re: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process, exiting...
I took another stab at it: I created another batch script that merely calls the original one. When I executed the check_nrpe command from the nagios server, I got the same error. I restored the original script by renaming it. I tested it again, and it worked this time. I have no idea why this worked. Beth Stover Systems Administrator 415.395.8768 From: hjbcn [mailto:[EMAIL PROTECTED] Sent: Thursday, November 29, 2007 5:24 PM To: Stover, Beth Subject: Re: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting... May be you should rename your plugin, like "test.bat". I Installed NSClient in Windows XP, and define a command like this check_mail_size=inject CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:MAIL=G:\MAIL\*.* nrpe_ok="C:\Program Files\NSC\scripts\ok.bat" check_os_version="C:\Program Files\NSC\scripts\osver.bat" check_system_dir="C:\Program Files\NSC\scripts\SysDir.bat" and define a service like this define command{ command_name check_nt_nrpe command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -p 5666 -c $ARG1$ } define service{ nameservice_check_os_version_win use generic-service service_description Win Server OS Version check_command check_nt_nrpe!check_os_version register 0 } 2007-11-30 hjbcn ____ 发件人: Stover, Beth 发送时间: 2007-11-30 05:42:57 收件人: nagios-users@lists.sourceforge.net 抄送: 主题: [Nagios-users] NRPE_NT Error: NRPE_NT failed to create process,exiting... Hi there, I’m trying to use NRPE to monitor remote Windows XP machines for the first time. Nagios version 2.8. I have installed check_nrpe on the Nagios server. Windows XP SP2 is the remote host. I installed NRPE_NT Version: 0.7f/2.0 on the XP machine. I edited the nrpe.cfg with the basic info including the following command definition: command[check_cmd]=c:\nrpe\test.cmd Test.cmd is on the XP machine in the following location: c:\nrpe\test.cmd. Here are the contents: @echo off echo hallo from cmd exit 1 I do a basic test from the Nagios server like this and it works: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 NRPE_NT v0.7f/2.0 Next, I try executing the remote cmd file, and this is where I get the error: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd NRPE_NT failed to create process, exiting... There’s nothing in the Windows event log. Nothing interesting in the nagios.log. Am I missing something totally simple? Thanks so much… Beth Stover Systems Administrator 415.395.8768 - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] NRPE_NT Error: NRPE_NT failed to create process, exiting...
Hi there, I'm trying to use NRPE to monitor remote Windows XP machines for the first time. Nagios version 2.8. I have installed check_nrpe on the Nagios server. Windows XP SP2 is the remote host. I installed NRPE_NT Version: 0.7f/2.0 on the XP machine. I edited the nrpe.cfg with the basic info including the following command definition: command[check_cmd]=c:\nrpe\test.cmd Test.cmd is on the XP machine in the following location: c:\nrpe\test.cmd. Here are the contents: @echo off echo hallo from cmd exit 1 I do a basic test from the Nagios server like this and it works: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 NRPE_NT v0.7f/2.0 Next, I try executing the remote cmd file, and this is where I get the error: /usr/local/nagios/libexec/check_nrpe -H 192.168.1.10 -c check_cmd NRPE_NT failed to create process, exiting... There's nothing in the Windows event log. Nothing interesting in the nagios.log. Am I missing something totally simple? Thanks so much... Beth Stover Systems Administrator 415.395.8768 - SF.Net email is sponsored by: The Future of Linux Business White Paper from Novell. From the desktop to the data center, Linux is going mainstream. Let it simplify your IT future. http://altfarm.mediaplex.com/ad/ck/8857-50307-18918-4___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] SMS Notifications - Incomplete Output onHostNotification
You are correct. I had never added the host-notify-by-sms to my contact entry. Thanks for your help! Beth Stover Systems Administrator -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc Powell Sent: Tuesday, June 05, 2007 1:07 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] SMS Notifications - Incomplete Output onHostNotification > -Original Message- > From: [EMAIL PROTECTED] [mailto:nagios-users- > [EMAIL PROTECTED] On Behalf Of Stover, Beth > Sent: Tuesday, June 05, 2007 2:38 PM > To: nagios-users@lists.sourceforge.net > Subject: [Nagios-users] SMS Notifications - Incomplete Output on > HostNotification > > Hi, > > I've fully migrated to Nagios 2.8. My only problem seems to be that host > notifications to my cell using sms_client have incomplete output. Service > notifications using sms_client to my cell work just fine. I'm guessing > this is just some kind of formatting problem on my command definition. > > Here are my notification command definitions: > # 'notify-by-sms' command definition > define command{ > command_namenotify-by-sms > command_line/usr/local/bin/sms_client -q $CONTACTPAGER$ > '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ > ($SERVICEOUTPUT$)' > > } > > #'host-notify-by-sms' command definition define command{ >command_namehost-notify-by-sms > command_line/usr/local/bin/sms_client -q $CONTACTPAGER$ > '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ > ($HOSTOUTPUT$)' > > } Not really related but $SERVICEDESC$ and $SERVICESTATE$ will always be null for a host notification. You should remove them. > Email notifications work fine. Service notifications via SMS work fine. > Only the hsot notifications via SMS do no t work correctly. > > Here's the output I do receive from the host notification via SMS: > > Recovery: > Server1: is () > > These command definitions worked fine on my Nagios v 1.3 system. Not likely since $HOSTOUTPUT$ wasn't valid then ;) In any event, I think they worked fine under 1.3 and you're seeing your current results because host-notify-by-sms is never actually used. Do you really have contact definitions that use host-notify-by-sms? It would seem more likely that they all use notify-by-sms for both service_notification_commands and host_notification_commands. -- Marc - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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 DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] SMS Notifications - Incomplete Output on Host Notification
Hi, I've fully migrated to Nagios 2.8. My only problem seems to be that host notifications to my cell using sms_client have incomplete output. Service notifications using sms_client to my cell work just fine. I'm guessing this is just some kind of formatting problem on my command definition. Here are my notification command definitions: # 'notify-by-email' command definition (ORIGINAL) define command{ command_name notify-by-email command_line echo -e 'Notification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERV ICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$' | /usr/bin/mail -s ' $NOTIFICATIONTYPE$ (service_alert) - $HOSTALIAS$/$ SERVICEDESC$ is $SERVICESTATE$ ' $CONTACTEMAIL$ } # 'host-notify-by-email' command definition define command{ command_namehost-notify-by-email command_lineecho -e "Notification Type:$NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress:$HOSTADDRESS$\nInfo: $HOSTOUTPUT$ \n\nDate/Time: $LONGDATETIME$\n" | /usr/bin/mail -s "$NOTIFICATIONTYPE$ (host_alert) - Host $HOSTNAME$ is $HOSTSTATE$" $CONTACTEMAIL$ } # 'notify-by-sms' command definition define command{ command_namenotify-by-sms command_line/usr/local/bin/sms_client -q $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($SERVICEOUTPUT$)' } #'host-notify-by-sms' command definition define command{ command_namehost-notify-by-sms command_line/usr/local/bin/sms_client -q $CONTACTPAGER$ '$NOTIFICATIONTYPE$: $HOSTNAME$: $SERVICEDESC$ is $SERVICESTATE$ ($HOSTOUTPUT$)' } Email notifications work fine. Service notifications via SMS work fine. Only the hsot notifications via SMS do no t work correctly. Here's the output I do receive from the host notification via SMS: Recovery: Server1: is () These command definitions worked fine on my Nagios v 1.3 system. Any help would be very appreciated. Thanks! Beth Stover Systems Administrator - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Fruity: Call to undefined function preg_match() Error when adding data or importing configs
To update my original post: I re-ran the install of my PHP-extensions, and now I get a different error when trying to import nagios.cfg, cgi.cfg and resource.cfg. I opened up permissions on the file just to be sure, and it still doesn't work. Here's the error: Tangelo Error: Cannot Open Configuration File: /usr/local/nagios/etc/nagios.cfg It seems I'm missing something pretty simple here. This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Fruity: Call to undefined function preg_match() Error when adding data or importing configs
Hi, I'm hoping to get a little help in troubleshooting Fruity errors when I attempt to make certain changes or import the basic Nagios config files: 1. When I try to modify a contact group, I get this error: Fatal error: Call to undefined function preg_match() in /usr/local/www/apache22/data/fruity/includes/adodb/adodb-lib.inc.php on line 596 2. When I try to import nagios.cfg, cgi.cfg or resource.cfg, I get this error: Fatal error: Call to undefined function preg_match() in /usr/local/www/apache22/data/fruity/includes/tangelo.inc.php on line 85 Here are some basics on my setup: Fruity version -- fruity-1.0-rc2 OS -- FreeBSD 6.2 Nagios 2.8 -- it's up and running fine and monitoring 1 host so far. MySQL 5 -- it's up and running. Fruity database is created, nagios tables created, I confirmed that new hosts are added to the database when entered from Fruity PHP5 -- Installed and working PHP Extensions for MySQL -- Installed -- database is being updated Config Files -- www can write to the configs Because PHP, MySQL and Nagios are running fine, I wonder if I didn't install a necessary PHP Extension. Fruity can write to the database, so that doesn't seem to be the problem. Does anyone have any ideas? Anyone out there using Fruity successfully who could lend some advice? Thanks for any help you can give. Beth Stover Systems Administrator 415.395.8768 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] OT: Problem with Cingular TAP Gateway
I found out that they farm the service out to Verisign. After weeks of troubleshooting and no answers, it finally started working again. Now, I see the "verisign" banner when I log in. They claim they didn't change anything, but the proof is in the banner. At least it's working again. Thanks for the input... Beth Stover Systems Administrator 415.395.8768 -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stover, Beth Sent: Saturday, October 15, 2005 1:33 PM To: Robert Hajime Lanning; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] OT: Problem with Cingular TAP Gateway I'm being billed through Cingular and I'm a Cingular user. Is anyone out there dialing the Cingular TAP gateway? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Robert Hajime Lanning Sent: Friday, October 14, 2005 5:54 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] OT: Problem with Cingular TAP Gateway This is the reason we have out of band paging (TAP to Skytel). I had talked to Cingular about the "Enterprise Paging" feature. This is a grandfathered AT&T feature that costs about $9.95/month. Gives you unlimited SMS from the "Enterprise Paging" sources to the phone that has the feature. SMS still costs for other sources and sending. http://www.enterprisepaging.com/ Cingular plans on migrating this service to the offical Cingular network and billing system, by the end of the calendar year. So, until then, the service is not available to "Offical" Cingular customers, only customers still on the old AT&T billing system. You could see about http://www.mblox.com/. They seemed to have bought the old MobileSys company. They provide the ability to send SMS to anywhere, internationaly. But, $$$. They primarily use Internet connections, but also provide TAP access for last resort, like Cingular. I suspect the Cingular feature will be unreliable until to full migration is complete. > What happens if your Internet connection is down? ;] > > Russell > > On Fri, Oct 14, 2005 at 06:37:56PM -0500, Paul Harrison wrote: >> We have sendmail setup on our nagios server to send out email to our >> cingular phones. >> Is there any advantage to sending out SMS messages rather than email? >> >> -Original Message- >> From: [EMAIL PROTECTED] on behalf of Russell >> Adams >> Sent: Fri 10/14/2005 4:56 PM >> To: nagios-users@lists.sourceforge.net >> Cc: >> Subject: [SPAM] Re: [Nagios-users] Problem with Cingular TAP Gateway >> >> >> > -- > Russell Adams[EMAIL PROTECTED] > > PGP Key ID: 0x1160DCB3 http://www.adamsinfoserv.com/ > > Fingerprint:1723 D8CA 4280 1EC9 557F 66E8 1154 E018 1160 DCB3 > -- And, did Guloka think the Ulus were too ugly to save? -Centauri --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null --- SF.Net email is sponsored by: Tame your development challenges with Apache's Geronimo App Server. Download it for free - -and be entered to win a 42" plasma tv or your very own Sony(tm)PSP. Click here to play: http://sourceforge.net/geronimo.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Help with NAGAT
Title: Message I would post in the NAGAT mailing list, but it doesn't look like it's used much. I'm wondering if someone can help me with NAGAT. I have NAGAT installed, PHP is working fine. I can import my configurations from NAGIOS, but I have some questions: First, when I import, then make a change, then export, I get duplicate entries in my NAGIOS cfg files. Is there a way around this? Secondly, is there a way to add hosts to existing service checks? When I edit the service and add a host, then go back to look at the service, the new host exists, but the hosts that were in the service check previously are gone. I'll be working on installing Nagios 2 soon. I was hoping to get an easy front-end working for a co-worker while I'm on vacation. Thanks for your help. Beth StoverSystems Administrator415.395.8768