SSH Sendmail Profile
This profile monitors a Sendmail server. Mail services are monitored from the GroundWork server. Monitoring scripts are installed on the remote server and called from the GroundWork server using the SSH protocol. Please reference SSH document under GroundWork Profiles>SSH Profiles when using this profile.
Services Configuration
- SERVICE - Definitions in Monarch are stored under this name.
- COMMAND LINE - Service command name with arguments to be passed to the plugin.
- PLUGIN COMMAND LINE - Plugin script called by Nagios for this Service.
- EXTENDED INFO - The Extended Service Info definition, typically used for generating graphs.
Command lines displayed below are intended to be single line commands. Service Command Line Plugin Command Line Extended Info ssh_mailq_sendmail check_by_ssh_mailq_
sendmail!5!10$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "sudo $USER22$/check_mailq -w $ARG1$ -c $ARG2$ -M sendmail" number_graph ssh_process_crond check_by_ssh_process_crond $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a crond" percent_graph ssh_process_sendmail_accept check_by_ssh_process_
sendmail_accept$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a sendmail:\ accepting\ con" number_graph ssh_process_sendmail_qrunner check_by_ssh_process_
sendmail_qrunner$USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a sendmail:\ Queue\ runner" number_graph ssh_process_xinetd check_by_ssh_process_xinetd $USER1$/check_by_ssh -H $HOSTADDRESS$ -t 60 -l "$USER17$" -C "$USER22$/check_procs -c 1:1 -a xinetd" number_graph tcp_imap check_imap!3!5 $USER1$/check_imap -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p 143 number_graph tcp_imaps check_imaps!3!5 $USER1$/check_imap -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -p 993 -S number_graph tcp_pop3 check_pop3 $USER1$/check_pop -H $HOSTADDRESS$ number_graph tcp_pop3s check_pop3s!3!5 $USER1$/check_pop -t 60 -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -S number_graph tcp_smtp check_smtp!3!5 $USER1$/check_smtp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" number_graph tcp_smtp_sendmail check_sendmail!3!5 $USER1$/check_smtp -H $HOSTADDRESS$ -w "$ARG1$" -c "$ARG2$" -C "ehlo groundworkopensource.com" -R "ENHANCEDSTATUSCODES" -f nagios@$HOSTADDRESS$ number_graph
Profile Package
This package includes the following files:
Profile Definitions
- service-profile-ssh-sendmail.xml
- perfconfig-ssh-sendmail.xml
Plugins Scripts on the GroundWork Server
- check_imap
- check_pop
- check_smtp
- check_by_ssh
Plugins scripts on the Remote Monitored Server
- check_procs
- check_mailq
Performance Graphing Programs
- percent_graph.cgi
- number_graph.cgi
Installation
GroundWork Monitor includes many monitoring profiles for a variety of devices, systems and applications. Profiles already imported on a new GroundWork installation include Service Ping, SNMP Network, and SSH UNIX. The GroundWork Monitor Configuration tool is used to import updated Profiles and Profiles that require additional setup; the Profile XML file and its companion Performance Configuration definition file. Services can also be imported in addition to Service Profiles in the Profile Importer. The import process is documented under GROUNDWORK PROFILES > How to import profiles.
Implementation
This section contains detail settings used by this Profile. These parameters can be altered with the Configuration tool.
Command Parameters
Command parameters are in the Configuration Services section with the following names and default values.
ssh_mailq_sendmail
- Check for number of messages in sendmail queue.
- Default warning threshold is 5 messages.
- $ARG1$ - Warning threshold in messages
- Default critical threshold is 10 messages.
- $ARG2$ - Critical threshold in messages
ssh_process_crond
- Check for the number of crond processes running.
- No arguments.
ssh_process_sendmail_accept
- Check for the number of sendmail 'accepting connection' processes running.
- No arguments.
ssh_process_sendmail_qrunner
- Check for the number of sendmail 'queue runner' processes running.
- No arguments.
tcp_imap
- Uses check_imap plugin to connect to port 143 of $HOSTADDRESS$ and search for [* OK] in the IMAP server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
tcp_imaps
- Uses check_imap plugin with the -S (SSL) switch to connect to port 993 of $HOSTADDRESS$ and search for [* OK] in the IMAP server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
tcp_pop3
- Uses check_pop plugin to connect to port 110 of $HOSTADDRESS$ and search for [+OK] in the beginning of the POP3 server output.
- No arguments.
tcp_pop3s
- Uses check_pop plugin with the -S (SSL) switch to connect to port 995 of $HOSTADDRESS$ and searches for [+OK] in beginning of the POP3 server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
tcp_smtp
- Uses check_smtp plugin to connect to port 25 of $HOSTADDRESS$, sends "HELO servername" and searches for '250 .*' in the beginning of the SMTP server output.
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical seconds
tcp_smtp_sendmail
- Check the response to a command to the SMTP server
- Default warning threshold is a 3 second response time.
- $ARG1$ - Warning response time threshold in seconds
- Default critical threshold is a 5 second response time.
- $ARG2$ - Critical response time threshold in seconds
- -C - Command string issued to SMTP server
- -R - Expected response string to the command from the SMTP server
- -f - From address to use in MAIL command
Performance Graphing Parameters
The following parameters are used to generate performance charts. These parameters are set using the Configuration>Performance tool in GroundWork Monitor.
ssh_process_crond
- Graphs the number of crond processes.
- The Nagios service description must contain the string "ssh_process".
ssh_process_sendmail_accept
- Graphs the number of sendmail 'accepting connection' processes.
- The Nagios service description must contain the string "ssh_process".
ssh_process_sendmail_qrunner
- Graphs the number of sendmail 'queue runner' processes.
- The Nagios service description must contain the string "ssh_process".
tcp_imap
- Graphs response time of IMAP server.
- Nagios service description must contain the string "tcp_imap".
tcp_imaps
- Graphs response time of IMAPS server.
- Nagios service description must contain the string "tcp_imaps".
tcp_pop3
- Graphs response time of the POP3 server.
- Nagios service description must contain the string "tcp_pop3".
tcp_pop3s
- Graphs response time of the POP3S server.
- Nagios service description must contain the string "tcp_pop3s".
tcp_smtp
- Graphs response time of the SMTP server.
- Nagios service description must contain the string "tcp_smtp".
tcp_smtp_sendmail
- Graphs response time of the SMTP server.
- Nagios service description must contain the string "tcp_smtp".
Implementation Notes
If you are communicating to a remote host that is behind a firewall, make sure the SSH port 22 is allowed to access the remote host.