Re: [Nagios-users] Checking Bacula Server
Hi, 27.04.2009 22:15, Eduardo Barreto wrote: Hi all, Does anybody know how to check a Bacula Server? I've installed check-bacula but it's not working fine. Some more information is needed here... - how did you install check_bacula? - which version of Bacula? - what does a call of check_bacula from the console report? Also, I believe it's more likely to get in touch with the author of check_bacula on the bacula-users mailing list. Arno Anybody to give me a clue? Thanks in advance Eduardo -- Crystal Reports #45; New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty#45;free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects ___ 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 -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de -- Register Now Save for Velocity, the Web Performance Operations Conference from O'Reilly Media. Velocity features a full day of expert-led, hands-on workshops and two days of sessions from industry leaders in dedicated Performance Operations tracks. Use code vel09scf and Save an extra 15% before 5/3. http://p.sf.net/sfu/velocityconf ___ 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_squid.pl
Hi, 17.04.2009 11:21, Meyer Jerome wrote: Hi all I ’ ve d ownloaded the plugins check_squid.pl ... Any ideas?? Hmm... I never used that check_squid.pl. But I've got one I wrote a while ago. No documentation, no useful help, but feel free to try it... if it works for you I might polish at least the help output a bit and publish it. Note that I consider this a quick and dirty hack, and the best things to say about it are that it uses -w and 'use strict;' It uses snmp to check, i.e. your squid config needs lines like acl snmppublic snmp_community publi snmp_access allow snmppublic our_networks to allow snmp access to squid. Arno -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de check_squid.pl Description: Perl program -- Stay on top of everything new and different, both inside and around Java (TM) technology - register by April 22, and save $200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco. 300 plus technical and hands-on sessions. Register today. Use priority code J9JMT32. http://p.sf.net/sfu/p___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] MySQL replication status plugin
Hi, 15.04.2009 11:06, Gabriel - IP Guys wrote: Good morning guys, (and girls), I hope all is well. I’ve been given the task to, and I quote – “Write a Nagios plugin to test the replication status of two servers by comparing the position on the master to that on the slave” I don't know about the position question, but my check_mysql from the standard plugins 1.4.11 tells me this: Options: ... -S, --check-slave Check if the slave thread is running properly. -w, --warning Exit with WARNING status if slave server is more than INTEGER seconds behind master -c, --critical Exit with CRITICAL status if slave server is more then INTEGER seconds behind master So why not check if that is what you need? To save myself a lot of work, I’d like to know if anything has been done in this arena already, I would be over the moon, if someone has beaten me to it, but I am so not in the mood to write one! Arno --- Kind Regards, Mr Gabriel -- 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 -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de -- 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] how to check smtps, pop3s, imaps, ldpas withy nrpe ?
Hello, please respond to the list. 02.09.2008 10:44, J. Bakshi wrote: Arno Lehmann wrote: Hi, 02.09.2008 09:37, J. Bakshi wrote: Dear list, I have installed nagios-nrpe 2.0 nagios-plugins 1.4 nagios-plugins-extras 1.4 How can I check smtps, ldaps, pop3s, imaps with nrpe ? the default check_smtp ; check_imap etc can't check the SSL version of the services. Mine can; call them with -h for help and read the output. I usually use the -S swich plus, as needed, -p for the target port. Example output: $ /usr/local/nagios3/libexec/check_imap -H 192.168.1.2 -S -p 993 -D 12 OK - Certificate will expire on 04/27/2009 21:13. IMAP OK - 0.060 second response time on port 993 [* OK IMAP4 Ready balrog.privat.lehleute.de 0001b1a4]|time=0.059891s;;;0.00;10.00 Hi Arno, first of all thanks for your kind response. I have also found the -S option but the story is different here and it is negative :-( here is the nmap output which proves the required port are open It does not actually prove the services are listening on localhost, and that access is not filtered, for example by hosts files. PORT STATE SERVICE 25/tcp open smtp 80/tcp open http 143/tcp open imap 389/tcp open ldap 443/tcp open https 465/tcp open smtps 993/tcp open imaps 995/tcp open pop3s 1234/tcp open hotline 2000/tcp open callbook 3306/tcp open mysql more important I can use the SSL enabled services, like pop3s , smtps etc... If I check with check_smtp I get the following /usr/lib/nagios/plugins/check_smtp -H localhost -p 465 -S -v CRITICAL - Socket timeout after 10 seconds Check with the ip address that is usually used - it's quite possible the service is not bound to localhost. And here is the check fir ftp :-( /usr/lib/nagios/plugins/check_ftp -H localhost -p 60021 -S -v CRITICAL - Cannot make SSL connection 13948:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:478: Plese note I am practically using ftps, smtps, pop3s I have no clue really. Hope you can enlighten me to point out my mistake. Try what I suggested... that's what I'd do now. Arno with many thanks Arno thanks -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] using check_printer to check Ricoh toner
Hi, 13.08.2008 17:04, Marcelo M. Garcia wrote: Hi. I'm trying to use the plugin check_printer to monitor the toners of our Ricoh Aficio 3245C. When I run from the command line it works fine: [EMAIL PROTECTED] /usr/lib/nagios/plugins $sudo ./check_printer 194.193.148.130 public toner 1 OK - Black [EMAIL PROTECTED] /usr/lib/nagios/plugins $ I defined a command check_ricoh_toner: # 'chech_ricoh_toner command definition define command { command_namecheck_ricoh_toner command_line$USER1$/check_printer $HOSTNAME$ public toner You probably want to replace HOSTNAME with HOSTADDRESS... Arno $ARG1$ } And then, the service: [EMAIL PROTECTED] /etc/nagios/cd-adapco/services $more ricohprinter.cfg # # Printers. define service { host_namericoh service_descriptioncheck Ricoh Aficio check_commandcheck_ricoh_toner!1 normal_check_interval90 max_check_attempts 5 retry_check_interval15 check_period24x7 notification_interval90 notification_periodworkhours notification_optionsw,c,r contact_groupscd-admins } But in the web interface I see the message: UNKNOWN - Toner/Ink 1 does not exist! What is wrong? What am I missing? I'm using Nagios in a Fedora 9 box: nagios-2.11-3.fc9.i386. The plugin check_printer I downloaded from NagiosExchange. Thanks Marcelo - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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 -- Arno Lehmann IT-Service Lehmann Sandstr. 6, 49080 Osnabrück www.its-lehmann.de - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] Notifiactions question
Hello, 23.07.2008 11:20, Marc Torres wrote: Hi all, I'm quite newbe to nagios, and I'm trying to configure notifications for services according to host contacts. I mean, I would like to configure contacts (or contact groups) only in the hosts definitions, and then when a monitorized service at that host has a hard state change, the notification gets send to the contact configured at the host definition. You could do this with custom variables. You set the data you need for the notifications in the host as, for example, _NOTIFICATIONMAIL and create a new notification script that uses this address (if defined) instead of the default supplied by the Nagios configuration. Arno My problem is that I've got one hostgroup which has all hosts related to it. The services are configured for that hostgroup (all the hosts run the same services), this way I'm monitoring the same services in all hosts. But according to [1], I've to configure a contact or a contactgroup at least for the service, and here comes my problem. I would like not to share the same contacts for the same service in the different hosts, I would like to configure different contacts for the same service in different hosts. The contact should be the same configured in the host definition, so my question is if its possible to configure nagios to send service notification at destinations configured at hosts definition instead of service definition. I've read almost all the docs from [2]. But I didn't found a easy way to achieve it. The only solution that comes to my mind is to create a template for each service and then create a service for each host that inherits from the template and has the same contact of the host, but this is hard to achieve as I may have hundreds of hosts. Cheers, Marc. [1] http://nagios.sourceforge.net/docs/3_0/objectdefinitions.html#service [2] http://nagios.sourceforge.net/docs/3_0/toc.html -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100url=/ ___ 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] FW: Configuring Active Directory authentication - Nagios 3.0.2
Hi Matt, please, send replies to the list so the whole discussion is in the archives... 08.06.2008 16:27, Matt White wrote: Hi Arno, I have just looked at the relevant part of my httpd.conf and I have two sections listed: Directory /usr/local/nagios/sbin And Directory /usr/local/nagios/share Do I need to put the same config settings in for both Directory listings? Yes. At least, I'd say that is the normal way because you want users to authenticate when accessing the dynamically created pages as well as the static ones. Arno Regards, Matt White [ [EMAIL PROTECTED] ] [ http://www.matthewjwhite.co.uk ] -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Lehmann Sent: 06 June 2008 09:08 To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] FW: Configuring Active Directory authentication - Nagios 3.0.2 Hello, 06.06.2008 01:26, Lists wrote: Hi, I have spent the last week or two building a demo system and one of my requirements is that we can configure user access based on LDAP queries to our AD server. That's merely a question of getting the web server authenticate against LDAP. I am currently running the test box on Ubuntu Server 7 and I am having problems in getting the LDAP queries setup as my Linux knowledge is nowhere near as strong as my Windows. That happens - don't worry, we won't hold that against you. Has anyone configured this and maybe have the relevant snippets of code I need for my nagios config and also for apache as I don't think what I have in place is currently working for me! I do something like this. Note that I'm not authenticating against an AD LDAP, but the basic principle should work. First step is to make sure you can, from your nagios box, access the AD LDAP. This *might* need kerberos for authentication - I never tried that, but the OpenLDAP programs do support kerberos as an authentication scheme, so I'm pretty sure with a bit of manual reading and experimenting you can do that. The problem is that, as far as I know, LDAP support in apache does not include kerberos authentication. A short google search for apache auth against AD seems to indicate that you do not need kerberos, so further experiments are probably useful... Then make sure you know how to access the user data in the LDAP tree. ldapsearch is a good tool for this. You need to set up your Nagios contacts with user names that are identifiable in AD LDAP first. Then use an apache configuration similar to this one (this is a bit streamlined): Directory /usr/local/nagios3/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName Nagios Access AuthType Basic AuthBasicProvider ldap require ldap-filter objectClass=deitsMonitoringContact AuthLDAPURL ldap://localhost:389/ou=people,dc=,dc=de?uid?sub?(objectC lass=deitsMonitoringContact) /Directory The additional filter - in my case the deitsMonitoringContact - will need to be changed or removed for you. And, of course, you will probably need to adapt the AuthLDAPURL to your site. In my case I use the uid attribute to match the supplied username, but I get the impression that with AD you would use sAMAccountName. I wish you success! Arno Any help is much appreciated as always. Regards, Matt White [ [EMAIL PROTECTED] ] [ http://www.matthewjwhite.co.uk ] WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Lists accepts no liability for any damage caused by any virus transmitted by this email. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.Lists therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. Warning: Although Lists has taken reasonable precautions to ensure no viruses are present in this email, Lists cannot accept responsibility for any loss or damage arising from the use of this email or attachments. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting
Re: [Nagios-users] FW: Configuring Active Directory authentication - Nagios 3.0.2
Hello, 06.06.2008 01:26, Lists wrote: Hi, I have spent the last week or two building a demo system and one of my requirements is that we can configure user access based on LDAP queries to our AD server. That's merely a question of getting the web server authenticate against LDAP. I am currently running the test box on Ubuntu Server 7 and I am having problems in getting the LDAP queries setup as my Linux knowledge is nowhere near as strong as my Windows. That happens - don't worry, we won't hold that against you. Has anyone configured this and maybe have the relevant snippets of code I need for my nagios config and also for apache as I don’t think what I have in place is currently working for me! I do something like this. Note that I'm not authenticating against an AD LDAP, but the basic principle should work. First step is to make sure you can, from your nagios box, access the AD LDAP. This *might* need kerberos for authentication - I never tried that, but the OpenLDAP programs do support kerberos as an authentication scheme, so I'm pretty sure with a bit of manual reading and experimenting you can do that. The problem is that, as far as I know, LDAP support in apache does not include kerberos authentication. A short google search for apache auth against AD seems to indicate that you do not need kerberos, so further experiments are probably useful... Then make sure you know how to access the user data in the LDAP tree. ldapsearch is a good tool for this. You need to set up your Nagios contacts with user names that are identifiable in AD LDAP first. Then use an apache configuration similar to this one (this is a bit streamlined): Directory /usr/local/nagios3/sbin Options ExecCGI AllowOverride None Order allow,deny Allow from all AuthName Nagios Access AuthType Basic AuthBasicProvider ldap require ldap-filter objectClass=deitsMonitoringContact AuthLDAPURL ldap://localhost:389/ou=people,dc=,dc=de?uid?sub?(objectC lass=deitsMonitoringContact) /Directory The additional filter - in my case the deitsMonitoringContact - will need to be changed or removed for you. And, of course, you will probably need to adapt the AuthLDAPURL to your site. In my case I use the uid attribute to match the supplied username, but I get the impression that with AD you would use sAMAccountName. I wish you success! Arno Any help is much appreciated as always. Regards, Matt White [ [EMAIL PROTECTED] ] [ http://www.matthewjwhite.co.uk ] WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. Lists accepts no liability for any damage caused by any virus transmitted by this email. E-mail transmission cannot be guaranteed to be secure or error-free as information could be intercepted, corrupted, lost, destroyed, arrive late or incomplete, or contain viruses.Lists therefore does not accept liability for any errors or omissions in the contents of this message, which arise as a result of e-mail transmission. Warning: Although Lists has taken reasonable precautions to ensure no viruses are present in this email, Lists cannot accept responsibility for any loss or damage arising from the use of this email or attachments. - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://sourceforge.net/services/buy/index.php ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios Alert thru SMS
Hi, 07.05.2008 09:46, ninjai wrote: Hi All, Would like to ask some help regarding nagios alert thru SMS. Is there any plugin that I can integrate to my nagios? You could search the list archives - this has been discussed extensively. A more complete answer is yes. Even more complete: Any tool you can use to send SMS'es. gnokii, sms-tools, web-based services, mail-to-sms gateways... you can choose from a wide avriety of options. Arno Please help. Thanks and Regards, bulik Be a better friend, newshound, and know-it-all with Yahoo! Mobile. Try it now. http://us.rd.yahoo.com/evt=51733/*http://mobile.yahoo.com/;_ylt=Ahu06i62sR8HDtDypao8Wcj9tAcJ - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Issues getting check_nt -v COUNTERS to work...
Hi, 22.04.2008 21:24, mjn wrote: All- For whatever reason, I cannot get a check_nt -v COUNTER check to work through nagios itself. I can run this: [EMAIL PROTECTED] plugins]# sudo -u nagios ./check_nt -H 192.168.110.84 -p 5667 -v COUNTER -l \\SQLServer:General Statistics\\User Connections And it responds with: 53 But with the check defined (details below) and run through nagios, the GUI shows critical and Name or service not known Any idea what the issue might be? I am sure I've missed something simple... Yup. Here's the grit: nagios-plugins-nt-1.4.11-2.fc8 check_nt v1590 (nagios-plugins 1.4.11) nagios-2.11-3.fc8 opmon 2.7.1.0 SQL Connections Check: define command { command_name check_nt_mssql_conns command_line $USER1$/check_nt -H %HOSTADDRESS% -p $ARG1$ -v COUNTER Use $HOSTADDRESS$ and see what happens... -l \\SQLServer:General Statistics\\User Connections } Service Definition: define service { use informational-service host_name sql service_description MS_SQL_User_Connections contact_groups windows-admins check_command check_nt_mssql_conns!5667 } Arno - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Problem with Event Handler {Disarmed} {Fraud?}
Hi, 11.04.2008 07:24, Marc Powell wrote: On Apr 10, 2008, at 9:44 PM, Miguel Angel wrote: Hi First of all, I would like to apologize for my english. I need your help, I'm trying to configure Nagios (version 2.5) for launch backups with Bacula UP) echo The host is UP. Start backup to $1 echo run $1 yes | bconsole ;; Educated guess - bconsole isn't in the environment path when nagios executes the event handler. You can expect to have a minimal environment and should specify full paths to files and programs. Also make sure that the nagios user can successfully run that command. Also, it's much safer to pass the configuration file to use to bsonsole. So you should end up with something like /sbin/bconsole -c /etc/bacula/bconsole.conf Things might even be more comlicated. Your $1 in the event handler script holds the host name as defined in Nagios. That is not necessarily the name of any Bacula job. Of course you could define the jobs with the plain host name, but for reasons of manageability and flexibility I usually recommend a different naming scheme for the jobs. For example, on host sample with Bacula file daemon sample-fd you might have the jobs Sample-root Sample-home and Sample-data. For many Bacula installations, you soon discover that you need several jobs to take different needs regarding retention times, storage pools, or special backup procedures into account. As long as you really only need one job named exactly like the Nagios host name, your setup is ok, though. Arno -- Marc -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ 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] Problem with Event Handler {Disarmed} {Fraud?}
Hello, please, reply to the list or I might send an invoice ;-) Of course, others might profit from the archives, too. 11.04.2008 14:53, Miguel Angel wrote: maybe the Nagios user no have permisions to execute bconsole??? On Fri, Apr 11, 2008 at 7:16 AM, Miguel Angel [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi Arno, :) The jobs named exactly like Nagios: Good. As long as it works for you that's ok, of course. In Nagios (bigger.cfg) ... When I launch a backup from console for client scliente, I use: $ echo run scliente yes | bconsole Well, keep in mind what Marc pointed out - the environment Nagios uses to execute scripts is seriously stripped down. Arno, in the Event Log in Nagios, appear this: [04-10-2008 21:55:42] Warning: Attempting to execute the command /eventhandlers/launch-bacula-jobs registros DOWN HARD resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... I'm rather sure you won't find the /eventhandlers/launch-bacula-jobs existing and executale by nagios. Use a fully qualified path for the command and have the script be owned and executable by the nagios user. The directories leading to it should also be r-x for nagios. So, do a 'ls -l /eventhandlers/launch-bacula-jobs' and see if it's usable by Nagios. Arno [04-10-2008 21:55:42] HOST EVENT HANDLER: registros;DOWN;HARD;10;launch-bacula-jobs Please help! On Fri, Apr 11, 2008 at 2:17 AM, Arno Lehmann [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, 11.04.2008 07:24, Marc Powell wrote: On Apr 10, 2008, at 9:44 PM, Miguel Angel wrote: Hi First of all, I would like to apologize for my english. I need your help, I'm trying to configure Nagios (version 2.5) for launch backups with Bacula UP) echo The host is UP. Start backup to $1 echo run $1 yes | bconsole ;; Educated guess - bconsole isn't in the environment path when nagios executes the event handler. You can expect to have a minimal environment and should specify full paths to files and programs. Also make sure that the nagios user can successfully run that command. Also, it's much safer to pass the configuration file to use to bsonsole. So you should end up with something like /sbin/bconsole -c /etc/bacula/bconsole.conf Things might even be more comlicated. Your $1 in the event handler script holds the host name as defined in Nagios. That is not necessarily the name of any Bacula job. Of course you could define the jobs with the plain host name, but for reasons of manageability and flexibility I usually recommend a different naming scheme for the jobs. For example, on host sample with Bacula file daemon sample-fd you might have the jobs Sample-root Sample-home and Sample-data. For many Bacula installations, you soon discover that you need several jobs to take different needs regarding retention times, storage pools, or special backup procedures into account. As long as you really only need one job named exactly like the Nagios host name, your setup is ok, though. Arno -- Marc -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de http://www.its-lehmann.de - This SF.net email is sponsored by the 2008 JavaOne(SM) Conference Don't miss this year's exciting event. There's still time to save $100. Use priority code J8TL2D2. http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto: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 -- Atentamente, Miguel Angel Moreno Bolaños Usuario Linux registrado No. 391784 http://counter.li.org El amor es un dolor entre pecho y espalda, que sabe a papas fritas sin salsa de tomate! Att: Nous -- Atentamente, Miguel Angel Moreno Bolaños Usuario Linux registrado No. 391784 http://counter.li.org
Re: [Nagios-users] best way to check cups-spooler
Hi, 13.03.2008 07:24, Ralf Prengel wrote: Hallo, I ve to check a printwerver with about 50 printers. What is the best way to check a) health and connectivity of the printers b) if jobs are hanging Thanks for hints If this is CUPS, I'd write wrapper scripts around lpq and a text-mode web browser (or curl, or whatever perl/python/php library you like) to query the web interface for the printer states. nagiosexchange.org also has some cups-related plugins... Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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] Specifying a service on a different hostwithsend_nsca
Hi, 05.11.2007 20:34,, Mohr James wrote:: Therefore, we would like to be able to specify the actual host name when using send_nsca. Is this possible? Is there a newer version where this is possible? You must specify the host_name with any version of send_nsca that I am aware of as part of the check result data you send back to the nagios server. You just seem to have it hard coded to be a specific host for all results -- $ send_nsca --help Usage: ../bin/send_nsca host_address [-p port] [-to to_sec] [-d delim] [-c config_file] snip Note: This utility is used to send passive service check results to the NSCA daemon. Servce check data that is to be sent to the NSCA daemon is read from standard input. Service check information is in the following format (tab-delimited unless overriden with -d command line argument, one entry per line): host_name[tab]svc_description[tab]return_code[tab]plugi n_output[ newline] ^^^ it's this last bit that you need to modify to send the correct host name. Be aware that nagios will reject submissions for hosts/services that it doesn't know about so you almost certainly need to do some config re-writing to make it work. -- Marc As far as I can tell from the online help and other documentation, host_name is the host to which you want to send the message. That is, it is the NSCA server and not the name of the host that is actually being monitored. When I run send_nsca --help on my machine it gives me much more text, and says: snip Options: host_address = The IP address of the host running the NSCA daemon snip This, as well as my tests, indicate to me that with this parameter one is simply telling send_ncsa where to send the message and not the host which the service is on. I disagree. I'm getting lots of service checks for different hosts, all being submitted by send_nsca on localhost. I.e. 'echo $SUBMITTED_RESULT | send_nsca 127.0.0.1 -p ... -c ...' with SUBMITTED_RESULT being lines containing different host names as first fields. In other words, host_address on the command line is definitely different to host_name in the actual results you submit. Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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] notifications 3.0b3 not working.
Hi, 02.10.2007 08:34,, Ken Lee wrote:: thanks for your wisdom Andreas, perhaps I should purchase Op5 monitor? Not. While I can (kind of) understand your bitterness about not getting any replies yet, I think Andreas has made a good point here... Nagios 3 *IS* beta, and it is supposed to be used by people who will actively help getting it fixed. If you need a stable Nagios, use the 2.something versions. While I know that it's usually a good thing to prepare migration to a new version as early as possible, a complete switch to beta software in a production environment is surely not what I recommend to my customers. If you want reliable support, using Op5 would definitely be one of your options. I guess that you could agree on a contract where any sort of malfunctioning will make Op5 very busy fixing your issues... Arno - Ken Lee (kenlee) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=4893 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] $ in my notifications
Hi, 01.10.2007 20:09,, zack kenton wrote:: Hi list So when something is critical and/or warning I get an email obviously. However, in the date/time and additional info fields I just get a $ instead of any useful information. In my previously working version of nagios it would give me the date/time stamp and additional info would say exactly what was wrong. Does anyone know how I can format this? Thanks Sending the same question so quickly is considered extremely rude by many people and might have the effect that you won't get any useful answer. The reason for your problem is the command definition of your notification commands. Take a close look at the variables you pass. All the information is in the manual. Arno - zack kenton (zkenton) --- The mailing list archive is found here: http://www.nagiosexchange.org/nagios-users.34.0.html - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] $ in my notifications
Hi, 01.10.2007 21:10,, zack kenton wrote:: Hi Arno before you jump at me over some little message board, I dont know why my question keeps reposting...but im not doing it intentionally Did I jump over you? I don't think so... but it's good to see that this was not intentional - something nobody here can know unless you tell us. Anyway - what does your notification command look like now? Arno - zack kenton (zkenton) --- This thread is located in the archive at this URL: http://www.nagiosexchange.org/nagios-users.34.0.html?tx_maillisttofaq_pi1[showUid]=4869 - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] can not read localhost.cfg file that is crated webgui
Hi, 01.10.2007 21:23,, Nedim Bicic wrote:: Is is possible not to run the macros i see ur right dont see the plugin in the path shown in the resource.cfg i want to use an existing commands.cfg , i dotn want to use no plugin is this possible or do i still have to install nagios plugin in order to get local info running again Every check Nagios does is executed as a plugin. There is no exception to this, i.e. no check is implemented in Bacula itself. basically i am going to be using nagios for just pinging devices and setting up parenting i am not going o be doing anything fancy like checking nrpe not yet that is? But you want to define the check commands... Arno thanks On 10/1/07, *Jim Perrin* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 10/1/07, Nedim Bicic [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: this is what i have in my nagios.cfg file # Host and service definitions for monitoring this machine cfg_file=/usr/local/nagios/etc/localhost.cfg as i understand it checkes this file thru the sanity precheck i did as i didnt get and warrrign messages or errors why doesnt it display the lcoal host information? No. Running nagios -v /path/to/nagios.cfg will check for errors, but it mostly just checks syntax. Your error would seem to indicate that either you've not installed the plugins, or your $USER1$ value is set improperly in your resource.cfg -- During times of universal deceit, telling the truth becomes a revolutionary act. George Orwell - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] can not read localhost.cfg file that is cratedwebgui
Hi, 01.10.2007 23:15,, Nedim Bicic wrote:: Here is what i have in the commands.cfg file *# 'check_ping' command definition define command{ command_namecheck_ping command_line$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5 The line above calls the *plugin command* check_ping. }* this should be workign regardless i mean i dont need a plugin this is a standard check that came with the distribution package As far as I know there are no check_* commands included in the Nagios core distribution. All the programs that do the actual checking are defined as plugins. why do i need to install a plugin i dont understand when i dont need to be running fancy commnads. That's got nothing to do with fancy. Nagios itself *does not contain* the check commands, these are by definition plugins to Nagios. The plugins are distributed as separate packages. also some one mentioned the resource.cfg file its pointing to the follwing : *# Sets $USER1$ to be the path to the plugins $USER1$=/usr/local/nagios/libexec* ** *should this last line be tweaked to be like this:* **$USER1$=/usr/local/nagios/commands.cfg --- since the commads are defined here how to do the checks??** ** No, this would be wrong. $USER1$ is not supposed to point to a configuration file. You should reread the manual to refresh your knowledge of these variables, and why they are defined in a separate file. Arno Please help me thanks ** ** ** On 10/1/07, *Marc Powell* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: -Original Message- From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:nagios-users- mailto:nagios-users- [EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Nedim Bicic Sent: Monday, October 01, 2007 2:24 PM To: Jim Perrin Cc: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] can not read localhost.cfg file that is cratedwebgui Is is possible not to run the macros i see ur right dont see the plugin in the path shown in the resource.cfg i want to use an existing commands.cfg , i dotn want to use no plugin is this possible or do i still have to install nagios plugin in order to get local info running again I believe you had/have a working nagios that is checking hosts and services already, correct? What did you change? Are the previous checks you had still working? If so, how are the new service checks different than the working ones? Without seeing your service/command definitions in question, it sounds like you've got a check_command or command_line wrong. -- Marc - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net mailto:Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] plug-ins for AIX DB2
Hello, 24.09.2007 02:48,, Live Great wrote:: A bit impatient? ;-) The required configuration is to install a nagios client/plug-ins in AIX and have it monitor the DB2 database engine, I assumed it will periodically send status/summary to a remote centralized nagios server. The centralized nagios server is a freebsd system. I would like to know if I need to install a Nagios engine in AIX in order to send the result back to the centralized nagios server. I probably get confused about how the plug-ins work in a client-server model, for example a Nagios plug-ins in AIX checks the local system state and send this result to a remote centralized remote Nagios server. Can anyone please shed some lights on me? Well, first of all it might help to understand Nagios better, but you're quite close already... There are basically two ways to monitor anything using Nagios: - Use a plugin running on the Nagios server, which connects to whatever service you want to monitor, gets some result, and reports this. For that to work, you need some plugin that can check a remote DB2 installation for your Nagios server. If you don't find anything suitable on NagiosExchange, it's more or less simple to write a plugin yourself - you will use the DB2 client (hopefully) available for FreeBSD, connect to the DB2, get some important information, parse it, and return a proper state as a result code, along with a little information on stdout. Rather simple task for a shell, perl, or whatever script. - Use a check on the DB2-server itself. This would do basically the same as above, but report as a passive check result, probably using nsca, ssh or any other suitable method to remotely connect to your monitoring server. Which way to go depends on your needs and the availability of the needed programs. NagiosExchange is usually a very good starting point to look for plugins. Hope this helps you a bit, Arno Thanks SW - Original Message From: Live Great [EMAIL PROTECTED] To: nagios-users@lists.sourceforge.net Sent: Monday, September 24, 2007 9:48:18 AM Subject: [Nagios-users] plug-ins for AIX DB2 Hi, I want to install a nagios plug-ins for AIX DB2. Where can I download this plug-ins from the internet? or do I need to purchase that? Your suggestion is much appreciated. Thanks SW - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] Nagios Interface not updating or delayed
Hi, 17.09.2007 05:02,, Nelson Serafica wrote:: I notice in my Nagios that it doesn't refresh sometime. I added a new host (foo) and its services (ping), restart nagios and check the GUI if all are pending. The problem is sometimes I see the foo hosts but sometimes isn't. I already clear cache in my Windows XP but still it doesn't showed up. I also reload na Nagios config. Is there a thing I need to do to avoid this? This looks like you've got multiple instances of Nagios running. Stop Nagios, wait some time, see if Nagios processes are still around. If there are, kill them. Then start Nagios as you usually do. Arno Tired of spam? Yahoo! Mail has the best spam protection around http://ph.mail.yahoo.com http://sg.rd.yahoo.com/mail/ph/footer/def/*http://ph.mail.yahoo.com - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] Nagio TEC
Hi, 03.09.2007 15:10,, Fabio Iovine wrote:: hi all, I need to forward Nagios alarm events to TEC (Tivoli Enterprise Monitor). For this reason I wrote a couple of shell-scripts to handle Nagios servicestate and change them in TEC suitable severity codes. Then I try to forward these event to TEC by using a Tivoli command but I have problems with SERVICEOUTPUT/HOSTOUTPUT which are truncated. let's make some fixed points; these are the twho commands I defined in my commands.cfg file: # 'service-notify-by-postemsg' command definition define command{ command_name service-notify-by-postemsg command_line $USER3$/service-nagios-postemsg.sh `$DATE$` `$TIME$` `$HO You should change these quotes to something more useful, like ' or and make sure any special characters you pass are correctly quoted (or handled by your script correctly). IIRC, Nagios calls the commands you define using /bin/sh, and that might understand unexpected things... STNAME$` `$SERVICESTATE$` `$SERVICEOUTPUT$` } # 'host-notify-by-postemsg' command definition define command{ command_name host-notify-by-postemsg command_line $USER3$/host-nagios-postemsg.sh $DATE$ $TIME$ $HOSTNAME$ Also, put qoutes around the variables. As long as you forbid any potentilly insecure characters in Nagios' configuration (the default, IIRC), should work fine. $HOSTSTATE$ $HOSTOUTPUT$ } the two files have the following inside them: date=$1 Again, qouting... ... what really happen to me is that the $hostoutput wich should contain the $HOSTOUTPUT$ text is truncated right after the first word, for istance: $HOSTOUTPUT$ = JMX ATTRIBUTE CRITICAL - jboss.j2ee:jndiName=ejb/GameTransactionSystem,service=EJB-StateString: become $hostoutput = JMX do you have any idea? Sure. Quoting. To verify this, try to enter the line you give above into the shell... you'll get something else than only a variable assignment. Arno thanx in advance, Fabio - 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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] Disk check by check_by_ssh or nrpe or wrapper, which is better?
Hi, 24.08.2007 01:24,, Gattu wrote:: Hey Guys, Problem: Monitoring Disk usage on remote machines. How I solved: wrote a wrapper plugin which will send command to remote host using nc (netcat). On remote host, configured xinetd to run a script which will read the command line sent by nc, parsed it and executed ./check_disk plugin. This easily introduces serious security issues. Question: Can the above problem be solved using check_by_ssh? Yes. If yes, i wish i can understand how nagios will send warning emails or critical emails? Exactly the way it always does. The check commands or the actual programs executed to check things don't have an impact on how Nagios does its notifications. And if not the other option is nrpe... but then I will have to install nrpe on every remote machine! is that assumption correct? Yes. Just like you now have to set up (at least) xinetd on the machines, but nrpe is a bit safer by design. I'd even say that nrpe is quite safe unless you explicitly allow parameters to be passed, and unless you don't turn off communication encryption. Dilemma!! help I don't see the dilemma... Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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 a service if ICMP to the host is blocked
Hi, 23.07.2007 08:42,, Patrick M. Hausen wrote:: Hi, all! We are monitoring an external FTP server that is not in our control but that we depend on for a certain part of our business. After the FTP service failed for a short period of time on Saturday, the host was flagged down and has not come up since. I just found out that the other admin blocks ICMP. The FTP server works fine, though. I wonder if they have misterious problems with customers that have an MTU slightly less than 1500 somewhere in their path ;-)) Is there a way to tell Nagios not to bother checking if a host is alive with ICMP echo and just continue checking the service instead? Sure... either simply remove the host check from the hosts definition, or - what I would do - use the ftp check as a host check also. Arno Thanks a lot, Patrick -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - 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] NagiosGrapher Linux Load
Hi, 19.07.2007 18:13,, Jeff Shumard - DefenseWeb Technologies wrote:: Does anyone else have the same problem that I am seeing with the graphs, on Linux Load? The graph area is not matching what the totals are getting from the server or from the values I am printing out of the bottom of the graph. The graph is showing much higher values and the average is also showing higher on the graph. I am using STACK to show all the values of 15min, 5min, and 1min on the same graph. Does anyone know how to resolve this as well? IIRC, STACk means the values are all added up. The default NagiosGrapher setup thus creates very impressive graphics with limited value :-) When the load (1, 5, 15 min) is 1, 1, 1, the graph should show you the color for 1 min from 0 to 1, then 5min color from 1 to 2, and 15min color from 2 to three. If you want a better readable graph, I suggest simply painting three line graphs of different color for the different load values. Arno Thank you, Jeff - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. 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 -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft Visual Studio 2005. 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] Permission Denied on check_nt
Hello, 19.07.2007 20:43,, Paul Broadwith wrote:: ... The permissions on the 'plugins' directory and all of the plugins were root.root, but are now as follows: ... Happy to let somebody have a look around the server via SSH if they wish. Short of rebuilding the server I'm not sure what to do myself! Oh damn... be careful with this sort of offer! At least chose someone with a known and confirmed name, set up a contract, get that signed by your management, so that you know whom to strangle when things go wrong :-) As an aside I couldn't get Nagios running at first because it couldn't write the .pid file in /var/run. I changed the location of the .pid file to the /var/log/nagios and it worked fine. That also seemed to be permissions based even though I had given Nagios full access to the /var/run directory. This looks like you, during testing perhaps, ran nagios as root. Some files created were left behind, still owned by root, so that Nagios can not recreate or modify them. Now, I don't know where Nagios uses temporary files, pid files, sockets for interprocess communication, or whatever, but I would start using strace now on the running nagios processes, and check the permissions of all files (and directories) Nagios accesses... Arno -- Arno Lehmann IT-Service Lehmann www.its-lehmann.de - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. 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] Plugin that will test nagios.cfg
Hi, 21.06.2007 23:20,, Patrick Morris wrote:: Arno Lehmann schrieb am Donnerstag, den 21. Juni 2007: Hi, chiel schrieb: I'm looking for a plugin that will check if the nagios.cfg is ok. So besecauly run this command: /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg. Is there a plugin for this? Wouldn't it be better to check this in the cron job itself? Nagios won't help you much if it crashes because of a broken config. The cron job could, naturally, report problems as passive results to Nagios... Nagios will never crash because of a broken config if it's running; it just won't load that config. Checking from a cron job works, too, but there's no reason Nagios can't also check to see if the on-disk config is valid. Well, I've seen Nagios crash on a broken config. Even if this is a bug which should (and perhaps is) fixed, I would not rely on that behaviour if I can easily avoid that. Thus my recommendation... Arno - 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] Service is not scheduled to be checked
Hi, On 6/21/2007 11:52 AM, adi yesaya wrote: Dear Nagios users, I have tried to schedule Nagios to run checks at 23:00-01:00. I defined it at the time period as such: define timeperiod{ timeperiod_name midnight alias Check at night only sunday 23:00-01:00 monday 23:00-01:00 tuesday 23:00-01:00 wednesday 23:00-01:00 thursday23:00-01:00 friday 23:00-01:00 saturday23:00-01:00 } This has been discussed recently, look for the thread Excuding timeperiods. Short summary: Define your timeperiods correctly :-) like Monday 23:00-24:00,00-01:00 and so on. Arno and i defined the time period at the service like this (other options omited): define service{ check_periodmidnight ; The service is checked at midnight 23:00 - 01:00 } I did it yesterday and this morning as i checked Nagios i was surprised because i see this at the service detail page : all the Status fields are PENDING all the Last Check fields are N/A all the Status Informations are Service is not scheduled to be checked... What makes me more confused is because when i checked /var/log/messages it stated that Nagios start running checks at 00:00 and when i checked the trends, the graphic shows that all the plug-in did their check around 00:00 and returned a state. Does anyone know why this all happens? Regards, Adi Yesaya - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] Perf data / Graphs
Hi, Palle Jensen schrieb: Arno, Then post, for example, the output you get for the memory checks, and I'll see how a regex should look that matches parts of the output. This is the output I get in nagios.log: [1181921420] Warning: Service performance data command 'echo 'server01\tMemuse\tMemory usage: total:4485.60 Mb - used: 1452.13 Mb (32%) - free: 3033.47 Mb (68%)\tMemory usage=1452.13Mb;3588.48;4037.04;0.00;4485.60\n' | nc6 -u -w 3 localhost 5667' for service 'Memuse' on host 'server01' timed out after 5 seconds Ok... I assume that what you want is the amount of used memory. This is uniquely enclosed between 'used: ' and ' Mb' and it's a decimal number. And this is what ngraph./log shows: 2007-06-15 11:35:14 PIPE: server01Memuse Memory usage: total:4485.60 Mb - used: 1502.13 Mb (33%) - free: 2983.46 Mb (67%) Memory usage=1502.13Mb;3588.48;4037.04;0.00;4485.60 2007-06-15 11:35:14 REGEX: 4 blocks for 'Memuse' found. 2007-06-15 11:35:14 REGEX: graph_value=Memory usage 2007-06-15 11:35:14 REGEX: output=perfdata 2007-06-15 11:35:14 REGEX: regex=m/Memory usage=([0-9]+)Mb/i This line looks for digits between '...usage=' and 'Mb', which is not the format your plugin produces. 2007-06-15 11:35:14 REGEX: perfdata=Memory usage=1502.13Mb;3588.48;4037.04;0.00;4485.60 2007-06-15 11:35:14 REGEX: NO MATCH. 2007-06-15 11:35:14 VALUES: [server01][Memuse]:No matching perfdata values found... Logical result, then. The first part of check_ntmem.ncfg looks like this (there is more but it is pretty long): define ngraph { graph_legend Memory Used graph_perf_regex Memory usage=([0-9]+)Mb Try this line instead: graph_perf_regexused: (\d+\.\d+) Mb I think that should work. And I guess you see how his works, at least basically. Some understanding of regular expressions IS helpful here. graph_value Memory usage hide yes rrd_color 00a000 rrd_plottype AREA service_name Memuse } I use check_nt to monitor windows hosts, and the plugins return stuff like CPU Load 23% (5 min average) | '5 min avg Load'=23%;80;90;0;100 which is captures by the following ngraph configuration: define ngraph{ service_nameWindows Load graph_perf_regex=(\d+)%; graph_value load graph_units CPU Usage % graph_legendavg load rrd_plottypeAREA rrd_color EACC00 } The regex gets the digits between = and %, which is stored in the rrd file. I will definitely try that, thanks. I think it won't fit to your plugin :-( I'm still unsure where exactly your problem is... is it understanding how to capture numbers from the plugin output? Or is it in setting up all the graphical elements you want? Correct that is right on the spot. Well, the graphs are a little different. Most of the commands are more or less directly passed to rrdtoll, so you'll need to read the man pages for that beast. The command format is a little too cryptic for me to get useful results without lots of trial and error :-) (Note that this is not meant as an advertisement, but rather as a last resort solution for Palle!) Are you kidding?? No. I appreciate the help you are giving, and sharing your experience, and apologies for misunderstanding. No worries, as the Aussies are said to say :-) Arno Thanks, - Palle - 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] DHCP
Hi, On 6/19/2007 9:11 AM, sujith h wrote: Hi , Am Sujith H. I am using Nagios. I have a doubt regaurding the nagios(2.0 version) plugin check_dhcp. I get the DHCP offers when DHCP server(one or more) is running in the same subnet (its for testing). But if its from different subnet is there any other plugin available!!! DHCP, by design, doesn't work across routers, i.e. doesn't cross network borders. Depending on your setup, a dhcp relay somewhere in your network might help, or you'll need a probe in the subnet you want to check, and run check_dhcp there, for example vie ssh or nrpe. Arno I execute the check_dhcp as : check_dhcp -i eth1 If so can anyone help me.. Cheers, Sujith Haridasan -- സുജിത് ഹരിദാസ൯ - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] Perf data / Graphs
Hi, On 6/19/2007 3:30 PM, Palle Jensen wrote: Hi, I have posted this before, but I have not gotten it resolved. Are there really no one that are monitoring windows machines using NSClient++ and getting performance data from memory, cpu load, disk, service, process that can be shown in graphs? I have been playing on my own and gotten close but I am not a pro at Perl and/or Cgi scripting.. I keep getting “No Block Found” for the services... I have goggled and read mailing lists, but found no documentation or templates for *.ncfg files – for windows. I'm using a modified (only slightly) version of NagiosGrapher, and I can graph whatever I like... it's only a matter of getting the ncfg files right. This is completely unrelated to the plugin the data comes from. All the information you should need is in the NagiosGrapher information and the manual page for the regular expressions used. As setting all this up takes awhile I will not give you complete examples (I also don't know what exactly you want to graph...). If you really can't figure that out, drop me a mail and ask for paid consulting ;-) (Note that this is not meant as an advertisement, but rather as a last resort solution for Palle!) Arno Any help is highly appreciated, maybe developer of NagiosGrapher have any ideas? Thanks, - Palle - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] Perf data / Graphs
Hi, On 6/19/2007 5:38 PM, Palle Jensen wrote: Arno, As setting all this up takes awhile I will not give you complete examples Whatever you set up in Nagios is quite time consuming Well, I don't think so... getting a host or service configured to specific needs is rather simple IMO. Getting NagiosGrapher adapted to lots of different checks is much more time consuming for me, so I can't simply create an example for you. and so far I haven't seen anyone in here unwilling to share experience, which I plan to do as well once I get a good hang of this. I thought that was what these mailing lists was for I'm not unwilling to share experience, only my experiences won't help you. (I also don't know what exactly you want to graph...). Yes I stated that -- getting performance data from memory, cpu load, disk, service, process that can be shown in graphs Then post, for example, the output you get for the memory checks, and I'll see how a regex should look that matches parts of the output. I use check_nt to monitor windows hosts, and the plugins return stuff like CPU Load 23% (5 min average) | '5 min avg Load'=23%;80;90;0;100 which is captures by the following ngraph configuration: define ngraph{ service_nameWindows Load graph_perf_regex=(\d+)%; graph_value load graph_units CPU Usage % graph_legendavg load rrd_plottypeAREA rrd_color EACC00 } The regex gets the digits between = and %, which is stored in the rrd file. So far, this is only a matter of following the NagiosGrapher instructions and reading man 1 perlre. I don't graph more than the above in this case, which I set up following the NagiosGrapher instructions and the rrdtols manual. To the graphs, I add some statistics: define ngraph{ service_nameWindows Load typeGPRINT print_sourceload print_description Current print_function LAST print_format%.1lf%% } define ngraph{ service_nameWindows Load typeGPRINT print_sourceload print_description Maximum print_function MAX print_format%.1lf%% } define ngraph{ service_nameWindows Load typeGPRINT print_sourceload print_description Average print_function AVERAGE print_format%.1lf%% } I'm still unsure where exactly your problem is... is it understanding how to capture numbers from the plugin output? Or is it in setting up all the graphical elements you want? If you really can't figure that out, drop me a mail and ask for paid consulting ;-) If I needed paid consulting I would surely ask for it, I know that sooner or later I will get help here on the mailing list, once I get the help I will post it back here... for FREE. (Note that this is not meant as an advertisement, but rather as a last resort solution for Palle!) Are you kidding?? No. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] sensor temperature
Hi, On 6/12/2007 10:19 AM, Marco Borsani wrote: Hi all. I am looking for a sensor to monitoring the temperature in our server farms. Does anybody do it ? How do you do it ? Yes. Using the Environmental Monitoring facilities of the network cards for APC UPSes. Which sensor do you use ? The ones APC supplies :-) I see on www.nagios.org http://www.nagios.org/ the Websensor EM01B, but it is quite expensive .. The APC stuff is also not exactly cheap, but if you want the network interface anyway, it's well worth its price. Does it work with Nagios 1.4 ? Yes, just a matter of the plugin. Arno Many thanks Marco Borsani Technical Operation tel.:+390104310115 e-fax: +390683175950 *[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] ITnet S.r.l. Direzione e Coordinamento di Wind Telecomunicazioni S.p.A. Via Pacinotti, 39 16151 - Genova In ottemperanza al D. lgs 196/03 in materia di protezione dei dati personali, le informazioni contenute in questo messaggio sono strettamente riservate e sono esclusivamente indirizzate al destinatario indicato (oppure alla persona responsabile di rimetterlo al destinatario). Qualsiasi uso, riproduzione o divulgazione di questo messaggio è vietata. Nel caso in cui aveste ricevuto questa mail per errore, Vi invitiamo ad avvertire il mittente al più presto a mezzo posta elettronica e distruggere il messaggio erroneamente ricevuto. According to Italy’s new data protection code (Legislative Decree no. 196/2003) in force on January 1st 2004, Italian Law 196/03 concerning privacy, the information contained in this e-mail is confidential and is intended for the addressee only. If you are not the correct recipient, please note that any use, dissemination or copy of this document/information is strictly prohibited.If you have received this message in error, you should destroy it and please notify us immediately by e-mail. - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] R: sensor temperature
Hello, On 6/13/2007 2:06 PM, Marco Borsani wrote: I'd like to use temp sensor on the motherboard of our Dell Poweredge servers, On 6/12/2007 10:19 AM, Marco Borsani wrote: Hi all. I am looking for a sensor to monitoring the temperature in our server farms. I hope you are aware that the temperature inside your servers does not necessarily correlate with your data center environmental conditions... While I like to monitor Server temperature, harddisk temperature, etc., I think that keeping an eye on the conditions in the room is quite a good idea... Noticing your air condition to be ineffective before your machines overheat can save you lots of work, repairing, replacing or restarting your servers :-) Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] Problems Starting Nagios
Hi, On 6/13/2007 8:57 PM, Danilo Perdomo wrote: Hi All!. Im having problems configuring Nagios 2.7, i have all the .cfg files ready to get started but when i try to initialize the nagios process i get this error message: *Error: Could not create external command file '/usr/local/nagios/var/rw/nagios.cmd'. as named pipe: (13) - Permission denied. If this file already exists and you are sure that another copy of Nagios is not running, you should delete this file.* Any ideas? the nagios.cmd is supposed to be created automatically but that isn´t happening. Well, the simplest thing to do would be to make sure the command file can be created by Nagios :-) This is usually a question of permissions: The Nagios user needs permission to write to the directory where the command file will be created. A simple chmod ... might be enough for you. More information can be found in the fine manual, by the way. Also, depending on how you installed Nagios, there might be a make target to set up these permissions - the make output informs you of the possible operations, usually. Arno Thanks in advance. Danilo Perdomo www.inter.com.ve http://www.inter.com.ve - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] R: sensor temperature
Hi Danilo, I suppose this was meant for the list... Arno On 6/13/2007 9:22 PM, Danilo Perdomo wrote: Hi, check this out. http://www.nagios.org/products/environmental/esensors/em01b.php http://support.ipmonitor.com/tutorials/cd4c08ebc42b43a69b837b58e0f73cbb.aspx Arno Lehmann escribió: Hello, On 6/13/2007 2:06 PM, Marco Borsani wrote: I'd like to use temp sensor on the motherboard of our Dell Poweredge servers, On 6/12/2007 10:19 AM, Marco Borsani wrote: Hi all. I am looking for a sensor to monitoring the temperature in our server farms. I hope you are aware that the temperature inside your servers does not necessarily correlate with your data center environmental conditions... While I like to monitor Server temperature, harddisk temperature, etc., I think that keeping an eye on the conditions in the room is quite a good idea... Noticing your air condition to be ineffective before your machines overheat can save you lots of work, repairing, replacing or restarting your servers :-) Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] whether we (as a user of Nagios tool) will beallowed to modify the shell prg or not
Hi, I'm wondering what you want to know... you can do almost everything with Nagios - that's described in the license - but, as far as I know, there is no shell program included in a typical Nagios system. If, after modifying the core program, it's ok to still use the name Nagios is another question. You'll have to discuss that with Ethan. But, reading your original mail, I suppose it might be best for you to first read and understand the manual and the license and then ask for clarifications or help when you encounter specific problems. The points you asked are, IMO, both clearly described in the documentation available at the project web site and with the source. Regards, Arno On 4/18/2007 8:26 AM, Radha Gollapinni wrote: Hi Morris, I didn't get you and what you sent as a reply. Can you please clearly clarify this. Thanking you very much.. Radha Gollapinni -Original Message- From: Morris, Patrick [mailto:[EMAIL PROTECTED] Sent: Wednesday, April 18, 2007 11:50 AM To: Radha Gollapinni; nagios-users@lists.sourceforge.net Subject: RE: [Nagios-users] whether we (as a user of Nagios tool) will beallowed to modify the shell prg or not If any one of you know the solution for my question please do reply to the same mail Id from which I am sending my mail. My doubt is: 1.whether we (as a user of Nagios tool) will be allowed to modify the shell program internally or not The shell program? What do you mean by that? 2. How the alert message is getting created when ever something is happened? Which method is responsible for this activity? Whether we can modify this method to include the hyperlink/url which we got from an external source? Notification command are completely configurable. DISCLAIMER- Information transmitted by this EMAIL is proprietary to iGATE Group of Companies and is intended for use only by the individual or entity to whom it is addressed and may contain information that is privileged, confidential, or exempt from disclosure under applicable law. If you are not the intended recipient of this EMAIL immediately notify the sender at iGATE or [EMAIL PROTECTED] and delete this EMAIL including any attachments - 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - 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] nagfs
Hi, On 4/3/2007 6:52 AM, [EMAIL PROTECTED] wrote: Hiya. nagfs is an event broker module, which implements a filesystem interface to the current status of a running Nagios daemon. This means in a nutshell that you can query the status of a given service or set of services using everyday shell tools like find and grep. This sounds *very* interesting! Thank you for your work - I'll proably give it a try when I find the time. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios installation problems on RHEL 4 x86-64
Hi, On 4/2/2007 6:06 PM, Jozsef Horvath wrote: Hi, have been trying to install nagios to RHEL x86-64 arch. have installed: gd, gd-devel, jpeg,jpeg-devel, zlib, png, png-devel and gcc as well. Issuing the configure command got the following error: ./configure -with-gd-lib=/usr/lib --with-gd-inc=/usr/include ... configure:1411: result: /usr/bin/install -c configure:1430: checking build system type configure:1448: result: x86_64-unknown-linux-gnu configure:1456: checking host system type configure:1470: result: x86_64-unknown-linux-gnu configure:1525: checking for gcc configure:1541: found /usr/bin/gcc configure:1551: result: gcc configure:1795: checking for C compiler version configure:1798: gcc --version /dev/null 5 gcc (GCC) 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3) This one is *really* old. I'd suggest to find something newer and try that. Which RHEL is that, and where did you find the gcc package? Arno Copyright (C) 2002 Free Software Foundation, Inc. This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. configure:1801: $? = 0 configure:1803: gcc -v /dev/null 5 Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/3.2.3/specs Configured with: ../configure --prefix=/usr --mandir=/usr/share/man --infodir=/usr/share/info --enable-shared --enable-threads=posix --disable-checking --with-system-zlib --enable-__cxa_atexit --enable-languages=c,c++ --disable-libgcj --host=i386-redhat-linux Thread model: posix gcc version 3.2.3 20030502 (Red Hat Linux 3.2.3-47.3) configure:1806: $? = 0 configure:1808: gcc -V /dev/null 5 gcc: argument to `-V' is missing configure:1811: $? = 1 configure:1834: checking for C compiler default output file name configure:1837: gccconftest.c 5 /tmp/ccpD01fN.s: Assembler messages: /tmp/ccpD01fN.s:6: Error: suffix or operands invalid for `push' configure:1840: $? = 1 my gcc version is 3.2.3 Has anybody met such error before? Any idea? Thanks in advance, Jozsef - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Using plugins in general
Hi, On 4/2/2007 7:21 PM, Nedim Bicic wrote: Hi i have nagios 2.4 I want to use the plugins i have but when i set up a test host to check CPU or diskspace i keep getting wiered error a bunch of code in the service menu on the nagios web - interface, but whats intresting the PING service works for some reason i enabled SNMP on the test host I am not sure how plugins suppose to work does anyone know how i can use these nice plugins there could be very useful The best thing to do is start with reading Nagios' manual. Then, try the plugins on the shell. Then, add things together - put the necessary things in the configuration file. If it doesn't work then, report your problem - including relevant configuration data, system information, and faulty output. Apart from that I can only confirm that I do know how to use plugins, and I can also confirm that some of them are very useful. Arno thanks On 3/29/07, *Morris, Patrick* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED]] On Behalf Of Nedim Bicic Sent: Thursday, March 29, 2007 8:31 PM To: nagios-users@lists.sourceforge.net mailto:nagios-users@lists.sourceforge.net Subject: [Nagios-users] Using plugins in general Hey everyone i have nagios 2.4 I am trying to use plugins i already have in the libiray folder but when ever i for example try check_disk on one of my hosts it brings an error on the nagios service page I mean i set the service description to check_disk and check command i even enabled snmp on one of my servers but it just doesnt work the only thing that have working fine is the PING thats it Can anyone help something i am doing wrong Forget the manual dont help that much What services you're checking, how they are configured, what errors you're seeing, and what you've done to troubleshoot this would all be helpful information. Without any of that, The best I'd be able to say is that something's broken. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script
Hello, On 1/26/2007 8:56 AM, [EMAIL PROTECTED] wrote: I'm not absolutely sure, but is it your mail program that add an Antwort: to the Subject? It would be nice if that could be turned off - look at the subject line now and imagine how it will look after some longer mail exchange. The usual and more-or-less standard prefix for a reply is Re:. Danny, you have the same start section as it is on my system. If you look a little bit further in the file you find this section prefix=/usr exec_prefix=/usr NagiosBin=/usr/bin/nagios NagiosCfgFile=/etc/nagios/nagios.cfg NagiosStatusFile=/var/log/nagios/status.dat NagiosTempFile=/var/log/nagios/nagios.tmp NagiosRetentionFile=/var/log/nagios/retention.dat NagiosCommandFile=/var/log/nagios/rw/nagios.cmd NagiosVarDir=/var/log/nagios NagiosRunFile=/var/run/nagios.pid NagiosLockDir=/var/lock/subsys NagiosLockFile=nagios NagiosCGIDir=/usr/lib/nagios/cgi NagiosUser=nagios NagiosGroup=nagios # added by thorsten HOME=/var/log/nagios If that is necessary then your setup is, IMO, broken. su uses the system-wide setting for the home directoy. At least it does so on all the systems I know. That has been demonstarted in this thread. Thus, there is no need for a work-around - you'd better check what is broken in your setup. This solves the problem of the /home problem, so I before other people are running in the same problem it is better to add it in the distritbution. No, it's probably only you who has that problem. So it would be better to fix your problem and not create new ones... By the way - and I don't know the start script you quote from - the HOME variable probably needs to be exported before it takes effect. Arno I am using Nagios 2.5 rpm for RH ES 3, updated to 2.7 with an rpm build by my own. Thorsten An: [EMAIL PROTECTED] Von: Daniel Meyer [EMAIL PROTECTED] Datum: 26.01.2007 08:45AM Kopie: nagios-users@lists.sourceforge.net Thema: Re: [Nagios-users] Antwort: Re: $HOME is not set in init script On Thu, 25 Jan 2007, [EMAIL PROTECTED] wrote: Daniel, nagios is started in /etc/init.d/nagios with su - nagios -c nagios, so the process inherits the environment varialbes of the root user, which executes the su command. ($HOME is /root) Which distribution are you using? My init-script (based on the one from Dag Wieers Nagios-RPM) starts nagios this way: case $1 in start) echo Starting network monitor: nagios $NagiosBin -v $NagiosCfgFile /dev/null 21; if [ $? -eq 0 ]; then su - $NagiosUser -c /usr/bin/ndo2db -c /etc/nagios/ndo2db.cfg su - $NagiosUser -c touch $NagiosVarDir/nagios.log $NagiosRetentionFile rm -f $NagiosCommandFile touch $NagiosRunFile chown $NagiosUser:$NagiosGroup $NagiosRunFile $NagiosBin -d $NagiosCfgFile Danny -- Q: Gentoo is too hard to install =http://www.cyberdelia.de and I feel like whining. = [EMAIL PROTECTED] A: Please see /dev/null. = (from the gentoo installer FAQ) = \o/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue
Re: [Nagios-users] Antwort: Re: Antwort: Re: $HOME is not set in init script
PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] nagios and selinux?
Hi, On 1/25/2007 10:44 PM, Petersen, Mark wrote: Can you move the cgi's (or possibly hardlink them) to someplace that apache will let them run (say /var/www/nagios2/cgi-bin)? Otherwise you might need some sort of a compile option to just install them there. Someone more familiar with the build process might be able to help here. That would not help, given a tightly locked SELinux system, I believe. There's also ways to hack apache (may require recompile) to allow this, but I'm under the impression from these two posts that SELinux would disallow those changes to take effect? The point is to configure SELinux to allow whatever is necessary. This will not only be apache and the cgis, but also the monitoring plugins and, of course, nagios itself. I've never used SELinux, but AFAIK you can run a system, log all the activities, review that log to make sure everything is ok, and convert that in a ruleset which allows just what you observed. This will not work where programs do things that were never observed. Just think about event handler scripts that never got triggered in your observation phase. In short, you will need someone who actually knows that SELinux stuff and has access to the machine in question. A security oriented person would hopefully never install SELinux rules on such a machine that he did not review or even create himself. Sounds like that servers admin :-) Arno -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jiann-Ming Su Sent: Thursday, January 25, 2007 2:27 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] nagios and selinux? What's the proper way to configure nagios and selinux to work together? I've run into the same problem as described here: http://www.redhat.com/archives/fedora-list/2005-September/msg02007.html Setting selinux to permissive got my test nagios going. But, now I need to migrate to a production system with selinux set to enforcing and type set to targeted. Thanks for any tips. -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] TWO instances of Nagios on one server - possible?
Hi, On 1/24/2007 10:29 PM, Semir H. wrote: Hi everyone, Would it be possible to run two instances on Nagios on one machine? Yes The server would be Debian (with Apache). I want one Nagios instance to monitor one lot of hosts and the other to monitor a different lot of computers and they should be independent of each other. How would I go about doing this? Simply installing Nagios in two different locations and making Apache server each? One location for Nagios is sufficient, but configuration and state files must be separate. You'll probably need two different sets of CGIs, compiled with their respective paths. IIRC, there is an environment vraiable you can set to point the CGIs at their state file, but setting this in an apache CGI environment is not something I know how to do :-) Also, one apache is enough, just set up two locations for Naegios. Of course the machine you run all this on should offer enough performance - Nagios can use lots of power. Arno Thanks Semir - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] strange probs
Hi, On 1/23/2007 5:20 PM, Daniel wrote: Guten Tag Daniel, am Dienstag, 23. Januar 2007 um 16:56 schrieben Sie: Hi there, i setup up following method for notifications: define command{ command_name notify-by-sms command_line /usr/bin/sudo /usr/local/sbin/sendsms $CONTACTPAGER$ $NOTIFICATIONTYPE$: $HOSTNAME$ IP: $HOSTADDRESS$ Service $SERVICEDESC$ is $SERVICESTATE$ he sends the sms and everthinks works BUT he dont display me the UP/DOWN message ($SERVICESTATE$) When i remove $HOSTADDRESS$ in this line he will display the UP/DOWN text. Mh i can set everthink after $SERVICEDESC$ and no variable is displayed ;( How long are your SMSes? 160 Characters? Then you simply hit the length limitation for an SMS. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS
Hallo, On 1/22/2007 10:52 AM, Herman (ISTD) wrote: May be sudo could solve this problem but not permanently, since sudo only add root rights to user for certain period of time. Is there any way to make devs such as serial line and USB controlled by certain user ? That's done by another part of the OS, for example udev. Basically you configure how device links are created for hot-plugged devices. You'll have to tell us the OS and its version at least... or look up the documentation for your system, or ask the mailing list / support / frum for your OS. Another question, is it common to run nagios as root ? Depends. I strongly adviso to not run Nagios as root - only processes that really need root permissions should be run as such, and Nagios definitely does not need root access to your system. Arno Thx. Regards, Herman -Original Message- From: Andy Shellam (Mailing Lists) [mailto:andy.shellam- [EMAIL PROTECTED] Sent: Monday, January 22, 2007 4:12 PM To: Herman (ISTD) Cc: Nagios Users mailinglist Subject: Re: [Nagios-users] Accessing /dev/ttyUSB0 to send SMS Herman (ISTD) wrote: Dear all, I use gnokii to send Nagios notification. Gnokii need to access /dev/ttyUSB0 in order to deliver message to Handphone. At present, I need to set nagios user to root group in order to accomplish this task. If the nagios user is not in root group, it could not access /dev/ttyUSB0. Previously when nagios user is not in root group, I tried to do some workarounds such as : chown nagios /dev/ttyUSB0 but it didn't work. Is there's any way to access /dev/ttyUSB0 without setting nagios user as root group ? Thank you. Will sudo not accomplish this? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios-users Digest, Vol 8, Issue 23
Hi, had you snipped the lot of unnecessary messages in your mail and used a fitting subject line you might even get answers... Arno ...snipped about 50k of text -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] interval setup wont work
Hi, On 1/16/2007 12:09 PM, Daniel wrote: Hi there, i setup a host to check every 30secs btw every 60secs. The last check command was sheduled: Last Check Time: 01-16-2007 11:54:11 Now 10 minutes are over and nothink happends: Here my config for this host: Your config shows an interval of 60. The normal interval length is 1 minute. You'll have to change your configuration accordingly. This is all in the Manual, by the way. Arno define host{ nameipv6; The name of this host template - referenced in other host definitions, used for template recurs$ notifications_enabled 1 ; Host notifications are enabled event_handler_enabled 1 ; Host event handler is enabled flap_detection_enabled 0 ; Flap detection is enabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts parents ipv6 register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL HOST, JUST A TEMPLATE! } define service{ ; The 'name' of this service template, referenced in other service definitions nameipv6 active_checks_enabled 1 ; Active service checks are enabled passive_checks_enabled 0 ; Passive service checks are enabled/disabled parallelize_check 1 ; Active service checks should be parallelized ; (disabling this can lead to major performance problems) obsess_over_service 1 ; We should obsess over this service (if necessary) check_freshness 0 ; Default is to NOT check service 'freshness' notifications_enabled 1 ; Service notifications are disabled event_handler_enabled 1 ; Service event handler is disabled flap_detection_enabled 0 ; Flap detection is disabled process_perf_data 1 ; Process performance data retain_status_information 1 ; Retain status information across program restarts retain_nonstatus_information1 ; Retain non-status information across program restarts register0 ; DONT REGISTER THIS DEFINITION - ITS NOT A REAL SERVICE, JUST A TEMPLATE! normal_check_interval 30 retry_check_interval30 } define host{ use ipv6 host_name vs-uptime alias vs-uptime address 89.106.71.100 check_command check-host-alive max_check_attempts 5 process_perf_data 0 retain_nonstatus_information0 contact_groups IPv6 notification_interval 10 notification_period 24x7 notification_optionsd,u,r } define service{ use ipv6 host_name vs-uptime service_description PING is_volatile 0 check_period24x7 max_check_attempts 1 normal_check_interval 1 retry_check_interval1 contact_groups IPv6 notification_optionsw,u,c,r notification_interval 10 notification_period 24x7 check_command check_ping!100.0,40%!500.0,60% } In the nagios.cfg the normal check interval is set to 60secs. Nothink seems to be work... :( -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output
Hi, On 1/16/2007 12:40 AM, Dan Langille wrote: On 15 Jan 2007 at 18:08, Dan Langille wrote: Hi folks, I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote script to work. It seems that no perl script works, but I can get compiled plug-ins to work. ... My thanks to bernardl for the repeated questions about what I was doing. The solution: write a wrapper which does a cd. # cat check_raid_dell_wrapper #!/bin/sh cd /usr/local/libexec/nagios perl check_raid_dell Then refer to the wrapper in the nrpe.cfg on the remote server: # grep dell /usr/local/etc/nrpe.cfg command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra pper Interesting. Should be possible to invoke the check script directly, though. You can call it with its path, it should have a hash bang line, and the necessary inclusion of utils.pm could be handled from inside the script. Which, incidentially, is how the standard plugins I know work :-) But a wrapper is often the solution to plugin problems... Arno NOTE the use of the wrapper path Restart nrpe on the remote box and then test it on the server: $ ./check_nrpe -H app09 -c check_raid_dell RAID_DELL CRITICAL: RAID is critical. \o/ cheers -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NRPE: Unable to read output
Hi, On 1/16/2007 1:26 AM, Dan Langille wrote: On 16 Jan 2007 at 1:12, Arno Lehmann wrote: Hi, On 1/16/2007 12:40 AM, Dan Langille wrote: On 15 Jan 2007 at 18:08, Dan Langille wrote: Hi folks, I'm using nrpe 1.9 on FreeBSD 6.x and I'm failing to get a remote script to work. It seems that no perl script works, but I can get compiled plug-ins to work. ... My thanks to bernardl for the repeated questions about what I was doing. The solution: write a wrapper which does a cd. # cat check_raid_dell_wrapper #!/bin/sh cd /usr/local/libexec/nagios perl check_raid_dell Then refer to the wrapper in the nrpe.cfg on the remote server: # grep dell /usr/local/etc/nrpe.cfg command[check_raid_dell]=/usr/local/libexec/nagios/check_raid_dell_wra pper Interesting. Should be possible to invoke the check script directly, though. You can call it with its path, it should have a hash bang line, and the necessary inclusion of utils.pm could be handled from inside the script. Which, incidentially, is how the standard plugins I know work :-) But a wrapper is often the solution to plugin problems... We write that, with the full path. That is what led us to the wrapper solution: # su -m -c nagios nagios c /usr/local/libexec/nagios/check_raid_dell Can't locate utils.pm in @INC (@INC contains: nagios /usr/local/lib/perl5/5.8.8/BSDPAN /usr/local/lib/perl5/site_perl/5.8.8/mach /usr/local/lib/perl5/site_perl/5.8.8 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.8.8/mach /usr/local/lib/perl5/5.8.8 .) at /usr/local/libexec/nagios/check_raid_dell line 17. BEGIN failed--compilation aborted at /usr/local/libexec/nagios/check_raid_dell line 17. # Well, I'm not a perl guru, but in the standard plugins I looked at I have a line use lib /usr/local/nagios2/libexec ; which looks like it is important for cases like yours... Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] MySQL Plugin
Hi, On 10/12/2006 1:08 AM, El Ali, Mohamed wrote: Hi Arno, In my check commands.cfg I have setup the following # 'check_mysql' command definition define command{ command_namecheck_mysql command_line $USER1$/check_mysql -H $HOSTADDRESS$ } But I have an error of (Return code of 127 is out of bounds - plugin may be missing) Any ideas ? Sure. First, send such mail to the list - I'm not prepared to accept payment for consulting services from outside of Europe :-) Second, have you verified that the plugin actually exists, can be executed by Nagios, etc? In other words, wou'll need a more detailed problem description. For example, if the plugin can't be built, the corresponding output from the configure and make commands will be what you need. With some experience you'll spot the problem yourself. The Nagios message you quote, for example, shows quite clearly how you could tackle this problem. Arno Regards, Mohamed -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Lehmann Sent: Wednesday, 11 October 2006 5:32 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] MySQL Plugin Hi, On 10/11/2006 9:23 AM, El Ali, Mohamed wrote: Hi All, Is there a mysql plugin that can monitor the mysql service, or can I use a generic service? I use check_mysql from the regular lugins collection. To compile you need the relevant development packages. Arno Regards, Mohamed El Ali Network Engineer The Scots College Victoria Rd, Bellevue Hill 2023 Ph: + 61 02 9391 7760 Mob: 0438 750 871 eMail: [EMAIL PROTECTED] *Attention: * This E-mail may contain confidential or legally privileged information. If you are not the intended recipient, please note that any use, dissemination, further distribution, or reproduction of the information in this E-mail in any form, is strictly prohibited. If you are not the intended recipient, please notify me by return E-mail and delete your copy of the E-mail immediately, and accept my apologies for any inconvenience caused. -- -- -- --- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=1216 42 -- -- ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] MySQL Plugin
Hi, On 10/11/2006 9:23 AM, El Ali, Mohamed wrote: Hi All, Is there a mysql plugin that can monitor the mysql service, or can I use a generic service? I use check_mysql from the regular lugins collection. To compile you need the relevant development packages. Arno Regards, Mohamed El Ali Network Engineer The Scots College Victoria Rd, Bellevue Hill 2023 Ph: + 61 02 9391 7760 Mob: 0438 750 871 eMail: [EMAIL PROTECTED] *Attention: * This E-mail may contain confidential or legally privileged information. If you are not the intended recipient, please note that any use, dissemination, further distribution, or reproduction of the information in this E-mail in any form, is strictly prohibited. If you are not the intended recipient, please notify me by return E-mail and delete your copy of the E-mail immediately, and accept my apologies for any inconvenience caused. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Error: Template 'passive-check-template'
Hi, first, I don't think it'S necessary to cc the list owner with your mail... Then... On 9/27/2006 8:15 AM, Hariharan Sankararaman wrote: Dear all, ... when i execute nagios it says error message as given below Error: Template 'passive-check-template' specified in service definition could not be not found (config file '/etc/nagios/minimal.cfg', starting on line 307) Well, this sounds like you don't have the passive-check-template anywhere in your config. Error: Invalid max_attempts, check_interval, retry_interval, or notification_interval value for service 'snmp_trap_handling_Critical' on host 'router1' Error: Could not register service (config file '/etc/nagios/minimal.cfg', starting on line 330) how to integrate SNMP traps in nagios web browser Better get a working set up of Nagios first. Pls find my configuration files with this . Pls help me in this regard Simply start with empty configuration files and work through the manual. Arno With Regards Hariharan All-new Yahoo! Mail http://us.rd.yahoo.com/evt=43256/*http://advision.webevents.yahoo.com/mailbeta- Fire up a more powerful email and get things done faster. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host last check time
Hi, On 9/18/2006 1:29 PM, Wessel van Heerde wrote: Hi all, I'm managing a small Nagios environment which contains about 30 hosts. The host detail page in the interface shows me that the last check time of these hosts is about 234 days ago. Why is it such a long time ago this host was checked? Because hosts are only checked when there is a service problem. This is documented. I recently (some days ago) added some new hosts, but their state is still pending. What is taking Nagios so long to check them. As long as the services assigned to he hosts are checked everything is fine. If you don't have services at these hosts, assign one - check_ping or check_icmp, for example, are a common choice. Arno Thanks in advance, Wessel - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Want to run 2 nagios on 1 machine
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] help needed .. newbie
Hi, On 9/5/2006 9:18 AM, rahul ramasubramanian wrote: hi ankush.. thanks for the help... the nagios service is running now but still i get the same error the error message that is being writetn in the logs is Warning: Return code of 127 for check of service 'PING' on host 'localhost' wa s out of bounds. Make sure the plugin you're trying to run actually exists. This is most probably not what you see in the web server error log. The original problems seems to indicate that you did not set up the web server correctly. It's described in the manual, but basically you need to make sure that the nagios cgi-scripts are executed correctly. Permissions, ownership, selinux and AppArmor are some things to check first, then make sure the web server setup is thus that these scripts are actually executed and not simply sent when they are called. what does this mean... i am using the minimal.cfg file to get nagios up and running first ... Have you modified the configuration so that it actually uses the plugins you installed? Nagios really needs to be setup by you. in the command prompt services like ./check_ping ./check_tcp are working fine for the localhost.. As which user? Have you checked the paths? Arno thanks rahul From: ankush grover [EMAIL PROTECTED] To: rahul ramasubramanian [EMAIL PROTECTED], Nagios Users Mailinglist nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] help needed .. newbie Date: Tue, 5 Sep 2006 12:02:53 +0530 On 9/5/06, rahul ramasubramanian [EMAIL PROTECTED] wrote: hi all i am a newbie to nagios and am trying to install it on my server.. i successfully installed the nagios framework and plugins and got a pre flight check -ok.. a nagios -s command gave the following output Max host check spread: 30 min First scheduled check: N/A Last scheduled check:N/A SERVICE SCHEDULING INFORMATION --- Total services: 5 Total scheduled services: 5 Service inter-check delay method: SMART Average service check interval: 300.00 sec Inter-check delay: 60.00 sec Interleave factor method: SMART Average services per host: 5.00 Service interleave factor: 5 Max service check spread: 30 min First scheduled check: Mon Sep 4 02:34:08 2006 Last scheduled check: Mon Sep 4 02:38:08 2006 CHECK PROCESSING INFORMATION Service check reaper interval: 10 sec Max concurrent service checks: Unlimited PERFORMANCE SUGGESTIONS --- I have no suggestions - things look okay. so i guessed that everything was going on allright... why i tried to use my web interface to access nagios( apache web server ) ... i reach the main nagios screen..( the documentation part ) but on trying to click on any other tab i got the following error. Internal Server Error The server encountered an internal error or misconfiguration and was unable to complete your request. Please contact the server administrator, [EMAIL PROTECTED] and inform them of the time the error occurred, and anything you might have done that may have caused the error. More information about this error may be available in the server error log. what is happening .. some data which might be useful.. no nagios directory is being created in /var/spool.. can anyone shed some light on this... do i need to do something to the permissions of any dir/files..( all the files in the nagios installation directory have been set to 775 ) Any help will be greatly appriciated. hey, Is the nagios service running If you are using redhat linux do this service nagios start (you need to be root to do this) or /etc/init.d/nagios start if Nagios is already running then check cgi.cfg under /etc/nagios directory make use_authentication=0 this means any user can access nagios through the web interface and if use_authentication=1 then you need to assign users who can access nagios. Thanks Regards Ankush Grover - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de
Re: [Nagios-users] Notification commands
Hi, On 9/5/2006 3:25 PM, Hari Sekhon wrote: Christopher Odenbach wrote: Hi, certainly not. just put both in the same contact definition, see http://nagios.sourceforge.net/docs/2_0/xodtemplate.html#contact and see the Directive Description for host-notification-commands which says ...Multiple notification commands should be separated by commas Just make sure you have both notification commands defined in misccommand.cfg since this uses the short command names which should be defined there. But in exact this paragraph it says: Multiple notification commands should be separated by commas. All notification commands are executed when the contact needs to be notified. So when I put this contact into a service, always both commands will be executed. But I want some services only to send email and not SMS. Got my idea? Yes... what I do: I don't use the supplied example commands but rather created my own notification system. The notification command, when invoked, calls the way how to notify the contact from an LDAP backend. It's been lots of work (and is not yet finished or even documented) but it allows more flexibility. The simple solution would be shell script which, by checking the parameters for contact name, service name and whatever you like determines how to notify. A database backend is useful for easier configuration but not extacly necessary. Arno Christopher ah, sorry, in my haste I misread, ok then you do need 2 contact definitions and 2 contactgroup definitions, one email, and one both, then just assign the contact group to the service definitions according to which notifications you want. If anybody else has a better way of doing this I'd like to hear it... Hari - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Trouble with passive checks and freshness
'ptserver' [04.09. 13:22:51] SERVICE ALERT: rana;System load;OK;HARD;1;OK - load average: 0.24, 0.12, 0.10 Then the services which should still be ok fall to unknown state: [04.09. 13:24:31] SERVICE ALERT: rana;Proc: cron;UNKNOWN;HARD;1;UNKNOWN: No data from host - nsce not running? [04.09. 13:24:41] SERVICE ALERT: rana;Proc: syslogd;UNKNOWN;HARD;1;UNKNOWN: No data from host - nsce not running? [04.09. 13:24:41] SERVICE ALERT: rana;4upgrades;UNKNOWN;HARD;1;UNKNOWN: No data from host - nsce not running? [04.09. 13:25:41] SERVICE ALERT: rana;Proc: vlserver;UNKNOWN;HARD;1;UNKNOWN: No data from host - nsce not running? [04.09. 13:25:41] SERVICE ALERT: rana;Local disk;UNKNOWN;HARD;1;UNKNOWN: No data from host - nsce not running? [EMAIL PROTECTED] What is going on here? Thanks, Christopher -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Trouble with passive checks and freshness
: PROCESS_SERVICE_CHECK_RESULT;etamin;Local disk;0;DISK OK - free [01.09. 13:34:54] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;etamin;Local disk;0;DISK OK - free The configuration is: define service { use check_local_disk_templ host_name rana } define service{ use passive_templ namecheck_local_disk_templ service_description Local disk servicegroups local-disk-services check_command check_disk!-w 15% -c 10% -x /afs -e notifications_enabled 1 register0 } define service{ namepassive_templ register0 max_check_attempts 1 normal_check_interval 10 retry_check_interval1 active_checks_enabled 0 passive_checks_enabled 1 check_freshness 1 freshness_threshold 2000 check_periodalways notification_interval 0 notification_period always notification_optionsw,c,r,f notifications_enabled 0 contact_groups Server process_perf_data 1 } define command{ command_namecheck_disk command_line$USER1$/check_dummy 3 No data from host - nsce not running? } Any ideas what is going wrong here? Why is Nagios flipping the service to active when data has arrived less than 2000 seconds ago? Thanks, Christopher - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] CGI and Status Map
This should have been a new thread. If it was, I could tell you that the status map cgi is not built because the prerequisite gd package was not available. In the manual it is stated that you need to make sure you have the gd development files installed before you start the installation of nagios itself. Arno On 6/23/2006 8:39 PM, Tom Tran wrote: Dear All, I am new to Nagios and I was able to get Nagios up and running on SuSE and monitor all things i wanted. However, I can't get my Status Map to display.. When I click on Status Map link, it gives me a broken link. and I did run make cgi while installing and under Nagios_HOME/sbin, I see the following files: cmd.cgi history.cgishowlog.cgistatuswrl.cgi .. config.cgi notifications.cgi status.cgi summary.cgi avail.cgi extinfo.cgi outages.cgistatuswml.cgi tac.cgi What did I do wrong? or What am I missing? Best regards, Tom Tran EESImed. */Gena Gulchin [EMAIL PROTECTED]/* wrote: Hello, I have a FreeBSD (6.0) server, Nagios 2.4 and nagiosgraph. After approximately 6 hours I get Out of memory during request for 1228 bytes, total sbrk() is 532375552 bytes! I have 1Gb memory on this server. I had version 2.0b3 running on a similar machine and all is fine. Any help is appreciated --gena Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null How low will we go? Check out Yahoo! Messenger’s low PC-to-Phone call rates. http://us.rd.yahoo.com/mail_us/taglines/postman8/*http://us.rd.yahoo.com/evt=39663/*http://voice.yahoo.com Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Host check action alert issue
Hello, On 5/26/2006 11:41 PM, Oliver Marshall wrote: Does anyone else have problems with email notifications generated by the check_command param generated by host failures, particularly the check-host-alive command ? I have the check_command for each host set to check-host-alive. If any of the hosts goes offline, and fails the check-host-alive check, I get this email; Subject: ** PROBLEM alert - My laptop/ is ** * Nagios * Notification Type: PROBLEM Service: Host: My laptop Address: 192.168.100.241 State: Date/Time: Fri May 26 22:38:07 BST 2006 Additional Info: The 'notify-by-email' command that I am using to send out the email notifications is as follows. look at the sample host-notify-by-email or whatever it's called. Should be in the sample config Nagios created during the make cycles. # 'notify-by-email' command definition define command{ command_namenotify-by-email command_line/usr/bin/printf %b subject: ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** \n\n * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$ | /usr/bin/msmtp $CONTACTEMAIL$ } Now, this is the same command I use for every other alert, but only the check-host-alive check causes an email with NO source, NO state etc. Is it just me that gets this? Does the check-host-alive command not fill in the $servicedesc$ or the $servicestate$ ? As you noted, servicestate is not the right thing to report in a host check result. There is a list of all available macros in the manual, and you'll find the corresponding $HOST...$ ones in there. The more important question is - why are notifications generated at all? You'd have to show us the configuration for one of the hosts in question. Also make sure the check command works as you intend it to. If, for example, you've got a macro in there that doesn't contain anything useful that might easily explain why the check command fails. Arno Olly --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=kkid7521bid$8729dat1642 ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- All the advantages of Linux Managed Hosting--Without the Cost and Risk! Fully trained technicians. The highest number of Red Hat certifications in the hosting industry. Fanatical Support. Click to learn more http://sel.as-us.falkag.net/sel?cmd=lnkkid=107521bid=248729dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] problems with nrpe 2.0 and 2.4 on x86_64
Hello, On 3/30/2006 7:08 PM, Werner Flamme wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi all, for about 2 weeks we have problems with 2 monitored servers. Both are running SuSE Linux Enterprise Server 9 x86_64 on AMD Opteron, both have following components installed: - - NRPE Version: 2.3 Last Modified: 01-23-2006 (I downloaded 2.4 ;-) - - nagios-plugins 1.4.2 - - nagios-plugins-sap-ccms-0.7.2-45 - - xinetd-2.3.13-39.11 Which gcc version did you use? Are these _all_ your SLES/x86 machines, do you have similar software on 32-bit-systems, or other software (i.e. older/newer versions, different gcc versions, different libraries...) on similar hardware? Each time the monitoring server sends a nrpe trap, I find kernel: nrpe[8893]: segfault at 0030 rip 002a9568a911 rsp 007fbfffb800 error 4 in /var/log/messages. So I assume it's nrpe crashing. Xinetd complains about xinetd[12263]: Reading included configuration file: /etc/xinetd.d/nrpe [file=/etc/xinetd.d/nrpe] [line=15] I don't see a complaint. Anyway, I'd recommend to try compiling nrpe on the x64 server without optimization, i.e. using -O0 (Oh-zero). In another project there are reports that gcc 4.x on 64-bit-architectures may generate faulty code. in /var/log/messages. You see /etc/xinetd.d/nrpe here: - ---snip--- # default: on # description: NRPE (Nagios Remote Plugin Executor) # only_from: 141.65.129.80 service nrpe { socket_type = stream protocol= tcp wait= no user= nagios group = nagios disable = no server = /usr/bin/nrpe server_args = -n -c /etc/sapmon/nrpe.cfg -i flags = REUSE log_on_failure += USERID } - ---pins--- As you see, line 15 contains the closing bracket. It does not make any differences whether the order of the lines are changed or if I use nobody/nogroup instead - it's an error on line 15. When I add the only_from directive, it is still line 15. When I enter a faulty parameter (disabled instead of disable) I see the corresponding line number in the error text. Bad enough, but I'd ignore this for the time being. And to add to my confusion, the same configuration runs fine on another machine with i686 architecture. Just the instance names of some SAP checks are changed... Best of all is that the monitoring server shows all services as green, and with the correct output. I am just a bit concerned since one day we had a /var/log/messages of 35 Gig size :-( Fun... :-| What did I do till now? Well, first I tried the rpms delivered with SLES9. Then I removed them and compiled nrpe 2.0 (and later nrpe 2.4) on the machines. File a bug report at SuSE / Novell and let theyr support crew work on the problem. After all, that's one of the differences between SLES and SL without ES. No changes - the error appears, nagios shows good results. Then I commented out all the commands in /etc/sapmon/nrpe.cfg. The error is still there, now nagios shows (correctly) that the service is not defined. Can someone please put me on the way to get rid of those error lines? Google and alltheweb.com only told me that there was an issue with nrpe segfaulting when the config was faulty - but this was 3 years ago... BTW, I did not find something like nrpe -v -c /etc/sapmon/nrpe.cfg or something similar to have nrpe check its config file. Is it planned to support this check in the future? I don't think this is a configuration issue. Arno Sigh Werner - -- Werner Flamme, Abt. WKDV UFZ Umweltforschungszentrum Leipzig-Halle GmbH, Permoserstr. 15 - 04318 Leipzig Tel.: (0341) 235-3921 - Fax (0341) 235-453921 http://www.ufz.de - eMail: [EMAIL PROTECTED] -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFELBCnk33Krq8b42MRAg8WAJ9QOW+ZmnEpYvpPNqyLaHgMlMFt4gCZAcTJ go694Dw6RzF0OrPZ+qyvL0s= =qWPr -END PGP SIGNATURE- --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications
Re: [Nagios-users] question related to host dependencies
Hello, On 3/29/2006 5:58 PM, enediel gonzalez wrote: Hello: for testing purposes the hostname Router is permanently down, also hp_printer ... What I want to do is to create a complete tree of dependencies among host, where if in one point of my tree I have a host down, the subtree associated doesn't send to me any notification. Sounds like you want the parent setting... admittedly, I never actually used dependencies, but somehow I think you don't need them for your purpose. Arno Thanks in advance for any help Enediel Linux user 300141 Debian GNU/Linux --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Understanding service checks
Hello, On 3/28/2006 8:01 PM, Dirk H. Schulz wrote: Hi folks, today both our dns servers went out of function. Funny day, eh? As a result every service check in nagios timed out after 10 sec. and was CRITICAL. EVERY one of several hundred! Since service check definitions depend on host definitions and host definitions contain ip addresses I would not have expected a dns outage to have any effect on nagios' service checks. Can anyone explain why there IS an effect? I would like to understand it more deeply. Rhis sounds like it depends only on your Nagios setup and your network. For example, if you _only_ use IP adresses and not DNS in your Nagios configuration, all your routers do _not_ need DNS, and all your services do _not_ depend on DNS (think of verifying reverse mapping for mail address verification, or SSL certificate checks, for example, or nrpe or (x)inetd or TCP wrappers... lots of opportunities to need DNS without being aware of it) having a DNS outage should not affect service state. In other words: Since you experienced service failures, something _must_ depend on either DNS or some outage not directly monitored affected DNS as well as all other checks you run. Or it's all been a great coincidence... Arno Dirk --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios specific scripts and/or binaries
Hi, On 3/27/2006 10:57 AM, George Rushby wrote: Please excuse my ignorance but the PATH setting for Nagios?! Yes, the search path for executables. In other words, perhaps neither /usr/local/bin nor /opt/tools/pipesend are used to search for programs. The PATH is, usually and IIRC, set in the start script for nagios or inherited from the existing environment. The most useful thing you might do is simply use all commands with a full path - that avoids some security holes as well. Arno -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Lehmann Sent: 24 March 2006 09:06 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios specific scripts and/or binaries Hello, please send replies to the list and don't request a read confirmation... On 3/24/2006 7:30 PM, George Rushby wrote: HI Arno, Thanks for your prompt response! I have been doing all test work running as the nagios user. If I take the following command /usr/bin/printf * Nagios *\n\nNotification Type: PROBLEM\n\nService: Current Users\nHost: test-server\nIP: 10.0.0.200\nState: WARNING\nDate/Time: Fri Mar 24 18:44:56 SAST 2006\n\nAdditional Info:\n\nUSERS WARNING - 1 users currently logged in | /opt/tools/pipesend/pipesend it works like a dream. I have even created a symbolic link for pipesend in /usr/local/bin.but alas it fails! PATH setting for Nagios, perhaps? And I don't mean the one you get as user nagios, I mean the one Nagios works with... Apart from that, for that sort of problem, it's a simple thing to write a small wrapper script which logs some diagnostic output - for example, path, id, shell and probably the Nagios-specific environment variables - and then submits the actual program calls with parameters. You might even log things like the output from 'which programname' and '/bin/ls -l programname' to see what actually happens... Arno Anymore help would be appreciated. George -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Arno Lehmann Sent: 24 March 2006 08:21 PM To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios specific scripts and/or binaries Hi, On 3/24/2006 7:11 PM, George Rushby wrote: ... I get the following error in the nagios.log file [1143218696] SERVICE NOTIFICATION: george;test-server;Current Users;WARNING;notify-by-sms;USERS WARNING - 1 users currently logged in [1143218696] Warning: Attempting to execute the command /usr/bin/printf * Nagios *\n\nNotification Type: PROBLEM\n\nService: Current Users\nHost: test-server\nIP: 10.0.0.200\nState: WARNING\nDate/Time: Fri Mar 24 18:44:56 SAST 2006\n\nAdditional Info:\n\nUSERS WARNING - 1 users currently logged in | pipesend resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... ... If I remove the ‘pipesend’ and replace it with ‘mail’ and execute it via Nagios it works. So the question is, does Nagios only work with special scripts and/or binaries? PATH or permissions. I'm quite sure that your script either can not be found in Nagios' search path, or that Nagios can't run it due to missing permissions. You should keep in mind that all test work should be done as the user Nagios runs as. Arno Thanks in advance George -- No virus found in this outgoing message. Checked by AVG Free Edition. Version: 7.1.385 / Virus Database: 268.3.0/290 - Release Date: 2006/03/23 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid0944bid$1720dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_log2.pl perl module
Hello, On 3/24/2006 5:11 PM, Terry L. Inzauro wrote: Marc Powell wrote: ... 1) Always run your tests as the nagios user. 2) They're harmless notices sent to STDERR, not STDOUT so nagios wouldn't ever seen them but you shouldn't be seeing them either with an unmodified plugin. 3) What version of the plugins are you using? I don't see these with 1.4 -- [EMAIL PROTECTED] libexec]$ ./check_log2.pl -l /var/log/messages -s /tmp/seekfile -p Error OK - No matches found. 4) Did you modify the shebang line in the script to turn on syntax checks (i.e. #!/usr/bin/perl -cw). I can reproduce your results if I do that -- ... ok, i modified the shebang and all works without warnings. thanks a bunch. but i still haven't fingered out why i need to alter @INC. Because the check_.* programs expect to be called in the path where all the plugins reside, usually /usr/local/nagios/libexec. The utils.pm file must be in that same directory - if it isn't, you should copy it there. If there isn't a utils.pm file, the plugins installation is probably broken. see the following output. The following is expressly _not_ run in the libexec directory - you cd'ed out of it yourself :-) Arno as you can see . is in @INC. you'd think i wouldn't have to explicitly add the full path to get it to work. in any event, i'm ok with the small tweak...for now;) jenna contrib # cd /usr/nagios/libexec/contrib/ jenna contrib # perl -le 'print join(\n,@INC);' /etc/perl /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl . jenna contrib # ./check_log2.pl Can't locate utils.pm in @INC (@INC contains: . /etc/perl /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/local/lib/site_perl) at ./check_log2.pl line 65. BEGIN failed--compilation aborted at ./check_log2.pl line 65. thank you for your assistance and have a good weekend. --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] check_mysql plugin will not compile
Hello, On 3/20/2006 7:28 PM, Lundgren, Scott wrote: I'm getting the following error messages in config.log as I try to compile check_mysql. Can someone tell me why configure is not finding the file? I'm using: nagios-plugins-1.4.2, MySQL 4.1.15 I set: LD_OPTIONS=-R/opt/csw/lib -R/opt/csw/mysql4/lib/mysql -L/opt/csw/lib Errors I have in config.log: configure:9365: checking for mysql_init in -lmysqlclient configure:9395: cc -o conftest -g -I/opt/csw/include -L. conftest.c -lmysqlclient -L/opt/csw/lib/mysql -lz 5 ld: fatal: library -lmysqlclient: not found ld: fatal: File processing errors. No output written to conftest This looks like thy mysqlclient library is not found, so either it is not installed, it is installed in a non-standard location, or your LD path isn't complete. In other words, make sure that ld searches for the library in the correct locations, i.e. the directories in the LD_OPTIONS or the standard system library paths. Might also be that you don't have the necssary include files, in that case make sure you have installed the mysql _development_ files, but the message seems to indicate that the includes were found. Arno Thanks in Advance, Scott Lundgren ITS - Web Services UNC at Charlotte http://www.uncc.edu http://www.uncc.edu/ --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=kkid0944bid$1720dat1642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] network traffic monitoring plugin or bandwidth pluin for nagios
Hello, On 2/16/2006 11:28 AM, Radhika wrote: Hi Guys, Presently we have different broadband users customers with different speeds like 512k,2m,5m,10m lines.I want to know is there any plugin for nagios to send the alerts when it reaches the bandwidth capacity 70% or 80 %.This plun in should have the option of choosing speed limits so that i can monitor different clients. Can some one help me on this. look for check_iftraffic.pl at nagiosexchange.org - this plugin uses snmp to measure traffic and calculates data rates locally. You can set limits, but (IMO) the plugin as distributes could need improvements which I did not finish yet: - use 10-based values, not 2-based ones for throughput calculation (this is a simple modification) - allow asymmetric spped settings, which would better suit ADSL users. - support the funny interface names windows uses. I implemented this using REs, IIRC. Perhaps I will publish my modified version some day... Arno Thanks for your time Yahoo! Mail Use Photomail http://us.rd.yahoo.com/mail_us/taglines/pmall2/*http://photomail.mail.yahoo.com to share photos without annoying attachments. -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] No output - WRNING messages
Hello, On 2/6/2006 6:54 PM, Wianecki, Christopher wrote: Sunserver1 PING WARNING 02-06-2006 12:47:31 0d 0h 47m 25s 3/3 (No output!) For some reason I am getting (NO output!) messages all the time, when I access Service Detail. I cannot determine from logs why that is... I did search FAQ for that but I was unable to get any information on this. When I do run PING commands from shell I get output, when I run check_ping I also do get output. Make sure you run these tests as the user nagios runs as. Most probably you'll see that you aren't allowed to run the commands in question. Also, for host checks at least, consider using check_icmp's alias of check_host instead of check_ping. Arno But under web interface I get this message and lots of warnings... Regards, Chris ** This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify the postmaster at [EMAIL PROTECTED] www.sothebys.com ** --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Submit passive check result for a service sending out duplicate alert mails?
Hello, On 2/2/2006 6:49 AM, Karan uk wrote: Nope this is just a single server setup...monitoring services on remote servers. Perhaps a mail server problem? Because I also see all your mails to the list twice. The one I reply to: Received: by wproxy.gmail.com with SMTP id i24so316636wra for nagios-users@lists.sourceforge.net; Wed, 01 Feb 2006 21:49:59 -0800 (PST) The other one: Received: by wproxy.gmail.com with SMTP id i30so314718wra for nagios-users@lists.sourceforge.net; Wed, 01 Feb 2006 21:50:31 -0800 (PST) Which looks, going by the different message id and time, like your mail was actually sent twice. Arno thanks, Suraj -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Graphing service checks
Hello, On 2/2/2006 5:47 PM, Rusty Hall wrote: I have some data that im trying to graph from nagios , but can't seem to get it to work. I have 2 that are giving me an issue, one is an old file for graphing disk on windows server. The graph shows nothing as far as the data, but an rrd file has been cretaed. Without even knowing which addon you use for graphing: first one ntdisk_C data C:\ - total: 3.95 Gb - used: 3.33 Gb (84%) - free 0.62 Gb (16%) map file entry /perfdata:.*Space=([.0-9]+)Gb;([.0-9]+);([.0-9]+);([.0-9]+);([.0-9]+)/ Asuming this should be a RE which is matched against the plugin output - in this case, especially the performance data - you should also give an example performance data line. Though it might be sufficient to remove the leading dots in the sub-expressions. I simply can't imagine that every disk space entry in the performance data line starts with a decimal point. Better, though, would be to use expressions that actually match normal decimal numbers, like '([0-9]+\.?[0-9]*)' or something. and push @s, [ ntdisk, [ diskused, GAUGE, $1*1024**3 ], [ diskwarn, GAUGE, $2*1024**3 ], [ diskcrit, GAUGE, $3*1024**3 ], [ diskmaxi, GAUGE, $5*1024**3 ] ]; second one This one has never worked or created a rrd file, trying to map the count with memory data CRITICAL - no processes found resembling 'hciengine.exe'-count=27:memory=673676 map file entry /output;*count=(\d+);memory=([.0-9]+)Mb;/ Sure. Your RE uses a ; as a separator while your service output has a : and think about the decimal number matching subexpression... and push @s, [ QDX, [ threadcount, GAUGE, $1* ], [ memorycount, GAUGE, $5*1024**3 ] ] Any help or guidance would be greatly appreciated Obviously the product you use is badly documented (wouldn't be the first program...) or you need more experience with REs (and I know what I'm talking about, I'm always struggling with them!). Arno Arno Rusty -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Postgressql check plugin
Hello, On 1/31/2006 11:18 AM, Assaf Flatto wrote: From the REQUIREMENTS file check_pqsql: - Requires the PostgreSQL libraries available from http://www.postgresql.org this does not help to understand what files are needed . Well, it says you need the libraries. i assumed it requires a postgresql server on the nagios itself , i installed it and recompiled the plugin but still it didn't create the plugin. Try installing the libraries and header files. Depending on the system you're workin with, the integrated package management usually has something like postgres-devel or similar available. You do need the development files, which include the headers and libraries to build client applications. Arno Assaf Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Assaf Flatto Sent: Wednesday, January 25, 2006 6:38 AM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] Postgressql check plugin Hello I need to monitor a postgressql database server and can not find a plugin for this type of sql server , ive tried to modfiy the check_mysql to do the job , but failed with flying colors . I am using Version 2.0b2 on mandrive 2005. does anyone know/have a postgress plugin ? check_pgsql has been part of the standard plugins for quite some time. It won't be compiled unless you have the pre-requisites as detailed in the REQUIREMENTS file however. -- Marc --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642 ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] NagiosGrapher: How do the links work?
Hi, On 1/31/2006 9:49 PM, Alastair Sheppard wrote: On 02/01/2006 at 8:01 AM, Hugo van der Kooij wrote: # Adding Graph Value Key's foreach (@blocks) { if ( $service =~ /$_-{service_name}/ ) { I would guess (at least I tell you ;-) that with the following block: define ngraph{ service_nameLOAD graph_log_regex , (\d+\.\d+)($| critical| warning) graph_value 15min graph_units load graph_legend15min avg load rrd_plottypeAREA rrd_color EACC00 } $_-{service_name} would result in LOAD and would match $service if the service send to the pipe is in fact a LOAD type of check result. Ok, that sounds reasonable. Had the same problem a while back and it related to the case of my service_description, as in uppercase or lowercase. I had defined my normal service check for http and it included the following: With the problem example here, the service in nagios is defined rougly with a host_name of aragon and a service_description of Current Load. In the NagiosGrapher config, the definition for the service_name is LOAD. So, the problem is the comparison check line in collect.pl which reads # Adding Graph Value Key's foreach ((at)blocks) { if ( $service =~ /$_-{service_name}/ ) { The $service at this point will be Current Load and the $service_name is LOAD, which with the above pattern match will fail and then not define the step and heartbeat. To solve, either make the comparison case insensitive or change the $service_description or the $service definition to match each other. The first one will stop any proper regex matching I think (not too sure how that all works), but as a temp fix you could change the if line to read: Well, that might be a problem, too, but it's definitely not the problem we observed. First, if collect2.pl doesn't recognize that values as belonging to a service it has to graph it will not even try to create a rrd. Thus, the simple fact that rrd creation was invoked tells us that the RE worked. Then, in my setup, I hand-crafted the definitions in ngraph.cfg and I am sure that they don't stumble over case-sensitive matching. For example, the exact same service definition, matched by the exact same graph definition, has resulted in severl rrds being created and one not. (some time ago, but I guess I could still find the log files in some backup...) if ( $service =~ /$_-{service_name}/i ) { Hmm. Even if I would neither want nor need that modification in my copy of collect2.pl, there might be many cases where it's helpful. Arno Cheers Alastair --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Re: Nagios ignoring Perl Shebang
Hello, On 1/27/2006 5:24 AM, [EMAIL PROTECTED] wrote: Dear Folks, -Original Message- From: [EMAIL PROTECTED] --__--__-- Message: 1 Date: Thu, 26 Jan 2006 23:12:03 +0100 From: Arno Lehmann [EMAIL PROTECTED] To: nagios-users@lists.sourceforge.net Subject: Re: [Nagios-users] Nagios ignoring Perl Shebang - Was: Notification script problems.. How do I debug You've probably got a Nagios with embedded Perl running. There's a section in the manual with some hints how to write your Perl scripts in that case. Arno I don't think so. I haven't been following this thread so I don't have too much helpful to say but embedded Perl doesn't care about the shebang. If the plugin text contains the string '/bin/perl' - usually in the shebang line, then the plugin is assumed to be Perl and is compiled by the Perl compiler (called by eval { }) once, and thereafter the in core op-codes executed without recompilation. Yes, but I *think* I recall something about special requirements for Perl plugins that are interpreted by he embedded Perl engine. The manual section docs/embeddedperl.html lists some restrictions and things to consider. Anyway, since I never used ePN,I have no hands-on experience if any normal Perl program needs chenges. In any case, all my plugins and all the standard plugins have a standard shebang line that works fine with embedded Perl. The usual way to deal with _any_ misbehaving program that Nagios runs - plugins, event handlers, the whole shebang - is to wrap the offender in a reliable script that captures the argv it was called with, invokes the program with those args and then logs args and stdout, stderr to somewhere convenient. (I wish that were more common knowledge) I know that this matter of wrappers has been discussed on this list before (my name and Andreas Ericsson). Indeed, and those are valuable hints. Arno Yours sincerely. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=kkid3432bid#0486dat1642 ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: R: [Nagios-users] email notification problem
Hello, On 1/27/2006 10:23 AM, Nicola Agnelli wrote: Hello all, i've the same problem, i've installed nagios 2.0 and all works good, but the email notifications can't be send.. The first step could be to modify your command_line to actually send a message. Usually, you use printf to create and format the output AND THEN pipe that output to your mail program. Like 'printf somethning | mail -s Notification ... Arno my command is the default command: define command{ command_namenotify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$ } And: define command{ command_namehost-notify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $$ } But I can't receive notifications mails.. Here are the nagios.log: [1138352948] HOST ALERT: w2k3-server;DOWN;SOFT;9;CRITICAL - Host Unreachable (10.0.0.222) [1138352951] HOST ALERT: w2k3-server;DOWN;HARD;10;CRITICAL - Host Unreachable (10.0.0.222) [1138352951] HOST NOTIFICATION: nagios-admin;w2k3-server;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.0.222) How can I resolve ? Tnx all nicola -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Arno Lehmann Inviato: venerdì 27 gennaio 2006 10.02 A: nagios-users@lists.sourceforge.net Oggetto: Re: [Nagios-users] email notification problem Hello, On 1/27/2006 3:44 AM, test 123king wrote: I have set up nagios nagios-1.3-14.fc4 in my FC4 server, the only problem now is the email notification can't be send out. The original notify-by-email in misccommands.cfg file is like below: # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf %b * Nagios *nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:n n$OUTPUT$ | -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } I changed it to : # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /bin/mail %b * Nagios *nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAddi tional Info:n n$OUTPUT$ | -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } Basically I replaced /usr/bin/printf with /bin/mail. And you don't have a valid command line left: after the pipe, there should be a program to read the output from mail. And your invocation of mail looks a little... non-standard to me. In the /var/log/messages log I see the following error: Warning: Attempting to execute the command /bin/mail %b * Nagios *nnNotification Type: RECOVERYnHost: Server-1nState: UPnAddress: 10.100.1.79nInfo: PING OK - Packet loss = 0%, RTA = 0.76 msnnDate/Time: Thu Jan 26 17:48:21 EST 2006n | -s Host UP alert for Server-OTM! [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] resulted in a return code of 127. Make sure the scri//pt or binary you are trying to execute actually exists... It's all there: the output from mail is piped to '-s' which, most probably, is not installed on your system as an executable program in the path. Any kind help is highly appreciated!! Why don't you try the original notification script and simply insert your mail command between pipe and '-s'? The reason why it's missing, by the way, is probably that configure couldn't identify your mailer. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ 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: R: R: [Nagios-users] email notification problem
Hi, On 1/27/2006 11:00 AM, Nicola Agnelli wrote: Thank you for answer, so the correct command should be: define command{ command_namenotify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$ | mail -s Notification } And define command{ command_namehost-notify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $$ | mail -s Notification } That depends on your mail command. I suppose you need to set the receiver address, and possibly the sender, too. ? Sorry for my questions but I'm new to nagios .. That's something that will fix itself in a short time :-) But, for good results, you do need a good understanding of the way Nagios works, as well as of the underlying operating system and your network... Arno Nicola -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Arno Lehmann Inviato: venerdì 27 gennaio 2006 10.50 A: nagios-users@lists.sourceforge.net Oggetto: Re: R: [Nagios-users] email notification problem Hello, On 1/27/2006 10:23 AM, Nicola Agnelli wrote: Hello all, i've the same problem, i've installed nagios 2.0 and all works good, but the email notifications can't be send.. The first step could be to modify your command_line to actually send a message. Usually, you use printf to create and format the output AND THEN pipe that output to your mail program. Like 'printf somethning | mail -s Notification ... Arno my command is the default command: define command{ command_namenotify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAdd$ } And: define command{ command_namehost-notify-by-email command_line/usr/bin/printf %b * Nagios *\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $$ } But I can't receive notifications mails.. Here are the nagios.log: [1138352948] HOST ALERT: w2k3-server;DOWN;SOFT;9;CRITICAL - Host Unreachable (10.0.0.222) [1138352951] HOST ALERT: w2k3-server;DOWN;HARD;10;CRITICAL - Host Unreachable (10.0.0.222) [1138352951] HOST NOTIFICATION: nagios-admin;w2k3-server;DOWN;host-notify-by-email;CRITICAL - Host Unreachable (10.0.0.222) How can I resolve ? Tnx all nicola -Messaggio originale- Da: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Per conto di Arno Lehmann Inviato: venerdì 27 gennaio 2006 10.02 A: nagios-users@lists.sourceforge.net Oggetto: Re: [Nagios-users] email notification problem Hello, On 1/27/2006 3:44 AM, test 123king wrote: I have set up nagios nagios-1.3-14.fc4 in my FC4 server, the only problem now is the email notification can't be send out. The original notify-by-email in misccommands.cfg file is like below: # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /usr/bin/printf %b * Nagios *nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAdditional Info:n n$OUTPUT$ | -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } I changed it to : # 'notify-by-email' command definition define command{ command_name notify-by-email command_line /bin/mail %b * Nagios *nnNotification Type: $NOTIFICATIONTYPE$nnService: $SERVIC EDESC$nHost: $HOSTALIAS$nAddress: $HOSTADDRESS$nState: $SERVICESTATE$nnDate/Time: $DATETIME$nnAddi tional Info:n n$OUTPUT$ | -s ** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ ** $CONTACTEMAIL$ } Basically I replaced /usr/bin/printf with /bin/mail. And you don't have a valid command line left: after the pipe, there should be a program to read the output from mail. And your invocation of mail looks a little... non-standard to me. In the /var/log/messages log I see the following error: Warning: Attempting to execute the command /bin/mail %b * Nagios *nnNotification Type: RECOVERYnHost: Server-1nState: UPnAddress: 10.100.1.79nInfo: PING OK - Packet loss = 0%, RTA = 0.76 msnnDate/Time: Thu Jan 26 17:48:21 EST 2006n | -s Host UP alert for Server-OTM! [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] resulted in a return code of 127. Make sure the scri//pt or binary you are trying to execute actually exists... It's all there: the output from mail is piped to '-s' which, most probably, is not installed on your system as an executable program in the path. Any kind help is highly appreciated!! Why don't you try the original notification script and simply insert your mail command between pipe and '-s'? The reason why it's
Re: [Nagios-users] NagiosGrapher: How do the links work?
Hugo, you're quite busy :-) On 1/27/2006 9:58 PM, Hugo van der Kooij wrote: Did some more debugging: The section below seems to be having a bit of a problem: # If the RRD not exists: if ( !( -e $file ) ) { # Adding Graph Value Key's foreach (@blocks) { if ( $service =~ /$_-{service_name}/ ) { # change the default rrdtype if a different is defined my $rrd_type = GAUGE; $rrd_type = $_-{rrd_type} if ( exists( $_-{rrd_type} ) ); # setting the heartbeat# if (!defined($heartbeat)) { $heartbeat = $default_heartbeat; $heartbeat = $_-{heartbeat} if ( exists( $_-{heartbeat} )); } # setting the step if (!defined($step)) { $step = $default_step; $step = $_-{step} if ( exists( $_-{step} )); } push @system, DS: . $_-{graph_value} . : . $rrd_type . :. $heartbeat. :U:U; } } # Adding some default average frames push @system, RRA:AVERAGE:0.5:5:$heartbeat; push @system, RRA:MAX:0.5:5:$heartbeat; push @system, RRA:MIN:0.5:5:$heartbeat; push @system, RRA:AVERAGE:0.5:30:$heartbeat; push @system, RRA:MAX:0.5:30:$heartbeat; push @system, RRA:MIN:0.5:30:$heartbeat; push @system, RRA:AVERAGE:0.5:120:$heartbeat; push @system, RRA:MAX:0.5:120:$heartbeat; push @system, RRA:MIN:0.5:120:$heartbeat; push @system, RRA:AVERAGE:0.5:1440:$heartbeat; push @system, RRA:MAX:0.5:1440:$heartbeat; push @system, RRA:MIN:0.5:1440:$heartbeat; Which I noticed with the following (DEBUG) line added for debugging purposes: if($opt_verbose $LOG_RRD_STATUS) { $dummy=; foreach (@system) { $dummy.=$_. ' '; } print_log(DEBUG: step=$step defaultstep=$default_step heartbeat=$heartbeat defaultheartbeat=$default_heartbeat); print_log(RRD: rrdtool create $file --step=$step $dummy); } Both $step and $heartbeat were empty for these cases. And the log is missing the DS sections all together. I seem to have the fixed the $step issue a bit the missing DS is a real killer. I need to do even more debugging here. Hmm. As far as I can see, the problem seems to be the line if ( $service =~ /$_-{service_name}/ ) { if that condition isn't true, $heartbeat, $step and the DS definition aren't done. Just what we observed. (I at least intermittently.) Since you seem to work on the code currently: Where do $service and $_ in the above section come from? Arno Hugo. -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Nagios home page
Hello, On 1/26/2006 6:33 PM, Don Lewis wrote: You could do this a few different ways, either use a HTML redirect or put in a rewrite rule definition into the webserver conf. -Don On Thu, 2006-01-26 at 18:18 +0100, Toto Capuccino wrote: Hi, Can you tell me how to do when browsing http://server/nagios to display directly the tactical overview instead of the page where you read : New Installations: ...etc. pp. The simplest solution would be to modify Nagios' index.html file - the one with the frameset - to load tac.cgi as the default, initial, starting or whatever you call it frame in the main frame. What now looks like this: /HEAD FRAMESET BORDER=0 FRAMEBORDER=0 FRAMESPACING=0 COLS=200,* FRAME SRC=side.shtml NAME=side TARGET=main FRAME SRC=main.html NAME=main /FRAMESET would then have tac.cgi instead of mani.html. Arno If you have just installed Nagios®, read the documentation for instructions on getting everything up and running. Click here for a brief overview of new features that have been added in this release. For More Information: Visit the Nagios homepage at http://www.nagios.org for information on bug fixes, upgrades, support, etc. Thank you --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid3432bid#0486dat1642 ___ 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] NagiosGrapher: How do the links work?
Hi, On 1/25/2006 11:42 PM, Hugo van der Kooij wrote: Hi, I am trying to get NagiosGrapher up and running. I get some graphs but how can one see the graphs unless you explicitly go to /cgi-bin/graphs.cgi ? Nagiosgrapher installs serviceextinfo definitions automatically. It's some time ag that I set it up, but let's see... serviceext_type MULTIPLE serviceextinfo /etc/nagios2/serviceextinfo.cfg serviceext_path /etc/nagios2/serviceext url /nagios2/cgi-bin/graphs.cgi is from my ngraph.ncfg. serviceext_type MULTIPLE tells nagiosgrapher to create a file for each host in the directory given in serviceext_path. The sample config show a part like: icon_image_tag dot.gif' border=0/aa target=_blank href=graphs.cgi?###URL### border=0img src=/nagios/images/logos/graph.png border=0logos/dot.gif But however I twist and turn I see no way anything good can come from that line. (I suppose the normal result from dot.gif would be a webpage with a img src=dot.gif bit included. I couldn't, too, but it works nonetheless. :-) So I am still puzzled in the way the link to the graphs should become part of the normal nagios config. You've got to set up nagios to read the file(s) nagiosgrapher creates: In my nagios.cfg I have: # The following line is for nagios_grapher. This should be the only place where # service extended information is stored! cfg_dir=/etc/nagios2/serviceext That information is only read when nagios starts or when it's reloading the configuration after a SIGHUP. Afterwards, you should see icons for the graphs nagiosgrapher creates, and they should link to the right cgis. Here it works. I never tried it, but setting up serviceextinfo for nagiosgrapher and manually or by other tools might become painful. (In fact I am puzzled by much more but let's take it one step at the time.) Let nagiosgrapher write a detailed log and observe what happens in there. tail -f is just the tool for that... Hugo. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnkkid=103432bid=230486dat=121642 ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] Problem with nagios NRPE
Hello, On 1/12/2006 2:14 PM, Sameka Prather wrote: Hello Nagios List, I have added a new server to my nagios monitoring. Nagios starts fine but I get notification messages from nagios stating the new server I have enter is Down Info: NRPE: command check_fw1 not defined. Does anyone have any ideas? Sure. The command you use (or rather, want to use) isn't defined. You should re-read the manual concerning check_command and command definition. The nagios log is: Service Alert: fw1; PING; CRITICAL;HARD;1;NRPE; Command 'check_fw1' not defined. I have added the server to the following: command, hosts, hostgroup and services definition files. ...but I suppose you didn't create a command check_fw1. Note that a plugin with that name is _not_ the same as having a nagios command defined. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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] snmp issue
Hello, On 1/11/2006 9:05 PM, Ravi Kumar wrote: I'm having issue with snmp in 2.0Beta version. /usr/lib/nagios/plugins/check_smtp -H 192.168.xxx.xxx Connection refused SMTP CRITICAL - 0.001 sec. response time|time=0.000781s;;;0.00 /usr/lib/nagios/plugins/check_snmp -P 1 -H 192.168.xxx.xxx -o sysUpTime.0 -C public SNMP problem - No data received from host CMD: /usr/bin/snmpget -t 1 -r 5 -m ALL -v 1 -c public 192.168.1.1:161 sysUpTime.0 Let me know how to fix. Considering the amount of information you give, let me first ask if you know how TCP/IP networking works, and what the smtp and snmp daemons are. Assuming you know about these, I'd ask you for reasons to believe that the corresponding daemons are actually running, reachable, and configured on the hosts you want to check. Arno thank! Yahoo! Photos – Showcase holiday pictures in hardcover Photo Books http://us.rd.yahoo.com/mail_us/taglines/photobooks/*http://pa.yahoo.com/*http://us.rd.yahoo.com/mail_us/taglines/photos/evt=38088/*http://pg.photos.yahoo.com/ph//page?.file=photobook_splash.html. You design it and we’ll bind it! -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ 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 show Service Status Details For All Hosts
Hello, On 1/9/2006 9:07 PM, Matteo Mancini wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi .. thanks for your response..this look like my problem. It's probably this FAQ -- http://www.nagios.org/faqs/viewfaq.php?faq_id=21expand=falseshowdesc=t rue But I don't understand how can I resolve it ?? I've read other child faqs but I couldn't find any interesting. I quote the mentioned FAQ text: Kill all Nagios processes and restart Nagios. This will ensure that only one process is running and that the current object definitions are loaded. What's so difficult to understand here? Use your distributions tool to stop service processes. Wait some time. Issue something like 'killall nagios; sleep 20; killall -9 nagios'. Verify with ps that no more nagios processes are running. Restart nagios, using your distributions tool. Or, alternatively, send me your servers address and grant root access to me... (Invoice would follow, of course). Arno thanks Matteo -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFDwsKX/TjXD9LUVswRAvKFAJwKS8hq414Q/HO63V4Hz+xvIrvingCfTvYo jf3WGQq4+rmJxUVWSuGiDfM= =Ax8i -END PGP SIGNATURE- --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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] ping hanging.
Hello, On 1/7/2006 10:32 PM, Marc Powell wrote: -Original Message- From: [EMAIL PROTECTED] [mailto:nagios-users- [EMAIL PROTECTED] On Behalf Of Hammond, Robin-David%KB3IEN Sent: Friday, January 06, 2006 10:02 PM To: nagios-users@lists.sourceforge.net Subject: [Nagios-users] ping hanging. ... /Warning: Attempting to execute the command /check_ping -H 4400::34 -w 3000.0,80% -c 5000.0,100% -p 1 -t 10 -6 resulted in a return code of 127. Make sure the script or binary you are trying to execute actually exists... over and over. this is particularly confusiong as i never reran configure nor did I ever uninstall the /check_ping programme it is still in place and executable. Hmm. I *really* hope you never installed the plugins in your root directory. Any ideas? Return code 127 means that the plugin was not found in the location specified in the command definition. Nagios is apparently trying to execute /check_ping and not /path/to/check_ping (usually /usr/local/nagios/libexec/check_ping). There are four primary possibilities -- 1) your command definition does not utilize the $USER1$ macro in the command_line i.e. 'command_line $USER1$/check_ping -H ...' 2) you have manually specified the incorrect path in the command_line i.e. 'command line /check_ping -H ...' 3) $USER1$ is not set to the correct plugins path in resource.cfg 4) you have not included resource.cfg as a resource_file in nagios.cfg One other possibility I encountered: When the resource.cfg file is not readable by nagios, the above happens after nagios reloaded its configuration. The initial configuration file access happens before nagios drops its rights (when started as root), but afterwards, during operation, it's simply no longer permitted to read the resource.cfg... he easy work-around is a chown on the file followed by another configuration reload. Arno -- Marc --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_idv37alloc_id865op=click ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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
Hello, On 12/28/2005 10:25 AM, vajun wrote: hi, I already configure the remote host. But theres an error in Nagios GUI. It states that CHECK_NRPE: Received 0 bytes from daemon. Check the remote server logs for error messages.. when i check the /var/adm/messages. the error is Unable to open config file '//nrpe.cfg' for reading Config file '//nrpe.cfg' contained errors, bailing out... Seems that nrpe.cfg cannot load..I already run the following query but its ok..(see below) /usr/local/nagios/libexec/check_disk.pl -H IP -C community string -m / -r -w 85 -c 90 -t 10 / : 46 %used (29794MB/65075MB) ( 85) : OK You should check your nrpe.conf for errors, trying some plugins from the shell won't help you a bit. Badly needed assistance with this. thanks in advance. Verify how nrpe is started (inetd or stand-alone). See which configuration you told it to use. Read that file. Read the manual for nrpe. Locate the difference. Correct that difference. Try again. Or, of course, you could try calling nrpe with the correct command line options and see if it reports anything useful. If you've got more details concerning the nrpe configuration erros, I'm quite sure that someone here can help you correct them - provided you post the necessary information, like releveant nrpe configuration file entries. Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 nagios to snmp to my box, Where do i specify the community
Hi, Randy Paries schrieb: Hello, I am trying to do a smnp check on one of my boxes. (it is a mediatrix viop gateway) I can query it using the cactii using the community of public Here, it's rather early, but I have the impression you set up your checks quite early, too ;-) Above, you want to write snmp, I assume - community strings belong there, usually. so i have set it up as follows:: The ping works find but the snmp fails with a CRITICAL Connection refused by host See below. Si i am thinking maybe it is the community cause like mentioned above cactii can query it just fine. Thanks for any suggestions. = define host{ use generic-host; Name of host template to use host_name MediaTrix.RP alias MediaTrix RP Box address 66.xx.xx.205 max_check_attempts 20 notification_interval 60 notification_period 24x7 notification_optionsd,u,r } define service{ use generic-service host_name MediaTrix.RP service_description SMTP Really really sure? is_volatile 0 check_period24x7 max_check_attempts 3 normal_check_interval 5 retry_check_interval1 contact_groups admins notification_interval 240 notification_period 24x7 notification_optionsw,u,c,r check_command check_smtp I guess you check for the simple mail transport protocol, not the simple network management one. } Arno -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 querying services no longer in configuration
Hello, James Davis schrieb: Arno Lehmann wrote: ... Basically, wherever you put it yourself :-) It's a setting in the main configuration file. It wasn't in there but following on from that I checked the other files referenced in the configuration file and found it in /var/log/nagios/status.log which I then deleted the entry from. I started nagios up and I've yet to receive any new alerts. Does this happen if you remove a host from the configuration whilst there's an alert outstanding? I don't know, because I never had such a situation, but I guess that, depending on your setup, all the important state information is saved, and that obviously includes state, notification number and interval and last one sent. And, most probably, lots of other interesting stuff, too. So, in short, I'd assume that it does. A simple work around would be to manually inject a passive result that indicates a good state, and then reload Nagios with the modified configuration. Arno Thanks, James -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 Notification Format
Hello, Eduardo Martinez schrieb: This is not really a problem but a curiosity. Maybe I missed something in the documentation but I could not find where to edit this. I want to add a few lines to the notification style that is sent out by Nagios. ... But how is the entire notification generated? Usually, the commands that create the notifications rely on the printf command. Just look up how your notification commands are defined - they are just commands as all the check commands. You will - probably - find something like 'printf something | mail -s Nagios $some_address$' in there. Then, understand Nagios' macros (described in the manual) and how the command printf works (man printf on the shell should help). Arno Any help would be greatly appreciated. Thank you very much, -Ed This email is intended only for the use of the individual or entity to which it is addressed and may contain information that is privileged and confidential. If the reader of this email message is not the intended recipient, you are hereby notified that any dissemination, distribution, or copying of this communication is prohibited. If you have received this email in error, please notify the sender and destroy/delete all copies of the transmittal. Thank you. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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] recurrent downtime
Hello, On 02.12.2005 21:04, enediel gonzalez wrote: Hello I've tried to configure nagios with recurrent downtime, in the configuration I need to declare that everyday from 6pm to 8pm, one server will be unavailable. And what did you try? Timeperiods for notificatiosn? Or would you prefer a complete notification setup? I got one srcript sched_downtime.tar.gz without get a real result yet. And what is the unreal result? Currently, I'm not very good in remote mind reading, and I'm afraid nobody else is. Have you done anything to achieve what you want, or do you want someone to set up your monitoring for you? Arno Thanks in advance for any answer Regards Enediel Linux user 398956 Debian GNU/Linux --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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] Should scheduling host downtime schedule downtime for services (nagios 2.0b4)
Hello, On 02.12.2005 22:24, John P. Rouillard wrote: Hi all: I'm running nagios 2.0b4. When you schedule downtime for a host shouldn't downtime be scheduled for all its services also? I realize that a host down event will stop the polling and notification on its services, but what effect does this have (if any) on the availability reports? If I understand you correctly, the result is the expected one: Scheduled host downtime results in a scheduled downtime in the availability report. For the services of this host, the same happens: They are calculated as scheduled warning , sched. unk. or critical. Looks bad in the report to a customer, but it represents what actually happens, I think. One side-note: Using 2.0b4, I get (kind of) funny output from the service availability report (slightly edited, TAB-formatted): State Type / Reason Time % Total Time % Known Time OK Unscheduled 0d 7h 55m 21s 17.002% 17.002% Scheduled 0d 11h 56m 32s 25.629% 25.629% Total 0d 19h 51m 53s 42.631% 42.631% WARNING Unscheduled 0d 0h 0m 0s -35.59% 0.000% Scheduled 0d 0h 0m 0s 35.599% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% UNKNOWN Unscheduled 0d 10h 8m 39s 21.770% 21.770% Scheduled 0d 16h 35m 18s 35.599% 35.599% Total 1d 2h 43m 57s 57.369% 57.369% CRITIC. Unscheduled 0d 0h 0m 0s 0.000% 0.000% Scheduled 0d 0h 0m 0s 0.000% 0.000% Total 0d 0h 0m 0s 0.000% 0.000% Undet. N. Not Running 0d 0h 0m 0s 0.000% Insuff. Data0d 0h 0m 0s 0.000% Total 0d 0h 0m 0s 0.000% All Total 1d 22h 35m 50s 100.00% 100.000% Do you notice the -35% in column Percent total time, row Warning / unsched.? Can someone else verify this (keep in mind this is a host with lots of scheduled downtimes!), or is this even a known bug which I overlooked? Arno -- rouilj John Rouillard === My employers don't acknowledge my existence much less my opinions. --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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 -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637alloc_id=16865op=click ___ 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] Customizing Notifications
Hello, On 17.11.2005 23:04, Mark Pearson wrote: Does anyone know where in the documentation or know how to customize the notifications that are sent? I have searched all over and can't find anything. Then again I am a bit cross-eyed with the time I have spend setting up Nagios for all our hosts. Look at the commands you use for notification... it's just a shell command with some Nagios variables in it. Arno Thanks, Mark T. Pearson / Senior Network Engineer / UFT Welfare Fund BLOCKED::http://www.uft.org/ 52 Broadway, 8^th Floor New York , NY 10004 (212) 539-0605 *** The views, opinions, and judgments expressed in this message are solely those of the author. The message contents have not been reviewed or approved by the UFT Welfare Fund. *** -- IT-Service Lehmann[EMAIL PROTECTED] Arno Lehmann http://www.its-lehmann.de --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628alloc_id=16845op=click ___ 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