rrd is empty. ca

ahmad kxs322 at yahoo.com
Tue Mar 2 20:03:36 CET 2010


Nagios version:              Nagios Core 3.2.0
Nagiosgraph Version:    nagiosgraph-1.1.2
OS                                  RHEL 5.3     64bit

#####################nagios.cfg

log_file=/usr/local/nagios/var/nagios.log                                                     
cfg_file=/usr/local/nagios/etc/objects/commands.cfg                                           
cfg_file=/usr/local/nagios/etc/objects/contacts.cfg                                           
cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg                                        
cfg_file=/usr/local/nagios/etc/objects/templates.cfg                                          
cfg_file=/usr/local/nagios/etc/objects/hostgroups.cfg                                         
cfg_file=/usr/local/nagios/etc/objects/localhost.cfg                                          
cfg_dir=/usr/local/nagios/etc/servers                                                         
cfg_dir=/usr/local/nagios/etc/switches                                                        
object_cache_file=/usr/local/nagios/var/objects.cache                                         
precached_object_file=/usr/local/nagios/var/objects.precache                                  
resource_file=/usr/local/nagios/etc/resource.cfg                                              
status_file=/usr/local/nagios/var/status.dat                                                  
status_update_interval=10                                                                     
nagios_user=nagios                                                                            
nagios_group=nagios                                                                           
check_external_commands=1                                                                     
command_check_interval=300s                                                                   
command_file=/usr/local/nagios/var/rw/nagios.cmd                                              
external_command_buffer_slots=4096                                                            
lock_file=/usr/local/nagios/var/nagios.lock                                                   
temp_file=/usr/local/nagios/var/nagios.tmp                                                    
temp_path=/tmp                                                                                
event_broker_options=-1                                                                       
broker_module=/usr/local/nagios/bin/ndomod-3x.o   config_file=/usr/local/nagios/etc/ndomod.cfg
log_rotation_method=d                                                                         
log_archive_path=/usr/local/nagios/var/archives                                               
use_syslog=1                                                                                  
log_notifications=1                                                                           
log_service_retries=1                                                                         
log_host_retries=1                                                                            
log_event_handlers=1                                                                          
log_initial_states=0                                                                          
log_external_commands=1                                                                       
log_passive_checks=1                                                                          
service_inter_check_delay_method=s                                                            
max_service_check_spread=30                                                                   
service_interleave_factor=s                                                                   
host_inter_check_delay_method=s                                                               
max_host_check_spread=30                                                                      
max_concurrent_checks=0                                                                       
check_result_reaper_frequency=10                                                              
max_check_result_reaper_time=30                                                               
check_result_path=/usr/local/nagios/var/spool/checkresults                                    
max_check_result_file_age=3600                                                                
cached_host_check_horizon=15                                                                  
cached_service_check_horizon=15                                                               
enable_predictive_host_dependency_checks=1                                                    
enable_predictive_service_dependency_checks=1                                                 
soft_state_dependencies=0                                                                     
auto_reschedule_checks=0                                                                      
auto_rescheduling_interval=30                                                                 
auto_rescheduling_window=180                                                                  
sleep_time=0.25                                                                               
service_check_timeout=60                                                                      
host_check_timeout=30                                                                         
event_handler_timeout=30                                                                      
notification_timeout=30                                                                       
ocsp_timeout=5                                                                                
perfdata_timeout=5                                                                            
retain_state_information=1                                                                    
state_retention_file=/usr/local/nagios/var/retention.dat                                      
retention_update_interval=60                                                                  
use_retained_program_state=1                                                                  
use_retained_scheduling_info=1                                                                
retained_host_attribute_mask=0                                                                
retained_service_attribute_mask=0                                                             
retained_process_host_attribute_mask=0                                                        
retained_process_service_attribute_mask=0                                                     
retained_contact_host_attribute_mask=0                                                        
retained_contact_service_attribute_mask=0                                                     
interval_length=60                                                                            
check_for_updates=1                                                                           
bare_update_check=0                                                                           
use_aggressive_host_checking=0                                                                
execute_service_checks=1                                                                      
accept_passive_service_checks=1                                                               
execute_host_checks=1                                                                         
accept_passive_host_checks=1                                                                  
enable_notifications=1                                                                        
enable_event_handlers=1                                                                       
process_performance_data=0                                                                    
obsess_over_services=0                                                                        
obsess_over_hosts=0
translate_passive_host_checks=0
passive_host_checks_are_soft=0
check_for_orphaned_services=1
check_for_orphaned_hosts=1
check_service_freshness=1
service_freshness_check_interval=60
check_host_freshness=0
host_freshness_check_interval=60
additional_freshness_latency=15
enable_flap_detection=1
low_service_flap_threshold=5.0
high_service_flap_threshold=20.0
low_host_flap_threshold=5.0
high_host_flap_threshold=20.0
date_format=us
p1_file=/usr/local/nagios/bin/p1.pl
enable_embedded_perl=1
use_embedded_perl_implicitly=1
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
illegal_macro_output_chars=`~$&|'"<>
use_regexp_matching=0
use_true_regexp_matching=0
admin_email=nagios at localhost
admin_pager=pagenagios at localhost
daemon_dumps_core=0
use_large_installation_tweaks=0
enable_environment_macros=1
debug_level=0
debug_verbosity=1
debug_file=/usr/local/nagios/var/nagios.debug
max_debug_file_size=1000000
 process_performance_data=1
     service_perfdata_file=/var/spool/nagios/perfdata.log
     service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
     service_perfdata_file_mode=a
     service_perfdata_file_processing_interval=30
     service_perfdata_file_processing_command=process-service-perfdata



################nagiosgraph.cfg


debug = 5                                                                                 
logfile = /var/log/nagiosgraph.log                                                        
rrddir =  /usr/local/nagios/nagiosgraph/rrd                                               
mapfile = /usr/local/nagios/nagiosgraph/map                                               
colorscheme = 1                                                                           
heartbeat = 600                                                                           
stylesheet = /nagios/stylesheets/nagiosgraph.css                                          
dbseparator = subdir                                                                      
plotas = LINE2                                                                            
maximums = Current Load,PLW,Procs: total,Procs: zombie,User Count                         
minimums = APCUPSD,Mem: free,Mem: swap                                                    
hostdb = /usr/local/nagios/etc/hostdb.conf                                                
servdb = /usr/local/nagios/etc/servdb.conf                                                
nagioscgiurl = https://nagiosserver/nagios/cgi-bin                                        
selecthost = Select server                                                                
selectserv = Select service                                                               
fixedscale = Fixed Scale                                                                  
submit = Update Graphs
perfforhost = Performance data for host
perfforserv = Performance data for service
service = service
asof = as of
dai = Today
daily = Daily
day = Today
week = This Week
weekly = Weekly
month = This Month
monthly = Monthly
year = This Year
yearly = Yearly
configerror = Configuration Error (email <a href="mailto:alan.brenner at ithaka.org">Alan</a>).
noservicegiven = Bad URL for showservice.cgi; no service given
apcupsd = Uninterruptible Power Supply Status (Battery Charge, Tempurature, Load Percentage, Time Left)
bps = Bits Per Second
clamdb = Clam Database
diskgb = Disk Usage
http = Bits Per Second
load = Load Average
losspct = Loss Percentage
mailq = Pending Output E-mail Messages
memory = RAM Usage
Mem%3A%20swap = Swap Utilization
ping = Ping Loss Percentage and Round Trip Average
PLW = Perl Log Watcher Events
procs = Processes
qsize = Messages in Outbound Queue
rta = Round Trip Average
smtp = E-mail Status
testcolor = Show Colors
typesome = Type some space seperated nagiosgraph line names here
graph = Graph
previous = previous
next = next
createdby = Created by


#################################command.cfg

                                                                                  
define command{                                                                               
        command_name    notify-host-by-email                                                  
        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$                                                              
        }                                                                                     
define command{                                                                               
        command_name    notify-service-by-email                                               
        command_line    /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$                                                                                        
        }                                                                                     
define command{                                                                               
        command_name    check-host-alive                                                      
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5 
        }                                                                                     
define command{                                                                               
        command_name    check_local_disk                                                      
        command_line    $USER1$/check_disk -w $ARG1$ -c $ARG2$ -p $ARG3$                      
        }                                                                                     
define command{                                                                               
        command_name    check_local_load                                                      
        command_line    $USER1$/check_load -w $ARG1$ -c $ARG2$                                
        }                                                                                     
define command{                                                                               
        command_name    check_local_procs                                                     
        command_line    $USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$                     
        }                                                                                     
define command{                                                                               
        command_name    check_local_users                                                     
        command_line    $USER1$/check_users -w $ARG1$ -c $ARG2$                               
        }                                                                                     
define command{                                                                               
        command_name    check_local_swap                                                      
        command_line    $USER1$/check_swap -w $ARG1$ -c $ARG2$                                
        }                                                                                     
define command{                                                                               
        command_name    check_local_mrtgtraf                                                  
        command_line    $USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$                                                                                            
        }                                                                                     
define command{                                                                               
        command_name    check_ftp                                                             
        command_line    $USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$                             
        }                                                                                     
define command{                                                                               
        command_name    check_hpjd                                                            
        command_line    $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$                            
        }                                                                                     
define command{                                                                               
        command_name    check_snmp                                                            
        command_line    $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$                            
        }                                                                                     
define command{                                                                               
        command_name    check_http                                                            
        command_line    $USER1$/check_http -I $HOSTADDRESS$ $ARG1$                            
        }                                                                                     
define command{                                                                               
        command_name    check_ssh                                                             
        command_line    $USER1$/check_ssh $ARG1$ $HOSTADDRESS$                                
        }                                                                                     
define command{                                                                               
        command_name    check_dhcp                                                            
        command_line    $USER1$/check_dhcp $ARG1$                                             
        }                                                                                     
define command{                                                                               
        command_name    check_ping                                                            
        command_line    $USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -p 5          
        }                                                                                     
define command{                                                                               
        command_name    check_pop                                                             
        command_line    $USER1$/check_pop -H $HOSTADDRESS$ $ARG1$                             
        }                                                                                     
define command{                                                                               
        command_name    check_imap                                                            
        command_line    $USER1$/check_imap -H $HOSTADDRESS$ $ARG1$                            
        }                                                                                     
define command{                                                                               
        command_name    check_smtp                                                            
        command_line    $USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$                            
        }                                                                                     
define command{                                                                               
        command_name    check_tcp                                                             
        command_line    $USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
        }
define command{
        command_name    check_udp
        command_line    $USER1$/check_udp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
        }
define command{
        command_name    check_nt
        command_line    $USER1$/check_nt -H $HOSTADDRESS$ -p 12489 -v $ARG1$ $ARG2$
        }
define command{
        command_name check_nrpe
        command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c $ARG1$
        }
define command{
        command_name      check_LOAD2
        command_line /usr/local/nagios/libexec/check_snmp_load.pl -H $HOSTADDRESS$ -C very4portan7! -w 70,70,70 -c 90,90,90 -T cisco
        }
define command{
        command_name      check_fan_power
        command_line /usr/local/nagios/libexec/check_snmp_env.pl -H  $HOSTADDRESS$ -C very4portan7!  -T cisco
        }
define command{
        command_name      Check_Link
        command_line /usr/local/nagios/libexec/check_snmp_int.pl   -H  $HOSTADDRESS$  -C very4portan7! -n $ARG1$  -r
        }
define command {
 command_name process-service-perfdata
 command_line   /usr/local/nagios/lib/nagios/insert.pl  "$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$"

}
define command{
        command_name      Echo
        command_line /bin/echo   $HOSTADDRESS$   $ARG1$
        }

##############################localhost.cfg


define host{                                                                                  
        use                     linux-server            ; Name of host template to use        
                                                        ; This host definition will inherit all variables that are defined                                                                  
        host_name               localhost                                                     
        alias                   localhost                                                     
        address                 127.0.0.1                                                     
        }                                                                                     
define hostgroup{                                                                             
        hostgroup_name  linux-servers ; The name of the hostgroup                             
        alias           Linux Servers ; Long name of the group                                
        members         localhost     ; Comma separated list of hosts that belong to this group                                                                                             
        }                                                                                     
define service{                                                                               
        use                             local-service         ; Name of service template to use                                                                                             
        host_name                       localhost                                             
        service_description             PING                                                  
        check_command                   check_ping!100.0,20%!500.0,60%                        
        }                                                                                     
define service{                                                                               
        use                             local-service         ; Name of service template to use                                                                                             
        host_name                       localhost                                             
        service_description             Root Partition                                        
        check_command                   check_local_disk!20%!10%!/                            
        }                                                                                     
define service{                                                                               
        use                             local-service         ; Name of service template to use                                                                                             
        host_name                       localhost                                             
        service_description             Total Processes                                       
        check_command                   check_local_procs!250!400!RSZDT                       
        }                                                                                     
define serviceextinfo {                                                                       
 service_description Current Load                                                             
 host_name           localhost                                                                
 notes_url       /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$
       icon_image      graph.gif
       icon_image_alt  View graphs
}
define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Load
        check_command                   check_local_load!5.0,4.0,3.0!10.0,6.0,4.0
        }
define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Swap Usage
        check_command                   check_local_swap!20!10
        }
define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Echo
        check_command                   Echo
        notifications_enabled           0

        }
define service{
        use                             local-service         ; Name of service template to use
        host_name                       localhost
        service_description             Current Users
        check_command                   check_local_users!20!50
        }
define serviceextinfo {
 service_description Current Users
 host_name           localhost
 notes_url       /nagiosgraph/show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$





Thanks,
Aladin



      __________________________________________________________________
Looking for the perfect gift? Give the gift of Flickr! 

http://www.flickr.com/gift/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20100302/77205303/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list