Issues adding Graph Template
Posted: Sun May 12, 2013 9:28 am
Hi,
We are going through the early stages of rolling out Nagios XI across the organisation.
V: Nagios XI 2012R1.7
I am trying to add the mysqld plugin and template and understand how they link together. I keep ending up with a graph that is working but it always uses the "default graph"
PLugin and graph: http://exchange.nagios.org/directory/Pl ... ld/details
I have downloaded the plugin from: http://exchange.nagios.org/components/c ... 4&cf_id=24 and loaded it into the plugins.
I have created a command :
command name: check_mysqld
command line: $USER1$/check_mysqld.pl -H $HOSTADDRESS$ -u nagios -p $ARG1$ -a uptime,threads_connected,questions,slow_queries,open_tables -w ',,,,' -c ',,,,' -A $USER21$
A service has been created called: mysqld
Config name: mysqld
Description: MySQLD
Ceck Command: check_mysqld
active is ticked.
I have downloaded the graph template and installed it via the nagios xi UI. check_mysqld.php from http://exchange.nagios.org/components/c ... 4&cf_id=36
Now. I have only used this via a passive check. So i have created a new NRDS configuration with the following:
command[check_mysqld]=/usr/local/nagios/libexec/check_mysqld.pl -H localhost -u nagios -p xxxx -F /etc/my.cnf -a uptime,threads_connected,questions,slow_queries,open_tables -w ",,,," -c ",,,," -A threads_running,innodb_row_lock_time_avg
Then added the item through inconfigured objects.
I can get data capturing however it always uses the default graph.
I have checked /usr/local/nagios/share/perfdata/HOST/
and a RRD and xml file are being created.
as you can see from the contents of the xml is is using the check_dummy template.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_dummy</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/templ01-database-01.templeandwebster.com.au/check_mysqld.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>threads_running</NAME>
<LABEL>threads_running</LABEL>
<UNIT></UNIT>
<ACT>2</ACT>
<WARN></WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT></CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN></MIN>
I'm sure its something small or easy that I'm missing so any help would be great.
We are going through the early stages of rolling out Nagios XI across the organisation.
V: Nagios XI 2012R1.7
I am trying to add the mysqld plugin and template and understand how they link together. I keep ending up with a graph that is working but it always uses the "default graph"
PLugin and graph: http://exchange.nagios.org/directory/Pl ... ld/details
I have downloaded the plugin from: http://exchange.nagios.org/components/c ... 4&cf_id=24 and loaded it into the plugins.
I have created a command :
command name: check_mysqld
command line: $USER1$/check_mysqld.pl -H $HOSTADDRESS$ -u nagios -p $ARG1$ -a uptime,threads_connected,questions,slow_queries,open_tables -w ',,,,' -c ',,,,' -A $USER21$
A service has been created called: mysqld
Config name: mysqld
Description: MySQLD
Ceck Command: check_mysqld
active is ticked.
I have downloaded the graph template and installed it via the nagios xi UI. check_mysqld.php from http://exchange.nagios.org/components/c ... 4&cf_id=36
Now. I have only used this via a passive check. So i have created a new NRDS configuration with the following:
command[check_mysqld]=/usr/local/nagios/libexec/check_mysqld.pl -H localhost -u nagios -p xxxx -F /etc/my.cnf -a uptime,threads_connected,questions,slow_queries,open_tables -w ",,,," -c ",,,," -A threads_running,innodb_row_lock_time_avg
Then added the item through inconfigured objects.
I can get data capturing however it always uses the default graph.
I have checked /usr/local/nagios/share/perfdata/HOST/
and a RRD and xml file are being created.
as you can see from the contents of the xml is is using the check_dummy template.
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_dummy</TEMPLATE>
<RRDFILE>/usr/local/nagios/share/perfdata/templ01-database-01.templeandwebster.com.au/check_mysqld.rrd</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>threads_running</NAME>
<LABEL>threads_running</LABEL>
<UNIT></UNIT>
<ACT>2</ACT>
<WARN></WARN>
<WARN_MIN></WARN_MIN>
<WARN_MAX></WARN_MAX>
<WARN_RANGE_TYPE></WARN_RANGE_TYPE>
<CRIT></CRIT>
<CRIT_MIN></CRIT_MIN>
<CRIT_MAX></CRIT_MAX>
<CRIT_RANGE_TYPE></CRIT_RANGE_TYPE>
<MIN></MIN>
I'm sure its something small or easy that I'm missing so any help would be great.