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 5 >> /dev/null 2>&1 0 1 * * * /opt/observium/add_servers_nightly.sh >/dev/null 2>&1
On Fri, Dec 19, 2014 at 10:16 AM, Spencer Gaw spencerg@frii.net wrote:
Post your observium cron(s).
Regards,
SG
On 12/19/2014 6:58 AM, Darian Jimenez wrote:
You know I left this yesterday for the cron job to do the polling but for some reason none of the new 40 devices were polled. I come in this morning and it says that this device has not been polled.
On Thu, Dec 18, 2014 at 5:42 PM, Darian Jimenez <darian929@gmail.com mailto:darian929@gmail.com> wrote:
Yea that's what I think I will do... Just let the cron jobs do discovery and polling Sent from my iPhone > On Dec 18, 2014, at 5:39 PM, Adam Armstrong <adama@memetic.org <mailto:adama@memetic.org>> wrote: > > Adding a device already triggers a partial discovery, and we have discovery and polling cronned, so its not always worth doing it manually, especially not automated like this. > > I'd say just script adding the hosts and then either discover all of them at the end, or let the crown jobs do it. > > Adam. > > Sent with AquaMail for Android > http://www.aqua-mail.com > > >> On 18 December 2014 16:22:24 Spencer Gaw <spencerg@frii.net <mailto:spencerg@frii.net>> wrote: >> >> 1) add_device.php already supports reading from a filename, so why the >> script? >> 2) xargs could easily do what you want if option 1 isn't viable for >> whatever reason >> 3) Why not let polling and discovery happen via cron? >> >> Regards, >> >> SG >> >> On 12/18/2014 3:15 PM, Darian Jimenez wrote: >> > the scripts are in /opt/observium >> > >> > I also tried changing it to be in the same path as the script. >> > >> > basically this. >> > >> > while read host >> > do >> > echo $host >> > .add_device.php $host >> > .discovery.php -h $host >> > .poller.php -h $host >> > done < Servers/dailyserverlist.txt >> > >> > >> > Same result. >> > >> > On Thu, Dec 18, 2014 at 4:40 PM, Tristan Rhodes >> > <tristanrhodes@weber.edu <mailto:tristanrhodes@weber.edu> <mailto:tristanrhodes@weber.edu <mailto:tristanrhodes@weber.edu>>> wrote: >> > >> > What directory are you running this script from? There may be >> > relative references in those scripts. >> > >> > >> > On Thursday, December 18, 2014, Darian Jimenez >> > <darian929@gmail.com <mailto:darian929@gmail.com> <mailto:darian929@gmail.com <mailto:darian929@gmail.com>>> wrote: >> > >> > Hello, >> > >> > I have a quick simple script to go through a text file and >> > add_device, discovery it and poll it. However the only portion >> > that works fine is the add_device. >> > >> > the discovery nor poller.php is actually doing what it should. >> > however If I run the command separately outside of the script >> > it discovers the device as well as polls it. >> > >> > the host name is right because I'm using echo within the >> > script to show the name for each loop. >> > >> > If i use ./disocvery.php -h new that works fine and I guess >> > it's a work around, however ./poller.php -h new does not work. >> > >> > below is the script I'm running. >> > >> > while read host >> > do >> > echo $host >> > /opt/observium/add_device.php $host >> > /opt/observium/discovery.php -h $host >> > /opt/observium/poller.php -h $host >> > done < Servers/dailyserverlist.txt >> > >> > >> > >> > -- >> > *Tristan Rhodes* >> > Network Engineer >> > Weber State University >> > 801.626.8549 <tel:801.626.8549> <tel:801.626.8549 <tel:801.626.8549>> >> > >> > >> > >> > _______________________________________________ >> > 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 >> > >> > >> > >> > _______________________________________________ >> > observium mailing list >> > observium@observium.org <mailto:observium@observium.org> >> > 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 > > > _______________________________________________ > observium mailing list > observium@observium.org <mailto:observium@observium.org> > http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium
observium mailing list observium@observium.org http://postman.memetic.org/cgi-bin/mailman/listinfo/observium