Missing RRD Files
Posted: Wed Jun 17, 2015 10:26 am
Hi All,
I'm using Nagios core 3.4.1 and pnp4nagios 0.6 and having some issues getting some custom checks to graph.
For example, here is my services definition file:
I'm applying all these services to my hostgroup "ofdc_cisco" and want to graph them with pnp4nagios.
When I go to the location of an individual host that inherits these checks from the host_group, i only see _HOST_.rrd and _HOST.xml. There is no .rrd file for any of the services.
#:/var/lib/pnp4nagios/perfdata/sw01.xxxxxxx.xxxxxxxx.xxx
_HOST_.rrd _HOST_.xml
Where is the rrd data files for my checks being stored at?
Here is my commands.cfg:
Evertything is green in nagios and I can pull up the default nagios graph and it's showing the data but I'm having issues with trying to get it into pnp4nagios.
Any help would be appreciated.
Thanks!
I'm using Nagios core 3.4.1 and pnp4nagios 0.6 and having some issues getting some custom checks to graph.
For example, here is my services definition file:
Code: Select all
define service {
hostgroup_name ofdc_cisco
service_description Uptime
check_command check_snmp!-C nocmrtg -o .1.3.6.1.2.1.1.3.0
use generic-service
notification_interval 0;
}
define service {
hostgroup_name ofdc_cisco
service_description Port 4 Status
check_command check_snmp!-C nocmrtg -o .1.3.6.1.2.1.31.1.1.1.1.10104
use generic-service
notification_interval 0;
}
define service {
hostgroup_name ofdc_cisco
service_description Port 5 Status
check_command check_snmp!-C nocmrtg -o .1.3.6.1.2.1.31.1.1.1.1.10105
use generic-service
notification_interval 0;
}
define service {
hostgroup_name ofdc_cisco
service_description VLAN 1
check_command check_snmp!-C nocmrtg -o .1.3.6.1.2.1.47.1.2.1.1.2.2
use generic-service
notification_interval 0;
}
define service {
hostgroup_name ofdc_cisco
service_description port traffic Gi0/2
check_command check_snmp_int.pl!-C nocmrtg -2 -r -n GigabitEthernet0/2 -k -y -w 0,0 -c 0,0
use generic-service
notification_interval 0;
}When I go to the location of an individual host that inherits these checks from the host_group, i only see _HOST_.rrd and _HOST.xml. There is no .rrd file for any of the services.
#:/var/lib/pnp4nagios/perfdata/sw01.xxxxxxx.xxxxxxxx.xxx
_HOST_.rrd _HOST_.xml
Where is the rrd data files for my checks being stored at?
Here is my commands.cfg:
Code: Select all
# 'notify-host-by-email' command definition
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" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
}
# 'notify-service-by-email' command definition
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$\n" | /usr/bin/mail -s "** $NOTIFICATIONTYPE$ Service Alert: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
################### added by AK for pnp4nagios#######################
define command{
command_name process-host-perfdata
command_line /usr/lib/pnp4nagios/libexec/process_perfdata.pl -d HOSTPERFDATA
}
define command {
command_name process-service-perfdata
command_line /usr/lib/pnp4nagios/libexec/process_perfdata.pl
}
###################################################################################
define command{
command_name check_snmp
command_line $USER1$/check_snmp -H $HOSTADDRESS$ $ARG1$
}
define command{
command_name check_snmp_int.pl
command_line $USER1$/check_snmp_int.pl -H $HOSTADDRESS$ $ARG1$
}
Any help would be appreciated.
Thanks!