Ad Widget

Collapse

OpenBSD - network traffic

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • yuni
    Junior Member
    • Sep 2005
    • 1

    #1

    OpenBSD - network traffic

    I'm running zabbix_agentd 1.1.alpha12 on OpenBSD 3.7. Many items are marked as unsupported, like netloadin15[ep1], system[uptime] or proc_cnt[httpd]. Other items works just fine, like diskfree[/] or check_service[http]. Does anybody have similar problems ?

    001108:20050908:131629 Parameter [system[procrunning]] is not supported by agent on host
    001108:20050908:131629 Parameter [disk_write_ops15[hdb]] is not supported by agent on host
    001108:20050908:131629 Parameter [io[disk_rio]] is not supported by agent on host
    001108:20050908:131629 Parameter [net[listen_80]] is not supported by agent on host
    001108:20050908:140000 Parameter [netloadin15[ep1]] is not supported by agent on host
  • edeus
    Senior Member
    • Aug 2005
    • 120

    #2
    I am running FreeBSD and have had the same problem. It appears, from searching through these forums, that many of the items are targetted more for linux than the BSD's.

    Check out the bottom of the item's page in the Documentation for a fairly comprehensive list of what OS supports what item's.

    It is very easy to add in extra parameters though. I have added in disk IO, net usage, process monitoring, via custom zabbix_agent commands in the conf file. Read through the excellent docs for more info.

    Comment

    • edeus
      Senior Member
      • Aug 2005
      • 120

      #3
      Also:

      in regards to your items that arent supported:

      I had to use SNMP monitoring for the net & disk items (using deltas).
      And I used a simple "ps auwx" command to get process information (mainly just how many instances of what were used.

      My extra commands as follows (might be useful):
      Code:
      UserParameter=net[fxp0in],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifInOctets.1
      UserParameter=net[bge0in],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifInOctets.2
      UserParameter=net[bge1in],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifInOctets.3
      UserParameter=net[plip0in],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifInOctets.4
      UserParameter=net[lo0in],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifInOctets.5
      UserParameter=net[fxp0out],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifOutOctets.1
      UserParameter=net[bge0out],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifOutOctets.2
      UserParameter=net[bge1out],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifOutOctets.3
      UserParameter=net[plip0out],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifOutOctets.4
      UserParameter=net[lo0out],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost IF-MIB::ifOutOctets.5
      UserParameter=cpu[idle],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost UCD-SNMP-MIB::ssCpuIdle.0 
      UserParameter=areca[fanspeed],/usr/local/sbin/areca-info 1
      UserParameter=areca[hd1],/usr/local/sbin/areca-info 2
      UserParameter=areca[hd2],/usr/local/sbin/areca-info 3
      UserParameter=areca[hd3],/usr/local/sbin/areca-info 4
      UserParameter=areca[hd4],/usr/local/sbin/areca-info 5
      UserParameter=areca[hd5],/usr/local/sbin/areca-info 6
      UserParameter=areca[hd6],/usr/local/sbin/areca-info 7
      UserParameter=areca[hd7],/usr/local/sbin/areca-info 8
      UserParameter=areca[hd8],/usr/local/sbin/areca-info 9
      UserParameter=areca[status],/usr/local/sbin/areca-info 10
      UserParameter=healthd[temp0],/usr/local/bin/healthdc | cut -f 2
      UserParameter=healthd[temp1],/usr/local/bin/healthdc | cut -f 3
      UserParameter=healthd[temp2],/usr/local/bin/healthdc | cut -f 4
      UserParameter=healthd[fan0],/usr/local/bin/healthdc | cut -f 5
      UserParameter=healthd[fan1],/usr/local/bin/healthdc | cut -f 6
      UserParameter=healthd[fan2],/usr/local/bin/healthdc | cut -f 7
      UserParameter=healthd[volt0],/usr/local/bin/healthdc | cut -f 8
      UserParameter=healthd[volt1],/usr/local/bin/healthdc | cut -f 9
      UserParameter=healthd[volt2],/usr/local/bin/healthdc | cut -f 10
      UserParameter=healthd[volt3],/usr/local/bin/healthdc | cut -f 11
      UserParameter=healthd[volt4],/usr/local/bin/healthdc | cut -f 12
      UserParameter=healthd[volt5],/usr/local/bin/healthdc | cut -f 13
      UserParameter=healthd[volt6],/usr/local/bin/healthdc | cut -f 14
      UserParameter=snmpget[tcp_count],/usr/local/bin/snmpget -v 1 -c i-public -Oqv localhost .1.3.6.1.2.1.6.9.0
      UserParameter=proc_count[mysqld],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c mysqld
      UserParameter=proc_count[httpd],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c httpd
      UserParameter=proc_count[amavisd],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c amavisd
      UserParameter=proc_count[clamd],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c clamd
      UserParameter=proc_count[smtpd],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c smtpd
      UserParameter=proc_count[zabbix_agentd],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c zabbix_agentd
      UserParameter=proc_count[perl],/bin/ps -uaxw | /usr/bin/grep -v grep | /usr/bin/grep -c perl
      UserParameter=proc_count[all],/bin/ps -uaxw | /usr/bin/grep -v ]$ | /usr/bin/grep -c $
      UserParameter=snmpget[disk1_bytesread],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIONRead.1
      UserParameter=snmpget[disk1_byteswrite],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIONWritten.1
      UserParameter=snmpget[disk1_requestsread],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOReads.1
      UserParameter=snmpget[disk1_requestswrite],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOWrites.1
      UserParameter=snmpget[disk1_load1],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA1.1
      UserParameter=snmpget[disk1_load5],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA5.1
      UserParameter=snmpget[disk1_load15],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA15.1
      UserParameter=snmpget[disk2_bytesread],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIONRead.2
      UserParameter=snmpget[disk2_byteswrite],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIONWritten.2
      UserParameter=snmpget[disk2_requestsread],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOReads.2
      UserParameter=snmpget[disk2_requestswrite],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOWrites.2
      UserParameter=snmpget[disk2_load1],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA1.2
      UserParameter=snmpget[disk2_load5],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA5.2
      UserParameter=snmpget[disk2_load15],/usr/local/bin/snmpget -v2c -c i-public -Oqv localhost diskIOTable.diskIOEntry.diskIOLA15.2
      P.S. SNMP monitoring isnt as good as direct /proc or other on linux, if someone has any better way of monitoring the system under BSD please let me know. I find the SNMP stats not particularly accurate but more an approximation.
      Last edited by edeus; 14-09-2005, 02:03.

      Comment

      Working...