Nagios Plugins Tutorial
Nagios Plugins Tutorial
This commit is contained in:
@ -1,27 +1,29 @@
|
|||||||
MaxScale Nagios plugins, for Nagios 3.5.1
|
# MaxScale Nagios plugins, for Nagios 3.5.1
|
||||||
|
|
||||||
MaxScale must be configured with 'maxscaled' protocol for the administration interface
|
MaxScale must be configured with 'maxscaled' protocol for the administration interface
|
||||||
|
|
||||||
[AdminInterface]
|
[AdminInterface]
|
||||||
type=service
|
type=service
|
||||||
router=cli
|
router=cli
|
||||||
|
|
||||||
[AdminListener]
|
[AdminListener]
|
||||||
type=listener
|
type=listener
|
||||||
service=AdminInterface
|
service=AdminInterface
|
||||||
protocol=maxscaled
|
protocol=maxscaled
|
||||||
port=6603
|
port=6603
|
||||||
|
|
||||||
1) copy check_maxscale_*.pl under /usr/lib64/nagios/plugins
|
## Prepare Nagios configuration files
|
||||||
2) copy maxscale_commands.cfg, server1.cfg to /etc/nagios/objects/
|
|
||||||
3) Edit /etc/nagios/nagios.cfg
|
1) copy check_maxscale_*.pl under /usr/lib64/nagios/plugins
|
||||||
|
2) copy maxscale_commands.cfg, server1.cfg to /etc/nagios/objects/
|
||||||
|
3) Edit /etc/nagios/nagios.cfg
|
||||||
|
|
||||||
add
|
add
|
||||||
|
|
||||||
cfg_file=/etc/nagios/objects/maxscale_commands.cfg
|
cfg_file=/etc/nagios/objects/maxscale_commands.cfg
|
||||||
cfg_file=/etc/nagios/objects/server1.cfg
|
cfg_file=/etc/nagios/objects/server1.cfg
|
||||||
|
|
||||||
Please note:
|
### Please note:
|
||||||
- modify server IP address in server1.cfg, pointing to MaxScale server
|
- modify server IP address in server1.cfg, pointing to MaxScale server
|
||||||
- maxadmin executable must be in the nagios server
|
- maxadmin executable must be in the nagios server
|
||||||
- default AdminInterface port is 6603
|
- default AdminInterface port is 6603
|
||||||
@ -39,6 +41,6 @@ define service{
|
|||||||
notifications_enabled 0
|
notifications_enabled 0
|
||||||
}
|
}
|
||||||
|
|
||||||
4) Restart Nagios
|
4) Restart Nagios
|
||||||
|
|
||||||
|
|
Reference in New Issue
Block a user