Re: [Nagios-users] nagiosgraph for paging file
2009/4/9 Assaf Flatto assaf.fla...@ssp-intl.com: Hello I've been using nagiosgraph for a while , and i am slowly adding new graphs to the nagios , now i am trying to add a graph for our windows based machines , to show the Page file use , this is what i have now now in my map file : # Service type: ntcount # check command: check_nt -H $HOSTADDRESS$ -t 20 -p 1248 -v COUNTER -l $ARG1$ -w $ARG2$ -c $ARG3$ # output: Paging file usage is 53.07 % # perfdata:Paging file usage is %.2f %%=1.899340%;35.00;90.00; #/prefdata:Paging file usage is.*=([.0-9]+)%;([.0-9]+);([.0-9]+)/ /output:Paging file usage is (\d+)%/ and push @s, [ pagecounter, [ pageused , GAUGE, $1 ], # [ pagewarn , GAUGE, $2 ], # [ pagecrit , GAUGE, $3 ], ]; As you can see i tried the prefdata , and output options but with no success . From the nagiosgrapg.log : Thu Apr 9 10:51:38 2009 insert.pl debug - processdata data = [ '1239270667', 'Host', 'Page file use', 'Paging file usage is 1.90 %', 'Paging file usage is %.2f %%=1.897430%;35.00;90.00; ' ]; Thu Apr 9 10:51:38 2009 insert.pl warn - perfdata not recognized: date||host||desc||out||data for: servicedescr:Page file use output:Paging file usage is 1.90 % perfdata:Paging file usage is %.2f %%=1.897430%;35.00;90.00; Can anyone help me understand where my mistake is ? Thank You The normal version of check_nt doesn't do performance data very well. You might be better off querying the NSClient++ agent using check_nrpe rather than check_nt. Alternatively I guess you could try the enhanced version of check_nt which comes with nc_net. See http://www.nagiosexchange.org/cgi-bin/page.cgi?g=1663.html;d=1 hth, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] Pppnp4nagios graph customization
2009/4/9 mohanda...@tcs.com: Hi All, We have installed nagios (3.0.5) on Solaris sparc box and configured rrdtool (1.2.19) along with pnp4nagios- npcd (0.4.13) for dashboard/graph. By default we are getting following graph for locolhost free swap. I want to configure following requirements : (1) can we add more variable (i.e say Total Swap ) in graph ? (2) Can we create different-different color in graph for different-different status critical- RED,OK-Green,Warnijng-Yellow ? (3) last question how can we change graph updation time interval (here it's showing as 20 Minutes) however in our service definition,it's 10 Minutes Following is default graph for your better understanding : I believe there's a typo in the default.php template which means default graphs don't show the maximum value. Copy the file default.php from /usr/local/nagios/share/pnp/templates.dist/ to the ../templates folder, giving it the name check_local_swap.php. Then edit this file to correct the problem. The erroneous section is: if ($WARN[$i] != ) { $warning = $WARN[$i]; } if ($CRIT[$i] != ) { $critical = $CRIT[$i]; } if ($MIN[$i] != ) { $lower = --lower= . $MIN[$i]; $minimum = $MIN[$i]; } if ($CRIT[$i] != ) {THIS LINE IS WRONG!! $upper = --upper= . $MAX[$i]; $maximum = $MAX[$i]; } if ($UNIT[$i] == %%) { $vlabel = %; } In the line I've pointed out here, it should read $MAX not $CRIT. Whether that fixes your problem will depend also on whether your plugin returns the performance data in the correct format. You can also edit the template to change colours and so on. As for the time interval, I'm not too sure. If you want to tinker with the template, you'll need to read up on how it all works, for example at http://oss.oetiker.ch/rrdtool/doc/rrdgraph.en.html and edit the template accordingly. For in-depth discussion of PNP, I recommend you subscribe to their email list https://lists.sourceforge.net/lists/listinfo/pnp4nagios-users hth, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] nagiosgraph for paging file
2009/4/9 Assaf Flatto assaf.fla...@ssp-intl.com: Jim Thanks for the advise , i will try it . My confusion is that i am able to get graphs from the check_nt for other checks : # Service type: ntdisk # check command: check_nt -H Address -v USEDDISKSPACE -lc -w 75 -c 90 # output: L: - total: 200.00 Gb - used: 188.43 Gb (94%) - free 11.56 Gb (6%) # perfdata: L:\ Used Space=4.10Gb;19.40;23.28;0.00;25.87 /perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ and push @s, [ ntdisk, [ diskused, GAUGE, $1*1024**3 ], [ diskwarn, GAUGE, $2*1024**3 ], [ diskcrit, GAUGE, $3*1024**3 ], [ diskmaxi, GAUGE, $5*1024**3 ] ]; works and i have the graphs and also : # Service type: ntmem # check command: check_nt -H Address -v MEMUSE -w 50 -c 90 # output: Memory usage: total:2467.75 Mb - used: 510.38 Mb (21%) - free: 1957.37 Mb (79%) # perfdata: Memory usage=510.38Mb;1233.88;2220.98;0.00;2467.75 /perfdata:.*usage=([.0-9]+)Mb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ and push @s, [ ntmem, [ memused, GAUGE, $1*1024**2 ], [ memwarn, GAUGE, $2*1024**2 ], [ memcrit, GAUGE, $3*1024**2 ], [ memmmax, GAUGE, $5*1024**2 ] ]; works. I tried to use the same mechanism and a similar regex , but still it fails . Yes, some of the -v options work okay and others (in particular -v COUNTER) don't work well or at all with the default check_nt plugin. Cheers, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] Excluding a hostgroup from a service check
2009/4/9 Edward Trochim ejtroc...@alaska.edu: I have a service template that specifies several host groups and one host to check. One of the services that inherits this template should not be executed by one of the host groups defined. I read the object tricks documentation page and found that I could include a ! before the name in a hostgroup_name definition in the service definition to exclude that hostgroup from that service. However, when I do that nagios excludes all hostgroups from the list from running that service. That explanation of the problem might be a little thick so here is an abbreviated example. I have a service template like this: define service{ name standard-check use generic-service hostgroup_name hostgroup1, hostgroup2, hostgroup3,\ hostgroup4, hostgroup5, hostgroup6,\ hostgroup7 host_name host1 servicegroups standard_checks register 0 } And a service definition like this. I want to exclude hostgroup5 from this one service definition: define service{ use standard-check hostgroup_name !hostgroup5 service_description Disk Space } Instead of doing what I want this excludes every hostgroup defined in the template. host1 still gets the service though. I am currently running nagios version 3.0.6. Is this a bug in nagios or am I misunderstanding the way this should behave? -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null The line hostgroup_name !hostgroup5 will completely supercede anything previously specified for hostgroup_name in the template. If you want it to be processed as an addition to what was in your template, you need to prefix the list with a +. So in your service definition, you need to put: hostgroup_name +!hostgroup5 I've only ever used this syntax myself for specifying additional contacts, but I guess the logic would be the same for hostgroups too. Give it a try anyway and come back if it doesn't work. I assume you're using Nagios 3. I don't think use of + in this way was possible in version 2. Cheers, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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] more than a variable in a pnp4nagios graph
2009/4/6 Sergio Ariel sergio.ar...@iris.uh.cu: I'm using pnp4nagios and now I need to graph more than a variable in the same graph. Somebody does know how to obtain that? You can use DRRAW http://web.taranis.org/drraw/ . I believe it can be done within PNP too, but I haven't tried it. This was discussed on the pnp4nagios email list recently. Check the archive at http://sourceforge.net/mailarchive/forum.php?forum_name=pnp4nagios-users for the thread generating gathering graph from several host / services. See also the recent threads in the nagios-users email list with the subject pnp4nagios - view graph for disabled service. hth, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ 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: Adding Windows Servers to monitor
2009/4/6 Dei Bertine deibert...@yahoo.com: Thanks for the detailed explanation, Jim. So far I'm not getting a successful rate on adding my Windows server in Nagios. Followed detailed instructions in Nagios but still getting errors. http://nagios.sourceforge.net/docs/3_0/monitoring-windows.html Is there an easy way to add the Windows servers in Nagios or other documentation that I can follow? Please kindly advise, need expertise assistance. I've already recommended one to you - [quote] An excellent way to get started with Nagios is to read the book Nagios by Wolfgang Barth. http://nostarch.com/nagios_2e.htm [/quote] This book can be purchased as a .pdf download, so you can buy it right now if you wish. You will find other documentation on the NSClient++ web site, but if you want an easy to follow guide to monitoring windows servers with Nagios, I firmly believe Wolfgang Barth's book is by far the best for you. Cheers, Jim -- This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] pnp4nagios - view graph for disabled service
2009/4/4 Dhaval Thakar dhaval.tha...@networthdirect.com: Hi, I am using pnp4nagios to generate rrd graphs for all nagios hosts services. It is working fine for active services, If I am trying to view graph for disabled / removed service, graph is disabled. e.g I am monitoring traffic for eth0 eth1 for a month. for some reason I stopped monitoring eth1, now I need utilization graph. in this case eth1 is disabled in pnp4nagios. I am unable to view graph unless I change time for eth1.xml (NAGIOS_TIMET) Is there any option in pnp to view graph for disabled service (apart from time change in respective xml file), kindly guide me to solve this. I normally view a graph which does work okay then just enter a similar url, but with the relevant strings changed to match the old graph I want to view. Another thing I noticed is that DRRAW will pick up old .rrd databases. Try Max Schubert's excellent version re-engineered to work well with PNP at http://github.com/perldork/drraw-pnp/tree/master hth, Jim -- ___ 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 Error: Could not find any host matching/Could not expand hostgroups and/or hosts
Error: Could not find any host matching 'win4503' Nagios has found an object which refers to a host called win4503, but can't find a host definition for it anywhere in your configuration files. Error: Could not expand hostgroups and/or hosts specified in service (config file '/usr/local/nagios/etc/windows.cfg', starting on line 36) This tells you where Nagios found this problem. It looks like you have defined a service in your windows.cfg file, but have not created a host definition for host win4503'. Have a look through the sample configuration files to see what a host definition should look like, or see http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host An excellent way to get started with Nagios is to read the book Nagios by Wolfgang Barth. http://nostarch.com/nagios_2e.htm hth, Jim -- ___ 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] Assigning Services to Hosts/Hostgroups
2009/4/3 Chris Pepper pep...@cbio.mskcc.org: Thanks! It seems somewhat backwards to me that I cannot specify in the service directly, and this keeps tripping me up. A service is always uniquely identified by both the host name and the service description. If you keep that in mind, hopefully it will make a little more sense. If you really want to specify your services in your host definitions ... You can create a hostgroup which is going to contain all hosts with the service you want to add. You can create a service associated with that hostgroup (rather than a single host). You could also create a host template which just sets the hostgroup and nothing else. You can then add the service to a host by simply applying that host template to the host. If you call the template something appropriate like hostgroup-service-ftp it should become quite intuitive. You can read up on how to apply mutiple templates to an object at http://nagios.sourceforge.net/docs/3_0/objectinheritance.html hth, Jim -- ___ 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] configure Nagios to monitor the temperature of the server room
2009/4/1 ben amar benamar.moha...@free.fr: How to configure Nagios to monitor the temperature of the server room? What plugin? I can't say I've tried it myself, but this one is advertised on www.nagios.org :- http://www.nagios.org/products/environmental/esensors/em01b.php hth, Jim -- ___ 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 with installation past the first host/switch/service
2009/4/2 John BORIS jbo...@adphila.org: I have nagios 3.x setup and installed on Fedora 10. Works fine but I only have 1 server, 1 switch, 1 printer, 1 windows server setup. How do you add more of the same type? The instructions (all that I could find) say Do this for the first one but then fall silent on what to do with the second, third etc. The same thing goes for the switches and any other device or host Any insight would be appreciated even a good pointer to a How-To. All of my searches have failed to provide any insight into this. The 2nd, 3rd and so on are similar to the 1st except the host_name, alias and address will be different for each. A good way of getting a head start learning how to configure Nagios is to buy a book on the subject. I recommend Nagios by Wolfgang Barth - http://nostarch.com/nagios_2e.htm hth, Jim -- ___ 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] Internet speed
2009/3/30 Idriss ARABBAJ arab...@gmail.com: Hi all, I want to know the Internet speed on my network, there is already a plugin of that? You'll find some plugins which might be useful to you (depending on what your equipment is and whether you can query it using SNMP) at http://nagios.manubulon.com/ . Also look at http://www.nagiosexchange.org where plugins and other useful add-ons for Nagios can be found. If you want to graph the output from those plugins, you can use pnp4nagios. hth, Jim -- ___ 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 applications through NSCA
2009/3/30 Kumar, Ashish xml.de...@gmail.com: Hello, I am planning to move application/process monitoring setup from active to passive monitoring. I read http://nagios.sourceforge.net/download/contrib/documentation/misc/NSCA_Setup.pdf but it doesn't really help on how to setup scripts and how monitoring is done with NSCA, for example, how to setup scripts, what would be configuration entry for that. I tried searching online and nagios-users archive without luck. I will appreciate if someone could share their configuration or may be provide some pointers on how to set it up. Have a look on NagiosExchange http://www.nagiosexchange.org for a script called nsca_wrapper. You might need to edit the script slightly to make it work on AIX. This allows you to run your checks from cron, for example: 05,20,35,50 * * * * /usr/local/nagios/scripts/nsca_wrapper -H thishostsname -S SWAPFREE -C /usr/local/nagios/libexec/check_swap -w 20 -c 10 /usr/local/nagios/var/log/check_swap.log 21 You will need to set up passive checks in your Nagios configuration to receive these check results. For example, my template nsca looks like this: define service { name nsca check_freshness 1 freshness_threshold 3600 active_checks_enabled 0 max_check_attempts1 check_command check_nothing register 0 } And my actual service definition looks like this: # Passive checks for AIX servers define service{ use nsca,generic-service host_name thishostsname service_description SWAPFREE check_command check_nothing notes Records total amount of swap free. } The Check Command check_nothing simply does nothing. If you have trouble getting nsca_wrapper to work under AIX, give me a shout and I'll send you a copy. hth, Jim -- ___ 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] NDO update delay
2009/3/26 Rodney Ramos rodne...@gmail.com: Hi everybody. I´ve installed NDOUtils (nodutils-1.4b7) whith Nagios (nagios-3.0.6) and it´s working. However I´ve noticed that it´s taking more than 30 minutes to update the MySQL tables. I´ve detected the problem making a query on the field last_check on nagios_hoststatus table. Can anyone help me? There is a parameter to make the update process faster? You can try reducing the number of days data you keep and adding some indexes. The solution I think helps most though was contributed by Marc DeTrano here in a thread here on 3rd/4th March which I summarised thus: I simply added a file nagios.cnf under /etc/mysql/conf.d like so: [mysqld] innodb_flush_log_at_trx_commit = 2 and it reduced my Nagios startup time from more than 3 minutes to only 30 seconds! I already had quite a few of the data_processing_options disabled in ndomod.cfg and had reduced all of the max_*_age parameters in ndo2db.cfg to 24 hours (before those my startup time was more than 5 minutes). -- ___ 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 customization question...
2009/3/26 michael.washing...@fitchratings.com: The gurus have asked me to include the following scripting in our branch office Nagios server configuration in order to monitor a remote co-location site DNS server . I understand how/where to include the host/service/contact/command definitions scripting, but where (what file(s)) do I include the company_check_dns scripting command set procedure listed near the bottom? I am running v3.0.2 on Fedora with the quick installation setup. [snip stuff I assume you're happy with] define command{ command_name company_check_dns command_line $USER2$/company_check_dns $HOSTADDRESS$ } Above is the command definition which hopefully you're happy with. Note the use of $USER2$ rather than the usual $USER1$. This refers to a macro containing a path to the location of your script. You should find this in your resource file. See http://nagios.sourceforge.net/docs/3_0/configmain.html#resource_file ### company_check_dns #!/bin/bash PATH=$PATH:/usr/lib/nagios/company-plugins DOMAINSTOCHECK=ftp.company1.com company.com company2.com comp\ any3.com company4.com company5.com for i in `echo $DOMAINSTOCHECK`; do RESULT=`check_dns -H $i -s $1 | grep CRITICAL` if [ x$RESULT != x ] then echo DNS CRITICAL - $1 - $i exit 2 fi done echo DNS ok - $1; exit 0 ###end of company_check_dns The above is what you should create as your plugin - copy this in to a file under the directory which $USER2$ points to and make it executable. [ snip contact definitions which I assume you're happy with] hth, Jim -- ___ 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 and MySQL
2009/3/25 Mark Weaver mwea...@compinfosystems.com: Hi List, I was wondering if anyone has connected their standard Nagios installation up to a MySQL backend? Yes, NDOUtils. I'm looking at this from a purely disaster recovery aspect. It's easy enough to backup the configuration, but the data is another matter. Why? In a standard configuration, the data is a bunch of files which can be backed-up using tar or whatever your favourite backup utility is. My current Nagios installation is version 3 installed on a CentOS 4.7 server. The installation was done via Yum from the rpmforge repo. Much cleaner install than compiling the tarballs and much easier to manage. Yes, I could archive all the installation paths, but because they were installed via the RPM method things are spread out all over the file system. If you had installed from source tarball, then most of your Nagios install would be under /usr/local/nagios/ . It would be real nice if I had all the data contained within a MySQL backend. That way if I had to restore should my Nag server die or suffer some horrible fate it could be a matter of reinstalling the packages, restoring the /etc/nagios directory where all the configs live, restore the database and I'm off again. The install from tarball isn't so onerous, and you'll find that Nagios then isn't spread all over the place but is mostly found under /usr/loca/nagios/ . I've looked at a few suggested Nagios front ends including Centreon and they turned out to be bad experiences. Mostly due to the fact that being a Nagios noobie I didn't know what the hell the front was doing. I'm sorry Mark, but installing from repositories using yum is pretty much the same. If you want to see how things work and have a truly standard install, you need to install Nagios from the source tarballs. Believe me, I started off installing Nagios using yum on Fedora a while back and soon got bitten on the bum when I found the repository had Nagios compiled with embedded perl enabled but the plugins I was using wouldn't work with that. In a truly standard Nagios install (if there is such a thing), the configs are under /usr/local/nagios/etc not /etc/nagios . These things become important when you start looking at installing some of the really neat addons for Nagios like pnp4nagios graphing, NExSM status map, NagVis dashboards and so on. -- ___ 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 do check_command argument with space
2009/3/24 shadih rahman shadhi...@gmail.com: can someone please show me how to do check command with space. So one of the argument will have space. Thanks check_command check_https_reverse!/cms/enter.cfm!courseworks!error occurred I normally just put it in quotes like so: check_commandcheck_https_reverse!/cms/enter.cfm!courseworks!error occurred I'm not familiar with the check_https_reverse command so can't guarantee this will work for you, but please give it a try and see how it goes. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 with Trouble Ticket system or Managment System integration
2009/3/23 Florence Luk lukk...@netvigator.com: Dear all, I am new to Nagios and now my company want to try let Nagios to integrate with our new Service Desk system (Management System). For this project our aim is to inject Nagios's alert message to Service Desk system and it can create a 'Trouble Ticket' automatically. So I want to find out basic requirement of Nagios at Nagios side and it how to provide interface (E.g. Application programming interface (API)) for the Trouble Ticket system. I look forward to hear from you soon. Many Thanks. I can't say I've tried it myself (yet), but this book has a section describing the various options in Nagios 3 for integrating with a helpdesk system. http://www.waterstones.com/waterstonesweb/displayProductDetails.do?sku=6209247 hth, Jim -- Web Admin for Corsham Diary http://corshamdiary.org.uk -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Example setups for a newbie
2009/3/23 Fredrik Rambris fredrik.ramb...@it.cdon.com: Hi! I'm relatively new to Nagios but for a number of reasons we want to migrate away from Hobbit. I've read the manual, read some of the book Nagios 3 Enterprise Network Monitoring, setup most of our hosts and some services but I cannot really get all the groups (service group, host group, contact group) and their relation to templates etc. So could you give me a short description of your setups (maybe some of them candidates for the manual)? What templates you have, what groups you have and so on. Just to give newbies some pointers to how to organise stuff. Nagios 3 Enterprise Network Monitoring contains some really useful information, but I wouldn't recommend it as an introduction. If your budget will run to buying another book, get Wolfgang Barth's Nagios 2nd edition. http://nostarch.com/nagios_2e.htm hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Difference between % Total Time and % Known Time
2009/3/21 Ayotunde Itayemi ayotunde.itay...@zain.com: Hi All, Please what’s the difference between % Total Time and % Known Time on the NAGIOS interface (availability etc)? I could be completely wrong, but I've always thought total time includes the time even before you started monitoring. For example, if you started monitoring something yesterday, but you run an availabilty report for the last 30 days, the % total time might be only 3 or so but the % known time might be 100. I've always assumed % total time isn't very helpful, so would normally only report %known time to management. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Configuration Insanity: Multiple site configurations
2009/3/20 Mark Weaver mwea...@compinfosystems.com: Hi All, I've got an insane problem that is driving me crazy and there doesn't seem to be any logical reason for it. I've attached the pertinent information concerning the insanity. I'd really appreciate it if someone could help make sense of this nonsense. thanks, Mark Error: Template 'windows-desktop' specified in host definition could not be not found (config file '/etc/nagios/objects/kfsi/kfsi-hosts.cfg', starting on line 181) Strangely enough, this error message points to where you will find your problem (or at least the beginning of it anyway). If you look in /etc/nagios/objects/kfsi/kfsi-hosts.cfg somewhere at line 181 or soon after you will find a use directive. This is trying to use a template called windows-desktop which you have not defined properly anywhere. Have a look in /etc/nagios/global/templates/templates.cfg and if you can't find the template, then define one. You can probably copy another host template which is already in that file. If, however, you think the template is already there, you might find you've forgotten to put register 0 to indicate it's a template, and you might also have put host_name windows-desktop which would be wrong for a template definition. It should be name windows-desktop. Without seeing your actual files I can't say for sure. If you're still stuck, please post the relevent parts of /etc/nagios/objects/kfsi/kfsi-hosts.cfg and /etc/nagios/global/templates/templates.cfg so we can see where the problem lies. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Need high frequency ping checks
2009/3/20 Todd Blum to...@mbsnetinc.com: Hello, At my organization, our monitoring requirements for our client's WAN interfaces is to ping them once per second. That begs the question - why do they want to ping them once per second? If it is because they want to know the very instant a ping is dropped, you're probably best off writing your own script to do that (and forget using Nagios for it). If it's because they want detailed stats on how reliable their network is I'd approach it a different way... You could write a script which pings every second, and every minute sends a passive check to Nagios showing how many of the 60 pings in the last minute were lost. Nagios can then process these in its own time and alert on whatever criteria are appropriate. Nagios simply isn't designed for second-by-second instrumentation. It's designed for alerting within a human time-frame. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] pnp4nagios or nagiosgraph?
2009/3/20 Sergio Ariel sergio.ar...@iris.uh.cu: I wanna to graph plugin output. What do I should install? pnp4nagios or you could install nagiosgraph :-) I use pnp4nagios myself. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 remote networks
2009/3/19 Mark Weaver mwea...@compinfosystems.com: Hi Jim, There's the rub... they're not remote or child branches of the same company or parent. These are separate entities. Actively monitoring the router is like falling out of bed, however there is a single IP for that remote client router with a LAN subnet behind it. I'm trying to wrap my brain around a number of things all at once here. Setup the host groups... ok. not a problem of course these groups would have a different parent than the ones on my LAN where the nag server is, but the hosts would all have the same IP address given that there's no site-to-site connection between my network where the Nag server is and the remote LAN. It's ok if all checks are passive as long as Nagios doesn't mind that all the hosts have the same IP address defined in the host files for this remote network. I doubt there should be a problem having all of the checks passive. NSClient++ has nsca functionality built-in now. I think it's currently beta status, but I've been using it for months in a similar situation here (remote site on one-way VPN) without any problems. Admittedly, I didn't bother trying to set up passive host checks as I was more interested in the performance data than anything else. Of course this means you can only really monitor nodes which are able to send passive checks (Unix and Windows hosts and not much else) unless you script some checks on those hosts to montitor the other stuff. Alternatively, you might consider installing a small Nagios server on each customer site. You could then, if you wish, configure it only to send a check result back to your central Nagios server if any state changes, and send the occasional heartbeat check to make sure it's working. The advantage of this is that you can monitor whatever you like (printers, switches, etc,) on the customer site and keep the amount of bandwidth used down to an absolute minimum (if that's important to you). It also means that your customer can have a view of how their systems are doing even if their internet connection is down at the time and it means you can guarantee that one customer can't see the status of another customer's systems. You will of course need to enable the relevant ports in your firewall to allow the incoming passive connections (regardless of which method you choose). Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] blank perfdata: not parsing macros
2009/3/19 M P r...@eyesopen.org: Just wanted to update the mailing list on how this was fixed. Thanks for the cautionary tale. I'm glad you found it so quickly. That kind of thing can be stared at for weeks before being found out. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] blank perfdata: not parsing macros
2009/3/17 M P r...@eyesopen.org: Hi, I have nagios3 running (installed via apt-get on Debian). Everything worked pretty well until I tried to add graphing support. As described in numerous how-tos, I added the following to nagios.cfg: ... What kind of graphing support are you trying to add? There are various kinds including Nagiosgrapher and PNP. Don't forget that if the plugin doesn't produce any performance data, there will be nothing to graph! Check the service detail screen for the service you're interested in and check that there is some performance data there. I'd recommend installing Nagios using the standard instructions rather than from the repositories. You'll learn more about how it works that way, and will find installation of various add-ons much easier than battling with whatever directory layout whoever built the packages decided on. Cheers, Jim. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 remote networks
2009/3/18 Mark Weaver mwea...@compinfosystems.com: Hi All, I'm running Nagios 3 on a CentOS 4.7 server. I've got it monitoring other windows and linux servers on the LAN as well as all the Windows Desktops, both XP Pro and Vista. All runs very well, however now I've got to take the next step: How do I use this same Nagios server to monitor remote client networks using the NSClient? thanks, Mark Put simply, you monitor the remote systems in exactly the same way as you already monitor your local ones. I suggest you might also like to monitor the routers and switches which connect your remote sites to your local lan and set up the parent relationships appropriately too. Somehow I'm not sure I understand what you're getting at though. Is there something which is stopping you from simply doing this? If it's a firewall in the way for example, you'll need to enable whichever port numbers you're using to communiicate with NSClient. By default, NSClient uses port 1248. If you're using NSClient++ it uses port 12489 by default for NSClient connections and 5666 for nrpe. I'm not convinced Nagios is entirely suitable for monitoring ordinary desktop PCs, as people will usually turn them off and on whenever they like. There may be some value in receiving SNMP traps from them though and it might be useful to use it to test they have virus checker up-to-date and working. No doubt someone here will come back with some other reasons to convince me otherwise too. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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-SNMP
2009/3/18 Joseph Ribin Roy ribin@mformation.com: Any feedback or other ways of integrating of Nagios-SNMP will be grateful. I use NagTrap. It's probably not everyone's cup of tea but is easy to install and maintain (compared with the scripts I used before anyway). http://nagtrap.org Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] blank perfdata: not parsing macros
2009/3/18 M P r...@eyesopen.org: Other than compiling from source, any other tips? I would suggest you try PNP4Nagios, but again if you installed Nagios from repositories you're going to find it more difficult to get it working than if you installed it from source. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Circular Map setup
2009/3/18 Albrecht Dreß albrecht.dr...@arcor.de: Hi all, I use Nagios to monitor several servers, redundant switches, and Windows PC's and printers. Works perfectly, except for the circular status map... The problem is that the icons of the components in the outer ring are overlapping (see attached screenshot). Is there any way to influence the placement of icons in the circular map? Thanks in advance, Albrecht. You could try specifying 2d_coords in your host definitions. See http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host But I recommend you try either NEXSM (can be tricky to install but is great for large networks) or the automap feature in NagVis (easy to install, but requires a MySQL database). hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Test SMS
2009/3/17 Simon Kainz simon.ka...@tugraz.at: Hi! I usually setup a service as normal, including sms notification. Then T simply submit as many CRITICAL PASSIVE service results as necessary, to make the service CRITICAL, ususally 3. Do this quickly, so Nagios has no time to recognize the service is'n really down... If you disable active checks for the service first, you don't have to worry about doing this quickly. Don't forget to enable active checks again afterwards though! Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 IBM server-hardware (x3650) running Windows
2009/3/16 Klaus Umbach treibh...@sozial-inkompetent.de: I can't see anything via SNMP that makes sense and the IBM Director Agents sends no traps if a drive fails. The IBM Director server can be configured to send traps, and I believe if it's set up properly it will notify for failed disks (certainly it can do for failed disks in an array). You can tweak the exec statement in snmptt.conf to use $4 for the host name so any traps forwarded by snmptt for IBM Director traps will appear to be from the originating node and not from your IBM Director server. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 stopped working : process running, no errors, but nothing in the web server
2009/3/17 Toussaint OTTAVI t.ott...@medi.fr: Hi, I've been running Nagios for months, without any problem. Today, I tried to restart it, as I do each time I do a change in the config files. But it does not want to work anymore ! - Web server always displays Error: Could not read host and service status information, the same as when Nagios process is not running - The Nagios process is running, ps -A | grep nagios shows a process (and only one) - It answers correctly to start and stop commands (/etc/rc.d/nagios start|stop|status|restart on OpenSuse) - Restarting the server did not change anything - Of course, there are no errors in my config. Checking config is successful, there's nothing special in /var/log/nagios/config.err Moreover, nagios.log does not display any error. Here's what the latest entries look like : Informational Message[03-17-2009 12:05:30] Finished daemonizing... (New PID=2874) Informational Message[03-17-2009 12:05:29] Event broker module '/usr/lib/nagios/brokers/ndomod.o' initialized successfully. Informational Message[03-17-2009 12:05:29] ndomod: Successfully connected to data sink. 0 queued items to flush. Informational Message[03-17-2009 12:05:29] ndomod: NDOMOD 1.4b7 (10-31-2007) Copyright (c) 2005-2007 Ethan Galstad (nag...@nagios.org) Informational Message[03-17-2009 12:05:29] LOG VERSION: 2.0 Informational Message[03-17-2009 12:05:29] Local time is Tue Mar 17 12:05:29 CET 2009 Program Start[03-17-2009 12:05:29] Nagios 3.0.1 starting... (PID=2815) I tried some google search and lisr archive browsing, but most of these errors are caused by Nagios process not starting due to a configuration mistake. That 's not the case for me, because the process starts, and it does not complain about configuration errors... Any idea ? Are there any other log or debug files where I could have a look to see what's going wrong ? I guess it could be there's a problem with your MySQL database. I'd check the MySQL logs and maybe try disabling the event broker temporarily (event_broker_options and broker_module directives in your nagios.cfg) to make sure Nagios will work okay without ndomod - if it does then your problem lies somewhere in the ndomod config or MySQL database. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Decrease service check time
2009/3/17 Brandon Munger bmun...@edison.edu: Hi Everyone... I need to have the service checks happen more often. It seems to only check about 10-15 minutes and that isn't very useful. I have seen some options but what is the best way to check more often? Thanks! Brandon Change check_interval (and optionally retry_interval) in the service definition (or the template which your service definition uses). See: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 stopped working : process running, no errors, but nothing in the web server
2009/3/17 Toussaint OTTAVI t.ott...@medi.fr: As far as I remember, I installed MySQL and NDOUtils to test the NagVis extension. But it was just a test, and I don't use it. So, maybe I could disable NDO completely. Are there any good reasons for me to use NDO (Other than writing my own software to query MySQL databases directly) ? I only use NDO so that I can run NagVis (and jolly good it is too!). If you don't need to query MySQL for anything, then no I wouldn't bother running NDO. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 stopped working : process running, no errors, but nothing in the web server
2009/3/17 Toussaint OTTAVI t.ott...@medi.fr: Then, I'll investigate further how NDO and MySQL work... And, maybe, I'll offer a new server with decent performance to my Nagios (in replacement of the good old hp Proliant of 8 years old...) Marc DeTrano from Gridshield recently contributed an excellent solution to the slow startup problem which I summarised like so: I simply added a file nagios.cnf under /etc/mysql/conf.d like so: [mysqld] innodb_flush_log_at_trx_commit = 2 and it reduced my Nagios startup time from more than 3 minutes to only 30 seconds! Note that this change can mean you might lose a second or two of data in the event of a database crash, but for me that's no problem. A few other solutions have been discussed in this email list recently including adding indexes and limiting the amount of data held. It would probably benefit you to do a search for MySQL in the email list archives. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host checks instead of service checks
2009/3/16 Deborah Martin deborah.mar...@kognitio.com: Hi Folks, Currently, the main nagios box (running old version of SuSE) and Nagios 2.0b4 is running just with service checks, one of which is an ssh check (we don't allow ping) So in the web interface, I see all hosts as up. However, I've built a new box (which hopefully will replace the above) with SLES 10SP1 and Nagios 3.0.6. I've put the same config files (services.cfg and hosts.cfg) on the this new system. But now the hosts all show as Pending. So I then moved the ssh check from a service check to a host check and can see that the more hosts I move the less hosts are pending. That's good so far... But, when I run the pre-flight check (/usr/local/nagios/bin/nagios -v nagios.cfg), I now get warnings to say some hosts don't have any service checks associated with it! This is true as some nodes will only have ssh checks against them whilst others will have other checks against them. I'd rather it didn't warn me as I have hundreds of hosts appear in the pre-flight check warnings and it now looks incredibly untidy to see all this. How can I get rid of these warnings ? I'm probably missing something here so any help would be appreciated. I'm wondering for example, if I should force the initial state to be UP for hosts rather than moving the ssh service check to a host check. But then what would happen if the service check found a node was down - would it reflect that in the host problems ? You're right, it wouldn't. For the host check, you need some method of checking if the host is up. If ssh is the only method at your disposal to check if a host is up, and there are no other services you can monitor as service checks then my humble opinion is you're best off specifying ssh for both your host and service checks on those hosts. I am allowed to use ping, so I do. For those nodes on which I monitor no services, I also use ping as the service check - to me that's functionally equivalent to using ssh for both, it's just a different service. If you're monitoring other services and you're only using the ssh checks to see if the host is up or not, then I'd recommend just using the ssh check as a host check, leaving the others as service checks. I wonder, though, if it might be possible for you to check the host using a passive check? For example you could have cron send a check using NSCA from your server every minute and use freshness checking to see if the host is down or not. I can't say I've ever tried it but guess it's another option worth thinking about. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host checks instead of service checks
2009/3/16 Deborah Martin deborah.mar...@kognitio.com: So on changing the ssh check from a service to a host definition (to prevent PENDING on the hosts), the pre-flight warnings now complain there are no services associated with the hosts. On big systems here (100 nodes+) this makes the pre-flight output really unreadable and not really accurate as surely we should be able to choose whether something is a host check or service check but not have to define BOTH! Ultimately, I just want to filter SSH check problems to appear under Host problems rather than under Service problems so users can easily spot other service problem issues and not have to trawl through 100's of lines of output in the web interface. I'm sorry, but I'm not sure I understand. If there are other service problems this implies you are monitoring services other than ssh on that host. In that case it is perfectly valid to have ssh as your host check and various other checks as your service checks. The pre-flight nagios -v test then won't complain at all. Please don't forget that the primary purpose of Nagios is to alert you when a service important to you has a problem. If a service isn't important to you you probably shouldn't be monitoring it with Nagios. If ssh is the only service important to you on a server and it's also the only way to check whether it is up, it's perfectly valid to have it both as a service and host check. If it really bothers you, you could probably contrive an snmp query of the port on the switch most local to the server to see if it's 'up' or not. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] WMI's
The learning curve is indeed steep at first. I found the book Nagios by Wolfgang Barth invaluable in flattening that curve. http://nostarch.com/nagios_2e.htm It's available as a .pdf download or in traditional book form. I'm not sure the book would answer your original question in this thread though, and nor can I! I hope this helps, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] snmptt and nagios, access to nagios.cmd file
2009/3/12 Marco Tirado marco.tir...@gmail.com: They look like this: For nagios.cmd prw-rw 1 nagios nagcmd 0 2009-03-11 18:53 nagios.cmd for the rw catalog: drwxrwsr-x 2 nagios nagcmd 4096 2009-03-11 18:14 rw Please let me know if something looks obviously wrong. No, those look absolutely fine; same as mine anyway. I now use NagTrap with Nagios 3, but I still have a similar setup to yours running on my old Nagios 2.7 server. Let me see ... There, I have the user snmptt added to the nagiocmd group, and at the end of my submit_check_result script, I have: sg nagiocmd -c echo '$cmdline' $CommandFile It's been a while since I set this up, so my memory is a bit hazy but I think I remember now battling with this one for a while when I set it up too. I think the important thing which got it working was putting the sg nagiocmd -c (or in your case it would be sg nagcmd -c ) in front of the command which actually writes to the command file. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] snmptt and nagios, access to nagios.cmd file
p.s. I'd be interested to know what instructions you followed to get your method working? I moved to using NagTrap because I found that maintaining the submit_check_result script was rather time-consuming, but if things have moved on a bit since I last set mine up I'd be interested to see if it's any easier to maintain now. I quite like NagTrap, but if you follow the standard install for it, there's a lot of polling the database which is very cpu intensive compared with writing direct to the command file as you do. Also, the alerts aren't so meaningful with NagTrap as they are in your setup. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Need a daily report plugin
2009/3/12 Max Alex max.aster...@gmail.com: Hi All, I have installed and configured nagios on my linux server, It is working fine, I need a daily base report of the system, I need a report for the all services which is running in nagios per day by email. Can anybody suggest the plugin for that or configuration for it? Thanks in advance! You could try: http://www.nagiosexchange.org/cgi-bin/page.cgi?g=Detailed%2F2154.html;d=1 I'm not sure if it works with Nagios 3 - it might need a little re-working. I've used it successfully in the past with Nagios 2. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] snmptt and nagios, access to nagios.cmd file
2009/3/12 Marco Tirado marco.tir...@gmail.com: Hello Jim: Thank you very much for the help, after changing the last line in the submit_check_result script from the default of: `$echocmd $cmdline $CommandFile` to: sg nagiocmd -c echo '$cmdline' $CommandFile everything works fine. As for my setup, I run nagios 3 and Nagtrap. However I send the notifications as passive checks directly from snmptt's EXEC statement. I some special logic in my script to select the right alarm level and then send it to nagios with submit_check_result. I link to nagtrap using the action_url in all my snmptrap services. I catch all the traps in Nagtrap, however only some of them generate alarms. Whenever an alarm is generated by the selected traps, you can always check the rest of received traps in nagtrap. Regards Marco Thanks Marco, I think I'm going to have to 'bite the bullet' and do something similar myself soon. Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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 receive notification alert by sms to mobile phone using Nagios
2009/3/11 tsedendorj oyunbat t_oyun...@yahoo.com: I'm new one in Nagios system. I work in mobile cellular operator company. And I need to know is there any chance to get notification alert via sms to my mobile phone when BSC or HLR equipments go down or stop working? Is there any configuration on Nagios? And how to connect Nagios server to sms center. Currently I use an external email-sms service similar to http://www.intellisms.co.uk so I can send emails from Nagios in the usual way and have them converted to SMS. It's extremely easy to set up, but has the disadvantage that if the email system goes down, we don't know about it! Alternatively, you could connect a mobile 'phone to your Nagios server and send SMS using gnokii http://www.gnokii.org/ or similar, or your mobile operator might well have an http interface you could use or can recommend other options. In Nagios, you specify the notification methods in command definitions which you can write yourself so it's extremely flexible. See http://nagios.sourceforge.net/docs/3_0/notifications.html under the heading Notification Methods. hth, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Acknowledge problem
2009/3/11 Marco Borsani m.bors...@it.net: Hi all. Last night we acknowledge a warning status over a check_nt service about a disk space controll (using nsclient++). After approximately an hour we received another warning notification ?!?! Normally the acknowledgment procedure works fine… Any idea ? I guess some disk space was cleared and then it filled again? Check the Alert History for that service to get a better feel for what happened. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] nsclient++ and network counters
2009/3/11 Assaf Flatto assaf.fla...@ssp-intl.com: Hello List i must admit - my understanding of Windows is limited , now i need to find a way to monitor network usage on a windows machine , i tried the snmp route and got to the understanding ( from googling the subject ) that the way MS is implementing SNMP is the reason why i can not get what i want ,so now i am trying to do the same with the COUNTER option on the check_nt . i have the following check ; check_nt -H x.x.x.x -p 1248 -v COUNTER -l \\Local Area Connection\\% ,Network Useage is %.2f the output is : Network Useage is 0.00 | 'Network Useage is %.2f'=0.00%;0.00;0.00; but i know that the answer is wrong as i am watching the network meter on the windows machine itself and see it at 25% . I suspect that my query is wrong - i assume the label , does anyone know what i should be using to get the correct query ? Thanks You need to find the name of the performance counter on your Windows server. I'm pretty sure there isn't one called \Local Area Connection\%. On your Windows system go in to Administrative Tools / Performance and add the counter you want to look at. Once you can see it in the performance tool, right-click on it and click Properties to see the full name of the counter which you want to monitor. -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] R: Acknowledge problem
2009/3/11 Marco Borsani m.bors...@it.net: I did it. In the period : - 1st warning notification - acknowledge notification - 2nd warning notification Nothing happened regarding the service status, no changes (always warning). I see that Nagios was reloaded few minutes before the 2nd warning notification ... normally a reload does not delete the acknowledge operation ?!?!? When I was using Nagios 2.7 I noticed that sometimes Nagios wouldn't reapply the Acknowedge after a daemon restart until a few seconds after starting up, so sometimes I would get these additional alerts just like you describe. I haven't seen the same issue since upgrading to Nagios 3. I'm not certain whether that's because it's fixed now or just that my new config just works better than the old one. Which version of Nagios are you using? Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] showing critical problems and host downs
2009/3/11 rko...@gmail.com: Folks, I am almost done with creating a NOC using Nagios as it's primary event issue engine. however, one of the last things I have on my task list I have not been able to figure out! I want to be able to show my unacknowledged critical problems AND unacknowledged downed hosts. I have come up with the below, which sows me unacknowledged critical issues from unacknowledged hosts, but I also want to see (on the same screen) unacknolwedged hosts that are down. Has anyone come up with the right combo of numbers? Or come up with a different way to show this? Thanks ahead of time. ../../cgi-bin/status.cgi?host=allservicestatustypes=16hoststatustypes=3serviceprops=8hostprops=32 I couldn't find a way around that one myself either. I simply make sure that every host has at least one active-check (not passive) service. The simplest is to make sure you ping (as a service check) everything which wouldn't otherwise have an active service check configured. I tried putting two screens on one page using frames and having one above the other, but that was less than satisfactory - if the top frame had lots of alerts on it, the bottom frame would get shoved below the visible screen. There are myriad alternative front-ends for Nagios. Maybe one of those will do what you want it to? Good luck, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] snmptt and nagios, access to nagios.cmd file
2009/3/11 Marco Tirado marco.tir...@gmail.com: My snmptt.conf file for the trap I am testing looks like: EVENT ospfOriginateLsa .1.3.6.1.2.1.14.16.2.0.12 Status Events Normal FORMAT $D. $Fn VARIABLE VALUES: $-* EXEC /usr/local/nagios/libexec/eventhandlers/submit_check_result myhost snmp_traps 1 My text message /tmp/OutputTest 21 SDESC ... EDESC And my nagios configuration is correct as I can see the passive check results in my nagios console if I run the above EXEC command from the command line as user snmptt. //Marco I'm sorry if this question sounds stupid, but what are the permissions and ownership on /usr/local/nagios/var/rw and /usr/local/nagios/var/rw/nagios.cmd ? -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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] Web server behind firewall,
2009/3/10 Mohammad Ammad Shah mammads...@hotmail.com: i wan to monitor a webserver, its behind the IPS. when i try to monitor using nagios check_http, nagios alerts me host down. can any one help. this is my client Server, and i want to check apache/jboss and need to restart if service is down. ping is disabled on it. thanks. We have a Microsoft ISA proxy server for accessing the wider internet (is that the same thing as an IPS?). In order to get through that, I use a tool called ntlmaps which handles the connection and authentication. I installed it from the Ubuntu repositories so there's probably a prebuilt package for whichever distro you're using. Unfortunately there's no man page for it, but documentation and instructions can be readily found on Google. The config file which you'll need to edit to suit your requirements is (on Ubuntu anyway) /etc/ntlmaps/server.cfg . If you choose to use ntlmaps, I'd advise you to use an account name/password without any password expiry or you'll forever be messing around resetting it every time the password expires. Last time I used ntlmaps with Nagios I found it used a lot of system resource and slowed the Nagios system down a bit - it was on an underspecced server though. YMMV. I now only use ntlmaps on the odd occasion to install new packages or update existing ones. hth, Jim -- ___ 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] A group of Nagios users are:
2009/3/9 Martyn mar...@chetnet.co.uk: Just on a lighter note, what do we call a bunch of Nagios users; Nagiothions? A contactgroup. :-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] Monitoring Windows hosts...
2009/3/10 Andrew Davis ncc...@gmail.com: What are your opinions of the best combination to A) get the best overall support Be prepared to learn, contribute and if necessary pay. and B) have the least impact/installation on a Windows server? SNMP (probably not compatible with A though). I want something current and currently developed with 2008 support, but I also want stability and the least work possible. Presently I'm using NRPE for my local linux/UNIX servers, so I'm inclined to give NRPE a try, but I'd also like to avoid loading plugins on the Windows client if I can. Good luck! I believe I'm leaning towards NSClient++ with check_nt, but I'm not sure this is the best solutions. There are worse options, but I suggest you read http://trac.nakednuns.org/nscp/wiki/doc/About where the author, Michael Medin says, amongst other things, As for checking with NSClient++, I would recommend NRPE as it is a lot more flexible than check_nt. Thoughts, opinions, and ideas are requested... There isn't any substitute for trying some of these solutions for yourself and finding out what the pros cons are. Personally, I use NSClient++ with mostly nrpe checks but also some check_nt checks. On occasion I also use the nsca functionality with NSClient++ to do passive checks. I've also used a standalone send_nsca (sorry can't remember which) to return results from backup scripts and suchlike to Nagios. If you decide to try nc_net, make sure you download and compile their alternative check_nt which has much better support for performance data and a few other neat features not available in the default check_nt plugin. See http://www.shatterit.com/nc_net/ Cheers, Jim -- Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com ___ 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_local_disk basic question
2009/3/5 Lance Raymond lraym...@weatherflow.com: Still new to it, but so far things are good. I have added a remote host, monitoring load via snmp successfully, but my old alarm keeps tripping due to disk space. df -h shows; Filesystem Size Used Avail Use% Mounted on /fs here 660G 597G 64G 91% / so it seems 91% is in use, nagios is showing (nice and green); DISK OK - free space: / 27867 MB (92% inode=99%): The config for that machine (servername.cfg) shows; check_command check_local_disk!20%!10%!/ So to me that says when 20% left warn me, 10% critical alarm, right? You're right, but your check_disk plugin seems to be giving you wrong results. I wonder is it something peculiar to whichever operating-system you are using? I just tried it here on Ubuntu 8.04 LTS Server and got these results (which I believe are fine): $ /usr/local/nagios/libexec/check_disk -w 20% -c 10% -p / DISK OK - free space: / 25541 MB (81% inode=97%);| /=5741MB;26353;29647;0;32942 $ df -h / FilesystemSize Used Avail Use% Mounted on /dev/sda1 33G 5.7G 25G 19% / You could also check your command definition to make sure there's nothing silly in there, but I presume you're using the default from your original install which should normally work fine. Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Ndoutils MySQL performance problem?
2009/3/4 Marc DeTrano m...@gridshield.net: 2009/3/3 Livio Zanol Puppim livio.zanol.pup...@gmail.com: I'm no expert at MySQL performance, but we found a couple of things that helped speed up NDO significantly: -We are using a my.cnf based on the my-innodb-heavy-4G.cnf example that comes with MySQL. -The innodb_flush_log_at_trx_commit setting in that file is 2 (instead of 1..the difference in performance is huge, and the trade off in data integrity is negligible for us). If your process gets heavy over time, you may have to reduce things in ndo2db.cfg like max_servicechecks_age (to keep the size of these historical tables manageable). Marc Gridshield, S.A. Wow! That made a huge difference! I simply added a file nagios.cnf under /etc/mysql/conf.d like so: [mysqld] innodb_flush_log_at_trx_commit = 2 and it reduced my Nagios startup time from more than 3 minutes to only 30 seconds! I already had quite a few of the data_processing_options disabled in ndomod.cfg and had reduced all of the max_*_age parameters in ndo2db.cfg to 24 hours (before those my startup time was more than 5 minutes). Many thanks indeed! Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] 2-D map question..
2009/3/6 matt wells phan...@gmail.com: I've not found a good tool to draw the 2d map yet so I'm taking any suggestions.. Also the 2d map as it is now looks pretty cool but I have some icons for my systems. Is there a way to have the boxes that hold the icons auto-size so they at least stop running together? Try the auto map in NagVis http://www.nagvis.org/ or NExSM http://nexsm.gridshield.net/Overview.html . -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] alternative Status Map?
Note that NagVis now also has an automap feature which I confess I don't really use, but if your network topology lends itself to that sort of map it could save you a whole load of effort dragging icons around the screen. Another one well worth looking at is NExSM. It can be a bit of a mare to get it installed and working, but for a large network is probably the best of the bunch. Unlike NagVis it doesn't rely on NDOUtils (MySQL database). The upside of this is you don't have to install/run a MySQL database. The downside is that the amount of querying it does of your Nagios server can be a bit heavy (depending on your setup). Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Need to monitor Solaris 10 and am new to Nagios
2009/2/27 syed jafar syed_ja...@hotmail.com: I am new to Nagios and would like to monitor Solaris 10 systems (CPU, Disk, ...etc). Nagios server/host is running Redhat LINUX. Could someone let me know step by step process what to do. I have been told that it's kinda dfficult to monitor Solaris 10 system. If this is not possible is there a PERL or Shell script available to monitor the disk and CPU utilization. If you are able to query CPU and disk using SNMP, that's probably going to be the easiest way to monitor them on a Solaris system. I monitor an older Solaris system this way quite successfully. You'll find some good Nagios plugins for querying systems using SNMP at http://nagios.manubulon.com/ and http://nagiosexchange.org As for a step-by-step guide, if you find the documentation heavy going, you could try one of the many books available on the subject. My personal favourite is Nagios by Wolfgang Barth, pub. No Starch Press http://nostarch.com/nagios_2e.htm . I found the 1st edition very helpful and have just bought the 2nd edition. hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] radius checks
2009/3/4 Jason Frisvold frisv...@lafayette.edu: Hi all, I'm at wits end here trying to figure out how to monitor radius with nagios. I have tried multiple plugins, but all to no avail. I tried the check_radius plugin that ships with nagios-plugins, but I kept getting Auth failed and no packets were ever sent to my radius server. I tried radauth from NagiosExchange (both the original and the updated radauth.c) and they failed with error in radius about malformed packets. I moved on to radius_check_adv and radius_check_ih, both from NagiosExchange, and they both fail with errors about the secrets not being correct, though I have checked them multiple times and even tried configuring them as testing123 and test and nagios and more. radtest (from freeradius) can authenticate with no problem using the same secrets. What am I missing? Is there some super-secret config switch I need to set or something? I have used check_radius.pl by Carlos Vicente sucessfully in the past (it's title is Perl check radius on nagiosexchange.org). I found that after a month though the password for the radius account I was using would time out and the check would fail. Fair enough, but the admin of the Radius server would never get around to resetting the password for me so I gave up in the end and have stopped monitoring it. Good luck. Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 do not send hosts notifications
2009/3/3 Shimon Weinreich shi...@openu.ac.il: Hello, I run Nagios version 3.0.3 on Linux. I have a strange problem. I don’t get any notifications When hosts went down but notifications is working OK for services. Any hint ?? There are various options in the host definition which determine whether Nagios will send a notification for a host. For example max_check_attempts, check_interval, retry_interval, contact_groups, first_notification_delay, notification_period, notification_options and notifications_enabled. You can read all about them in the documentation at: http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#host It's possible too that you might have disabled notifications for the host. Check the host in the web front-end to make sure. In the host detail screen it should say (amongst other things) Notifications: ENABLED. Also note that host and service notification options are specified separately in the contact definition. For example, the template I use for contacts looks like this: define contact{ namegeneric-contact service_notification_period 24x7 host_notification_period24x7 service_notification_optionsw,c,r host_notification_options d,r service_notification_commands notify-service-by-email host_notification_commands notify-host-by-email register0 } The host notification command is usually different to the service notification command. Check your command definitions and make sure there isn't some problem with your host notification command. hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Connection refused question
Note that most plugins can be executed from the shell prompt with a --help option. For example: $ /usr/local/nagios/libexec/check_http --help will tell you what all the possible options are for this plugin, including how to check a particular port number. It's usually best to make sure you're happy that the plugin is working by executing it yourself from the shell prompt before configuring it in the nagios config files. hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Alert History seems empty
2009/3/2 Rahul Nabar rpna...@gmail.com: If I try View Alert History for this Service I seem to get an error No history information was found for this this service in the current log file The file that it reports File: /usr/local/nagios/var/nagios.log is indeed correctly present. What else could be wrong? Does Alert History have to be explicitly enabled in some way? This is a simple ping service so it does have performance data. -- Rahul The history will normally only record anything if the ping check has changed state (for example from OK to Warning). If there's nothing in the log for a particular day, it simply means it''s been pinging fine all day (or if it's been critical all day long). Nagios itself doesn't do anything with the performance data, but can be configured to pass it on to flat files, a database or to a graph for example PNP or nagiosgrapher. I use (and recommend) PNP as it's easy to install and use and seems to get better better with every new release. http://www.pnp4nagios.org/pnp/start -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] View options for hosts and services
2009/2/26 Tim Kotterlink t_kotterl...@hotmail.com: Hi all, I have got a problem with my Nagios configuration and hope somebody can help me. I have got 2 different users. The first one is admin-account and the second one is view-account. The configuration for the cgi's is no problem and use_authentication is set to 1. That is why I don't have a problem with logging in to the Nagios monitoring and getting access to all the different views in the left box (service detail, host detail, service problems, process info, view config, etc.). It is also no problem for giving one account more or less access in the left box. The problem is specific when I click on the service details or hosts details. The admin-account is configured to be a contact for all of the different hosts and services. The view-account is only configured for a couple of hosts and services. When I now log in with the view-account I still see all the hosts and services, also the ones this account is no contact for. To be more specific. admin-account Is contact for Host1, Host2, Host3, Host4 and Host5. And also for Service1, Service2 and Service3. view-account Is contact only for Host1 and Service2. At this moment I want to log in to Nagios. If I do this with the admin-account, I want to see all the hosts and services. If I log in with the view-account I only want to see Host1 and Service2. Can this be arranged??? At this moment I am using Nagios version 3.0.5. In the past I had this working with Nagios version 2.9. Also someone else had this working with Nagios version 3.0.3. So is it possible that this is a bug in version 3.0.5? If it is, where and how can I ask if this can be fixed? I already have read the documentation and archives of this maillinglist. Unfortunately till now I have found the sollution. Also created a post on a forum: http://forums.meulie.net/viewtopic.php?f=59t=4565p=15816#p15816 You should have in your cgi.cfg: authorized_for_all_services=admin-account authorized_for_all_hosts=admin_account (so view_account is not authorized for all). I might be best to double-check this before looking too much further. -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] NSClient++.exe problem occupy more and more memory !!
2009/2/25 7up8down 78656...@qq.com: hi all I use NSClient++-Win32(NSClient++-Win32-0.3.5) to monitor three Windows OS servers. I can see all services are OK in Nagios server. but I find that NSClient++.exe occupy more and more memory very slowly in all three server. (by Windows task manager) so I test NSClient++ in my pc It's memory occupancy never drop ! I test it in my pc ,It's the same. I haven't seen this myself as I've only just started testing NSClient++ 3.5. Not sure if this would help or not, but I'd definitely comment out any modules in NSClient++ that you're not using. For example on a server you probably don't need SysTray.dll . Do you see anything in the log file? -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] graphing trends across hosts or services instead of a timeseries
2009/2/23 Rahul Nabar rpna...@gmail.com: Thanks for the pointer. I just looked up ddraw and it does look promising. Do you think you can share some of your ddraw configs with me? Or maybe if you had any other notes. No problem. Note that I'm running Ubuntu 8.04 LTS Server and have installed Nagios and PNP as far as possible according to the online instructions (nothing fancy). I installed drraw.cgi and drraw.conf under /var/www/cgi-bin/ . Not sure if that's ideal but it works for me. Most of drraw.conf stays as is as far as I remember, except the following: # The Test area /var/www/drraw/data is just for my playpen. The Live area /usr/local/nagios/share/perfdata is where the PNP .rrd files are. # drraw will look recursively under these directories. %datadirs = ('/var/www/drraw/data' = '[Test] ', '/usr/local/nagios/share/perfdata' = '[Live] ', ); # make sure these exist and are writeable by the apache (www-data in my case) user. $saved_dir = '/usr/local/drraw/saved'; $tmp_dir = '/usr/local/drraw/tmp'; # If you don't care for authentication, set the following to 2. # I've set this to 2 while I get it working, will tighten it down later. %users = ( 'guest' = 2 ); # This is to enable a patch I found in the drraw mailing list. I couldn't get it to work so disable it for now. # pnp4nagios XML $use_pnp4nagios_xml = 0; I also edited /etc/apache2/sites-available/default to enable the cgi-bin directory for cgi execution: ScriptAlias /cgi-bin/ /var/www/cgi-bin/ Directory /var/www/cgi-bin AllowOverride None Options +ExecCGI -MultiViews +SymLinksIfOwnerMatch Order allow,deny Allow from all /Directory I had to install some dependencies, I forget which ones, but I'm pretty sure librrds-perl was one of them. The web interface for drraw is fairly intuitive, except it took me a few minutes to notice that in order to save a graph, you need to specify a Graph Title in the Graph Options section! hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] graphing trends across hosts or services instead of a timeseries
2009/2/12 Rahul Nabar rpna...@gmail.com: One other thing that I haven't figured out yet with PNP-NAGIOS is this: How does one get trending across services or hosts? i.e. It is easy to see time series graphs of pingtimes, load averages disk usages etc. but sometimes what seems more relevant is a chart across services for a given snapshot in time. Say, to identify a hot node, or a node with unusually high load averages. Is there a way to do this? Or am I tinkering with the wrong tool! I don't think you can do this within PNP itself, but I've recently been using drraw (http://web.taranis.org/drraw/) to draw individual graphs of metrics from multiple PNP .rrd databases. It seems to work very nicely, and has a handy dashboard feature so you can group a few graphs on the same page too. There are some patches for drraw to make use of the PNP templates but I confess I haven't managed to get those working yet (not sure I need to either). Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Service Checks
2009/2/20 Alex Dehaini alexdeha...@gmail.com: Hi Guys, I have about 200 hosts and 400 services. My sys spec is about P4 2.4 Ghz and 2Gb of RAM. I want to check each service every 20 seconds and update the CGI interface. Any clues how I can achieve this? See http://nagios.sourceforge.net/docs/3_0/tuning.html and http://nagios.sourceforge.net/docs/3_0/configmain.html#interval_length I can't tell you if following all this advice will actually achieve your goal but guess it should do. I've never tried changing the timing interval length from 60 myself. Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 configuration for SAN monitoring
2009/2/21 Sonika Sachdeva replyson...@gmail.com: Hello List, I have nagios basic configuration up and running as per the quickstart guide. I also have SNMP4nagios installed and running and the command works from the command line as follows /usr/local/bin/check_brocade_port -H x.x.x.x -C mystring -T -i 5 -I addinf OK - Port 5: I: 527243 kFCW, 1109528922 FCF; O: 1204391 kFCW, 2066880039 FCF|addinf;6;1;539897616;1233297068;1109528922;2066880039 How do I integrate this command in nagios and start the logging and graphing functionality for brocade ports. can someone point me to a tutorial/guide. Has someone used nagios for SAN monitoring? Using the check_brocade_port plugin is not much different to using check_ping in your default Nagios install. You need to define the command, hosts and services in your Nagios configuration files. If you find the supplied documentation difficult to follow, there are various books available commercially. A search for Nagios on the website of your favourite bookstore will no doubt show a few to choose from. The book I used to recommend (Nagios by Wolfgang Barth published by No Starch Press) gives an excellent introduction but unless it's been updated it won't include a lot of useful stuff new in version 3. I'm not sure which book is the best today, but there was a recent discussion on the topic here on the mailing list. I use Nagios to receive SNMP traps from the SAN storage manager software. I use snmptt to receive the traps and NagTrap to store them in a database and handle them in the web front-end. I confess I haven't tried using the check_brocade plugins. http://www.snmptt.org/ http://nagtrap.org/doku.php/en:start Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] Greetings. Anyone using Oracle Grid Control to send alert data into Nagios?
2009/2/19 jim.me...@co.hennepin.mn.us: I'm looking to have Oracle grid control send alert data into Nagios. Thus far I've only been doing things via NRPE, as it's a fairly small monitoring structure. I was wondering if anyone was interfacing to Oracle grid control, what information you were getting from it and how you were getting that information into Nagios. And if anyone is using an event handler in conjunction with this, what sorts of things are you using event handlers for? Our DBAs have configured Grid Control to send snmp traps to the Nagios server. I use snmptt to receive the traps and NagTrap to put them in a database and display them in Nagios. My setup is quite simple so all the traps appear to come from the Grid Control server not from the server hosting the relevant db. With a little scripting you can filter the traps so Nagios will display them against the appropriate host. I haven't tried querying Grid Control using SNMP yet, although I believe it's possible. Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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 3.0.6 Fails to play sound in browser!
2009/1/9 faris farisli...@yahoo.com: Hi, I am using Nagios 3.0.6 OS : RHEL4 Update 4 Problem: after configuring nagios and when accessing it from a client mechine (winXP) firefox or IE browser, nagios fails to play sound when there is an alert. but if i degrade nagios to a nagios version 2.x sound problem is gone! can anybody tell me how to fix this issue in nagios 3.0.6 and succefully play alert sound, which is currnetly the stable release. I don't use the sound alerts myself so am not 100% sure, but I think there may be a clue in the changelog at http://www.nagios.org/development/history/nagios-3x.php [quote] 3.0.5 - 11/04/2008 * Security fix for Cross Site Request Forgery (CSRF) bug reported by Tim Starling. --* Sample audio files for CGIs removed from distribution * Fix for mutliline config file continuation bug * Minor fix to RPM spec file * Fix for AIX compiler warnings * Minor sample config file fix * Added documentation on CGI security issues [/quote] hth, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] NDOutils and Nagios startup speed
2009/1/29 Mathieu Gagné mga...@iweb.com: One way to speed up Nagios start when using NDOutils is to tweak event_broker_options. Here is my new configuration, based on constants defined in include/broker.h: # BROKER_EVERYTHING 1048575 # -BROKER_TIMED_EVENTS 2 # -BROKER_SERVICE_CHECKS 4 # -BROKER_HOST_CHECKS8 event_broker_options=1048561 I personally don't care about raw host/service check results and internal scheduling. It's already available in nagios.log and don't need to access such data remotely. Also host/service status are already available in nagios_hoststatus and nagios_servicestatus. There's probably more to disable. That's interesting. I've been disabling some of the data_processing_options in ndomod.cfg as listed in ndomod.h instead up until now. I should have probably done what you recommended and changed the event broker options as that's earlier in the process. I just tried like you said - the time saving looks the same but it does make more sense to do it your way as it's closer to where the data starts from. I have tinkered with some of the settings in ndo2db.cfg for how long to keep data for (I only ever really need the most recent data myself). So I now have: # Keep timed events for 24 hours max_timedevents_age=1440 # Keep system commands for 24 hours max_systemcommands_age=1440 # Keep service checks for 24 hours max_servicechecks_age=1440 # Keep host checks for 24 hours max_hostchecks_age=1440 # Keep event handlers for 24 hours max_eventhandlers_age=1440 This helped hugely on my old Nagios 2 server. I confess I didn't take comparative timings when I changed these on my Nagios 3 server. I just tried adding those indexes you recommended in another post, but it made little or no difference in my setup, probably because my tables are so small now anyway! I have no doubt that if I hadn't shrunk those tables the indexes would make quite a difference. What I'm wondering now is whether it would help if I moved the ndo2db process off my Nagios server and on to my database server (currently ndo2db lives on my Nagios server and connects to the database on the remote db server). Does anyone have any thoughts on that? Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] added PNP in the default mode; how serious is the performance degradation to warrant a switch to the bulk mode?
2009/2/5 Rahul Nabar rpna...@gmail.com: So, I finally succeed in configuring PNP for Nagios (whew!!)! It's been a long bloody battle but I think I eventually won! :) I've just added PNP performance graphs to my 4-switches for now. Am a bit hesistant about adding it to all my 300 hosts due to all the caeveats about performance and PNP in the default mode. Any other PNP users? How many services / hosts are you running PNP performance graphs on? How is your performance? Have you been forced to switch to the bulk mode already? A lot depends on how frequently you collect your data. If you gather performance data for ten services on each of those 300 hosts every minute you're probably asking for trouble, but if you only gather a couple of metrics from each host every 15 minutes, that's not likely to break anything. If you add PNP to all of your 300 hosts and your Nagios server struggles, I'd definitely consider whether you can reduce your check frequency and still have all the information you need before messing about with bulk mode. I have implemented bulk mode, but only on the local server. My four-cpu system is coping okay with 1500 or so rrd files, but a lot of those are updated using checks at 5 minute, 15 minute or even less frequent intervals. I don't think implementing bulk mode locally made a great deal of difference but expect that offloading the processing to another server would make a huge difference if I ever get around to doing that. If you're worried about performance, I'd also maybe look at how efficient your plugins are. If you're running a large number of checks at frequent intervals using inefficient plugins this can have a marked detrimental effect on performance. Cheers, Jim -- Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H ___ 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] New Plugins for Windows systems
On 25/03/2008, Sauter, Thorsten [EMAIL PROTECTED] wrote: Hello nagios users, I have writte some checkripts to monitor windows systems. I think some of these scripts could be helpful for other Nagios users too. For this readon I have published my scripts on sourceforge.org [http://sourceforge.net/projects/nagiosplugincol/]. Many thanks - quite a few of these look like they will be useful to me. I especially like your idea for check_service where you can simply test that all automatic services are running. At the moment I've been checking each service named individually which is a pain to configure and administer. Cheers, Jim - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace ___ 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] Announce: NSClient++ 0.3.1 Windows agent
On 12/03/2008, Michael Medin [EMAIL PROTECTED] wrote: Hello, Just realized I haven't posted any release notices to this list in a few years so I figured it was about time :) Very many thanks for doing so. NSClient++ 0.2.7 has been extremely useful to us. I'll look forward to trying 0.3.1 shortly. Cheers, Jim - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Unwanted re-notifications
On 17/03/2008, Israel Brewster [EMAIL PROTECTED] wrote: I have a service that keeps sending me notifications of the fact that it is critical every half hour or so, even though the notification interval for the service is set to zero. That's strange. It could be that the nagios daemon didn't restart properly when you changed the config? It might be worth stopping Nagios, making sure it's really stopped then starting it again. Failing that I'm not sure. You could I guess get that behaviour if you had an escalation defined on that service but I think that's unlikely. Cheers, Jim -- Web Admin for Corsham Diary http://corshamdiary.org.uk - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2008. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ 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] Unreachable Hosts
On 18/08/07, song loesprite [EMAIL PROTECTED] wrote: Hi.I have some unreachable hosts when using ping command. When nagios checks one of their status with the check-host-alive command(actually it is Ping command), it returns a critical status. But the service provided by that host may be working just fine.I tried to remove the check-host-alive command from the command_line in the hosts.cfg file. But failed.And then I tried removing the whole line of the command_line, but turned out to be nothing deferent. So how can I remove the check-host-alive command from those hosts? Thanks -Vishnu You don't have to use ping for your check-host-alive command. If ping won't work for those hosts, use a command for them which does work okay. All the command has to do is confirm the host is alive somehow. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Opinion Sought... Essential Nagios 3rd Party Apps.
On 16/08/07, Chris Stankaitis [EMAIL PROTECTED] wrote: I would like some opinions of what the must have 3rd party apps are for nagios ... The one I would always install is PNP http://www.ederdrom.de/doku.php/nagios/pnp_en for graphing performance information. It's a doddle to install and use and doesn't require a MySQL database (which could be a blessing or a curse depending on what you want to do). On larger installs, I'd definitely also install the Nagios Extended Status Map NexSM http://nexsm.gridshield.net/Overview.html - I found it fiddly to install but well worth it in the end. For prettification, I always install the Nuvola theme which can be found on http://nagiosexchange.org Another advantage is that with this theme it is easy to customise the Nagios menu. NagVis is worth a look if you want some really neat dashboards. I've played with this but not used it in anger yet. http://www.nagvis.org/doku.php I found it slightly tricky to set up as it requires MySQL and ndoutils, but once it's working it's very easy to use. I'm really just waiting for someone to ask me 'can you do a dashboard for...' so I can show it working properly. If you use Firefox, then NagiosChecker is worth a look for pop-up alerts. http://code.google.com/p/nagioschecker/ . Another thing I've been playing with lately is the notes_url directive for extended host and service information. I've been using Nvu to create help pages for systems and services so that when problems do appear, people can see some of the information they need to get them fixed. If you only have time to look at one of these, I'd recommend PNP. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 do I check the services on remote machines
On 16/08/07, Andy Shellam (Mailing Lists) [EMAIL PROTECTED] wrote: Have a look at NRPE. I prefer to use NSCA myself, but there are pros and cons to both. As ever, you decide! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 do I check the services on remote machines
On 16/08/07, Donnell Lewis [EMAIL PROTECTED] wrote: I personally like the most secure way which is by using the check_by_ssh plugin Is check_by_ssh more secure than nsca? I'd have thought nsca was more secure as no ports need to be 'open' on the server being monitored. I'm ready to stand corrected though. Cheers, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Handle unknown host in PROCESS_SERVICE_CHECK_RESULT
On 14/08/07, Paul Dugas [EMAIL PROTECTED] wrote: Per an earlier suggestion from the mailing-list (thanks!), I have a default SNMP trap handler setup to send a PROCESS_SERVICE_CHECK_RESULT command for the TRAP service for the IP of the device that sent the trap. In some cases, the TRAP service doesn't exist for the host or the host doesn't exist in my configs yet. I'd like to know if there is a way to determine this ahead of time and instead update a TRAP-FROM-UNKNOWN-HOST or NO-TRAP-SERVICE-FOR-HOST service that I keep on my Nagios host. The idea is to kick me, the admin, when I start getting traps from new devices or those I've not yet fully configured. Alternatively, is there a way to have Nagios fire off another plugin when an attempt is made to update an invalid host or service? I followed the examples in Wolfgang Barth's book (page 262), and have a case statement in the event handler script. Expanding a little on what Barth suggests, I set up the * ) case so that traps for any host name for which there is no specific case get submitted as if for localhost. for example case $hostnamefromtrap in server001 | 10.10.0.1 ) hostnameinnagios=server1 ;; server002 | 10.10.0.2 ) hostnameinnagios=server2 ;; * ) hostnameinnagios=localhost ;; esac Without the case statement, you have to make sure that all your hosts defined in Nagios have names precisely matching the ones found in the traps. I find that in practice, the trap information will sometimes contain just the hostname, sometimes the fully-qualified domain name, and sometimes the IP address depending on what part of the boot process the host has completed at the time. The case statement is, IMO, essential to getting this working reliably although it would be a bit of a pain to maintain it for hundreds of hosts I admit. I believe there is a trap handling system available which stores the trap information in a MySQL database and has a web front-end for examining them - this might be the way to go if your requirements are much more complicated than mine. Forgive me, but I can't recall the name of the project. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 best practices?
On 13/08/07, Steve Huff [EMAIL PROTECTED] wrote: Hello folks! I'd like to roll out Nagios to replace our aging Mon installation; however, setting up Nagios has been more difficult than I had expected, which makes me wonder if I'm going about it the wrong way. Can you recommend a Nagios best practices document or howto? The relevant page in the official Nagios documentation you need to look for is Time-Saving Tricks For Object Definitions. I would give you the url, but for some reason I can't get to that page just at the moment. An excellent introduction to Nagios which goes through how to configure it is the book 'Nagios' by Wolfgang Barth published by NoStarch Press. You can buy it online in .pdf form, printed form or both. It's getting slightly dated now, but IMO it's an easier read than some of the alternatives if you're just starting out. Using hostgroups and templates judiciously you should be able to achieve what you want pretty easily. My recommendation would be to start with a simple config and expand from there rather than trying to do everything at once. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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-users] load and size of log
On 12/08/07, ko0nz [EMAIL PROTECTED] wrote: hi, i'd like to have informations about monitoring: the load, the memory, the cpu... it's just for some 20 servers. i use a Debian. is it possible that Nagios works fine with just 20 Go of space hard disk, 256 Mo of RAM, with Core Duo that i use with Xen Virtualisation? and what's about the size of the log? do i need a lot? what is the speed of the size of the log? thanks in advance for any suggestions. I have run a Nagios system with Fedora Core 5 having only 250mb RAM on a single-processor system. It ran okay just pinging 200 or so hosts, but I had to make sure I wasn't running anything which wasn't needed. For example, I only ran the Gnome GUI when I felt I needed it. I am not sure what you mean by 'the log'. The Nagios log files normally don't occupy much space. How much space they occupy depends on how many events there are, how much logging you configure Nagios to do and how long you keep them. I should think if you're only monitoring 20 servers then 20gb will last you a good few years or even decades. Cheers, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 and MRTG: together at last?
On 11/08/07, Kelly Jones [EMAIL PROTECTED] wrote: Nagios and MRTG seem to perform similar (though not identical) functions, and it seems silly to run both. Indeed. I found PNP works for me - http://www.ederdrom.de/doku.php/nagios/pnp_en so I haven't tried any of the other popular alternatives. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] passive service checks with 1 second interval
On 10/08/07, Risto Vaarandi [EMAIL PROTECTED] wrote: Is there a way to speed up the processing of CRITICAL service checks? I'd like to get a notification within the same second. br, risto I think I would script something only to write to the command file only if the state changes or once a minute to reassure Nagios that the script is still working. The logic would go something like this: while : do sleep 1 if testserviceisok then # all is ok # if state has just changed from critical, send the OK to Nagios if [ $state = 'CRITICAL' ] then (write an OK result command to the command file) fi state=OK else # something is wrong # if state has just changed from ok, send the CRITICAL to Nagios if [ $state = 'OK' ] then (write a CRITICAL result command to the command file) fi state='CRITICAL' fi count=`expr $count + 1` if [ $count = 60 ] then count = 0 (write the appropriate result command to the command file based on $state) fi done hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] installation question
On 07/08/07, Samuel V. Green III [EMAIL PROTECTED] wrote: is there another way I can rename these sample files? Yes. I wouldn't rename them though because they are useful to refer back to if you mess up your config files. I would copy them instead, for example: sudo -s cd /opt/local/etc cp nagios.cfg-sample nagios.cfg cp cgi.cfg-sample cgi.cfg and so on.. I didn't know Nagios was available on macports - thanks for that, it might come in handy one day. Cheers, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] dont want notification when machine reboots
On 27/07/07, Jim Avery [EMAIL PROTECTED] wrote: I've been having a similar problem and have thought about the solution but haven't gotten around to implementing it yet. Mark Powell's suggestion to rely on the service check notification is absolutely right when you want to ignore brief bounces or lost pings. I'm going to do just that, but I will still have a host notification enabled too... I'll configure things so that the on-call engineers get the ping service notification rather than the host notification - they don't want to know about servers briefly bounced. The host notifications I'll send only to me by email so I will know the next day which servers have bounced overnight. I'm hoping that will bring me the best of both worlds. For the record, I tried my variation of Mark's suggestion and it didn't work because I hadn't taken the trouble to understand it properly. If I leave host checks enabled (contrary to Mark's advice), then as soon as any service check fails, Nagios will try the host check which will fail too and will immediately set the service check to a HARD status. Mark's suggestion works because host checks are disabled. The possible down-side is that you don't then see hosts go down in Nagios as such. The host up/down status is important to me because it is used in the Nexsm status map display. I think unfortunately I'm going to use escalations instead, although it's going to be a bit messy. Cheers, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Trap Handling Scheme
On 06/08/07, Paul Dugas [EMAIL PROTECTED] wrote: What about all the other pending doom traps the UPS can send? Temperatures, bad batteries, etc.? Do I have a corresponding service for every one and manually clear them when they fire? Or, could I have a single generic TRAP service that logged and send notifications for them? I have a bit of a mixture. For most, I just have a generic SNMP service for the host and have it always go Critical regardless of what the trap is. So long as the traps are few and far between, this is no problem, I just manually reset the status to OK by sending a passive check result once I've investigated what the problem is. I only bother to configure specific named trap services in Nagios where it makes sense to do so. If you have a setup where you let Nagios process the trap which sets status back to OK, it may make sense to have Nagios notify by email so these traps won't go unnoticed. A danger, though, is that if you get a storm of traps from a system, you could be inundated with emails. I have configured the event handler script so that if any traps arrive from hosts which I don't know about, they go to the generic SNMP service for localhost. That way, if someone is setting up a new device and points traps at my Nagios system, I will know about it as soon as any trap arrives and can retrospectively configure Nagios to recognise that host. I also have a line in snmptt.ini like so: unknown_trap_exec = /usr/local/nagios/libexec/eventhandler/submit_unknown_check_result this writes the trap information to a log file if snmptt comes across a trap which isn't defined in the snmptt.conf file. I have a Nagios service defined to check this log file so I will know if any unknown traps come in - I can then go find the relevant MIB and add it to the snmptt.conf file. I can't pretend I'm entirely happy with the way my system works, as it's not entirely intuitive, but it is catch-all so I'm unlikely to miss anything! hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] dont want notification when machine reboots
On 30/07/07, Lalita Drolia [EMAIL PROTECTED] wrote: Setting up downtime will not be possible. As our servers our being used by individual users for testing purposes. And they may reboot the machine in the normal process of their working. Asking them to schedule a downtime would add overhead for them and we would not prefer to do that. So I guess I will have to go with Mark's suggestion if there is no way to delay the notifications. I believe Mark's suggestion is absolutely the right one (both for me and for you). However, if you're reluctant to try that for some reason another option would be to have the normal host notifications go to /dev/null, and use escalation to notify after a given period; it would be a messy way to do it but it's another option! - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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_snmp to monitor temperature probes
On 29/07/07, Patel, H (Hiten) [EMAIL PROTECTED] wrote: I need to implement monitoring for the set of temperature probes using snmp. I've issued the following command: /usr/local/nagios/libexec/check_snmp -H IPADDRESS -o .oid -w 27 -c 28 -C public And got: SNMP OK - 22 | iso.3.6.1.4.1.17373.2.2.1.5.1=22 How can I implement this in Nagios?. I've only installed Nagios last week so I'm not an expert yet. The SNMP OK - 22 is what will appear on-screen in Nagios (presumably that's 22 degrees C!); anything after the | pipe symbol is only used for collecting performance data - typically it is used if you have installed Nagiosgrapher, PNP or suchlike to graph the values you are getting from Nagios. So that command seems to be working fine. For Nagios, you need to set up a command definition, probably in /usr/local/etc/nagios/commands.cfg (depending on where you have your Nagios config files). Then you need to set up a service definition which uses the new command definition you've just set up. See. http://nagios.sourceforge.net/docs/2_0/xodtemplate.html I can heartily recommend Wolfgang Barth's book Nagios published by No Starch press if you want a head-start learning how to configure things in Nagios. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Netsaint monitoring windows issue
On 27/07/07, Anthony Montibello [EMAIL PROTECTED] wrote: Not sure if anyone ever responded to this I don't recall seeing it either, but now you come to mention it there is sometimes a problem if the Windows server is running MS-Exchange server which also sometimes uses port 1248. Using NC_Net, I often configure it to use a higher port number to avoid that problem. I notice that NSClient++ uses port 12489 for the same reason. I don't want to get in to an argument about whether NC_Net is better than NSClient++, but my advice would be to use port 12489 whether you're using NSClient, NC_Net or NSClient++ then you can pick whichever client is best for whatever you need without needing to redefine your commands to use different port numbers. I use a mixture of all three at the moment for various reasons, and use ports 1248, 3789 and 12489 depending on when I installed the client! One day, I'll get around to moving everything to 12489 which will make my service and command config files somewhat tidier. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] dont want notification when machine reboots
I've been having a similar problem and have thought about the solution but haven't gotten around to implementing it yet. Mark Powell's suggestion to rely on the service check notification is absolutely right when you want to ignore brief bounces or lost pings. I'm going to do just that, but I will still have a host notification enabled too... I'll configure things so that the on-call engineers get the ping service notification rather than the host notification - they don't want to know about servers briefly bounced. The host notifications I'll send only to me by email so I will know the next day which servers have bounced overnight. I'm hoping that will bring me the best of both worlds. Cheers, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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_nt
On 23/07/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: True, NC_NET includes its own client version - I just can't figure out how to get that to run on my Linux Nagios box. :-) You can just replace the standard check_nt.c source file with the new one which comes with nc_net before (re)compiling the standard plugins in the usual way. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 Progress Databases
On 23/07/07, Mies, Christian [EMAIL PROTECTED] wrote: Christian Mies schrieb am 23.07.2007 11:26 Hi List, has anybody experience in Monitoring Progress Databases? If I see it correctly Progress DBs are only Files, that have a fix Filesize and some Logfiles. Is it right? Or is there a ODBC Driver for Connecting through a Progress DB? Any Hints? The database log file is pretty easy to monitor. The trick is to filter out anything you're not interested in. I rewrote the standard check_logs plugin slightly to allow the -v option in egrep. I can then run the plugin something like so: /usr/local/nagios/libexec/check_logv -F /user/dbasedir/dbase.lg -O /tmp/dbase.lg.old -v -q \ ': \(-\) Database dbase Options:|: \(-\) Event Logger error 997:|: \(-\) Registry error 5:|: \(452\) |: \(453\) |: \(562\) |: \(739\) |: \(742\) |: \(794\) |: \(2252\) |: \(2253\) |: \(2518\) |: \(3777\) |: \(3778\) |: \(3789\) |: \(5512\) |: \(5644\) |: \(5645\) |: \(7129\) |: \(8846\) |: \(8864\) |: \(8873) |: \(12699\) |: \(13199\) |\^\$| Mon | Tue | Wed | Thu | Fri | Sat | Sun ' I only implemented this recently so it needs a little polishing still. I'd also rather get egrep to take its arguments line by line from a file, so I'll probably rewrite it one day when I get around to it. The \^\$ thing I put there to make it ignore blank lines, but that doesn't seem to work quite right yet. The days of the week are there because Progress writes the date to the log file every day and I want to ignore that. If you read some of the documentation, it might tell you that an I in the log file means Informational implying that there might be a W for warnding C for critical and so on. Don't believe it! In a test database, I even deleted one of the extent files and the message in the log file still only had I in it. One really important thing to monitor in Progress is the size of the BI storage area. You can monitor the size of the extent file using standard plugins and make it alert when it gets to a size somewhat lower than whatever you've set the BI threshold parameter to in Progress. Other storage areas you can monitor (for size anyway) in a similar fashion. We went one step further and wrote a little Progress program to dump some of the virtual system tables to an ascii file. I use a simple script to read the file and return results back to Nagios using nsca. I monitor the number of licenses used with a simple script which reads the dbname.lic file. I've only been monitoring Progress OpenEdge 10 for a few weeks myself, so I haven't gotten around to publishing any of my plugins or scripts yet. Before doing so, I need to tidy them up a bit, as the way I do things using nsca is a bit non-standard but works for me. If you'd like them in their rough form anyway, give me a shout and I'll be happy to email them to you. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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 Progress Databases
p.s. You will find various useful things and some friendly forums at http://www.peg.com If you make much use of it, please consider helping with their running costs by becoming a member - it's not expensive. - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Get Notification for some services _only_ per E-Mail and others per E-Mail and SMS
On 19/07/07, Thomas Glanzmann [EMAIL PROTECTED] wrote: Hello, how is it possible to tell nagios that I want notification for some services only via e-mail and for others both per e-mail and sms? Set up each user with two separate contact definitions, for example Thomas-Glanzman-email and Thomas-Glanzmann-sms. Set up contact groups admins-email and admins-sms. In the service definitions, specify whichever contact_groups are appropriate. I'm sure there a many other ways of doing this, but this is broadly-speaking how I do it. hth, Jim - This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now http://get.splunk.com/ ___ 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] Solaris 10/x86 HowTo
On 16/07/07, Stephan Windmüller [EMAIL PROTECTED] wrote: Hello! Since I ran into multiple issues installing Nagios on my Solaris machine, I wrote a howto which could help others with the same problems: http://ls5-www.cs.uni-dortmund.de/~windmueller/nagios-solaris10.html I am not a native englisch speaker, so I would appreciate if some of you can proofread the document. Please let me know what you think and if there is anything I can improve. Your English is fine - better than most of my fellow countrymen. I don't have Solaris so can't comment on whether it is technically correct. Cheers, Jim - 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] checking file status
On 13/07/07, Robert Fitzpatrick [EMAIL PROTECTED] wrote: We'd like to monitor the status of our huge file share and be notified of any major changes if a rogue employee were to empty or delete the files. Maybe set a threshold of number of files changed? Is there any suggestions on how this could be done with Nagios? What's the operating-system? Whatever it is, it shouldn't be too difficult to script a check which alerts you if the amount of disk space used is xGb less than it was 15 minutes ago. - 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] Getting Nagiosgraph to create RRD files with LAST/MAX/MIN CF's
On 13/07/07, Ian Marlier [EMAIL PROTECTED] wrote: - Is there a better tool than nagiosgraph for doing what I'm doing (creating RRD files from service-perfdata files), especially given that I'm not particularly interested in nagiosgraph's actual graphing ability? I don't know if it's better or would make your problem any easier to solve, but PNP is probably worth looking at. http://www.ederdrom.de/doku.php/nagios/pnp_en I find it very easy to install and use, but I've not yet tried graphing max/min rather than the default average with it. I've never tried NagiosGraph myself. hth, Jim - 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] mass check_smtp a large range of mail servers?
On 07/07/07, Rogelio Bastardo [EMAIL PROTECTED] wrote: I have approximately 30 mail servers, and rather than writing a separate define service for each one in my cfg file, is there a way that I can add them all to a group and then just check that group? Yes. The documentation is at http://nagios.sourceforge.net/docs/2_0/templatetricks.html You don't have to define a group - instead you can list the hosts in your service definition like so: host_name mail01,mail02,mail03,mail04 or you can use wildcards or regular expressions. - 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 solution
On 06/07/07, bolovan bogdan [EMAIL PROTECTED] wrote: Hello all, I am in a dillema , I have to monitor a massive network of vpn hosts, ( most of them Cisco CPE routers ) , and all I really need is availability polling. The problem is that active host checking became really sluggish after 500 hosts testing. re-enable active checks for the hosts, but use check_icmp or check_fping for the active host check (and for the ping service check for that matter). I believe the host will only change state if the host check fails - if you've disabled active host checks then that will never happen. The problem with the default check_ping is that it takes too long to run, and host checks can't be run in parallel (not until version 3 Nagios anyway). check_fping or check_icmp typically take a lot less time to run than check_ping which won't finish until all of the pings at 1-second intervals have been executed. I'd also recommend making sure you set up your parent relationships if you haven't already. I'm not sure if it would help performance, but it's worth doing anyway :) hth, Jim - 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 solution
On 06/07/07, Rev. Dr. Aaron M. Segura [EMAIL PROTECTED] wrote: You could make the host check a 'ping' (not active), and assign a single (active) 'ping' service to each host. That way when the service fails, the host is checked, and then the status of the host will change. I'm sorry to have posted duff advice just now - I just checked my Nagios config here and I don't have active host checks set either. You're right, you shouldn't need active host checks set, as the host will get checked when the (active) ping service fails anyway. - 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