Elliot Finley | 6 Aug 01:02 2014
Picon

Items not populating from Item Prototype based on external check LLD rule

  5269:20140801:161033.196 Starting Zabbix Server. Zabbix 2.2.4 (revision 46772).
  5269:20140801:161033.197 ****** Enabled features ******
  5269:20140801:161033.197 SNMP monitoring:           YES
  5269:20140801:161033.197 IPMI monitoring:           YES
  5269:20140801:161033.197 WEB monitoring:            YES
  5269:20140801:161033.197 VMware monitoring:         YES
  5269:20140801:161033.197 Jabber notifications:      YES
  5269:20140801:161033.197 Ez Texting notifications:  YES
  5269:20140801:161033.197 ODBC:                      YES
  5269:20140801:161033.197 SSH2 support:              YES
  5269:20140801:161033.197 IPv6 support:              YES
  5269:20140801:161033.197 ******************************
  5269:20140801:161033.197 using configuration file: /etc/zabbix/zabbix_server.conf
  5269:20140801:161033.659 current database version (mandatory/optional): 02020000/02020001
  5269:20140801:161033.659 required mandatory version: 02020000


[root <at> zabbix-server zabbix]# mysql -u zabbix_user
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 1272
Server version: 10.0.11-MariaDB MariaDB Server

Copyright (c) 2000, 2014, Oracle, SkySQL Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

MariaDB [(none)]> \s
--------------
mysql  Ver 15.1 Distrib 10.0.11-MariaDB, for Linux (x86_64) using readline 5.1

Connection id:          1272
Current database:
Current user:           zabbix_user <at> localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server:                 MariaDB
Server version:         10.0.11-MariaDB MariaDB Server
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    latin1
Db     characterset:    latin1
Client characterset:    utf8
Conn.  characterset:    utf8
UNIX socket:            /var/lib/mysql/mysql.sock
Uptime:                 80 days 23 hours 58 min 11 sec

Threads: 1  Questions: 5186  Slow queries: 0  Opens: 109  Flush tables: 1  Open tables: 117  Queries per second avg: 0.000
--------------

MariaDB [(none)]>



[root <at> zabbix-server zabbix]# uname -a
Linux zabbix-server.xxxxxxxx.com 2.6.32-431.17.1.el6.x86_64 #1 SMP Wed May 7 23:32:49 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

The Discovery Rule looks like this:

Name: Interfaces
Type: External check
Key: ifDiscover.rb[{$SNMP_COMMUNITY},{HOST.CONN}]

The ifDiscover.rb script looks like this:

#!/usr/bin/ruby
require 'rubygems'
require 'snmp'

File.open("/usr/lib/zabbix/externalscripts/ifDiscover.log", mode="a") do |f| f.puts ARGV end

unless ARGV.length == 2
  $stderr.puts "ex: #{$PROGRAM_NAME} <community> <ipaddress>"
  exit
end

community = ARGV[0]
ip = ARGV[1]

puts "{"
puts %("data":[)


ifTable_columns = ["ifIndex", "ifDescr", "ifAlias"]
SNMP::Manager.open(:Host => ip, :Community => community) do |manager|
  manager.walk(ifTable_columns) do |row|
    if row[2].value.is_a?(String)
      ifAlias = row[2].value.gsub('"','')
    else
      ifAlias = ''
    end
    puts %({ "{#SNMPINDEX}":"#{row[0].value}", "{#IFDESCR}":"#{row[1].value}", "{#IFALIAS}":"#{ifAlias}" },)
  end
end

puts "]"
puts "}"

It generates output that looks like this:

{
"data":[
{ "{#SNMPINDEX}":"1", "{#IFDESCR}":"GigabitEthernet1/1", "{#IFALIAS}":"26135AccessData VRF->Base" },
{ "{#SNMPINDEX}":"2", "{#IFDESCR}":"GigabitEthernet1/2", "{#IFALIAS}":"26135AccessData Base->VRF" },
{ "{#SNMPINDEX}":"3", "{#IFDESCR}":"GigabitEthernet1/3", "{#IFALIAS}":"12255/42190 - Standard Plumbing VRF->Base" },
{ "{#SNMPINDEX}":"4", "{#IFDESCR}":"GigabitEthernet1/4", "{#IFALIAS}":"12255/42190 - Standard Plumbing Base->VRF" },
{ "{#SNMPINDEX}":"5", "{#IFDESCR}":"GigabitEthernet1/5", "{#IFALIAS}":"30242LarkinMort VRF->Base" },
{ "{#SNMPINDEX}":"6", "{#IFDESCR}":"GigabitEthernet1/6", "{#IFALIAS}":"30242LarkinMort Base->VRF" },
{ "{#SNMPINDEX}":"7", "{#IFDESCR}":"GigabitEthernet1/7", "{#IFALIAS}":"53085 - Ingram Medical VRF->Base" },
{ "{#SNMPINDEX}":"8", "{#IFDESCR}":"GigabitEthernet1/8", "{#IFALIAS}":"53085 - Ingram Medical Base->VRF" },
{ "{#SNMPINDEX}":"9", "{#IFDESCR}":"GigabitEthernet1/9", "{#IFALIAS}":"53085 - Ingram Medical Pharmacies VRF->Base" },
{ "{#SNMPINDEX}":"10", "{#IFDESCR}":"GigabitEthernet1/10", "{#IFALIAS}":"53085 - Ingram Medical Pharmacies Base->VRF" },
]
}

My Item Prototype(s) look like this:

Name: Incoming traffic on $1:$2
Type: SNMPv2 agent
Key: ifInOctets[{#IFDESCR},{#IFALIAS}]
SNMP OID: IF-MIB::ifHCInOctets.{#SNMPINDEX}
SNMP community: {$SNMP_COMMUNITY}
Port: <left blank>
Type of information: Numeric (unsigned)
Data type: Decimal
Units: bps
Use customer multiplier: <checked> 8
Store value: Delta (speed per second)
Enabled: <checked>

But the Items never populate.  I've had this exact same LLD rule/script/item-prototype running on FreeBSD 9.x/zabbix 2.2.2/Postgres 9.x and it runs just fine.  In fact, this was mostly just copy-n-pasted from that setup.

I've verified that the external script is in fact getting ran with the correct parameters.

Can anyone see any problem with this configuration?  This is driving me NUTS!

Any help would be appreciated.

Thanks in advance,
Elliot

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
G9 - Nuno Pereira | 5 Aug 14:46 2014
Picon

Acknowledge of triggers with dependencies

Hello,

 

My zabbix is at version 2.0.12.

 

I have 4 triggers (name it A1, A2, B1 and B2) that depend on 2 other triggers (name it A3 and A3), in pairs: triggers A1 and A2 depend of A3, and triggers B1 and B2 depend of B3.

To note that the expression of the trigger A3 is something like

 

“expression of trigger A1” and “expression of trigger A2”

 

This means that it is in PROBLEM when both triggers A1 and A2 are in PROBLEM.

The configuration of the trigger B3 is similar to the one of A3: B3 is in PROBLEM if both triggers B1 and B2 are in PROBLEM.

 

Also it’s worth to mention that all of these triggers have associated actions that send messages every 6 hours if they’re not acknowledged.

 

 

In the weekend, all the triggers activated and I acknowledged the triggers A3 and B3, as they were the only ones visible in the dashboard.

The problem was that the other 4 triggers kept sending their messages every 6 hours, as they weren’t acknowledged, even if they depended on triggers that were acknowledged.

 

Was that supposed to happen? Is this a bug? Or have I something misconfigured?

 

Thank you,

 

Nuno Pereira

 

G9Telecom

We are a Deloitte Technology Fast 500 EMEA 2013
Tel.:  +351 707 45 00 00        Fax:  +351 707 45 00 09

Web: www.g9telecom.pt

------------------------------------------------

AVISO:

Esta mensagem (incluindo quaisquer anexos) pode conter informação confidencial para uso exclusivo do destinatário. Se não for o destinatário pretendido, não deverá usar, distribuir ou copiar este e-mail. Se recebeu esta mensagem por engano, por favor informe o emissor e elimine-a imediatamente.

Obrigado.

------------------------------------------------

 

Attachment (smime.p7s): application/pkcs7-signature, 8 KiB
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Klemens Kittan | 5 Aug 13:52 2014
Picon

Hosts with multiple IP address

Hello,

our servers have at least two network interfaces. One for the management
and ssh and one where the services are offered. Now I would like to
monitor both interfaces, for example via ping. 

If I want to monitor both interfaces on the servers, can I create a 
template with two items icmpping[{HOST.CONN1}] and
icmpping[{HOST.CONN2}]? And how can I refer in the triggers on these
items? 

I have the same problem when I monitor our Web server with
net.tcp.service[http, 80]. On the web server, we have multiple IP-based
virtual host configured. I would like to monitor all network interfaces,
whether the port is in mode listen.

Is there a solution?

Gruß,
Klemens

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Adrian Sevcenco | 1 Aug 10:25 2014
Picon
Picon

zabbix install :: web :: configure db connection - test failed

Hi! I try to install zabbix and i followed the steps on
https://www.zabbix.org/wiki/InstallOnCentOS_RHEL

at the step 3 from the web page access i have a failed test connection:
Error connecting to database: Access denied for user
'zabbix' <at> 'localhost' (using password: YES)

even if i can do
[root <at> monitor zabbix]# mysql -u zabbix -p
mysql> \s
--------------
mysql  Ver 14.14 Distrib 5.1.73, for redhat-linux-gnu (x86_64) using
readline 5.1

Connection id:          2060
Current database:
Current user:           zabbix <at> localhost
SSL:                    Not in use
Current pager:          stdout
Using outfile:          ''
Using delimiter:        ;
Server version:         5.1.73 Source distribution
Protocol version:       10
Connection:             Localhost via UNIX socket
Server characterset:    utf8
Db     characterset:    utf8
Client characterset:    latin1
Conn.  characterset:    latin1
UNIX socket:            /var/lib/mysql/mysql.sock
Uptime:                 145 days 23 hours 19 sec

Threads: 1  Questions: 36995  Slow queries: 0  Opens: 3480  Flush
tables: 1  Open tables: 64  Queries per second avg: 0.2

the password (DBPassword) was set up in zabbix_server.conf in quotes ''
SELinux is disabled

Any idea why i cannot connect to the database from the web page?
Thanks!
Adrian

Attachment (smime.p7s): application/pkcs7-signature, 3074 bytes
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Adam Carrgilson (NBI | 30 Jul 12:02 2014
Picon

Zabbix Hostname Macro in SNMP OID

Hi all,

I'm running Zabbix 2.2.5 and I'm trying to create a template with a couple of SNMP items.

I want to setup my template such that it uses the hostname macro within the SNMP OID, however no matter which macro I try and use I can't seem to get Zabbix to correctly resolve it.

An example of the SNMP OID I'm trying to query is: NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"racka1-exhaust_temperature\"

Where the parent host of the item has the hostname: racka1

Where I manually specify the OID already including the hostname as above to test, I successfully return a value.

When I set the OID as follows, I get problems: NET-SNMP-EXTEND-MIB::nsExtendOutputFull.\"{HOST.NAME1}-exhaust_temperature\"

 

I've checked through the list of macro's and their usage locations but I can't judge which might cover SNMP OIDs, without looking through the source code.

I've got logging turned up to 4 in an effort to try and understand what is going on however I'm compounded in my testing by Zabbix setting the item to Not Supported and even though this check is set to run every 60 seconds, once I change the OID, I can't get Zabbix to quickly requeue the changed items.

Is it even possible to use a macro in a SNMP OID? If so which should I be using to mirror the hostname?

Many Thanks,
Adam.

 

---

Adam Carrgilson

Linux Support & Development

E Adam.Carrgilson <at> nbi.ac.uk

T +44 1603 450161

W jic.ac.uk ifr.ac.uk tgac.ac.uk tsl.ac.uk

 

Computing and Information Services Dept

NBI Partnership Ltd

Norwich Research Park

Norwich NR4 7UH

 

The NBI Partnership Ltd provides non-scientific services to the Institute of Food Research, the John Innes Centre, The Genome Analysis Centre and The Sainsbury Laboratory

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
ajh4711 | 29 Jul 15:36 2014
Picon

More than 100 rows in planetext

Hi,

I have a table configured there is showing a logfile with the planetext 100 rows of the logfile.
Now I like to show more rows.

is this possible?
The configurator tells me, that just 100 rows are possible.
But in the case of a logfile this don’t make sense.

thanks a lot for ideas :-)

cheers ajh

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
Dimitar Georgievski | 28 Jul 17:02 2014
Picon

Zabbix LDAP integration

Hi,

I am having hard time with Zabbix 2.2.4 integration with Open 389 Directory. I've tried using a dedicated account for the binding with no success. The same account is used successfully with another application that requires LDAP integration. 

The available documentation is sketchy. Has anyone succeeded with the integration with some of the Open Source LDAP servers? I would love to hear your experience.

Zabbix server is running on CentOS 6.5 and PHP Ldap module is installed on this server 

Thanks

Dimitar
------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Raimonds Cicans | 26 Jul 22:09 2014
Picon

Host dependencies & triggers

Hello.

How to implement host dependencies by using triggers?

I understand this in simple cases: when self made trigger on one
host depends on self made trigger on other.

But I want to make all triggers (from templates, self made etc)
on one host depend on single trigger from other

Is this right way to do:
1) Configuration->Hosts
2) Click on "Triggers" for required host
3) Select all triggers
4) Choose "Mass update" and press "Go"
5) Click "Replace dependencies"
6) Add required trigger
7) Click "Save"

If this is right way to do, then how to deal on third step with
triggers which have grayed check box?

Raimonds Cicans

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
Nilsen, Bob | 25 Jul 20:16 2014

Disable interpolation for trapper items, or all items?

Hey Zabbix people,

 

Is there a way to disable interpolation on trapper items?

 

We are in the habit of submitting values for items via zabbix_sender on an ad hoc basis (like during a load test run)… but we get a lot of complaints about the “misleading” interpolated lines on graphs during periods where no new values have arrived.

 

Any way to turn this interpolation off?

 

Thanks,

 

Bob Nilsen

Performance Lab | Product & Technology | Sabre

mobile: 214.727.3110

 

------------------------------------------------------------------------------
Infragistics Professional
Build stunning WinForms apps today!
Reboot your WinForms applications with our WinForms controls. 
Build a bridge from your legacy apps to the future.
http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Thiago Parolin | 24 Jul 13:17 2014
Picon

winexe hangs on execution with zabbix

I created a simple script with winexe to perform commands on a vista machine.
This script,
for now, has only one command: "cmd /c echo OK".
It usually works when calling it from the command line (including execution by the User zabbix) but when I run it by the shortcut on the map of zabbix, it executes the command (ps aux shows it) but does not give any feedback, nor log and the zabbix gives timeout.
I've already set the timeout to 30 on the server, and also have set up sudo for zabbix.
Anyone have any idea what might be happening?
Thanks.


Thiago
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Eric Rochow | 17 Jul 17:56 2014
Picon

Any way to diff web pages?

Hello,

 

I am trying to figure out a way to perform a web check and trigger an alert if content in the site has changed. It doesn’t matter to me how Zabbix determines if the page changed (comparing file size or a hash of the page is fine). This web site is hosted by a third party, so I do not have access to the server. Are there any built-in mechanisms to accomplish this? As far as I can tell, web checks only determine availability and latency to the page.

 

Best Regards,

 

Eric Rochow

------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users

Gmane