Re: [Nagios-users] check_http plugin and a proxy?
The only problem Ive found with this is the https component. It doesnt appear to speak connect when talking to the proxy. On 4/21/07, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Frost, Mark {PBG} Sent: Friday, April 20, 2007 9:18 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] check_http plugin and a proxy? Hello. I have the Nagios Plugins 1.4.8. Is it possible to make check_http use a proxy to talk to another host? We had been using an older version of check_http_perl which will allow us to use a proxy host. I'm converting most of our checks to use the check_http code and I don't see anything that indicates that I can tell it to use a proxy. Is this possible? Yes, using the -H, -I and -u parameters. For example, the following command will request www.example.bar through the proxy located at $HOSTADDRESS$ via port 8080 and verify that it sees either '/html' or '/HTML' -- define command { command_name check_caching command_line $USER1$/check_http -H www.example.bar -I $HOSTADDRESS$ -p 8080 -wt 20 -ct 30 -to 35 -u http://www.example.bar -R \/html } -- 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
Re: [Nagios-users] Nagios, Zabbix, OpenNMS?
The biggest problem I have with OpenNMS and Zabbix is the reliance on SNMP. Most of the checks I do arent SNMP checks. What would be best is if the plugins for Nagios could be used on OpenNMS or Zabbix or another network monitor. On 4/23/07, Carsten Philipp [EMAIL PROTECTED] wrote: Hello, i work at a german research institute. We are searching for a good monitoring tool, which can control many PCs with Debian Linux and some with Windows. We already have a Nagios with many selfmade scripts here, but my boss also wants statistics with nice graphs like rrdtool. ;-) The nagiosgrapher isn`t running yet, because of some problems with cpan and perl. Does anybody have some experiences with Zabbix, OpenNMS or Cacti? I read something about nagios scripts support in the latest opennms version? We also need special scripts for swapping, cpu, printers (SNMP), bacula (backup), SMART, ... So what can you recommend? Regards, Carsten Philipp - 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
Re: [Nagios-users] Compare HTTP Page to Saved Copy
-m for the minimum size is also useful for a limited number of checks. I ran into this problem during a LAMP database problem resulted in the error page still being delivered. After all the webserver was still up. :) Bill On 9/20/06, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Max Clark Sent: Wednesday, September 20, 2006 12:08 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Compare HTTP Page to Saved Copy Hi all, One one of our servers we are serving a custom 404 error page from the application code itself - what's happened is when the page breaks our nagios monitor does not see the error because the error page is being served quickly and properly. Is it possible to compare the results of a page with the previously queried page? Or would it be possible to look for a specific string and alert if the string is present? Run check_http --help. You'll want one of -s, -r or -R. -- Marc - 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.phpp=sourceforgeCID=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 - 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.phpp=sourceforgeCID=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] Check MS Terminal Services
Building a check around http://www.rdesktop.org/ might achieve what your looking for. On 6/28/06, Williard, Jason [EMAIL PROTECTED] wrote: Does anyone have any suggestions that do not involve installing additional software on the Windows servers? Jason Williard I would suggest nc_net instead. NSClient does not work with Windows 2003 SP1, nc_net does. Only downside (i guess) is that it needs the .NET redistributable on there. Which is standard on 2003 unless I am much mistaken (don't install many windows boxes myself nomore). Cheers, Hans On 6/28/06, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Use NSclient to check windows services. install nsclient on windows server and check TS service by nagios plugin. Thanks regards ** Vinay Sharma Information Systems and Solutions Advanex Inc (www.advanex.co.jp) Fon : 813-3822-5863 Fax : 813-5815-7881 Email : [EMAIL PROTECTED] Williard, Jason [EMAIL PROTECTED]宛先: nagios-users@lists.sourceforge.net 送信者:cc: [EMAIL PROTECTED]: [Nagios-users] Check MS Terminal Services ceforge.net 2006/06/28 09:42 I have several Windows 2003 Servers that I would like to check the status of the terminal services on.What is the best method of doing this?Is there a special plugin available for this purpose? Jason Williard E-MAIL CONFIDENTIALITY NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 E-MAIL CONFIDENTIALITY NOTICE: The contents of this e-mail message and any attachments are intended solely for the addressee(s) and may contain confidential and/or legally privileged information. If you are not the intended recipient of this message or if this message has been addressed to you in error, please immediately alert the sender by reply e-mail and then delete this message and any attachments. If you are not the intended recipient, you are notified that any use, dissemination, distribution, copying, or storage of this message or any attachment is strictly prohibited. Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios
Re: [Nagios-users] Monitoring HTTPS
Joe, The check_http command will work with SSL if youre not behind a proxy. When I try it with SSL behind a proxy it tries to make the SSL connection with the proxy not with the website. Ive been using curl in such. Thanks, Bill On 5/18/06, Joe Regular [EMAIL PROTECTED] wrote: I'm sure that I can use Nagios to monitor HTTPS but I can't figure out how to get it working. I do have HTTP. Can someone please point me in the right direction? Joe --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmdlnkkid0709bid3057dat1642 ___ 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 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Monitoring HTTPS
Has anyone got this working through a proxy server? On 5/18/06, Frank Thyes [EMAIL PROTECTED] wrote: +++ C. Bensend [Thu, May 18, 2006 at 09:17:47PM CEST]: You're not testing SSL (missing the -S switch). Here is my check_cert definition: define command{ command_namecheck_cert command_line$USER1$/check_http -S -H $ARG1$ -C 7 -t 20 } Note you'll have to follow the previous instructions to get SSL support first. x:/usr/local/src/nagios-plugins-1.4.2/plugins# ./check_http www.verisign.com -S -C 1 WARNING - Certificate expires in 379 day(s) (06/01/2007 23:59). Bloody help file... x:/usr/local/src/nagios-plugins-1.4.2/plugins# ./check_http -h CHECK CERTIFICATE: check_http www.verisign.com -C 14 When the certificate of 'www.verisign.com' is valid for more than 14 days, a STATE_OK is returned. When the certificate is still valid, but for less than 14 days, a STATE_WARNING is returned. A STATE_CRITICAL will be returned when the certificate is expired. Thanks C. Regards Frank -- Computers are like air conditioners. Both stop working, if you open windows. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ 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 file size
Escape the spaces? d:\Program\ Files\Exchsrvr\MDBDATA\priv1.stm d:\Program\ Files\Exchsrvr\MDBDATA\priv1.edb http://nscplus.medin.name/index.php/CheckFileSize Was also seeing double backslashes from the link above command_line check_nrpe -H $HOSTADDRESS$ -p 5666 -c CheckFileSize -a MaxWarn=2G MaxCrit=4G File=c:\\pagefile.sys MaxWarn=1K MaxCrit=512 File=c:\\boot.ini On 4/27/06, ThomasC. [EMAIL PROTECTED] wrote: Hi List, I am trying to monitor the size of Exchange database files. I have tried several ways to handle space character in file path but none worked. Anyone has an idea ? The command is : check_exchangeDB=inject CheckFileSize MaxWarn=15G MaxCrit=16G File=d:\Program Files\Exchsrvr\MDBDATA\priv1.stm File=d:\Program Files\Exchsrvr\MDBDATA\priv1.edb I have tried that : check_exchangeDB=inject CheckFileSize MaxWarn=15G MaxCrit=16G File=d:\Program Files\Exchsrvr\MDBDATA\priv1.stm File=d:\Program Files\Exchsrvr\MDBDATA\priv1.edb but it returns (in Test mode) Unknown argument : Files\Exchsrvr\MDBDATA\priv1.stm Thanks in advance. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ 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] Exchange database monitoring size
Nagios Client with filesize check: http://nscplus.medin.name/index.php/CheckFileSize On 4/20/06, ThomasC. [EMAIL PROTECTED] wrote: Hi, Is there's anyone monitoring the size of MS Exchange database ? As far as i know, there is a perl script that checks filesize of one file but not two... Exchange database is made of two files i assume (priv1.stm priv1.edb). Thanks. --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] (no subject)
Edward, Some quick check the power type questions: Does it work as the user nagios? Ive had to put the /path/to/perl in the check_command to get some of the perl stuff to work back in the 1.3 age. Probably could have fixed it with pathes but it was just clearer to put it in the check command. Bill On 4/20/06, ECJ [EMAIL PROTECTED] wrote: Hello all, I have been googling for the last week for this 'No Output' problem. Sadly I can't find any helpful solution so I am bringing this up to the list. I am running Nagios 1.2 to monitor routers and Unix/Linux servers for sometime now without any issue. But a few days ago, I added an entry to my config files to monitor a Windows server. The only correct thing I can see is that it sees that the server is up. Other than that, all I see are 'No output' critical errors. The other thing is that I see a valid output using command line. Here is my entry in the checkcommands.cfg file: define command{ command_namecheck_win_mem command_line/usr/lib/nagios/plugins/check_win_mem.pl $HOSTADDRESS$ $ARG1$ $ARG2$ $ARG3$ } And here is the entry in the hosts.cfg file: define service{ use check-windows-generic host_name my-server contact_groups windows_admin service_description MEM Usage check_command check_win_mem!public!50!90! } When I run /usr/lib/nagios/plugins/check_win_mem.pl IP community warn crit, it gives me a useful output. But when it comes to the web interface, I only see 'No output.' I know this can be done but just don't know what else to do. I hope someone can help me out. Thanks a heap in advance!!! Cheers, Edward --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ 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 --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid0709bid3057dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_NRPE Error
Sameka, Trying a lower truncate number (512) with nscp (http://nscplus.medin.name/index.php/Main_Page) fixes the similar error message for me. The error in my case is being generated from an event log check overflowing the 1024 return limit on nrpe. Bill On 4/11/06, Sameka Prather [EMAIL PROTECTED] wrote: I am telling my nagios log and I see a Service Alert : samp-02;load;unknown;soft;2;check_nrpe: error receiving data from host. Now the server is not completely in production yet, so the load is 0. Could this be due to the load being 0 or have I configured something wrong? Thank you, Sameka Prather Office of Internet Services [EMAIL PROTECTED] 301-713-1384 x 109 --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Check_ntp
Mark, Where is utils.pm located? Thanks, Bill On 3/23/06, Marc Powell [EMAIL PROTECTED] wrote: -Original Message- From: Marco Borsani [mailto:[EMAIL PROTECTED] Sent: Thursday, March 23, 2006 9:23 AM To: Marc Powell; 'NAGIOS' Subject: R: [Nagios-users] Check_ntp My lines were: use lib /usr/local/nagios/libexec /libexec use utils qw($TIMEOUT %ERRORS print_revision support); Now the command answers correctly !! ;-) The help on-line (check_ntp -h) is not so easy to understand... Does check_ntp compare the target host specified time with the locale time (Nagios server time) or what? I don't use the plugin but the help says Checks the local timestamp offset versus host with ntpdate so I would say the answer is yes. -- Marc --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ 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 xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ 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 notifying by email
My notify-by-email=snip==define command {command_name notify-by-emailcommand_line /usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$ | /usr/bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ }=snip==Does /bin/mail exist on your system? Is /bin/mail accessible by the nagios user?What I can think of off the top of my head. Bill On 2/20/06, Dave Stern [EMAIL PROTECTED] wrote: We have two iterations at our site, one running the old netsaint (whichworks flawlessly) and one running nagios 1.2 on RHEL E3-AS. The latterrebuilds its config files each night based on various site-specificfiles detailing what hosts we have, what to monitor on them etc. The Linux version is not notifying when hosts/services go down. I suspectthis is nothing more than the notify-by-email command.On netsaint, it'scommand[notify-by-email]=/usr/bin/printf '%s\n%s\n%s\n%s' '* NetSaint 0.0.7 * $SERVICESTATE$ alert/notification''Host: $HOSTNAME$ Address: $HOSTADDRESS$', 'Additional Info: $OUTPUT$' | /usr/bin/mailx -s 'Service alert: $HOSTNAME$ is $SERVICESTATE$ **, $SERVICEDESC$' $CONTACTEMAIL$ and on linux its# 'notify-by-email' command definitiondefine command{ command_namenotify-by-email command_line/usr/bin/printf %b * Nagios*\n\nNotificati on Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditionalInfo:\n\n$OUTPUT$ | /bin/mail -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$ SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ }Does anyone know what the command should look like and how to test the above?Thanks=-=-=-=-=-=-=-=-=-=-generated by /dev/dave -=-=-=-=-=-=-=-=-=-=-=-= David SternUniversity of MarylandInstitute for Advanced Computer Studies---This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642___Nagios-users mailing list Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] monitor directory size?
HP, Lets take the easier route. nsclient++ (http://sourceforge.net/project/showfiles.php?group_id=131326) added checks for Filesize since this thread started. checkout http://nscplus.medin.name/index.php/CheckFileSizeHope this is helpful, Bill On 2/14/06, HP Geeza [EMAIL PROTECTED] wrote: Hi Bill,Im still confused as to what i need to do/run on the nagios serverandthen how that in turn can send an alert if the value returned by the .batfile is over say 500MB?I've installed nsclient++ on the remote windows serverand in NSC.ini ivegot:command[check_cmd]=D:\hello.cmdhello.cmd contains:@echo offecho hello world.exit 1now using this as an example im wondering what i need to do/run from thenagios server inorder to check if the value returned by hello.cmd is hellowworld and if so have a status of ok.sorry to bother you...but i i could really do with the help!From: Bill Jacqmein [EMAIL PROTECTED] To: HP Geeza [EMAIL PROTECTED]Subject: Re: [Nagios-users] monitor directory size?Date: Tue, 14 Feb 2006 11:30:52 -0500 in NSC.iniin the NRPE handlers sectionmycheck=c:\somecheck.batFor coding the batch fileuseful - http://nagiosplug.sourceforge.net/developer-guidelines.htmlThe main part is the return codesNumeric ValueService StatusStatus Description0 OKThe plugin was able to check the service and it appeared to be functioningproperly1WarningThe plugin was able to check the service, but it appeared to be above some warning threshold or did not appear to be working properly2CriticalThe plugin detected that either the service was not running or it was abovesome critical threshold 3UnknownInvalid command line arguments were supplied to the plugin or low-levelfailures internal to the plugin (such as unable to fork, or open a tcpsocket) that prevent it from performing the specified operation. Higher-level errors (such as name resolution errors, socket timeouts, etc)are outside of the control of plugins and should generally NOT be reportedas UNKNOWN states.Hopeful this was enough get you closer to a solution. If not I have to writeone in the near future so I will send how I went about creating the check.Thanks, BillOn 2/14/06, HP Geeza [EMAIL PROTECTED] wrote: Hi Bill, Im affraid im having some trouble with nsclient++ and running a batch files via check_nrep.Could you please help me with the syntax that i need to use to setup the check on both the nagios server and remote windows server. any help would be great!From: Bill Jacqmein [EMAIL PROTECTED] To: HP Geeza [EMAIL PROTECTED] Subject: Re: [Nagios-users] monitor directory size? Date: Mon, 13 Feb 2006 14:44:40 -0500nsclient++ has the ability to run batch files via check_nrep. Might bean option to do a dir and parse the filesize out of that. On 2/13/06, HP Geeza [EMAIL PROTECTED] wrote: From what i can tell though check_snmp_storage.pl only allows you to checkfor particular kinds of storage settingswhat i need to do is monitorthesize of a directory on a remote windows server for example, d:\data i am using nsclient at the moment but can't monitor directory size (onlydisk space).Is there a way to monitor a directories size via snmp From: Hendrik Baecker [EMAIL PROTECTED]To: nagios-users@lists.sourceforge.netSubject: Re: [Nagios-users] monitor directory size?Date: Mon, 13 Feb 2006 12:44:00 +0100Google for: check_snmp_storage.pl HP Geeza schrieb:Hi All,I was wondering whether it is possible to monitor the size of a directory(eg find out how big it is in in MB or GBs) and then send an alert whenthe size goes over a certain threshold? Any help would be great!_ The new MSN Search Toolbar now includes Desktop search!http://toolbar.msn.co.uk/ ---This SF.net email is sponsored by: Splunk Inc. Do you grep through logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___Nagios-users mailing list Nagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info willriskbeingsent to /dev/null ---This SF.net email is sponsored by: Splunk Inc. Do you grep through logfilesfor problems?Stop!Download the new AJAX search engine thatmakessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK!http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642
Re: [Nagios-users] How to define a service for a host_group?
define service{ hostgroup_name hostgroup_name host_name !server1...}Will work and is how Im currently doing exclusions on my Nagios2 instance. On 1/30/06, Kai Reese [EMAIL PROTECTED] wrote: I suppose you could then do something likedefine service{host_name hostgroup_name, !server1, !server2..}That might check all the hosts except the 2 you exclused by ! KaiPS: untested, I don't check services on hostgroups.On 1/27/06, Toto Capuccino [EMAIL PROTECTED] wrote: but that's another story mate ;) 2006/1/27, Don Lewis [EMAIL PROTECTED]: Of course then if you wanted a certain host not to have that service monitored you would have to remove it from the group which in turn would remove it from anything else that is being monitored on it..;) -Don On Fri, 2006-01-27 at 11:33 +0100, Toto Capuccino wrote: yes there is you create a houstgroup in hostgroups.cfg and then put the hostgroup name in services.cfg define service{ hostgroup_name v240_servers .. } 2006/1/27, Alberto [EMAIL PROTECTED]: Is there any way to define services for a hostgroup something like... define service{ host_name v240_servers .. } and not having to specify all hosts everytime I define a new service define service{ host_name node1,node2,node4,... } --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642___ Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Graphing values from nagios
insert.pl has to know where the configuration files are. and I think show.cgi has to have some edits made to it as well. On 1/28/06, moshe sharon [EMAIL PROTECTED] wrote: Hello change the system to debug mode and then just run insert.pl it will tell you what wrong. you can also remove all the entries from the map file and add them one by one. then you will find out what causing the problem. if its not working paste the whole map file and ill check the regexp Moshe SHaron On 1/28/06, Toto Capuccino [EMAIL PROTECTED] wrote: I try to graph the ping command :the nagiosgraph.log gives:Sat Jan 28 14:48:37 2006 CGI debug: Config rrdtool:/usr/bin/rrdtool Sat Jan 28 14:48:37 2006 CGI debug: @db=Sat Jan 28 14:48:37 2006 CGI info: Listing frparsv03_PING db files in /usr/local/nagios/nagiosgraph/rrd: Sat Jan 28 14:48:37 2006 CGI info: System /usr/bin/rrdtool graph - -a PNG --start -3456 the map file contains :# Service type: ping# output:PING OK - Packet loss = 0%, RTA = 0.00 m/output:PING.*?(\d+)%.+?([.\d]+)\sms/ and push @s, [ ping, [ losspct, GAUGE, $1 ], [ rta, GAUGE, $2/1000 ] ];and the ouput of the check_ping gives :check_ping -H 10.1.1.5 -w 3000.0,80% -c 5000.0,100% -p 1PING OK - Packet loss = 0%, RTA = 0.42 msi see that the rrdtool get no values, so there should be at least an erro in the map file, but i am not a perl coder. The service type uses RTA = 0.00 m and my ouput uses ms instead of just m ...maybe it is one of the reason i get broken links in the http page and no rrd files created.Can you give a hand, anyone ? Thank you. 2006/1/28, Toto Capuccino [EMAIL PROTECTED]: i had a look and it fits to install from nagios 2 at leat but i am running version 1.3. Anyone got nagiosgraph running under nagios1.3? 2006/1/27, Todd Barbera [EMAIL PROTECTED]: http://cvs.sourceforge.net/viewcvs.py/*checkout*/nagiosgraph/nagiosgraph/INSTALL Check out this install link. I believe you are missing some entries in nagios.cfg (assuming you are using nagiosgraph and not Nagiosgrapher). Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 12:01 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Graphing values from nagios i didnt get nagiosgraph working, maybe you can help.I followed the INSTALL paper. I got nagiosgraph.conf, map, insert.pl and show.cgi in /usr/local/nagios/nagiosgraph/ In nagios.cfg i set: process_performance_data=1 service_perfdata_command=process-service-perfdata In misccommands.cfg: define command { command_name process-service-perfdata command_line /usr/local/nagios/nagiosgraph/insert.pl $LASTCHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$OUTPUT$\t$PERFDATA$ } an icon in .../share/images/logos/ in /usr/local/nagios/etc/serviceextinfo.cfg Most services can be graphed with no particular configuration like this: define serviceextinfo { service_description serviceblabla host_name server01,server02 notes_url /nagiosgraph/show.cgi?host=$HOSTNAME$service=$SERVICEDESC$ icon_image graph.gif icon_image_alt View graphs } ScriptAlias /nagiosgraph/ /usr/local/nagios/nagiosgraph/ in apache2.conf. The result i get is simply nothing. What did i forgot ? What do i have to put in nagios.cfg to link to serviceextinfo.cfg ? I put cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg without success. Do i have to put something in services.cfg? Thanks Have you installed a graphing add-on? nagiosgraph works fairly well. You can pretty much graph anything so long as you have a grasp of Perl. Todd -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] ] On Behalf Of Toto CapuccinoSent: Friday, January 27, 2006 10:56 AM To: nagios-users@lists.sourceforge.netSubject: [Nagios-users] Graphing values from nagios Hi,Can someone show me the way to success ? I want to graph the values i get from nsclient check-nt -v USEDDISKSPACE on servers. Is that possible ? How can i retrieve values monitored ? Thanks for thoughts, help, lessons.
Re: [Nagios-users] check_ntp and windoze 2003...
I see the same thing on Windows 2003 but only one some installs. Ive been trying to use the following KB article http://support.microsoft.com/kb/875424/en-us Snipped from the article1.Click Start, click Run, type cmd, and then press ENTER.2.At the command prompt, type the following commands in the order that they are given. After you type each command, press ENTER. •w32tm /config /manualpeerlist:NTP_server_IP_Address,0x8 /syncfromflags:MANUAL•net stop w32time•net start w32time •w32tm /resyncRegards, Bill On 1/19/06, Francois Meehan [EMAIL PROTECTED] wrote: Hi all,We are monitoring NTP for a bunch of windows servers, we have no problemswith win2k machines but with the win 2003, we're getting the followingerror:NTP CRITICAL: No suitable peer server found - Server for ntp probably down We know the machines have NTP configured properly.Is there special configuration involved with Windows 2003?Regards,François--- This SF.net email is sponsored by: Splunk Inc. Do you grep through log filesfor problems?Stop!Download the new AJAX search engine that makessearching your log files as easy as surfing theweb.DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmdlnkkid3432bid#0486dat1642___ Nagios-users mailing listNagios-users@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.::: Messages without supporting info will risk being sent to /dev/null