Nagios xi graphing issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi graphing issue

Post by vuduops »

Let me know if you need any more info regarding this issue.

-Krishna
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios xi graphing issue

Post by ssax »

Are you seeing anything that may be related in your /usr/local/nagios/var/npcd.log, /usr/local/nagios/var/perfdata.log, or in /usr/local/nagiosxi/var/perfdataproc.log?

Is npcd running?

Code: Select all

service npcd status
Is crond running?

Code: Select all

service crond status
Does /etc/cron.d/mrtg exist?

Code: Select all

cat /etc/cron.d/mrtg
Thank you
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi graphing issue

Post by vuduops »

I do not see anything related to graphs in the npcd.log. Also I do not see the /usr/local/nagios/var/perfdata.log, or /usr/local/nagiosxi/var/perfdataproc.log. I have enclosed the output for your reference..

[[email protected] ~]# service npcd status
NPCD running (pid 5585).

[[email protected] ~]# service crond status
crond (pid 5453) is running...

[[email protected] ~]# ls /usr/local/nagios/var/
./ archives/ nagios.configtest nagios.log ndomod.tmp npcd.log objects.precache rw/ spool/ status.dat
../ host-perfdata nagios.lock ndo2db.lock ndo.sock= objects.cache retention.dat service-perfdata stats/


[[email protected] ~]# cat /etc/cron.d/mrtg
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.ok

[[email protected] ~]# cat /usr/local/nagios/var/npcd.log
[10-03-2016 21:51:29] NPCD: npcd Daemon (0.4.14) started with PID=3352
[10-03-2016 21:51:29] NPCD: Please have a look at 'npcd -V' to get license information
[10-03-2016 21:51:29] NPCD: HINT: load_threshold is enabled - ('10.000000')
[10-03-2016 21:51:48] NPCD: Caught Termination Signal - Hasta la vista... baby
[10-03-2016 21:52:37] NPCD: npcd Daemon (0.4.14) started with PID=5585
[10-03-2016 21:52:37] NPCD: Please have a look at 'npcd -V' to get license information
[10-03-2016 21:52:37] NPCD: HINT: load_threshold is enabled - ('10.000000')

[[email protected] ~]# ls /usr/local/nagiosxi/var/
./ ../ components/ subsys/ upgrades/ xi-sys.cfg xiversion

[[email protected] log]# ll /usr/local/nagios/share/perfdata/
total 8
drwxrwxr-x. 2 nagios nagios 4096 Oct 3 21:48 ./
drwxrwxr-x. 17 nagios nagios 4096 Oct 3 21:49 ../


Thanks
Krishna
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios xi graphing issue

Post by tgriep »

Can you post the following files so we can see the settings for the Performance data graphing?

Code: Select all

/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/commands.cfg
/usr/local/nagios/etc/pnp/npcd.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios xi graphing issue

Post by Box293 »

What is the output of:

Code: Select all

tail -n 100 /var/spool/mail/root
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi graphing issue

Post by vuduops »

Here is the info you had requested for

Code: Select all

[[email protected] etc]# ls -ltr /var/spool/mail/root
ls: cannot access /var/spool/mail/root: No such file or directory
[[email protected] etc]# 

Code: Select all

[[email protected] etc]# cat nagios.cfg 
# 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$\tLONGSERVICEOUTPUT::$LONGSERVICEOUTPUT$
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$\tLONGHOSTOUTPUT::$LONGHOSTOUTPUT$
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=1
auto_rescheduling_interval=30
auto_rescheduling_window=45
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_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_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
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
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
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_regexp_matching=0
use_retained_program_state=1
use_retained_scheduling_info=1
use_syslog=1

Code: Select all

[[email protected] etc]# cat commands.cfg 
###############################################################################
#
# Check command configuration file
#
# Created by: Nagios Core Config Manager 2.5.2
# Date:	      2016-10-03 21:51:26
# Version:    Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND --- 
# Nagios CCM will overwrite all manual settings during the next update if you 
# would like to edit files manually, place them in the 'static' directory or 
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################

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-host-alive-tftp
       command_line                  		tftp $HOSTNAME$ 69
}

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_email_delivery
       command_line                  		$USER1$/check_email_delivery $ARG1$
}

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_file_service
       command_line                  		$USER1$/folder_watch.pl $ARG1$ $ARG2$ -f
}

define command {
       command_name                  		check_file_size_age
       command_line                  		$USER1$/folder_watch.pl $ARG1$ $ARG2$ -f
}

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_mongodb_database
       command_line                  		$USER1$/check_mongodb.py -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -u $ARG5$ -p $ARG6$ -d $ARG7$ -D
}

define command {
       command_name                  		check_mongodb_server
       command_line                  		$USER1$/check_mongodb.py -H $HOSTADDRESS$ -A $ARG1$ -P $ARG2$ -W $ARG3$ -C $ARG4$ -u $ARG5$ -p $ARG6$ -D --all-databases
}

define command {
       command_name                  		check_mountpoint
       command_line                  		$USER1$/check_mountpoints.sh $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_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_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_tcp
       command_line                  		$USER1$/check_tcp -H $HOSTADDRESS$ -p $ARG1$ $ARG2$
}

define command {
       command_name                  		check_tftp_connect
       command_line                  		$USER1$/check_tftp.sh --connect $ARG1$
}

define command {
       command_name                  		check_tftp_get
       command_line                  		$USER1$/check_tftp.sh --get $ARG1$ '$ARG2$' $ARG3$
}

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

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

define command {
       command_name                  		check_xi_deface
       command_line                  		$USER1$/check_http -H $HOSTADDRESS$ -r '$ARG1$' -u '$ARG2$' $ARG3$
}

define command {
       command_name                  		check_xi_domain_v2
       command_line                  		$USER1$/check_domain.php -d $ARG1$ $ARG2$ $ARG3$
}

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_ncpa_agent
       command_line                  		$USER1$/check_ncpa.py -H $HOSTADDRESS$ $ARG1$
}

define command {
       command_name                  		check_xi_nna
       command_line                  		$USER1$/check_nna.py -H $HOSTADDRESS$ -K $ARG1$ $ARG2$
}

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$ $ARG3$
}

define command {
       command_name                  		check_xi_service_ifoperstatusnag
       command_line                  		$USER1$/check_ifoperstatnag $ARG1$ $ARG2$ $HOSTADDRESS$
}

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_nagioslogserver
       command_line                  		$USER1$/check_nagioslogserver.php $ARG1$
}

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_status
       command_line                  		sudo /usr/local/nagiosxi/scripts/manage_services.sh status $ARG1$
}

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                  		check_xi_service_wmiplus_authfile
       command_line                  		$USER1$/check_wmi_plus.pl -H $HOSTADDRESS$ -A $ARG1$ -m $ARG2$ $ARG3$
}

define command {
       command_name                  		check_xi_sla
       command_line                  		$USER1$/check_xisla.php $ARG1$
}

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-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$" --hostdowntime=$HOSTDOWNTIME$
}

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$" --servicedowntime=$SERVICEDOWNTIME$
}

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
#
###############################################################################


Code: Select all

[[email protected] etc]# cat pnp/npcd.cfg
# NPCD.cfg - sample configuration file for PNPs NPCD
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License version 2 as 
# published by the Free Software Foundation;
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
#
# $Id: npcd.cfg-sample.in 440 2008-04-24 09:08:20Z hendrikb $

# Privilege Options

user = nagios
group = nagios


# Logging Options

# log_type - define if you want your logs to 
# 'syslog' or to a 'file'
#
# log_type = <value>
#

log_type = file
#log_type = syslog


# log_file - define a path to your logfile
# needed if 'log_type'='file'
#
# log_file = </path/to/logpath/filename>
#

log_file = /usr/local/nagios/var/npcd.log


# max_logfile_size - defines the maximum filesize (bytes)
# before the logfile will rotated.
#
# max_logfile_size = <value> (default 10Mbyte)
#

max_logfile_size = 10485760


# log_level - how much should we log?
#
# log_level = <integer value>
#
#  0 = No logging - except errors
#  1 = Small logging - some few more output
#  2 = More Logging (actual ALL logs)
# -1 = DEBUG Mode - ALL Logging and slower processing
#

log_level = 0


# NEEDED OPTIONS
# 
# perfdata_spool_dir - where we can find the 
# performance data files
#
# perfdata_spool_dir = </path/to/directory/>
#

perfdata_spool_dir = /usr/local/nagios/var/spool/perfdata/


# Execute following command for each found file
# in 'perfdata_spool_dir'
#
# perfdata_file_run_cmd = </path/to/command>
# 
# Must be executable by user/group from above
#
# perfdata_file_run_cmd = </path/to/filename>
#

perfdata_file_run_cmd = /usr/local/nagios/libexec/process_perfdata.pl


# perfdata_file_run_cmd_args (optional) 
#
# If you wish, you can apply more arguments to the
# perfdata_file_run_cmd
#
# Hint:
# NPCD will create a command line like this:
# '<perfdata_file_runc_cmd> <perfdata_file_runc_cmd_args> <filename_from_spool_dir>'
#

perfdata_file_run_cmd_args = -b


# npcd_max_threads - define how many parallel threads we 
# should start

npcd_max_threads = 5

# sleep_time - how many seconds should npcd wait between dirscans
#
# sleep_time = 15 (default)

sleep_time = 15


# EXPERIMENTAL
#
# use_load_threshold - enables/disables load watching
#
# use_load_threshold = <0 / 1> (default: 0)
#

#use_load_threshold = 0


# EXPERIMENTAL
#
# load_threshold - npcd won't start new threads
# if your system load is over this threshold
#
# load_threshold = <float value> (default: 10.0)
#
# Hint: Do not use "," as decimal delimeter
#

load_threshold = 10.0


# location of your pid file

#pid_file=/var/run/npcd.pid
pid_file=/usr/local/nagiosxi/var/subsys/npcd.pid


# We have to end with a newline
Last edited by avandemore on Wed Oct 19, 2016 2:59 pm, edited 1 time in total.
Reason: Added code blocks
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios xi graphing issue

Post by Box293 »

Can you please run these commands on your Nagios XI host and provide the output:

Code: Select all

ls -al /usr/local/nagios/var/spool/perfdata/ | wc -l
ls -al /usr/local/nagios/var/spool/xidpe/ | wc -l
If you get output of numbers in the thousands then I suspect this KB article will help resolve your issue:

https://support.nagios.com/kb/article.php?id=9
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi graphing issue

Post by vuduops »

I upgraded to latest nagios-xi 5.3 that seems to have resolved the issue.
vuduops
Posts: 81
Joined: Wed Sep 07, 2016 1:34 pm

Re: Nagios xi graphing issue

Post by vuduops »

Spoke too soon. I tried a fresh install and it failed. However I noticed this on the admin panel. Though the server is newly installed.


Component Status Action
Monitoring Engine

[nagios (pid 32440) is running...]

[Actions]

Performance Grapher

[NPCD running.]

[Actions]

Database Backend

[ndo2db (pid 15293) is running...]

[Actions]

Database Maintenance

[Last Run 2563d 5h 14m 14s Ago]

Command Subsystem

[Last Run 2563d 5h 13m 44s Ago]

Event Manager

[Last Run 17093d 17h 44m 18s Ago]

Feed Processor

[Last Run 2563d 5h 13m 44s Ago]

Report Engine

[Last Run 2563d 5h 13m 45s Ago]

Cleaner

[Last Run 2563d 5h 14m 14s Ago]

Nonstop Operations Manager

[Last Run 2563d 5h 14m 14s Ago]

System Statistics

[Last Updated 2563d 5h 13m 52s Ago]

-Krishna
You do not have the required permissions to view the files attached to this post.
avandemore
Posts: 1597
Joined: Tue Sep 27, 2016 4:57 pm

Re: Nagios xi graphing issue

Post by avandemore »

What do you mean by fresh install? The time stamps seem very off in your last post. It's recommended to be running off a completely clean OS, install Nagios and to not use the system for any other purpose. Can you upload your upgrade.log file?
Previous Nagios employee
Locked