currently i am using nagios core 4.0.8 for monitering activemq_watch.
And perfomance data is empty.
when i go to service and click on graph option it gives me this error.
Please check the documentation for information about the following error.
XML file "/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.xml" not found. <a href="http://docs.pnp4nagios.org/faq/6">Read FAQ online</a>
But when i see in my nagios server this file is already there.
graph for nagios
Re: graph for nagios
Could you post the permissions on that file?
When ever a file is present but Nagios says it ain't, permissions is the first thing to check.
When ever a file is present but Nagios says it ain't, permissions is the first thing to check.
Be sure to check out the Knowledgebase for helpful articles and solutions!
Re: graph for nagios
i just made that change. now i am able to see the file.
but still not able to moniter by graph
and my xml file is
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_byssh_activemq_watch</TEMPLATE>
<RRDFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.rrd
</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>queue</NAME>
<LABEL>queue1</LABEL>
<UNIT>queues</UNIT>
<ACT>10</ACT>
<WARN>200</WARN>
<WARN_MIN/>
<WARN_MAX>499</WARN_MAX>
<WARN_RANGE_TYPE/>
<CRIT>500</CRIT>
<CRIT_MIN/>
<CRIT_MAX/>
<CRIT_RANGE_TYPE>outside</CRIT_RANGE_TYPE>
<MIN>0</MIN>
<MAX/>
</DATASOURCE>
<RRD>
<RC>0</RC>
<TXT>successful updated</TXT>
</RRD>
<NAGIOS_AUTH_HOSTNAME>hostname</NAGIOS_AUTH_HOSTNAME>
<NAGIOS_AUTH_SERVICEDESC>svc-activemq_watch</NAGIOS_AUTH_SERVICEDESC>
<NAGIOS_CHECK_COMMAND>
check_byssh_activemq_watch!200!500!queuename
</NAGIOS_CHECK_COMMAND>
<NAGIOS_DATATYPE>SERVICEPERFDATA</NAGIOS_DATATYPE>
<NAGIOS_DISP_HOSTNAME>hostname</NAGIOS_DISP_HOSTNAME>
<NAGIOS_DISP_SERVICEDESC>svc-activemq_watch</NAGIOS_DISP_SERVICEDESC>
<NAGIOS_HOSTNAME>hostname</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_MULTI_PARENT/>
<NAGIOS_PERFDATA>queue1=10queues;200;500;0;</NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.rrd
</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>
check_byssh_activemq_watch!200!500!queuename
</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>svc-activemq_watch</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEPERFDATA>queue1=10queues;200;500;0;</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>CRITICAL</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1459872483</NAGIOS_TIMET>
<NAGIOS_XMLFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.xml
</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
so is my performance data wrong.
let me send you a pic.
but still not able to moniter by graph
and my xml file is
<NAGIOS>
<DATASOURCE>
<TEMPLATE>check_byssh_activemq_watch</TEMPLATE>
<RRDFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.rrd
</RRDFILE>
<RRD_STORAGE_TYPE>SINGLE</RRD_STORAGE_TYPE>
<RRD_HEARTBEAT>8460</RRD_HEARTBEAT>
<IS_MULTI>0</IS_MULTI>
<DS>1</DS>
<NAME>queue</NAME>
<LABEL>queue1</LABEL>
<UNIT>queues</UNIT>
<ACT>10</ACT>
<WARN>200</WARN>
<WARN_MIN/>
<WARN_MAX>499</WARN_MAX>
<WARN_RANGE_TYPE/>
<CRIT>500</CRIT>
<CRIT_MIN/>
<CRIT_MAX/>
<CRIT_RANGE_TYPE>outside</CRIT_RANGE_TYPE>
<MIN>0</MIN>
<MAX/>
</DATASOURCE>
<RRD>
<RC>0</RC>
<TXT>successful updated</TXT>
</RRD>
<NAGIOS_AUTH_HOSTNAME>hostname</NAGIOS_AUTH_HOSTNAME>
<NAGIOS_AUTH_SERVICEDESC>svc-activemq_watch</NAGIOS_AUTH_SERVICEDESC>
<NAGIOS_CHECK_COMMAND>
check_byssh_activemq_watch!200!500!queuename
</NAGIOS_CHECK_COMMAND>
<NAGIOS_DATATYPE>SERVICEPERFDATA</NAGIOS_DATATYPE>
<NAGIOS_DISP_HOSTNAME>hostname</NAGIOS_DISP_HOSTNAME>
<NAGIOS_DISP_SERVICEDESC>svc-activemq_watch</NAGIOS_DISP_SERVICEDESC>
<NAGIOS_HOSTNAME>hostname</NAGIOS_HOSTNAME>
<NAGIOS_HOSTSTATE>UP</NAGIOS_HOSTSTATE>
<NAGIOS_HOSTSTATETYPE>HARD</NAGIOS_HOSTSTATETYPE>
<NAGIOS_MULTI_PARENT/>
<NAGIOS_PERFDATA>queue1=10queues;200;500;0;</NAGIOS_PERFDATA>
<NAGIOS_RRDFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.rrd
</NAGIOS_RRDFILE>
<NAGIOS_SERVICECHECKCOMMAND>
check_byssh_activemq_watch!200!500!queuename
</NAGIOS_SERVICECHECKCOMMAND>
<NAGIOS_SERVICEDESC>svc-activemq_watch</NAGIOS_SERVICEDESC>
<NAGIOS_SERVICEPERFDATA>queue1=10queues;200;500;0;</NAGIOS_SERVICEPERFDATA>
<NAGIOS_SERVICESTATE>CRITICAL</NAGIOS_SERVICESTATE>
<NAGIOS_SERVICESTATETYPE>HARD</NAGIOS_SERVICESTATETYPE>
<NAGIOS_TIMET>1459872483</NAGIOS_TIMET>
<NAGIOS_XMLFILE>
/usr/local/pnp4nagios/var/perfdata/hostname/svc-activemq_watch.xml
</NAGIOS_XMLFILE>
<XML>
<VERSION>4</VERSION>
</XML>
</NAGIOS>
so is my performance data wrong.
let me send you a pic.
Re: how to enable service perfdata
bash-4.1$ cat /usr/local/pnp4nagios/var/service-perfdata | grep mq
DATATYPE::SERVICEPERFDATA TIMET::1461267002 HOSTNAME::hostname SERVICEDESC::svc-activemq_watch SERVICEPERFDATA:: SERVICECHECKCOMMAND::check_byssh_activemq_watch!500!750!queue name HOSTSTATE::UP HOSTSTATETYPE::HARD SERVICESTATE::UNKNOWN SERVICESTATETYPE::HARD
DATATYPE::SERVICEPERFDATA TIMET::1461267002 HOSTNAME::hostname SERVICEDESC::svc-activemq_watch SERVICEPERFDATA:: SERVICECHECKCOMMAND::check_byssh_activemq_watch!500!750!queue name HOSTSTATE::UP HOSTSTATETYPE::HARD SERVICESTATE::UNKNOWN SERVICESTATETYPE::HARD
Re: graph for nagios
As PNP4Nagios isn't a product of ours, we aren't able to provide support for it. Your best bet is taking a look at their documentation (https://docs.pnp4nagios.org/pnp-0.6/start) or contacting them for support.
Former Nagios Employee
Re: graph for nagios
What is the command line associated with the activemq_watch command? When you run that command with those arguments in the command line do you see performance data? (Information after a | )?
Mike
Mike
Re: graph for nagios
OP, just checking if you have any Nagios related questions that we could assist with. As for pnp4nagios, rkennedy is correct, that is not our product so it would be better to post those questions to their forum, although we'll certainly try to be helpful here - thanks -
Be sure to check out the Knowledgebase for helpful articles and solutions!