2,187
edits
(Added NRPE) |
(→NRPE: Minor corrections) |
||
Line 228: | Line 228: | ||
The NRPE server that runs on remote monitored machines does require quite a few additional packages to be installed (see below for in-exhaustive list), and if you are concerned you try the alternative approach of getting data back from your remote server via SNMP as described in this example [[#Ubuntu_Software_Updates_Monitor|Ubuntu Software Updates Monitor]]. This can make for a more lightweight solution, but will require you to write your own monitoring scripts to be called by the SNMP daemon. Swings and roundabouts. | The NRPE server that runs on remote monitored machines does require quite a few additional packages to be installed (see below for in-exhaustive list), and if you are concerned you try the alternative approach of getting data back from your remote server via SNMP as described in this example [[#Ubuntu_Software_Updates_Monitor|Ubuntu Software Updates Monitor]]. This can make for a more lightweight solution, but will require you to write your own monitoring scripts to be called by the SNMP daemon. Swings and roundabouts. | ||
* mysql-common | |||
* radiusclient1 | * radiusclient1 | ||
* samba-common | * samba-common | ||
Line 245: | Line 246: | ||
#* Checks (some may already exist in config)... | #* Checks (some may already exist in config)... | ||
#** Load: <code> command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 </code> | #** Load: <code> command[check_load]=/usr/lib/nagios/plugins/check_load -w 15,10,5 -c 30,25,20 </code> | ||
#** Disk space: <code> command[ | #** Disk space: <code> command[check_disks]=/usr/lib/nagios/plugins/check_disk -w 20% -c 10% -p /dev/mapper/svr-root </code> | ||
#*** The disk path must be valid, do a <code>df -h</code> and update <code>/dev/mapper/svr-root</code> as required | |||
#** MySQL: <code> command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -H 127.0.0.1 -u nagios -p poller </code> | #** MySQL: <code> command[check_mysql]=/usr/lib/nagios/plugins/check_mysql -H 127.0.0.1 -u nagios -p poller </code> | ||
#*** Assumes you have added the <code> nagios </code> user to MySQL, EG <code> mysql -u root -p -e "create user nagios identified by 'poller';" </code> | #*** Assumes you have added the <code> nagios </code> user to MySQL, EG <code> mysql -u root -p -e "create user nagios identified by 'poller';" </code> |