This should immediately pick up all of the historical "add" jobs in the database.
Did the jobs disappear from the queue, if they'd already been added elsewhere?
Adam.
From: observium observium-bounces@observium.org On Behalf Of Lars Joergensen via observium Sent: 31 May 2022 12:45 To: Observium observium@observium.org Cc: Lars Joergensen DKLARJ@chr-hansen.com Subject: Re: [Observium] Pollers not picking up orders
So, in summary, and after reading your various comments, this is what the crontab on the poller looks like now:
# Run automated discovery of newly added devices every 5 minutes
*/5 * * * * observium /opt/observium/discovery.php -h new >> /dev/null 2>&1
# Run a complete discovery of all devices once every 6 hours
33 */6 * * * observium /opt/observium/observium-wrapper discovery >> /dev/null 2>&1
# Run multithreaded poller wrapper every 5 minutes
*/5 * * * * observium /opt/observium/observium-wrapper poller >> /dev/null 2>&1
Now we just wait for someone to add a device. Thank you for pointing us in the right direction.
Lars
-----Original Message----- From: observium <observium-bounces@observium.org mailto:observium-bounces@observium.org > On Behalf Of Lars Joergensen via observium Sent: 31. maj 2022 13:02 To: Observium <observium@observium.org mailto:observium@observium.org > Cc: Lars Joergensen <DKLARJ@chr-hansen.com mailto:DKLARJ@chr-hansen.com > Subject: Re: [Observium] Pollers not picking up orders
Hi Adam
We wee requests in the 'observium_actions' table.
We do not have the "discovery.php -new" cron job.
Lars
-----Original Message-----
From: observium < mailto:observium-bounces@observium.org observium-bounces@observium.org> On Behalf Of Adam Armstrong via observium
Sent: 24. maj 2022 16:52
To: 'Observium' < mailto:observium@observium.org observium@observium.org>
Cc: Adam Armstrong < mailto:adama@observium.org adama@observium.org>
Subject: Re: [Observium] Pollers not picking up orders
The adding-via-cronjob thing was only added recently, and is probably only used by a couple of people, so might well have design problems that we haven't found/fixed yet.
Mike will probably have questions about the setup.
Can you see the requests to add the devices in the `observium_actions` table in the database?
Do you have the discovery.php -new cron job? This is the process that runs the device_add jobs.
Adam.
-----Original Message-----
From: observium < mailto:observium-bounces@observium.org observium-bounces@observium.org> On Behalf Of Lars Joergensen via observium
Sent: 24 May 2022 15:38
To: Observium < mailto:observium@observium.org observium@observium.org>
Cc: Lars Joergensen < mailto:DKLARJ@chr-hansen.com DKLARJ@chr-hansen.com>
Subject: Re: [Observium] Pollers not picking up orders
Hi Martin
We do not need to add that large amount of devices, and people here prefer using the GUI. We can continue to add them to the main instance and then change poller afterwards.
It just seems counterintuitive that I'm able to choose a poller when adding a device when it doesn't work. I still suspect I'm missing a minor detail like a cronjob on the poller.
Lars
-----Original Message-----
From: observium < mailto:observium-bounces@observium.org observium-bounces@observium.org> On Behalf Of Martin via observium
Sent: 24. maj 2022 14:30
To: Lars Joergensen via observium < mailto:observium@observium.org observium@observium.org>
Cc: Martin < mailto:martin@moens.nu martin@moens.nu>
Subject: Re: [Observium] Pollers not picking up orders
Hi Lars,
We just use add_device.php from the CLI to add devices. Works without any issue. No idea if there might be issues with adding via GUI.
Are you using cli or gui to add devices?
After adding a new device, you should see in the devices table the poller_id set to the corret poller_id. That is enough for the poller to pick up that device.
Running about 10 pollers each with 100-300 devices. No cron jobs needed.
Regards,
Martin
On 24/05/2022 07:50, Lars Joergensen via observium wrote:
Hi Martin
Yeah, we have all that. Poller 2 works just fine, looking at around 300
devices at the moment. Only problem is we can't create new hosts in it. We have to create them on the main instance and then assign them to poller 2 afterwards. Not world-breaking, but people tend to forget.
I'm guessing there's supposed to be a cronjob on poller 2 picking up on
pending actions from the database?
Lars
-----Original Message-----
From: observium < mailto:observium-bounces@observium.org
observium-bounces@observium.org> On Behalf Of Martin
via observium
Sent: 20. maj 2022 04:47
To: mailto:observium@observium.org observium@observium.org
Cc: Martin < mailto:martin@moens.nu martin@moens.nu>
Subject: Re: [Observium] Pollers not picking up orders
Hi Lars,
I assume you have the config.php for your poller2 correct?
// define poller name
$config['poller_name'] = 'poller2';
And your definition in the database is also correct?
MariaDB [observium]> select poller_id, poller_name from pollers;
+-----------+--------------+
| poller_id | poller_name |
+-----------+--------------+
| 4 | poller2 |
+-----------+--------------+
This is basically all the config that is needed.
Regards,
Martin
On 19/05/2022 09:42, Lars Joergensen via observium wrote:
Hey list
I think we discussed this before, but I forget the answer and my
searching skills fail me.
We have several pollers returning data to a main instance. When we
create new devices and tell them to be handled by for example
"poller2", we can see that the order to do so is created in the
database. But it's never picked up by the poller. Is there a cronjob I
need to set up to fix this?
Best regards
*Lars*
Disclaimer: This e-mail, including any attachments, is for the
intended recipient only. If you have received this e-mail by mistake
please notify the sender immediately by return e-mail and delete this
e-mail and any attachments, without opening the attachments, from
your system. Access, disclosure, copying, distribution or reliance on
any part of this e-mail by anyone else is prohibited. This e-mail is
confidential and may be legally privileged. Chr. Hansen does not
represent and/or warrant that the information sent and/or received by
or with this e-mail is correct and does not accept any liability for
damages related thereto.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
chr-hansen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-ha
n
sen.com%7C1b819a17789a49a2783a08da3a0b08ff%7C89d9c49978c045d4a33fee27
5
c523232%7C0%7C0%7C637886116335232711%7CUnknown%7CTWFpbGZsb3d8eyJWIjoi
M
C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7
C
%7C&sdata=G110AetjCrvRQ%2BtDKxHpd4bVaR6H64QVOJbxZ2IOVT0%3D&re
s
erved=0
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpost
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpost
m
an.memetic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05
%
7C01%7Cdklarj%40chr-hansen.com%7C1b819a17789a49a2783a08da3a0b08ff%7C8
9
d9c49978c045d4a33fee275c523232%7C0%7C0%7C637886116335232711%7CUnknown
%
7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJ
X
VCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JLOot4xttJ7jh1VdQTAHEPuW2NQBUA85
y
O1z7bEODrA%3D&reserved=0
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostm
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostm
an.memetic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%
7C01%7Cdklarj%40chr-hansen.com%7C9e49c254d4274cce5c5d08da3d8134f7%7C89
d9c49978c045d4a33fee275c523232%7C0%7C0%7C637889922396186093%7CUnknown%
7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
VCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uuplp8C5zt5f%2FcDdfDmpXKbrGXFG8EA
%2Fc7Pe5lSo5tQ%3D&reserved=0
Disclaimer: This e-mail, including any attachments, is for the
intended recipient only. If you have received this e-mail by mistake
please notify the sender immediately by return e-mail and delete this
e-mail and any attachments, without opening the attachments, from your
system. Access, disclosure, copying, distribution or reliance on any
part of this e-mail by anyone else is prohibited. This e-mail is
confidential and may be legally privileged. Chr. Hansen does not
represent and/or warrant that the information sent and/or received by
or with this e-mail is correct and does not accept any liability for
damages related thereto.
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww
https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.
chr-hansen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-han
sen.com%7C9e49c254d4274cce5c5d08da3d8134f7%7C89d9c49978c045d4a33fee275
c523232%7C0%7C0%7C637889922396186093%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM
C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C
%7C&sdata=nao4lcHS4E2HccRcnAkhE15gVC7QzBWJZqfZSinVbZw%3D&reser
ved=0 _______________________________________________
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostm
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostm
an.memetic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%
7C01%7Cdklarj%40chr-hansen.com%7C9e49c254d4274cce5c5d08da3d8134f7%7C89
d9c49978c045d4a33fee275c523232%7C0%7C0%7C637889922396186093%7CUnknown%
7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJX
VCI6Mn0%3D%7C3000%7C%7C%7C&sdata=uuplp8C5zt5f%2FcDdfDmpXKbrGXFG8EA
%2Fc7Pe5lSo5tQ%3D&reserved=0
_______________________________________________
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.me metic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdkla rj%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33 fee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&am p;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.mem etic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdklar j%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33f ee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C& ;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0
________________________________
Disclaimer: This e-mail, including any attachments, is for the intended recipient only. If you have received this e-mail by mistake please notify the sender immediately by return e-mail and delete this e-mail and any attachments, without opening the attachments, from your system. Access, disclosure, copying, distribution or reliance on any part of this e-mail by anyone else is prohibited. This e-mail is confidential and may be legally privileged. Chr. Hansen does not represent and/or warrant that the information sent and/or received by or with this e-mail is correct and does not accept any liability for damages related thereto. https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.chr-h ansen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-hansen.com%7C6 983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33fee275c523232%7C0%7C0%7 C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JEtmYGAHEJXuDrK 0nYKzvPmrE1zAgzTmhACQxWglhgo%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.chr-ha nsen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-hansen.com%7C69 83e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33fee275c523232%7C0%7C0%7C 637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JEtmYGAHEJXuDrK0 nYKzvPmrE1zAgzTmhACQxWglhgo%3D&reserved=0
_______________________________________________
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.me metic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdkla rj%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33 fee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&am p;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.mem etic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdklar j%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33f ee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C& ;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0
_______________________________________________
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.me metic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdkla rj%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33 fee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&am p;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.mem etic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdklar j%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33f ee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C& ;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0
________________________________
Disclaimer: This e-mail, including any attachments, is for the intended recipient only. If you have received this e-mail by mistake please notify the sender immediately by return e-mail and delete this e-mail and any attachments, without opening the attachments, from your system. Access, disclosure, copying, distribution or reliance on any part of this e-mail by anyone else is prohibited. This e-mail is confidential and may be legally privileged. Chr. Hansen does not represent and/or warrant that the information sent and/or received by or with this e-mail is correct and does not accept any liability for damages related thereto. https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.chr-h ansen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-hansen.com%7C6 983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33fee275c523232%7C0%7C0%7 C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2lu MzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JEtmYGAHEJXuDrK 0nYKzvPmrE1zAgzTmhACQxWglhgo%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=https%3A%2F%2Fwww.chr-ha nsen.com%2Fen%2Flegal-notice&data=05%7C01%7Cdklarj%40chr-hansen.com%7C69 83e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33fee275c523232%7C0%7C0%7C 637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC4wLjAwMDAiLCJQIjoiV2luM zIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&sdata=JEtmYGAHEJXuDrK0 nYKzvPmrE1zAgzTmhACQxWglhgo%3D&reserved=0
_______________________________________________
observium mailing list
mailto:observium@observium.org observium@observium.org
https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.me metic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdkla rj%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33 fee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiM C4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C&am p;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0 https://eur03.safelinks.protection.outlook.com/?url=http%3A%2F%2Fpostman.mem etic.org%2Fcgi-bin%2Fmailman%2Flistinfo%2Fobservium&data=05%7C01%7Cdklar j%40chr-hansen.com%7C6983e1edb54e4e593fb308da42f519ab%7C89d9c49978c045d4a33f ee275c523232%7C0%7C0%7C637895917715043443%7CUnknown%7CTWFpbGZsb3d8eyJWIjoiMC 4wLjAwMDAiLCJQIjoiV2luMzIiLCJBTiI6Ik1haWwiLCJXVCI6Mn0%3D%7C3000%7C%7C%7C& ;sdata=rQnSe4pGIIRqnjTWWznFfP5jU5rEH1KDbZmzjW0iQgY%3D&reserved=0
_____
Disclaimer: This e-mail, including any attachments, is for the intended recipient only. If you have received this e-mail by mistake please notify the sender immediately by return e-mail and delete this e-mail and any attachments, without opening the attachments, from your system. Access, disclosure, copying, distribution or reliance on any part of this e-mail by anyone else is prohibited. This e-mail is confidential and may be legally privileged. Chr. Hansen does not represent and/or warrant that the information sent and/or received by or with this e-mail is correct and does not accept any liability for damages related thereto. https://www.chr-hansen.com/en/legal-notice