![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
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?
/Martin Snygg
![](https://secure.gravatar.com/avatar/9113800bbd271c46f4585a9549d85c15.jpg?s=120&d=mm&r=g)
Show us your config in /etc/cron.d/observium /Markus
2016-12-02 9:39 GMT+01:00 Martin Snygg Martin.Snygg@trosa.se:
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?
/Martin Snygg
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
Here it is:
33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 16 >> /dev/null 2>&1
# Run housekeeping script daily for syslog, eventlog and alert log 13 5 * * * root /opt/observium/housekeeping.php -sel # Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data 47 4 * * * root /opt/observium/housekeeping.php -rptb
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Markus Klock Skickat: den 2 december 2016 09:44 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
Show us your config in /etc/cron.d/observium /Markus
2016-12-02 9:39 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se >:
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? /Martin Snygg _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/9113800bbd271c46f4585a9549d85c15.jpg?s=120&d=mm&r=g)
very strange. Have you perhaps knowingly edited /opt/observium/includes/defaults.inc.php ? poller-wrapper.py should not try to use instances default. /Markus
2016-12-02 9:46 GMT+01:00 Martin Snygg Martin.Snygg@trosa.se:
Here it is:
33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 16 >> /dev/null 2>&1
# Run housekeeping script daily for syslog, eventlog and alert log 13 5 * * * root /opt/observium/housekeeping.php -sel # Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data 47 4 * * * root /opt/observium/housekeeping.php -rptb
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Markus Klock Skickat: den 2 december 2016 09:44 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
Show us your config in /etc/cron.d/observium /Markus
2016-12-02 9:39 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto: Martin.Snygg@trosa.se >:
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? /Martin Snygg _______________________________________________ observium mailing list observium@observium.org <mailto:observium@observium.org> http://postman.memetic.org/cgi-bin/mailman/listinfo/observium <
http://postman.memetic.org/cgi-bin/mailman/listinfo/observium%3E
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
Nope, no edits to that file (knowingly).
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Markus Klock Skickat: den 2 december 2016 10:32 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
very strange. Have you perhaps knowingly edited /opt/observium/includes/defaults.inc.php ? poller-wrapper.py should not try to use instances default. /Markus
2016-12-02 9:46 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se >:
Here it is: 33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 16 >> /dev/null 2>&1 # Run housekeeping script daily for syslog, eventlog and alert log 13 5 * * * root /opt/observium/housekeeping.php -sel # Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data 47 4 * * * root /opt/observium/housekeeping.php -rptb Martin Snygg -----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org mailto:observium-bounces@observium.org ] För Markus Klock Skickat: den 2 december 2016 09:44 Till: Observium Network Observation System <observium@observium.org mailto:observium@observium.org > Ämne: Re: [Observium] No polling Show us your config in /etc/cron.d/observium /Markus 2016-12-02 9:39 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se <mailto:Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se > >: 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? /Martin Snygg _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org <mailto:observium@observium.org mailto:observium@observium.org > http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium <http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium >
_______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
Found this in the GUI, pretty sure I havnt seen it before. (Im rolling on 0.16.11.8276) Is that conflicting with my cron job in some way?
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Martin Snygg Skickat: den 2 december 2016 10:39 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
Nope, no edits to that file (knowingly).
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Markus Klock Skickat: den 2 december 2016 10:32 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
very strange. Have you perhaps knowingly edited /opt/observium/includes/defaults.inc.php ? poller-wrapper.py should not try to use instances default. /Markus
2016-12-02 9:46 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se >:
Here it is: 33 */6 * * * root /opt/observium/discovery.php -h all >> /dev/null 2>&1 */5 * * * * root /opt/observium/discovery.php -h new >> /dev/null 2>&1 */5 * * * * root /opt/observium/poller-wrapper.py 16 >> /dev/null 2>&1 # Run housekeeping script daily for syslog, eventlog and alert log 13 5 * * * root /opt/observium/housekeeping.php -sel # Run housekeeping script daily for rrds, ports, orphaned entries in the database and performance data 47 4 * * * root /opt/observium/housekeeping.php -rptb Martin Snygg -----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org mailto:observium-bounces@observium.org ] För Markus Klock Skickat: den 2 december 2016 09:44 Till: Observium Network Observation System <observium@observium.org mailto:observium@observium.org > Ämne: Re: [Observium] No polling Show us your config in /etc/cron.d/observium /Markus 2016-12-02 9:39 GMT+01:00 Martin Snygg <Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se <mailto:Martin.Snygg@trosa.se mailto:Martin.Snygg@trosa.se > >: 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? /Martin Snygg _______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org <mailto:observium@observium.org mailto:observium@observium.org > http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium <http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium >
_______________________________________________ observium mailing list observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
_______________________________________________ observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
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 :(
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 Ä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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov http://observium.org
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
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 Ä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 http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
-- Mike Stupalov http://observium.org
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
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
I can run poller.php ok but not 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
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
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
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
root@delling:/opt/observium# svn status /opt/observium M /opt/observium/alerts.php ? /opt/observium/netdisco.txt ? /opt/observium/newhosts.txt M /opt/observium/poller-wrapper.py ? /opt/observium/serversvscope.txt ? /opt/observium/smslarm.sh ? /opt/observium/test.txt ? /opt/observium/wlctest.sh ? /opt/observium/wmincbuild.sh
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov Skickat: den 2 december 2016 13:51 Till: observium@observium.org Ämne: Re: [Observium] No polling
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 mailto: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 mailto: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 mailto: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 mailto:observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/3bbbd945c333b8013d0dfa23058f65b9.jpg?s=120&d=mm&r=g)
On 02.12.16 15:55, Martin Snygg wrote:
root@delling:/opt/observium# svn status /opt/observium M /opt/observium/alerts.php ? /opt/observium/netdisco.txt ? /opt/observium/newhosts.txt M /opt/observium/poller-wrapper.py
as I thought.. local changes.
svn revert /opt/observium/poller-wrapper.py
? /opt/observium/serversvscope.txt ? /opt/observium/smslarm.sh ? /opt/observium/test.txt ? /opt/observium/wlctest.sh ? /opt/observium/wmincbuild.sh
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov Skickat: den 2 december 2016 13:51 Till: observium@observium.org Ämne: Re: [Observium] No polling
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 mailto: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 mailto: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> <mailto: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 mailto:observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
![](https://secure.gravatar.com/avatar/76180ecd3f6a80a1fe9f761bcc344d9c.jpg?s=120&d=mm&r=g)
Yup, that did the trick. Tank you Mike and have a great weekend!
Martin Snygg
-----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov Skickat: den 2 december 2016 14:03 Till: Observium Network Observation System observium@observium.org Ämne: Re: [Observium] No polling
On 02.12.16 15:55, Martin Snygg wrote:
root@delling:/opt/observium# svn status /opt/observium M /opt/observium/alerts.php ? /opt/observium/netdisco.txt ? /opt/observium/newhosts.txt M /opt/observium/poller-wrapper.py
as I thought.. local changes.
svn revert /opt/observium/poller-wrapper.py
? /opt/observium/serversvscope.txt ? /opt/observium/smslarm.sh ? /opt/observium/test.txt ? /opt/observium/wlctest.sh ? /opt/observium/wmincbuild.sh Martin Snygg -----Ursprungligt meddelande----- Från: observium [mailto:observium-bounces@observium.org] För Mike Stupalov Skickat: den 2 december 2016 13:51 Till: observium@observium.org mailto:observium@observium.org Ämne: Re: [Observium] No polling 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 mailto:observium@observium.org mailto:observium@observium.org mailto: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 mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto: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 mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto: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 mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org mailto:observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
participants (3)
-
Markus Klock
-
Martin Snygg
-
Mike Stupalov