Pages

Showing posts with label OSCC Product. Show all posts
Showing posts with label OSCC Product. Show all posts

Nagios basic template for LINUX

We can check the configuration for services from /etc/nagiosql/domains/localhost/services/localhost.cfg

By default OSCC give us several type of services template for LINUX, which are;

#####################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:       2010-09-28 16:25:09
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
#####################################################################

define service {
 host_name  localhost
 service_description Current Load
 use   local-service
 check_command  check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
 register  1
 } 

define service {
 host_name  localhost
 service_description Current Users
 use   local-service
 

Nagios basic template for Windows

We can check the configuration for services from /etc/nagiosql/domains/localhost/services/winserver.cfg

By default OSCC give us several type of services template for Windows, which are;

#####################################################################
#
# Service configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:       2010-09-28 16:25:09
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios QL will overwite all manual settings during the next update
#
#####################################################################

define service {
 host_name  winserver
 service_description C:\ Drive Space
 use   generic-service
 check_command  check_nt!USEDDISKSPACE!-l c -w 80 -c 90
 register  1
 } 

define service {
 host_name  winserver
 service_description CPU Load
 use   generic-service
 

Nagios could not retrieves data from Windows.

Basically, there's no need to configure anything on LINUX operating systems for sending information/ data to Nagios. Unfortunately, Windows Operating systems need to be install with additional software which is NSClient++ that can be download it for free from http://www.nsclient.org/nscp


From my experience, I have install this application on Windows Server 2003, 2008 and Windows 7.

It working fine.

Nagios could not send notification through email

Basically, OSCC had customize Nagios using Postfix for sending email. Unfortunately the email could not go through. After all the Googling the solution is quite simple.

Just edit file name
/etc/postfix/main.cf


add a new line with
relayhost = mpkmail.rmp.gov.my


Below are template provide by OSCC;
####################################################################

# See /usr/share/postfix/main.cf.dist for a commented, 
# more complete version


# Debian specific:  Specifying a file name will cause the first
# line of that file to be used as the name.  The Debian default
# is /etc/mailname.
# myorigin = /etc/mailname

smtpd_banner = $myhostname ESMTP $mail_name (Ubuntu)
biff = no

# appending .domain is the MUA's job.
append_dot_mydomain = no

You might also like:

Popular Posts