UPDATE:  This has been working the whole time. 

Observium is an incredible tool.  Kudos to everyone who works behind the scenes.

Thanks,
--
Tim


On Fri, Apr 19, 2024 at 1:11 PM Timothy Stoddard <testoddard@ualr.edu> wrote:
Can someone help get the unix-agent working?  I am trying to get Bind staticists into Observium.  I am really close, but still not success.  

Thanks in advance,
--
Tim


On Wed, Apr 10, 2024 at 1:58 PM Timothy Stoddard <testoddard@ualr.edu> wrote:
Yes, the agent is returning good stats to the Observium server.  I can telnet to the device on port 36602 and get output which does appear to change.  Our Observium server runs on FreeBSD and the device I am trying to get BIND stats from is also FreeBSD.  I had to work on the Observium-agent script to get as close as I can could to a linux server.  I will include what happens when I telnet to the device on 36602.  I am just trying to get the BIND data into Observium.  I do not need the hosts data like df, mounts, ps, mem, CPU, etc.  Observium already does a good job of collecting that data.  


observiumapp1:~$telnet 144.167.8.1 36602
Trying 144.167.8.1...
Connected to ns5.ualr.edu.
Escape character is '^]'.
<<<Observium>>>
Version: 1.1.0
AgentOS: linux
PluginsDirectory:
LocalDirectory: /usr/local/lib/observium_agent/local
AgentDirectory: /usr/local/etc/observium
<<<df>>>
zroot/ROOT/default  zfs      18581300 7297392 11283908    39%    /
devfs               devfs           1       0        1     0%    /dev
zroot/tmp           zfs      11284056     148 11283908     0%    /tmp
zroot/var/log       zfs      11300776   16868 11283908     0%    /var/log
zroot/usr/home      zfs      11284488     580 11283908     0%    /usr/home
zroot               zfs      11284004      96 11283908     0%    /zroot
zroot/var/audit     zfs      11284004      96 11283908     0%    /var/audit
zroot/var/mail      zfs      11284288     380 11283908     0%    /var/mail
zroot/var/crash     zfs      11284004      96 11283908     0%    /var/crash
zroot/var/tmp       zfs      11284020     112 11283908     0%    /var/tmp
zroot/usr/src       zfs      12135660  851752 11283908     7%    /usr/src
zroot/usr/ports     zfs      13663304 2379396 11283908    17%    /usr/ports
<<<mounts>>>
zroot/ROOT/default on / (zfs, local, noatime, nfsv4acls)
devfs on /dev (devfs)
zroot/tmp on /tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/var/log on /var/log (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/usr/home on /usr/home (zfs, local, noatime, nfsv4acls)
zroot on /zroot (zfs, local, noatime, nfsv4acls)
zroot/var/audit on /var/audit (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/mail on /var/mail (zfs, local, nfsv4acls)
zroot/var/crash on /var/crash (zfs, local, noatime, noexec, nosuid, nfsv4acls)
zroot/var/tmp on /var/tmp (zfs, local, noatime, nosuid, nfsv4acls)
zroot/usr/src on /usr/src (zfs, local, noatime, nfsv4acls)
zroot/usr/ports on /usr/ports (zfs, local, noatime, nosuid, nfsv4acls)
<<<ps>>>
(root,0,1424,0.0) [kernel]
(root,11688,1304,0.0) /sbin/init
(root,0,64,0.0) [clock]
(root,0,80,0.0) [crypto]
(root,0,48,0.0) [cam]
(root,0,16,0.0) [busdma]
(root,0,16,0.0) [mpt_recovery0]
(root,0,896,0.0) [zfskern]
(root,0,16,0.0) [rand_harvestq]
(root,0,48,0.0) [pagedaemon]
(root,0,16,0.0) [audit]
(root,0,64,400.0) [idle]
(root,0,688,0.0) [intr]
(root,0,48,0.0) [geom]
(root,0,16,0.0) [sequencer 00]
(root,0,16,0.0) [vmdaemon]
(root,0,80,0.0) [bufdaemon]
(root,0,16,0.0) [vnlru]
(root,0,16,0.0) [syncer]
(root,201660,171864,0.0) /usr/local/bin/vmtoolsd -c /usr/local/share/vmware-tools/tools.conf -p /usr/local/lib/open-vm-tools/plugins/vmsvc
(root,14404,4000,0.0) /sbin/devd
(root,229168,183060,0.0) /usr/sbin/bsnmpd -p /var/run/snmpd.pid
(root,55600,36452,0.0) /usr/local/bin/perl /usr/local/lib/webmin/miniserv.pl /usr/local/etc/webmin/miniserv.conf
(root,22604,10232,0.0) sshd: /usr/sbin/sshd [listener] 0 of 10-100 startups (sshd)
(root,12904,2672,0.0) /usr/sbin/cron -s
(ntpd,23412,8256,0.0) /usr/sbin/ntpd -g -x -G -p /var/db/ntp/ntpd.pid -c /etc/ntp.conf -f /var/db/ntp/ntpd.drift -g
(root,12864,3012,0.0) /usr/sbin/syslogd -s
(root,12972,2724,0.0) /usr/sbin/inetd -wW -C 60
(bind,231092,109836,0.0) /usr/local/sbin/named -u bind -c /usr/local/etc/namedb/named.conf
(root,14688,4272,0.0) /usr/local/bin/bash /usr/local/libexec/observium_agent
(root,13440,3100,0.0) ps ax -o user,vsz,rss,pcpu,command
(root,12736,2364,0.0) sed -e 1d -e s/ *\\([^ ]*\\) *\\([^ ]*\\) *\\([^ ]*\\) *\\([^ ]*\\) */(\\1,\\2,\\3,\\4) /
(root,12832,2372,0.0) /usr/libexec/getty Pc ttyv0
(root,12832,2368,0.0) /usr/libexec/getty Pc ttyv1
(root,12832,2372,0.0) /usr/libexec/getty Pc ttyv2
(root,12832,2372,0.0) /usr/libexec/getty Pc ttyv3
(root,12832,2368,0.0) /usr/libexec/getty Pc ttyv4
(root,12832,2372,0.0) /usr/libexec/getty Pc ttyv5
(root,12832,2368,0.0) /usr/libexec/getty Pc ttyv6
(root,12832,2372,0.0) /usr/libexec/getty Pc ttyv7
<<<mem>>>
<<<cpu>>>
        0
<<<uptime>>>
<<<lnx_if:sep(58)>>>
<<<tcp_conn_stats>>>
TIME_WAIT 43
ESTABLISHED 1
<<<md>>>
<<<diskstat>>>
1712774526
<<<kernel>>>
1712774526
<<<netctr>>>
1712774526
<<<ntp>>>
<<<app-bind-global>>>
req-in,QUERY:3109379
req-in,NOTIFY:46214
query-in,A:3009801
query-in,NS:6
query-in,SOA:1934
query-in,PTR:3379
query-in,TXT:16
query-in,AAAA:87757
query-in,SRV:1054
query-in,DNSKEY:2
query-in,SVCB:9
query-in,HTTPS:5421
ns-stats,IPv4 requests received:3134845
ns-stats,IPv6 requests received:20748
ns-stats,requests with EDNS(0) received:2762839
ns-stats,requests with TSIG received:32010
ns-stats,TCP requests received:262
ns-stats,TCP connection high-water:8
ns-stats,responses sent:3155410
ns-stats,truncated responses sent:10
ns-stats,responses with EDNS(0) sent:2762839
ns-stats,responses with TSIG sent:32010
ns-stats,queries resulted in successful answer:2992463
ns-stats,queries resulted in authoritative answer:2992691
ns-stats,queries resulted in non authoritative answer:115835
ns-stats,queries resulted in nxrrset:67666
ns-stats,queries resulted in SERVFAIL:670
ns-stats,queries resulted in NXDOMAIN:48397
ns-stats,queries caused recursion:51641
ns-stats,duplicate queries received:173
ns-stats,queries dropped:10
ns-stats,UDP queries received:3108864
ns-stats,TCP queries received:262
ns-stats,COOKIE option received:3
ns-stats,COOKIE - client only:3
ns-stats,queries triggered prefetch:4028
zone-maint,IPv4 notifies received:32010
zone-maint,IPv6 notifies received:14204
zone-maint,notifies rejected:16
zone-maint,IPv4 SOA queries sent:43096
zone-maint,IPv6 SOA queries sent:7252
zone-maint,IPv4 IXFR requested:35810
zone-maint,IPv6 IXFR requested:281
zone-maint,transfer requests succeeded:36091
<<<app-bind-default>>>
query-out,A:92934
query-out,NS:231
query-out,CNAME:520
query-out,SOA:85
query-out,PTR:58
query-out,TXT:7
query-out,AAAA:26556
query-out,SRV:455
query-out,DNSKEY:1
query-out,SVCB:1
query-out,HTTPS:5311
resolver,IPv4 queries sent:28102
resolver,IPv6 queries sent:98057
resolver,IPv4 responses received:27417
resolver,IPv6 responses received:96388
resolver,NXDOMAIN received:28789
resolver,FORMERR received:5
resolver,EDNS(0) query failures:5
resolver,truncated responses received:3466
resolver,query retries:25446
resolver,query timeouts:2356
resolver,IPv4 NS address fetches:5238
resolver,IPv6 NS address fetches:9864
resolver,IPv6 NS address fetch failed:5957
resolver,queries with RTT < 10ms:4787
resolver,queries with RTT 10-100ms:116617
resolver,queries with RTT 100-500ms:2385
resolver,queries with RTT 500-800ms:4
resolver,queries with RTT 800-1600ms:5
resolver,bucket size:128
resolver,REFUSED received:76
resolver,COOKIE send with client cookie only:124477
resolver,COOKIE sent with client and server cookie:1587
resolver,COOKIE replies received:2684
resolver,COOKIE client ok:2684
resolver,bad cookie rcode:10
resolver,priming queries:18
cache,A:6720
cache,NS:1832
cache,CNAME:2280
cache,SOA:2
cache,PTR:2
cache,TXT:4
cache,AAAA:4248
cache,SRV:11
cache,DS:142
cache,RRSIG:708
cache,NSEC:16
cache,DNSKEY:1
cache,HTTPS:83
cache,!A:64
cache,!NS:2
cache,!SOA:59
cache,!AAAA:911
cache,!HTTPS:850
cache,#A:87
cache,#NS:1
cache,#CNAME:5
cache,#AAAA:80
cache,#DS:14
cache,#RRSIG:27
cache,#NSEC:1
cache,#HTTPS:6
cache,#!NS:1
cache,#!SOA:3
cache,#!AAAA:437
cache,#!HTTPS:157
cache,NXDOMAIN:2742
Connection closed by foreign host.
observiumapp1:~$







Thanks Adam for the help.  The Observium product is wonderful and we have a professional subscription.

--
Tim


On Wed, Apr 10, 2024 at 12:15 PM Adam Armstrong via observium <observium@lists.observium.org> wrote:
Apps are usually automatically added to a device when the unix agent returns an applicable app section.

Is the agent correctly returning bind stats?

Theres a possibility that the bind agent module might not work with your version of bind, and it might require some extra setup in order to collect data.

Most of the apps are contributed and sometimes break when the software they’re collecting data from changes formats, which i think bind has done at least once.

Adam.



Sent from my iPhone

On 9 Apr 2024, at 17:21, Timothy Stoddard via observium <observium@lists.observium.org> wrote:


I forgot to also mention that after the very next polling cycle the button is rest back the off position. 

Thanks,
--
Tim


On Tue, Apr 9, 2024 at 10:53 AM Timothy Stoddard <testoddard@ualr.edu> wrote:
All,

I would like some help with the UNIX Agent.  I have been able to get the agent up and running on the device and listen on port 36602 which in turn the Observium server can communicate with.  I have UNIX Agent turned on in Obervium config and the server does show me a button to turn on "BIND" with a slider button.   When I slide the BIND button to ON and press save Observium says "No Application found on this device."  I have provided screenshots.  What am I missing because I am close to getting this working.  

I am running Observium 24.3.13396 (stable)

Thanks,
--
Tim
_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org
_______________________________________________
observium mailing list -- observium@lists.observium.org
To unsubscribe send an email to observium-leave@lists.observium.org