Re: [Nagios-users] HTTP server authentication requirements for accessing this CGI.
Hi Ankush, This is already done, but still the issue exists. The only difference is the username nagiosadmin as in my case. Thanks, Jim On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: > Hi Jimmy, > > You need to enable authentication in cgi.cfg. > > use_authentication=1 > > authorized_for_all_host_commands=admin > authorized_for_all_hosts=admin > authorized_for_all_service_commands=admin > authorized_for_all_services=admin > authorized_for_configuration_information=admin > authorized_for_system_commands=admin > authorized_for_system_information=admin > > > Something like this in nagios.conf file for apache (On my linux box > that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) > > > # SSLRequireSSL > Options ExecCGI > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > Alias /nagios "/usr/share/nagios" > > > # SSLRequireSSL > Options None > AllowOverride None > Order allow,deny > Allow from all > # Order deny,allow > # Deny from all > # Allow from 127.0.0.1 > AuthName "Nagios Access" > AuthType Basic > AuthUserFile /etc/nagios/htpasswd.users > Require valid-user > > > > Now use htpasswd command to generate htpasswd.users file with user admin. > > htpasswd -c /etc/nagios/htpasswd.users admin > > > Regards > > Ankush > > > On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy wrote: > > Hi All, > > > > I have installed Apache2.2.9 using the source file > > 'Apache2_2.2.9.orig.tar.gz'. > > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the Quickstart > > Guide. I am able to open http://localhost/nagios. > > > > However, certain entities on the left pane, such as 'Process Info', > 'Network > > Outages', etc are not getting opened. They error out with the following > > message. > > > > "It appears as though you do not have permission to view information for > any > > of the hosts you requested... If you believe this is an error, check the > > HTTP server authentication requirements for accessing this CGI and check > the > > authorization options in your CGI configuration file." > > > > I followed > http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. > > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ > > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under > > nagios directory. Morever, I do not see the 'sites-available' & > > other directories named similarly under my /usr/local/apache2/conf > > directory. Will that be a problem? > > > > But, still, I am at same stage. Anyone, any idea, how to go about? > > > > Thanks, > > Jim > > > -- > > Crystal Reports - New Free Runtime and 30 Day Trial > > Check out the new simplified licensign option that enables unlimited > > royalty-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 > > > -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-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
Re: [Nagios-users] HTTP server authentication requirements for accessing this CGI.
Jimmy, Try the following and this should take care of it. Thanks ScriptAlias /nagios/cgi-bin "/usr/lib/nagios/cgi" Alias /nagios "/usr/share/nagios" # SSLRequireSSL Options None AllowOverride None Order allow,deny Allow from all # Order deny,allow # Deny from all # Allow from 127.0.0.1 AuthName "Nagios Access" AuthType Basic AuthUserFile /etc/nagios/htpasswd.users Require valid-user On Sun, Apr 26, 2009 at 10:52 AM, Jimmyboy wrote: > Hi Ankush, > > This is already done, but still the issue exists. > The only difference is the username nagiosadmin as in my case. > > Thanks, > Jim > > On Fri, Apr 24, 2009 at 4:11 PM, ankush grover wrote: > >> Hi Jimmy, >> >> You need to enable authentication in cgi.cfg. >> >> use_authentication=1 >> >> authorized_for_all_host_commands=admin >> authorized_for_all_hosts=admin >> authorized_for_all_service_commands=admin >> authorized_for_all_services=admin >> authorized_for_configuration_information=admin >> authorized_for_system_commands=admin >> authorized_for_system_information=admin >> >> >> Something like this in nagios.conf file for apache (On my linux box >> that is centos 5.x it is /etc/httpd/conf.d/nagios.conf) >> >> >> # SSLRequireSSL >> Options ExecCGI >> AllowOverride None >> Order allow,deny >> Allow from all >> # Order deny,allow >> # Deny from all >> # Allow from 127.0.0.1 >> AuthName "Nagios Access" >> AuthType Basic >> AuthUserFile /etc/nagios/htpasswd.users >> Require valid-user >> >> >> Alias /nagios "/usr/share/nagios" >> >> >> # SSLRequireSSL >> Options None >> AllowOverride None >> Order allow,deny >> Allow from all >> # Order deny,allow >> # Deny from all >> # Allow from 127.0.0.1 >> AuthName "Nagios Access" >> AuthType Basic >> AuthUserFile /etc/nagios/htpasswd.users >> Require valid-user >> >> >> >> Now use htpasswd command to generate htpasswd.users file with user admin. >> >> htpasswd -c /etc/nagios/htpasswd.users admin >> >> >> Regards >> >> Ankush >> >> >> On Fri, Apr 24, 2009 at 3:34 PM, Jimmyboy >> wrote: >> > Hi All, >> > >> > I have installed Apache2.2.9 using the source file >> > 'Apache2_2.2.9.orig.tar.gz'. >> > Nagios 3.0.6 is also installed on Ubuntu Intrepid OS using the >> Quickstart >> > Guide. I am able to open http://localhost/nagios. >> > >> > However, certain entities on the left pane, such as 'Process Info', >> 'Network >> > Outages', etc are not getting opened. They error out with the following >> > message. >> > >> > "It appears as though you do not have permission to view information for >> any >> > of the hosts you requested... If you believe this is an error, check the >> > HTTP server authentication requirements for accessing this CGI and check >> the >> > authorization options in your CGI configuration file." >> > >> > I followed >> http://www.onlamp.com/pub/a/onlamp/2002/09/26/nagios.html?page=3. >> > Configuration of httpd.conf says ScriptAlias /nagios/cgi-bin/ >> > /usr/local/nagios/sbin/. But, I do not have a directory 'cgi-bin' under >> > nagios directory. Morever, I do not see the 'sites-available' & >> > other directories named similarly under my /usr/local/apache2/conf >> > directory. Will that be a problem? >> > >> > But, still, I am at same stage. Anyone, any idea, how to go about? >> > >> > Thanks, >> > Jim >> > >> -- >> > Crystal Reports - New Free Runtime and 30 Day Trial >> > Check out the new simplified licensign option that enables unlimited >> > royalty-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 >> > >> > > > > -- > Crystal Reports - New Free Runtime and 30 Day Trial > Check out the new simplified licensign option that enables unlimited > royalty-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 > -- Cordially, Shadhin Rahman -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unli
Re: [Nagios-users] Doubt about email notifications
On Sunday, 19 April 2009 22:02:44 -0300, Daniel Bareiro wrote: > On Tuesday, 14 April 2009 07:11:28 -0500, > Marc Powell wrote: > > > On the other hand, I would like also to know if it is possible to > > > define the maximum number of notifications that are sent. > > > > > > I read exist variables that allow to configure both things using > > > escalations, although I do not have defined escalations. > > yes, I believe an escalation would do for this. I haven't done this > > but I expect you could set your first notification to the number of > > the last notification you want to receive (i.e. 3 for the third > > notification) and your last notification to some high number (99). > > Create a contact with a notification period of 'none' and set it as > > the contact for the escalation. > It seems a good idea :-) I am going to try it and any doubt I will > consult you again. With a little more of time, I was reading about escalations and, to where I could see, these are created by host and services. Unless there is a general form to define the escalations, I don't believe that it is practical considering that I have 291 services and 58 hosts. Regards, Daniel -- Fingerprint: BFB3 08D6 B4D1 31B2 72B9 29CE 6696 BF1B 14E6 1D37 Powered by Debian GNU/Linux Squeeze - Linux user #188.598 signature.asc Description: Digital signature -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-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
[Nagios-users] service event handler passing null macro values?
Hi all, I've been playing trying to get service event handlers running following the sample script in the nagios manual but I'm running into a problem where the macros return null values. The event handler command is: define command { command_name restart_phptunnel command_line /usr/local/etc/periodic/restart_phptunne $SERVICESTATE$ $SERVICESTATETYPE$ $SERVICEATTEMPT$ I looked } In the logs: [1240797599] SERVICE EVENT HANDLER:delish;tunnel_splash_phpmydmin;(null);(null);(null);restart_phptunnel Is there a known issue with this or is there more I have to do get the macros working? This on a FreeBSD machine with Nagios 3.0.6 from ports. -- Rex Chan --> ish http://www.ish.com.au Level 1, 30 Wilson Street Newtown 2042 Australia phone +61 2 9550 5001 fax +61 2 9550 4001 -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-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
[Nagios-users] WG: SNMP Service Uknown
Hi! For Cisco switches use: snmp-server community yourSecret RO Von: Dei Bertine [mailto:deibert...@yahoo.com] Gesendet: Freitag, 24. April 2009 20:32 An: nagios-users@lists.sourceforge.net Betreff: Re: [Nagios-users] SNMP Service Uknown Thanks for your response. Would you happen to how on how would I enable it in the router? Cisco ASA for instance. Can someone please give me an idea? I'd appreciate it. From: Patrick Morris To: Dei Bertine Cc: "nagios-users@lists.sourceforge.net" Sent: Thursday, April 23, 2009 5:47:28 PM Subject: Re: [Nagios-users] SNMP Service Uknown Hi Dei! On Fri, 24 Apr 2009, Dei Bertine wrote: > Hi all, > > I got the first part set-up on monitoring my network equipment. > Ran the verify and everything was OK. > However when I go to the Nagios page, I see these logs in my network equipment: > "SNMP problem - No data received from host " > > This is the notification email I got: > Notification Type: PROBLEM > Service: PING > Host: CISCO > Address: 172.168.2.1 > State: UNKNOWN > Date/Time: Thu Apr 23 21:29:00 EDT 2009 > Additional Info: > SNMP problem - No data received from host > > This is a sample of my cfg file: > define service{ >uselocal-service ; Inherit values from a template >host_name cisco-router; The name of the host the service is associated with >service_descriptionPING; The service description >check_command check_snmp!-C public -o sysUpTime.0 >normal_check_interval 5 ; Check the service every 5 minutes under normal conditions >retry_check_interval1 ; Re-check the service every minute until its final/hard state is determined >} > > Not sure on this but is there anything in the router/switch that need to enable? Yes, you'll probably need to configure your router to accept SNMP polls from your Nagios box. OOe. Gesundheits- und Spitals-AG Techcenter, Hafenstrasse 47-51, 4020 Linz DVR 2107870, ATU 51928204, Firmenbuchgericht: Landesgericht Linz, FN 210146 p -- Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensign option that enables unlimited royalty-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