Thank you, I’ve done that and will check over the next 10-15 minutes for results.
More so, my question relates to the difference between agent and snmp.
For the apache and mysql for example, when adding the Linux server, I installed the agent, enabled the unix agent in the modules section.
I then put both apache and mysql scripts into:
/usr/lib/check_mk_agent/local/
and enabled them in the “application” section, then they started graphing. I didn’t use snmp extend for either apache or mysql, just let it go through the unix agent.
I did the same with memcached, but nan’s in the graph were present waiting over 30 minutes, even though the script works fine when run manually from the server.
I then thought maybe it needs to run through snmp (because the online docs just show the snmp example), which is why I then used snmp for it.
So my question is, do we use either the agent way, or the snmp extend way, or do we use both (or does both break things)?
The script has executable permission to world, so the agent and the snmp user would have access to it.
Isn’t there any logs for the poller I could look at?
I have run the poller manually with debug also, but don’t see anything in the output to indicate any problems (even though I don’t see apache, mysql, etc in there, I do see sections for “Start Alerts” etc.
If there was a log I could look at it would guide the way to the problem.
Wow, I hunted around and found the option in the GUI, ran it, downloaded and viewed in Notepad++. What a wealth of information in there, but I can’t see where things are going wrong.
I can see this part:
>> Runtime for poller module 'entity-physical': 0.0006 seconds with 960 bytes
#### Unload poller module entity-physical ####
RRD[update host.example.com/poller-perf-entity-physical.rrd N:0.00064492225646973 --daemon unix:/var/run/rrdcached/rrdcached.sock]
[RRD Disabled]Modules status: Global+ OS Device
#### Load poller module applications ####
SQL[SELECT * FROM `applications` WHERE `device_id` = '10']
apacheRRD[update host.example.com/app-apache-12.rrd N:7895:27183104:.770683:10383:.760378:2618.04:3443.08:U:U:3:0:1:3:14:0:0:0:0:0:235 --daemon unix:/var/run/rrdcached/rrdcached.sock]
[RRD Disabled]SQL[UPDATE `applications` set `app_state` ='UNKNOWN',`app_status` ='',`timestamp` =NOW() WHERE `app_id` = '13']
memcached()RRD[update host.example.com/app-memcached-13.rrd N:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U --daemon unix:/var/run/rrdcached/rrdcached.sock]
[RRD Disabled]SQL[UPDATE `applications` set `app_state` ='OK',`app_status` ='',`timestamp` =NOW() WHERE `app_id` = '57']
mysqlRRD[update host.example.com/app-mysql-57.rrd N:8388608:U:U:635867845:849306:13201:1848207:U:U:U:1719867:107316:10235656:22267569754:941150:660887:321390:3486350:31552972:1555:65536:64170:35:54:684:178:684:18176:0:0:0:33554432:33536864:500:35:607:0:4:401719:U:709585186:45024:141061830:1551584:0:0:0:27473281:0:3477116:8418489:26408:U:U:U:U:U:U:0:U:0:0:133:14:1857288:0:16618010:57:7802552027:197684008212:59234:768269:7670:2607:92286:0:27475471:860985:330 --daemon unix:/var/run/rrdcached/rrdcached.sock]
[RRD Disabled]RRD[update host.example.com/app-mysql-57-status.rrd N:U:U:U:U:U:U:U:U:U:U:U:U:U:U:U:1 --daemon unix:/var/run/rrdcached/rrdcached.sock]
[RRD Disabled]
>> Runtime for poller module 'applications': 0.0051 seconds with 67312 bytes
#### Unload poller module applications ####
which tells me it should be putting stuff in there but there’s also parts of “U:U:U” etc…
# cat /etc/snmp/snmpd.conf
# Change RANDOMSTRINGGOESHERE to your preferred SNMP community string
com2sec readonly default somestring
group MyROGroup v2c readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation Some location
syscontact Some Name <[email protected]>
#Distro Detection
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
#If you have 'dmidecode' installed on your host, you can add the following lines for additional hardware detection
#extend .1.3.6.1.4.1.2021.7890.2 hardware '/usr/sbin/dmidecode -s system-product-name'
#extend .1.3.6.1.4.1.2021.7890.3 manufacturer '/usr/sbin/dmidecode -s system-manufacturer'
#extend .1.3.6.1.4.1.2021.7890.4 serial '/usr/sbin/dmidecode -s system-serial-number'
extend memcached /etc/snmp/memcached