[Nagios-users] Anybody help setting up Anag on an Android phone?
Trying to get the aNag app set up on my Samsung Galaxy. However when I add my Nagios instance it always throws back the same error: HttpResponseException: Not Found (time and date) I can access my nagios web interface over the internet by going to http://nagios.company.co.uk/nagios just fine I pop that into Anag and it refuses it with above error Have tried: http://nagios.company.co.uk/nagios http://nagios.company.co.uk/nagios/cgi-bin (which example says to use) http://LANip/nagios http://LANip/nagios/cgi-bin **LANip - phone is connected to same LAN as Nagios box None of them work If I try to go to http://nagios.company.co.uk/nagios/cgi-bin in a web browser directly I get Forbidden - You don't have permission to access /nagios/cgi-bin/ on this server. I can use the firefox add on just fine found here so my server must be accepting and set up right? https://addons.mozilla.org/en-US/firefox/addon/nagios-checker/ Anybody got this successfully setup on there phones and can offer me any assistance please? Thankyou -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Anybody help setting up Anag on an Android phone?
Did you put the username and password that has permission to to view the status map. By default nagiosadmin has such access. On the other hand i use nagroid, you may want to try that too. Regards sent from google nexus On Dec 9, 2011 1:13 PM, Andrew Thompson and...@fulgent.co.uk wrote: Trying to get the aNag app set up on my Samsung Galaxy. ** ** However when I add my Nagios instance it always throws back the same error: ** ** HttpResponseException: Not Found (time and date) ** ** I can access my nagios web interface over the internet by going to http://nagios.company.co.uk/nagios just fine ** ** I pop that into Anag and it refuses it with above error ** ** Have tried: ** ** http://nagios.company.co.uk/nagios http://nagios.company.co.uk/nagios/cgi-bin (which example says to use) http://LANip/nagios http://LANip/nagios/cgi-bin ** ** **LANip – phone is connected to same LAN as Nagios box ** ** None of them work ** ** If I try to go to http://nagios.company.co.uk/nagios/cgi-bin in a web browser directly I get Forbidden - You don't have permission to access /nagios/cgi-bin/ on this server. ** ** I can use the firefox add on just fine found here so my server must be accepting and set up right? https://addons.mozilla.org/en-US/firefox/addon/nagios-checker/ ** ** ** ** Anybody got this successfully setup on there phones and can offer me any assistance please? ** ** Thankyou ** ** ** ** -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] SELinux and RHEL6.2 preventing disk checks via NRPE
Hello, after upgrading to RHEL6.2 I have problems checking some filesystems. Always the same three FS on all hosts, others work fine. /boot /home /var/log/audit $ ./check_nrpe -H backup -c check_fs_boot DISK CRITICAL - /boot is not accessible: Permission denied Now I disable SELinux and it works! $ ./check_nrpe -H backup -c check_fs_boot DISK OK - free space: /boot 36 MB (39% inode=99%);| /boot=55MB;96;;0;96 Although not a single line is logged on the monitored host, neither in messages nor in audit.log I already had a local policy created for the nrpe daemon when RHEL6 was introduced, as somehow many checks failed, although the user nrpe was running in was allowed to perform all checks, the nrpe daemon itself couldn't. I'll attach the policy, although at one point I gave up and just set the entire process to permissive mode. (note that I tried to extend rights on boot filesystem in this policy already, although it would seem to be unnecessary) Anybody experiencing something alike or any suggestions about how to handle nrpe and RHEL6(.2) in a better way than I am? Regards, Dennis -- .. Riege Software International GmbH Phone: +49 2159 91480 Mollsfeld 10 Fax: +49 2159 914811 40670 MeerbuschWeb: www.riege.com GermanyE-Mail: kuhlme...@riege.com -- -- Commercial Register: Managing Directors: Amtsgericht Neuss HRB-NR 4207 Christian Riege VAT Reg No.: DE120585842 Gabriele Riege Johannes Riege .. YOU CARE FOR FREIGHT, WE CARE FOR YOU module nrpesudo 1.02; require { type boot_t; type home_root_t; type http_port_t; type initrc_t; type kernel_t; type locate_var_lib_t; type nrpe_t; type pam_var_run_t; type proc_net_t; type rpm_exec_t; type rpm_var_cache_t; type rpm_var_lib_t; type sudo_exec_t; type sysctl_fs_t; type sysctl_net_t; type sysstat_log_t; type tmp_t; type usr_t; type var_lib_t; type var_spool_t; class capability { audit_write sys_nice }; class file { append create execute execute_no_trans getattr ioctl lock open read rename setattr unlink write }; class dir { add_name getattr open read remove_name search write }; class lnk_file read; class netlink_audit_socket { create nlmsg_relay read write }; class sem { create destroy read write unix_write } ; class sock_file write; class system module_request; class tcp_socket name_connect; class unix_stream_socket connectto; } #= nrpe_t == #evil line permissive nrpe_t; allow nrpe_t boot_t:dir { add_name read remove_name write }; allow nrpe_t boot_t:file { append create getattr open read unlink write }; allow nrpe_t home_root_t:dir { add_name read remove_name write }; allow nrpe_t http_port_t:tcp_socket name_connect; allow nrpe_t initrc_t:unix_stream_socket connectto; allow nrpe_t kernel_t:system module_request; allow nrpe_t locate_var_lib_t:dir search; allow nrpe_t locate_var_lib_t:file { getattr open read }; allow nrpe_t pam_var_run_t:dir { getattr search }; allow nrpe_t rpm_exec_t:file { execute execute_no_trans getattr ioctl open read }; allow nrpe_t rpm_var_cache_t:dir { add_name getattr read remove_name search open write }; allow nrpe_t rpm_var_cache_t:file { create open rename setattr unlink }; allow nrpe_t rpm_var_lib_t:dir { getattr open write search }; allow nrpe_t rpm_var_lib_t:file open; allow nrpe_t tmp_t:dir { add_name read remove_name write }; allow nrpe_t tmp_t:file { append create getattr open read unlink write }; allow nrpe_t proc_net_t:dir { getattr open read search }; allow nrpe_t proc_net_t:file { getattr ioctl open read }; allow nrpe_t self:capability { audit_write sys_nice }; allow nrpe_t self:netlink_audit_socket { create nlmsg_relay read write }; allow nrpe_t sudo_exec_t:file { execute execute_no_trans getattr open read }; allow nrpe_t sysctl_fs_t:dir search; allow nrpe_t sysctl_fs_t:file read; allow nrpe_t sysctl_net_t:dir search; allow nrpe_t sysstat_log_t:file read; allow nrpe_t sysstat_log_t:lnk_file read; allow nrpe_t usr_t:file { getattr ioctl open read }; allow nrpe_t usr_t:lnk_file read; allow nrpe_t var_lib_t:file { getattr lock read write open }; allow nrpe_t var_lib_t:sock_file write; allow nrpe_t var_spool_t:dir search; allow nrpe_t self:sem { create destroy read write unix_write } ; -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing
Re: [Nagios-users] SELinux and RHEL6.2 preventing disk checks via NRPE
Dennis Kuhlmeier kuhlme...@riege.com writes: Hello, after upgrading to RHEL6.2 I have problems checking some filesystems. Always the same three FS on all hosts, others work fine. /boot /home /var/log/audit $ ./check_nrpe -H backup -c check_fs_boot DISK CRITICAL - /boot is not accessible: Permission denied Now I disable SELinux and it works! $ ./check_nrpe -H backup -c check_fs_boot DISK OK - free space: /boot 36 MB (39% inode=99%);| /boot=55MB;96;;0;96 Although not a single line is logged on the monitored host, neither in messages nor in audit.log I already had a local policy created for the nrpe daemon when RHEL6 was introduced, as somehow many checks failed, although the user nrpe was running in was allowed to perform all checks, the nrpe daemon itself couldn't. I'll attach the policy, although at one point I gave up and just set the entire process to permissive mode. (note that I tried to extend rights on boot filesystem in this policy already, although it would seem to be unnecessary) Anybody experiencing something alike or any suggestions about how to handle nrpe and RHEL6(.2) in a better way than I am? RHEL6 has the following labels for use with Nagios plugins: # grep nagios /etc/selinux/targeted/contexts/files/file_contexts | grep plugin_exec | cut -d: -f3 | sort -u nagios_admin_plugin_exec_t nagios_checkdisk_plugin_exec_t nagios_mail_plugin_exec_t nagios_services_plugin_exec_t nagios_system_plugin_exec_t nagios_unconfined_plugin_exec_t Try setting the confined types first, e.g.: chcon -t nagios_checkdisk_plugin_exec_t /path/to/check_fs_boot If none of them works properly, you have nagios_unconfined_plugin_exec_t as a last resort. When you find one that works, make it permanent with: semanage fcontext -a -t type '/path/to/check_fs_boot' You may also have to set proper labels on the path leading up to the actual plugin. Regards, -- Trond H. Amundsen t.h.amund...@usit.uio.no Center for Information Technology Services, University of Oslo -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] Anybody help setting up Anag on an Android phone?
Thanks for the suggestion Seon, Its all sorted now - my phone automatically chages Nagios in the url to a capital N. Changed it to lower case and my phone now checks in with Nagios. Simple things huh.. :) Kind Regards Andrew T: 01386 834000 F: 01386 834100 and...@fulgent.co.ukmailto:and...@fulgent.co.uk www.fulgent.co.ukhttp://www.fulgent.co.uk/ Fulgent Technologies Limited, Haddonsacre, Station Road, Offenham, Evesham, WR11 8JJ. This communication contains information which is confidential and may also be privileged or protected by copyright. It is for the exclusive use of the addressee. If you are not the addressee please note that any distribution, reproduction, copying, publication or use of this communication or the information is prohibited. If you have received this communication in error, please telephone us immediately and also delete the communication from your computer. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] 'unreachable' question
We're trying to filter out some flaky services giving us too-frequent 'No data was received from host'. Will removing 'u' from notification_options eliminate this, or are they two different things? Thanks much... -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] 'unreachable' question
On 12/09/2011 02:52 PM, Boyer, Timothy A. wrote: We’re trying to filter out some flaky services giving us too-frequent ‘No data was received from host’. Will removing ‘u’ from notification_options eliminate this, or are they two different things? Thanks much… The 'u' in services has nothing to do with unreachable hosts. It only affects notifications being sent on 'unknown' status. It certainly sounds as though your plugins might want to return just that if they can't get the data though, assuming they're not checking network services, ofcourse. So the answer is actually; Removing 'u' from notification_options of services, or from service_notification_options of contacts, will prevent notifications from being sent on UNKNOWN states. HTH -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] 'unreachable' question
Hi Timothy - try setting the timeout values higher in nsc.ini on the windows clients. corcoran Flair4IT 0845 299 0811 www.flair4it.co.uk supp...@flair4it.co.uk Fact: All of our technical staff are Microsoft Certified Please click here view our disclaimer onlinehttp://www.flair4it.co.uk/downloads/flair4emaildisclaimer.htm From: Boyer, Timothy A. [mailto:timothy.bo...@opm.gov] Sent: 09 December 2011 13:53 To: 'nagios-users@lists.sourceforge.net' Subject: [Nagios-users] 'unreachable' question We're trying to filter out some flaky services giving us too-frequent 'No data was received from host'. Will removing 'u' from notification_options eliminate this, or are they two different things? Thanks much... -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] 'unreachable' question
On 12/9/2011 8:52 AM, Boyer, Timothy A. wrote: We’re trying to filter out some flaky services giving us too-frequent ‘No data was received from host’. Will removing ‘u’ from notification_options eliminate this, or are they two different things? Have you got flap detection enabled? Nagios can temporarily suppress notifications for a host or service if it changes states too frequently, and automatically re-enable them when the host or service calms down. If you prefer to just use a bigger hammer, you can increase the service's max_check_attempts and hope one comes back OK. Nothing in this message is intended to make or accept an offer or to form a contract, except that an attachment that is an image of a contract bearing the signature of an officer of our company may be or become a contract. This message (including any attachments) is intended only for the use of the individual or entity to whom it is addressed. It may contain information that is non-public, proprietary, privileged, confidential, and exempt from disclosure under applicable law or may constitute as attorney work product. If you are not the intended recipient, we hereby notify you that any use, dissemination, distribution, or copying of this message is strictly prohibited. If you have received this message in error, please notify us immediately by telephone and delete this message immediately. Thank you. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null
Re: [Nagios-users] 'unreachable' question
It does - thanks very much for the replies, everyone. -Original Message- From: Andreas Ericsson [mailto:a...@op5.se] Sent: Friday, December 09, 2011 9:50 AM To: Nagios Users List Cc: Boyer, Timothy A. Subject: Re: [Nagios-users] 'unreachable' question On 12/09/2011 02:52 PM, Boyer, Timothy A. wrote: We’re trying to filter out some flaky services giving us too-frequent ‘No data was received from host’. Will removing ‘u’ from notification_options eliminate this, or are they two different things? Thanks much… The 'u' in services has nothing to do with unreachable hosts. It only affects notifications being sent on 'unknown' status. It certainly sounds as though your plugins might want to return just that if they can't get the data though, assuming they're not checking network services, ofcourse. So the answer is actually; Removing 'u' from notification_options of services, or from service_notification_options of contacts, will prevent notifications from being sent on UNKNOWN states. HTH -- Andreas Ericsson andreas.erics...@op5.se OP5 AB www.op5.se Tel: +46 8-230225 Fax: +46 8-230231 Considering the successes of the wars on alcohol, poverty, drugs and terror, I think we should give some serious thought to declaring war on peace. -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: 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] check_openmanage spec file fixes for SUSE
(Resending as apparently my first attempt didn't make it through.) First of all, thanks for making this plugin. It works well and is very handy. As requested in the documentation, I am sending this to the nagios-users list rather than directly to the author. With some minor modifications, the package builds properly on SUSE. There are two main Nagios packaging differences from RedHat: 1) All Nagios plugins are installed to /usr/lib/nagios/plugins, even on 64-bit (there is no /usr/lib64/nagios directory). This may not make the most sense, but it is what is, and being consistent with other Nagios packages is good. 2) Non-binary plugin RPMs (e.g. Perl scripts only) use noarch, while binary plugins use the corresponding arch. For examples of both, browse the build service repo at http://download.opensuse.org/repositories/server:/monitoring/SLE_11.1/ . Being a Perl script, check_openmanage falls under the former. This is easily solved with an %if block to make a universal RPM spec: BEGIN PATCH --- nagios-plugins-openmanage.spec.orig 2011-10-05 10:00:18.0 -0500 +++ nagios-plugins-openmanage.spec 2011-12-01 15:02:10.0 -0600 @@ -5,6 +5,16 @@ # No binaries here, do not build a debuginfo package %global debug_package %{nil} +# SUSE installs Nagios plugins under /usr/lib, even on 64-bit +# It also uses noarch for non-binary Nagios plugins +%if %{defined suse_version} +%global nagiospluginsdir /usr/lib/nagios/plugins +BuildArch: noarch +%else +%global nagiospluginsdir %{_libdir}/nagios/plugins +%endif + + Name: nagios-plugins-openmanage Version: 3.7.3 Release: 1%{?dist} END PATCH I also tested building on CentOS 5 to make sure nothing broke there, and indeed, nothing changed there. Thanks, Andrew Daugherity Systems Analyst Division of Research, Texas AM University -- Cloud Services Checklist: Pricing and Packaging Optimization This white paper is intended to serve as a reference, checklist and point of discussion for anyone considering optimizing the pricing and packaging model of a cloud services business. Read Now! http://www.accelacomm.com/jaw/sfnl/114/51491232/ ___ Nagios-users mailing list Nagios-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/nagios-users ::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. ::: Messages without supporting info will risk being sent to /dev/null