Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
TetraWiki
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Main Page/Nagios add Indirect Host and Service Checks
(section)
Page
Discussion
English
Read
Edit
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
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!
== on directly accessible ( primary ) server : == 1. Access mail-server ( server already mapped as directly accesible ) 2. Install check_nrpe plugin if not present # yum install nagios-plugins-nrpe 3. now add entry in nrpe.cfg for each service you want to check on the secondary/passive server as shown below : COMMANDS FOR MAIN SERVER command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10 command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20 command[check_hda1]=/usr/local/nagios/libexec/check_disk -w 7% -c 5% -p /dev/sda3 command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z command[check_cpu]=/usr/local/nagios/libexec/check_cpu.sh -w 60 -c 70 command[check_mem]=/usr/local/nagios/libexec/check_mem_avail -w 130 -c 150 command[check_clam]=/usr/local/nagios/libexec/check_clamd -H localhost command[check_queue]=/usr/local/nagios/libexec/check_postfix_queue -w 300 -c 500 command[check_zimbra_clam_ud]=sudo -u zimbra /usr/local/nagios/libexec/check_clamav -w 2 -c 5 command[check_zimbra_lmtp]=/usr/local/nagios/libexec/check_smtp -H localhost -p 7025 -e '220 zimbraserver.2coms.com Zimbra LMTP server ready' '''# following commands are for backup server 192.168.1.5''' command[check_users2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_users command[check_load2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_load command[check_hda12]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda1 command[check_hda22]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda2 command[check_hda32]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_hda3 command[check_zombie_procs2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zombie_procs command[check_cpu2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_cpu command[check_mem2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_mem command[check_clam2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_clam command[check_queue2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_queue command[check_zimbra_lmtp2]=/usr/local/nagios/libexec/check_nrpe -H 192.168.1.5 -c check_zimbra_lmtp
Summary:
Please note that all contributions to TetraWiki may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, 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 (see
TetraWiki:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)