On 02.12.16 15:34, Martin Snygg wrote:
I think it stopped working when I did a svn switch from trunk to stable, now im back on trunk but that didnt help. Did import argparse manually, returned nothing and same error when running ./poller-wrapper.php
show svn status also:

svn status /opt/observium

I have complete same env  and not have any errors.

I can run poller.php ok but not poller-wrapper.php

I hope it's just a typo, we not have poller-wrapper.php :)

#####  Software versions  #####

 o OS                   Linux 4.4.0-51-generic [amd64] (Ubuntu 16.04)
 o Apache               2.4.18
 o PHP                  7.0.8-0ubuntu0.16.04.3 (OPcache: DISABLED)
 o Python               2.7.12
 o MySQL                5.7.16-0ubuntu0.16.04.1 (extension: mysqli 5.0.12-dev)
 o SNMP                 NET-SNMP 5.7.3
 o RRDtool              1.5.5 (rrdcached 1.5.5: unix:/var/run/rrdcached.sock)

#####  Memory Limit  #####

 o PHP                  Unlimited

#####  MySQL mode  #####

 o MySQL

#####  Charset info  #####

 o PHP                  UTF-8
 o MySQL                utf8

#####  Timezones info  #####

 o Date                 Friday, 02-Dec-16 13:28:21 CET
 o PHP                  +01:00
 o MySQL                +01:00

Martin Snygg

-----Ursprungligt meddelande-----
Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov
Skickat: den 2 december 2016 12:21
Till: Observium Network Observation System <observium@observium.org>
Ämne: Re: [Observium] No polling

On 02.12.16 14:12, Martin Snygg wrote:


	Nope, all I get is:
	
	Traceback (most recent call last):
	  File "./poller-wrapper.py", line 309, in <module>
	    if instances_count > 1 and instance_number >= 0 and (instance_number < instances_count):
	NameError: name 'instances_count' is not defined
	
	Argparse is installed, I did svn up but still get the same error :(

Hrm, complete impossible..

Which system/python version(s)?

./discovery.php -VV

You use trunk or stable train of observium?

Try to import argparse manually:

$ python
import argparse
(normally should not write anything) 

	
	
	Martin Snygg
	
	-----Ursprungligt meddelande-----
	Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov
	Skickat: den 2 december 2016 11:56
	Till: Observium Network Observation System <observium@observium.org> <mailto:observium@observium.org> 
	Ämne: Re: [Observium] No polling
	
	On 02.12.16 11:39, Martin Snygg wrote:

		Hi
		
		I just discovered that my install stopped polling since a couple of days, I think it´s because a svn switch I did. When running the poller-wrapper.py I get the following:
		
		 Traceback (most recent call last):
		  File "./poller-wrapper.py", line 306, in <module>
		    if instances_count > 1 and instance_number >= 0 and (instance_number < instances_count):
		NameError: name 'instances_count' is not defined
		
		Where do I define "instance_count" and how?

	when you run
	
	./poller-wrapper.py
	
	you not get such error(s)?
	
	WARNING: missing the argparse python module:
	 ...
	
	This possible only if you not have python-argparse module (and ignored this warning).
	
	P.S. Will fixed in latest revision, do svn up.
	

		
		/Martin Snygg
		
		_______________________________________________
		observium mailing list
		observium@observium.org <mailto:observium@observium.org> 
		http://postman.memetic.org/cgi-bin/mailman/listinfo/observium

	
	
	
	--
	Mike Stupalov
	http://observium.org
	
	
	_______________________________________________
	observium mailing list
	observium@observium.org <mailto:observium@observium.org> 
	http://postman.memetic.org/cgi-bin/mailman/listinfo/observium









-- 
Mike Stupalov
http://observium.org