Editing
Nagios
(section)
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Specificatie van checks == === check_ldap === De check van ldap vindt plaats met behulp van de standaard nagios plugin: <pre> define service { host_name <fdqn> service_description check_ldap use generic-service check_command check_ldap!-H $hOSTADDRESS$ -b "cn=admin,dc=<fqdn>" name ldap register 1 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups admins } </pre> === check samba === In /etc/nagios/scripts staat het script check_samba. <pre> #!/bin/sh # /usr/bin/smbclient -W ${2} -L ${1} -N >/dev/null if test ${?} -eq 0 then echo "\\\\${1}\\\\${2} answered SAMBA request" exit 0 else echo "\\\\${1}\\\\${2} not responding to SAMBA requests" exit 1 fi </pre> Aanroep van het script in services: <pre> define service { host_name >fqdn> service_description samba check_command check_samba! <fqdn> <nt-domain> name samba register 1 max_check_attempts 3 normal_check_interval 5 retry_check_interval 1 active_checks_enabled 1 check_period 24x7 notification_interval 120 notification_period 24x7 notification_options w,u,c,r notifications_enabled 1 contact_groups admins } </pre> <hr/> Terug naar: [[Webhuis Support Infrastructuur]]
Summary:
Please note that all contributions to Webhuis wiki are considered to be released under the GNU Free Documentation License 1.3 or later (see
Project:Copyrights
for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource.
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Page
Discussion
English
Views
Read
Edit
View history
More
Search
Navigation
Voorpagina
Cobol and PostgreSQL
PostgreSQL
CFEngine
Proxmox
Webhuis Kennisbank
Basale infra
Webhuis bouwstenen
Webhuis configuratie
Webhuis Infra
Webhuis Support
Webhuis Raspberry
Opzet Applicaties
Business Applicaties
Community portal
Current events
Recent changes
Random page
Help
sitesupport
Tools
What links here
Related changes
Special pages
Page information