Nagios: howto become a happy network and system monitoring engineer

Nagios: howto become a happy network and system monitoring engineer

Nagios: howto become a happy network and system monitoring engineer 150 150 Roderick Derks

 

Configure the Nagios config files and plugins

# vi /etc/nagios/r71_services.cfg

##### SSH REMOTE CALLS – ensure SSH REMOTE CALLS services are available. #####

define service {
name check-swap-by-ssh
service_description SWAP via ssh
use basic-service
notification_interval 60
contact_groups r71
notification_options c,r
notification_period 24×7
check_command check_by_ssh!swap
register 0
}

define service{
use check-swap-by-ssh
hostgroup_name linux-servers
}

define service {
name check-diskspace-by-ssh
service_description DISK SPACE via ssh
use basic-service
notification_interval 60
contact_groups r71
notification_options c,r
notification_period 24×7
check_command check_by_ssh!disk
register 0
}

define service{
use check-diskspace-by-ssh
hostgroup_name linux-servers
}

# vi /etc/nagios/r71_commands.cfg

# ‘check_by_ssh’ command defenition
define command {
command_name check_by_ssh
command_line $USER1$/check_by_ssh -H $HOSTADDRESS$ -l nagios -C ‘~/nagios_check.sh $ARG1$’
}

# vi /etc/nagios/r71_hostgroups.cfg

define hostgroup{
hostgroup_name snmp-enabled-servers
alias snmp enabled servers
members alpedhuez.r71.nl,telegraph.r71.nl,aubisque.r71.nl
}

 

 

Roderick Derks

Liefhebber van fietsen, van het oplossen van IT puzzels, en van het delen van informatie om anderen te helpen.

All stories by:Roderick Derks

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

    Your Name (required)

    Your Email (required)

    Subject

    Your Message

      Your Name (required)

      Your Email (required)

      Subject

      Your Message