Performance graphs show no data

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance graphs show no data

Post by abrist »

Yep, you have conflicting installs of pnp4nagios. You will need to download the xi tarball and run the pnp4nagios install script:

Code: Select all

$ service npcd stop
$ cd /tmp
$ wget http://assets.nagios.com/downloads/nagiosxi/2012/xi-2012r1.4.tar.gz
$ tar xfvz xi-2012r1.4.tar.gz
$ cd nagiosxi/subcomponents/pnp
$ ./install
$ service npcd stop
$ service npcd start
For future reference, pnp4nagios is prepackaged with XI, do not install the pnp4nagios as a separate package/from source.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bmusson
Posts: 18
Joined: Mon Jan 28, 2013 12:38 pm

Re: Performance graphs show no data

Post by bmusson »

ok, i reinstalled it. the host graphs look ok (ping basically). The performance graphs for services are non-existent/blank for all services still in the nagiosxi interface.

i've attached a screen shot showing that nagiosgraph is showing the performance data.
rdp_nagiosgraph_works.png
There is a second screen shot in nagiosxi that shows that the performance data is not showing.
rdp_performance_data not shown.png
and lastly, the screen shot showing the performance data from the services tab (note: the missing graph icons for services).
performance graph_no_data.png
Thanks for all your help so far.
You do not have the required permissions to view the files attached to this post.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance graphs show no data

Post by slansing »

After you have given the performance graphs time to generate? About 15-20 minutes should suffice, what are you seeing in the npcd.log file now?

Code: Select all

tail /usr/local/nagios/var/npcd.log
Also lets check your nagios.cfg file and make sure that your host and service perfdata is being read from the correct location, can you post your nagios.cfg # PNP SETTINGS section here?
bmusson
Posts: 18
Joined: Mon Jan 28, 2013 12:38 pm

Re: Performance graphs show no data

Post by bmusson »

[bmusson(sjc-nagios-01):~]$ tail /usr/local/nagios/var/npcd.log
[01-22-2013 20:19:52] NPCD: Please have a look at 'npcd -V' to get license information
[01-22-2013 20:19:52] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-27-2013 17:13:19] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-27-2013 17:13:19] NPCD: npcd Daemon (0.4.14) started with PID=31527
[01-27-2013 17:13:19] NPCD: Please have a look at 'npcd -V' to get license information
[01-27-2013 17:13:19] NPCD: HINT: load_threshold is enabled - ('10.000000')
[01-28-2013 11:14:04] NPCD: Caught Termination Signal - Hasta la vista... baby
[01-28-2013 12:20:55] NPCD: npcd Daemon (0.4.14) started with PID=10407
[01-28-2013 12:20:55] NPCD: Please have a look at 'npcd -V' to get license information
[01-28-2013 12:20:55] NPCD: HINT: load_threshold is enabled - ('10.000000')


# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
# host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Performance graphs show no data

Post by slansing »

What is the current average load on your system? Run the following from the command line:

Code: Select all

top
bmusson
Posts: 18
Joined: Mon Jan 28, 2013 12:38 pm

Re: Performance graphs show no data

Post by bmusson »

top - 14:11:59 up 5 days, 18:02, 11 users, load average: 0.60, 0.63, 0.45
Tasks: 216 total, 1 running, 214 sleeping, 0 stopped, 1 zombie
Cpu(s): 4.0%us, 0.4%sy, 0.0%ni, 95.4%id, 0.1%wa, 0.0%hi, 0.1%si, 0.0%st
Mem: 8053960k total, 4920036k used, 3133924k free, 305888k buffers
Swap: 8191992k total, 0k used, 8191992k free, 2913676k cached

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
18749 apache 20 0 457m 35m 8500 S 4.0 0.4 2:51.07 httpd
16299 apache 20 0 363m 35m 8488 S 3.6 0.5 2:50.65 httpd
14020 apache 20 0 457m 35m 8608 S 2.7 0.4 3:07.86 httpd
14019 apache 20 0 458m 35m 8556 S 1.7 0.5 2:59.14 httpd
54613 bmusson 20 0 19380 1532 1096 R 0.7 0.0 0:00.14 top
2490 mysql 20 0 2170m 42m 6640 S 0.3 0.5 47:06.62 mysqld
14049 postgres 20 0 209m 5884 3684 S 0.3 0.1 0:10.65 postmaster
14064 apache 20 0 458m 36m 9336 S 0.3 0.5 2:52.53 httpd
16337 postgres 20 0 209m 5900 3704 S 0.3 0.1 0:07.85 postmaster
18826 postgres 20 0 209m 6520 4244 S 0.3 0.1 0:08.01 postmaster
28707 apache 20 0 362m 34m 8332 S 0.3 0.4 1:08.84 httpd
1 root 20 0 19224 1516 1248 S 0.0 0.0 0:11.04 init
bmusson
Posts: 18
Joined: Mon Jan 28, 2013 12:38 pm

Re: Performance graphs show no data

Post by bmusson »

fyi: heres the entire nagios.cfg

Code: Select all

[color=#800040]# MODIFIED
admin_email=root@localhost
admin_pager=root@localhost
translate_passive_host_checks=1
log_event_handlers=0
use_large_installation_tweaks=1
enable_environment_macros=0


# NDOUtils module
broker_module=/usr/local/nagios/bin/ndomod.o config_file=/usr/local/nagios/etc/ndomod.cfg


# PNP settings - bulk mode with NCPD
process_performance_data=1
# service performance data
service_perfdata_file=/usr/local/nagios/var/service-perfdata
service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tSERVICEOUTPUT::$SERVICEOUTPUT$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=15
service_perfdata_file_processing_command=process-service-perfdata-file-bulk
# host performance data
host_perfdata_file=/usr/local/nagios/var/host-perfdata
host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tHOSTOUTPUT::$HOSTOUTPUT$
host_perfdata_file_mode=a
host_perfdata_file_processing_interval=15
host_perfdata_file_processing_command=process-host-perfdata-file-bulk


# OBJECTS - UNMODIFIED
#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/localhost.cfg
#cfg_file=/usr/local/nagios/etc/objects/templates.cfg
#cfg_file=/usr/local/nagios/etc/objects/timeperiods.cfg


# STATIC OBJECT DEFINITIONS (THESE DON'T GET EXPORTED/IMPORTED BY NAGIOSQL)
cfg_dir=/usr/local/nagios/etc/static

# OBJECTS EXPORTED FROM NAGIOSQL
cfg_file=/usr/local/nagios/etc/contacttemplates.cfg
cfg_file=/usr/local/nagios/etc/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/contacts.cfg
cfg_file=/usr/local/nagios/etc/timeperiods.cfg
cfg_file=/usr/local/nagios/etc/commands.cfg
cfg_file=/usr/local/nagios/etc/hostgroups.cfg
cfg_file=/usr/local/nagios/etc/servicegroups.cfg
cfg_file=/usr/local/nagios/etc/hosttemplates.cfg
cfg_file=/usr/local/nagios/etc/servicetemplates.cfg
cfg_file=/usr/local/nagios/etc/servicedependencies.cfg
cfg_file=/usr/local/nagios/etc/serviceescalations.cfg
cfg_file=/usr/local/nagios/etc/hostdependencies.cfg
cfg_file=/usr/local/nagios/etc/hostescalations.cfg
cfg_file=/usr/local/nagios/etc/hostextinfo.cfg
cfg_file=/usr/local/nagios/etc/serviceextinfo.cfg
cfg_dir=/usr/local/nagios/etc/hosts
cfg_dir=/usr/local/nagios/etc/services

# GLOBAL EVENT HANDLERS
global_host_event_handler=xi_host_event_handler
global_service_event_handler=xi_service_event_handler



# UNMODIFIED
accept_passive_host_checks=1
accept_passive_service_checks=1
additional_freshness_latency=15
auto_reschedule_checks=0
auto_rescheduling_interval=30
auto_rescheduling_window=180
bare_update_check=0
cached_host_check_horizon=15
cached_service_check_horizon=15
check_external_commands=1
check_for_orphaned_hosts=1
check_for_orphaned_services=1
check_for_updates=1
check_host_freshness=0
check_result_path=/usr/local/nagios/var/spool/checkresults
check_result_reaper_frequency=10
check_service_freshness=1
command_check_interval=-1
command_file=/usr/local/nagios/var/rw/nagios.cmd
daemon_dumps_core=0
date_format=us
debug_file=/usr/local/nagios/var/nagios.debug
debug_level=0
debug_verbosity=1
enable_embedded_perl=1
enable_event_handlers=1
enable_flap_detection=1
enable_notifications=1
enable_predictive_host_dependency_checks=1
enable_predictive_service_dependency_checks=1
event_broker_options=-1
event_handler_timeout=30
execute_host_checks=1
execute_service_checks=1
external_command_buffer_slots=4096
high_host_flap_threshold=20.0
high_service_flap_threshold=20.0
host_check_timeout=30
host_freshness_check_interval=60
host_inter_check_delay_method=s
illegal_macro_output_chars=`~$&|'"<>
illegal_object_name_chars=`~!$%^&*|'"<>?,()=
interval_length=60
lock_file=/usr/local/nagios/var/nagios.lock
log_archive_path=/usr/local/nagios/var/archives
log_external_commands=0
log_file=/usr/local/nagios/var/nagios.log
log_host_retries=1
log_initial_states=0
log_notifications=1
log_passive_checks=0
log_rotation_method=d
log_service_retries=1
low_host_flap_threshold=5.0
low_service_flap_threshold=5.0
max_check_result_file_age=3600
max_check_result_reaper_time=30
max_concurrent_checks=0
max_debug_file_size=1000000
max_host_check_spread=30
max_service_check_spread=30
nagios_group=nagios
nagios_user=nagios
notification_timeout=30
object_cache_file=/usr/local/nagios/var/objects.cache
obsess_over_hosts=0
obsess_over_services=0
ocsp_timeout=5
p1_file=/usr/local/nagios/bin/p1.pl
passive_host_checks_are_soft=0
perfdata_timeout=5
precached_object_file=/usr/local/nagios/var/objects.precache
resource_file=/usr/local/nagios/etc/resource.cfg
retained_contact_host_attribute_mask=0
retained_contact_service_attribute_mask=0
retained_host_attribute_mask=0
retained_process_host_attribute_mask=0
retained_process_service_attribute_mask=0
retained_service_attribute_mask=0
retain_state_information=1
retention_update_interval=60
service_check_timeout=60
service_freshness_check_interval=60
service_inter_check_delay_method=s
service_interleave_factor=s
sleep_time=0.25
soft_state_dependencies=0
state_retention_file=/usr/local/nagios/var/retention.dat
status_file=/usr/local/nagios/var/status.dat
status_update_interval=10
temp_file=/usr/local/nagios/var/nagios.tmp
temp_path=/tmp
use_aggressive_host_checking=0
use_embedded_perl_implicitly=1
use_regexp_matching=0
use_retained_program_state=1
use_retained_scheduling_info=1
use_syslog=1
use_true_regexp_matching=0
# begin nagiosgraph configuration
# process nagios performance data using nagiosgraph
process_performance_data=1
service_perfdata_file=/tmp/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
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph
# end nagiosgraph configuration

[/color]

and command.cfg

[color=#004000]###############################################################################
#
# Check command configuration file
#
# Created by: Nagios QL Version 3.0.3
# Date:	      2013-01-28 12:42:10
# 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 command {
       command_name                  		check-host-alive
       command_line                  		$USER1$/check_icmp -H $HOSTADDRESS$ -w 3000.0,80% -c 5000.0,100% -p 5
}	

define command {
       command_name                  		check-host-alive-http
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$
}	

define command {
       command_name                  		check_bpi
       command_line                  		/usr/bin/php $USER1$/check_bpi.php $ARG1$
}	

define command {
       command_name                  		check_dhcp
       command_line                  		$USER1$/check_dhcp $ARG1$
}	

define command {
       command_name                  		check_dir
       command_line                  		$USER1$/check_dir -d $ARG1$ -w $ARG2$ -c $ARG3$ $ARG4$
}	

define command {
       command_name                  		check_dns
       command_line                  		$USER1$/check_dns -H $HOSTNAME$ $ARG1$
}	

define command {
       command_name                  		check_dummy
       command_line                  		$USER1$/check_dummy $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_em01_humidity
       command_line                  		$USER1$/check_em01.pl --type=hum --hum=$ARG1$,$ARG2$ $HOSTADDRESS$
}	

define command {
       command_name                  		check_em01_light
       command_line                  		$USER1$/check_em01.pl --type=illum --illum=$ARG1$,$ARG2$ $HOSTADDRESS$
}	

define command {
       command_name                  		check_em01_temp
       command_line                  		$USER1$/check_em01.pl --type=temp --temp=$ARG1$,$ARG2$ $HOSTADDRESS$
}	

define command {
       command_name                  		check_em08_contacts
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ C
}	

define command {
       command_name                  		check_em08_humidity
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ H $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_em08_light
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ I $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_em08_rtd
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ R $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_em08_temp
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ T $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_em08_voltage
       command_line                  		$USER1$/check_em08 $HOSTADDRESS$ V $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_esx3_guest
       command_line                  		$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -N "$ARG2$" -l "$ARG3$"$ARG4$
}	

define command {
       command_name                  		check_esx3_host
       command_line                  		$USER1$/check_esx3.pl -H "$HOSTADDRESS$" -f "$ARG1$" -l "$ARG2$"$ARG3$
}	

define command {
       command_name                  		check_exchange_rbl
       command_line                  		$USER1$/check_bl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_ftp
       command_line                  		$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_ftp_fully
       command_line                  		$USER1$/check_ftp_fully "$ARG1$" "$ARG2$" "$ARG3$" $HOSTNAME$
}	

define command {
       command_name                  		check_hpjd
       command_line                  		$USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_http
       command_line                  		$USER1$/check_http -I $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_icmp
       command_line                  		$USER1$/check_ping -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$
}	

define command {
       command_name                  		check_imap
       command_line                  		$USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
}	

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_mrtgtraf
       command_line                  		$USER1$/check_mrtgtraf -F $ARG1$ -a $ARG2$ -w $ARG3$ -c $ARG4$ -e $ARG5$
}	

define command {
       command_name                  		check_local_procs
       command_line                  		$USER1$/check_procs -w $ARG1$ -c $ARG2$ -s $ARG3$
}	

define command {
       command_name                  		check_local_swap
       command_line                  		$USER1$/check_swap -w $ARG1$ -c $ARG2$
}	

define command {
       command_name                  		check_local_users
       command_line                  		$USER1$/check_users -w $ARG1$ -c $ARG2$
}	

define command {
       command_name                  		check_mailserver_rbl
       command_line                  		$USER1$/check_bl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_nagiosxi_performance
       command_line                  		/usr/bin/php $USER1$/check_nagios_performance.php $ARG1$ $ARG2$ $ARG3$
}	

define command {
       command_name                  		check_nagios_performance
       command_line                  		$USER1$/check_nagios_performance -o $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_nagios_proc_usage
       command_line                  		$USER1$/check_nagios_proc_usage $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_none
       command_line                  		/bin/true
}	

define command {
       command_name                  		check_nrpe
       command_line                  		$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_nrpeversion
       command_line                  		$USER1$/check_nrpe -H $HOSTADDRESS$
}	

define command {
       command_name                  		check_nt
       command_line                  		$USER1$/check_nt -H $HOSTADDRESS$ -p $USER7$ -s $USER8$ -v $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_php_snmp_bandwidth
       command_line                  		$USER1$/get_snmp.php -H=$HOSTADDRESS$ -C=$ARG1$ -2 -I=$ARG2$ -u -w=$ARG3$ -c=$ARG4$ -d=$ARG5$
}	

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_proc_usage
       command_line                  		$USER1$/check_proc_usage -p $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_radius_server_adv
       command_line                  		$USER1$/check_radius_adv -r $HOSTADDRESS $ARG1$
}	

define command {
       command_name                  		check_smtp
       command_line                  		$USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_smtp_delivery
       command_line                  		$USER1$/check_email_delivery --mailto $ARG1$ --mailfrom $ARG2$ -H $ARG3$ --smtp-server $ARG3$ --smtp-username $ARG4$ --smtp-password $ARG5$ --smtp-port $ARG6$ $$([ "$ARG7$" ] && echo --smtptls) --imap-server $ARG8$ --username $ARG9$ --password $ARG10$ --imap-port $ARG11$ $$([ "$ARG12$" ] && echo --imapssl)
}	

define command {
       command_name                  		check_snmp
       command_line                  		$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_snmp_int
       command_line                  		$USER1$/check_snmp_int.pl -H $HOSTADDRESS$ -C $ARG1$ -2 -n $ARG2$ -f -k -w $ARG3$ -c $ARG4$ $ARG5$
}	

define command {
       command_name                  		check_ssh
       command_line                  		$USER1$/check_ssh $ARG1$ $HOSTADDRESS$
}	

define command {
       command_name                  		check_ssh_expect
       command_line                  		$USER1$/check_ssh_expect.pl -H $HOSTADDRESS$ -U $ARG1$ -P $ARG2$ $ARG3$
}	

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_vmware_host
       command_line                  		$USER1$/check_vmware.pl --config=$USER1$/$ARG1$ --host=$HOSTADDRESS$ --report=$ARG2$ --mode=nagios --warn=$ARG3$ --crit=$ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}	

define command {
       command_name                  		check_vmware_vc
       command_line                  		$USER1$/check_vmware.pl --config=$USER1$/$ARG1$ --mode=nagios --report=$ARG2$ $ARG3$ $ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}	

define command {
       command_name                  		check_vmware_vc_warn_crit
       command_line                  		$USER1$/check_vmware.pl --config=$USER1$/$ARG1$ --mode=nagios --report=$ARG2$ --warn=$ARG3$ --crit=$ARG4$ $ARG5$ $ARG6$ $ARG7$ $ARG8$
}	

define command {
       command_name                  		check_xi_by_ssh
       command_line                  		$USER1$/check_by_ssh -H $HOSTADDRESS$ $ARG1$ $ARG2$
}	

define command {
       command_name                  		check_xi_host_http
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_host_ping
       command_line                  		$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5
}	

define command {
       command_name                  		check_xi_mssql_database
       command_line                  		$USER1$/check_mssql_database.py -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_mssql_query
       command_line                  		$USER1$/check_mssql -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_mssql_server
       command_line                  		$USER1$/check_mssql_server.py -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_mysql_health
       command_line                  		$USER1$/check_mysql_health $ARG1$
}	

define command {
       command_name                  		check_xi_mysql_query
       command_line                  		$USER1$/check_mysql_health $ARG1$
}	

define command {
       command_name                  		check_xi_nagiosxiserver
       command_line                  		/usr/bin/php $USER1$/check_nagiosxiserver.php $ARG1$
}	

define command {
       command_name                  		check_xi_oraclequery
       command_line                  		/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client $USER1$/check_oracle_health $ARG1$
}	

define command {
       command_name                  		check_xi_oracleserverspace
       command_line                  		/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client $USER1$/check_oracle_health $ARG1$
}	

define command {
       command_name                  		check_xi_oracletablespace
       command_line                  		/usr/bin/env LD_LIBRARY_PATH=/usr/lib/oracle/11.2/client/lib ORACLE_HOME=/usr/lib/oracle/11.2/client $USER1$/check_oracle_health $ARG1$
}	

define command {
       command_name                  		check_xi_postgres
       command_line                  		$USER1$/check_postgres.pl $ARG1$
}	

define command {
       command_name                  		check_xi_postgres_db
       command_line                  		$USER1$/check_postgres.pl $ARG1$
}	

define command {
       command_name                  		check_xi_postgres_query
       command_line                  		$USER1$/check_postgres.pl $ARG1$
}	

define command {
       command_name                  		check_xi_service_dns
       command_line                  		$USER1$/check_dns -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_dnsquery
       command_line                  		$USER1$/check_dns $ARG1$
}	

define command {
       command_name                  		check_xi_service_ftp
       command_line                  		$USER1$/check_ftp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_hpjd
       command_line                  		$USER1$/check_hpjd -H $HOSTADDRESS$ -C $ARG1$
}	

define command {
       command_name                  		check_xi_service_http
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_http_cert
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$ -C $ARG1$
}	

define command {
       command_name                  		check_xi_service_http_content
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$ --onredirect=follow -s "$ARG1$"
}	

define command {
       command_name                  		check_xi_service_ifoperstatus
       command_line                  		$USER1$/check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$
}	

define command {
       command_name                  		check_xi_service_imap
       command_line                  		$USER1$/check_imap -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_ldap
       command_line                  		$USER1$/check_ldap -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_mrtgtraf
       command_line                  		$USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$
}	

define command {
       command_name                  		check_xi_service_none
       command_line                  		$USER1$/check_dummy 0 "Nothing to monitor"
}	

define command {
       command_name                  		check_xi_service_nsclient
       command_line                  		$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
}	

define command {
       command_name                  		check_xi_service_ping
       command_line                  		$USER1$/check_icmp -H $HOSTADDRESS$ -w $ARG1$,$ARG2$ -c $ARG3$,$ARG4$ -p 5
}	

define command {
       command_name                  		check_xi_service_pop
       command_line                  		$USER1$/check_pop -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_smtp
       command_line                  		$USER1$/check_smtp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp
       command_line                  		$USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_linux_load
       command_line                  		$USER1$/check_snmp_load_wizard.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_linux_process
       command_line                  		$USER1$/check_snmp_process_wizard.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_linux_storage
       command_line                  		$USER1$/check_snmp_storage_wizard.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_watchguard
       command_line                  		$USER1$/check_snmp_generic.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_win_load
       command_line                  		$USER1$/check_snmp_load.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_win_process
       command_line                  		$USER1$/check_snmp_process.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_win_service
       command_line                  		$USER1$/check_snmp_win.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_snmp_win_storage
       command_line                  		$USER1$/check_snmp_storage.pl -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_ssh
       command_line                  		$USER1$/check_ssh $ARG1$ $HOSTADDRESS$
}	

define command {
       command_name                  		check_xi_service_tcp
       command_line                  		$USER1$/check_tcp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_udp
       command_line                  		$USER1$/check_udp -H $HOSTADDRESS$ $ARG1$
}	

define command {
       command_name                  		check_xi_service_webinject
       command_line                  		$USER1$/check_webinject.sh $ARG1$
}	

define command {
       command_name                  		check_xi_service_wmiplus
       command_line                  		$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -u $ARG1$ -p $ARG2$ -m $ARG3$ $ARG4$
}	

define command {
       command_name                  		notify-host-by-email
       command_line                  		/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\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 Monitor XI Alert *****\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                  		process-host-perfdata-file-bulk
       command_line                  		/bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.host
}	

define command {
       command_name                  		process-host-perfdata-file-pnp-bulk
       command_line                  		/bin/mv /usr/local/nagios/var/host-perfdata /usr/local/nagios/var/spool/perfdata/host-perfdata.$TIMET$
}	

define command {
       command_name                  		process-host-perfdata-pnp-normal
       command_line                  		/usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}	

define command {
       command_name                  		process-service-perfdata-file-bulk
       command_line                  		/bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/xidpe/$TIMET$.perfdata.service
}	

define command {
       command_name                  		process-service-perfdata-file-pnp-bulk
       command_line                  		/bin/mv /usr/local/nagios/var/service-perfdata /usr/local/nagios/var/spool/perfdata/service-perfdata.$TIMET$
}	

define command {
       command_name                  		process-service-perfdata-for-nagiosgraph
       command_line                  		/usr/local/nagiosgraph/bin/insert.pl
}	

define command {
       command_name                  		process-service-perfdata-pnp-normal
       command_line                  		/usr/bin/perl /usr/local/nagios/libexec/process_perfdata.pl
}	

define command {
       command_name                  		xi_host_event_handler
       command_line                  		/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=host --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$"
}	

define command {
       command_name                  		xi_host_notification_handler
       command_line                  		/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=host --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --datetime="$LONGDATETIME$"
}	

define command {
       command_name                  		xi_service_event_handler
       command_line                  		/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_event.php --handler-type=service --host="$HOSTNAME$" --service="$SERVICEDESC$" --hostaddress="$HOSTADDRESS$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$"
}	

define command {
       command_name                  		xi_service_notification_handler
       command_line                  		/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=service --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --service="$SERVICEDESC$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --servicestate=$SERVICESTATE$ --servicestateid=$SERVICESTATEID$ --lastservicestate=$LASTSERVICESTATE$ --lastservicestateid=$LASTSERVICESTATEID$ --servicestatetype=$SERVICESTATETYPE$ --currentattempt=$SERVICEATTEMPT$ --maxattempts=$MAXSERVICEATTEMPTS$ --serviceeventid=$SERVICEEVENTID$ --serviceproblemid=$SERVICEPROBLEMID$ --serviceoutput="$SERVICEOUTPUT$" --longserviceoutput="$LONGSERVICEOUTPUT$" --datetime="$LONGDATETIME$"
}	

###############################################################################
#
# Check command configuration file
#
# END OF FILE
#
###############################################################################
[/color]
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance graphs show no data

Post by abrist »

Was XI installed over core? Or was pnp4nagios and nagiosgraph installed after the clean xi install? Nagiosgraph and XI's graphing system are not compatible.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
bmusson
Posts: 18
Joined: Mon Jan 28, 2013 12:38 pm

Re: Performance graphs show no data

Post by bmusson »

nagiosgraph and pnp4nagios was installed over a fresh install of nagiosxi.

im not sure about nagios core. I thought it was apart of the xi installation.

What is the best way to get everything working the way you recommend?

I honestly prefer a phone conversation over the forums if we can.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Performance graphs show no data

Post by abrist »

we need to undo the damage caused by nagiosgraph.

Comment out this chuck of code in your nagios.cfg:

Code: Select all

# begin nagiosgraph configuration
# process nagios performance data using nagiosgraph
process_performance_data=1
service_perfdata_file=/tmp/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
service_perfdata_file_processing_command=process-service-perfdata-for-nagiosgraph
# end nagiosgraph configuration
Comment out these lines in commands:

Code: Select all

define command {
       command_name                        process-service-perfdata-for-nagiosgraph
       command_line                        /usr/local/nagiosgraph/bin/insert.pl
}   
could you post the output of:

Code: Select all

$ ps -aef | grep npcd
You will need to restart nagios and npcd once again as well.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked