/srv/irclogs.ubuntu.com/2019/03/12/#ubuntu-server.txt

=== ykarel|away is now known as ykarel
=== ykarel is now known as ykarel|afk
=== ykarel|afk is now known as ykarel
Deihmosi notice ubuntu server updates packages unlike debian that provides just security updates06:15
Deihmosisn't package updates risky?06:16
andolThere is always a tradeoff.06:26
andol...and Debian too provides some updates which aren't neccesarily security fixes.06:27
lotuspsychjeDeihmos: not updating system is a risk06:45
lordievaderGood morning07:19
=== ykarel is now known as ykarel|lunch
=== ykarel|lunch is now known as ykarel
kstenerudcpaelzer: for https://code.launchpad.net/~kstenerud/ubuntu/+source/php7.0/+git/php7.0/+merge/364241 what did you mean by generated code? What should I be comparing?08:38
cpaelzerkstenerud: when you have e.g. dh_xyz --arg in d/rules that (especially in your case) gets generated into code in the post/pre-rm/inst files08:48
cpaelzerkstenerud: https://wiki.debian.org/MaintainerScripts08:48
cpaelzerdepending on your preference you have two ways to "inspect" them to do absolutely what you expect them to do08:49
cpaelzer#1 is to check the built packes locally - e.g. sbuild and then extract the debs with dpkg -x ... to take a look08:49
cpaelzer#2 is to check the real thing you use for testing (from a PPA for example) you can check for (recently) installed packages in /var/lib/dpkd/info/<pkgname>.*08:50
cpaelzerkstenerud: I prefer #2 for most cases but both work08:50
cpaelzerkstenerud: background - just because you said "restart-after-upgrade" that might not always do the right thing (it should, but then murphy)08:51
cpaelzerkstenerud: so I got used to check indirect changes to the maintainer scripts in what was generated08:51
cpaelzerkstenerud: does the above make sense for your current case?08:51
kstenerudyes I think so. I'll need to look at it to be sure08:52
cpaelzerok, let me know if you need more breadcrumbs or a HO to calrify08:53
kstenerudcpaelzer: actually, I can't find any reference to restart-after-upgrade, even in the PPA that has it. /var/lib/dpkg/info has not a single file with that text in it10:21
kstenerudI tried running fakeroot debian/rules build manually, but it fails on a patchfile10:22
kstenerudso it looks like the builder does something different, because the PPA did build successfully10:23
kstenerudsimilarly, dpkg-buildpackage doesn't generate anything with restart-after-upgrade10:24
cpaelzerkstenerud: that is correct10:28
cpaelzerkstenerud: it is not gogin to be passed literally10:28
cpaelzerkstenerud: when you tell dh_install init --restart-after-upgrade then instead of prerm:stop + postinst:start it will only to postinst:restart10:29
cpaelzerkstenerud: fortunately the dh_* tools leave headers10:29
cpaelzerso e.g. dh_installinit says something like "added by dh_installinit ..." before the snippet10:29
cpaelzerin these snippets after some checks the final calls to "actually do" things will most likely start like "service ... ", "invoke.rc ...", or "systemctl ..."10:30
kstenerudcpaelzer: None of the postrm and such files contain service, invoke.rc, or systemctl10:35
cpaelzerkstenerud: can you point me at your PPA again pleas?10:37
kstenerudhttps://launchpad.net/~kstenerud/+archive/ubuntu/xenial-php7.0-restart-after-upgrade-181903310:37
kstenerudActually, there's no such fpm module for php in xenial...10:38
cpaelzerkstenerud: php7.0-fpm is already the newest version (7.0.33-0ubuntu0.16.04.2)10:39
=== ykarel is now known as ykarel|lunch
kstenerudI get:10:40
kstenerudE: Package 'php7.0-fpm' has no installation candidate10:40
cpaelzerkstenerud: apt update after new container maybe?10:40
cpaelzerkstenerud: http://paste.ubuntu.com/p/6CFVNmCSZs/10:42
cpaelzerlooks exactly as I'd hope it would be10:42
cpaelzerkstenerud: but please take the chance to find it on your own so that you know where/how next time10:42
cpaelzerthis is a copy of /var/lib/dpkg/info/php7.0-fpm.* as in-archive vs your PPA10:42
cpaelzerkstenerud: once you had the time to digest this let me know if you are fine now or if you need more10:43
kstenerudis there a tool you're using to download these files?10:43
kstenerudor do I have to spin up containers to get them?10:44
cpaelzerkstenerud: I used containers, but as I mentioned before you can also just get the .debs and use dpkg -x10:51
cpaelzerkstenerud: when looking at your PPA you can always go to "View Package details" and then flip-open the package of your interest. When you click on one of the builds you will getto e.g. https://launchpad.net/~kstenerud/+archive/ubuntu/xenial-php7.0-restart-after-upgrade-1819033/+build/1646827610:52
cpaelzerand there the debs are with proper links (e.g. you can wget them)10:53
=== ykarel|lunch is now known as ykarel
kstenerudcpaelzer: OK, I'm still not clear on how the service will be down during the upgrade, or how this patch fixes it. It looks like it's just checking to see if a param is "configure" or "abort-upgrade", and then checks for files, then sets an action name based on that. But what does it all mean?12:16
cpaelzerkstenerud: this calls for a HO to help you removing some of the maintainer-script-mist12:36
cpaelzerkstenerud: I'll wait in the standup for when you are ready12:36
kstenerudok12:36
coreycbjamespage: sahid: looks like we're almost done with dependency updates for stein. I'll plan to pick up on what's left during my afternoon today.12:47
Ussatno nagios4 ?13:44
leftyfbdoesn't look like it13:46
leftyfboh wait, it's there. In 18.10 and newer13:47
leftyfbhttps://packages.ubuntu.com/cosmic/nagios413:47
Ussatok13:47
=== Kamilion|ZNC is now known as Kamilion
=== slashd- is now known as slashd
fooRepeat in case someone happens to know: I'm looking for a monitoring system that has an API that I can feed an IP address (publicly accessible) and it can "onboard" that IP and then monitor. Specifically, I'd like it to determine how it can be monitored - eg. what ports are open, what ports share a banner, is it pingable - then share back when the system goes offline via an API and via whatever it14:37
foooriginally found to be "onboarded." Maybe with a confidence score. eg. if 6 ports are open, and it's pingable, and everything goes unresponsive... it's likely it's all offline. Or, if 6 ports open and it's not pingable and 1 port closes, then there "may be" an issue. Does nagios or zenoss or something else happen to provide something like this? Or do we need to roll our own system14:37
=== ykarel is now known as ykarel|away
lordcirthfoo, so, you want it to auto-scan the IP, and monitor everything it sees?14:49
foolordcirth: yes, and then report back if something goes down, with a % of what went down based off ports, etc. Not sure how granular I can get with different systems but I suspect something out there allows for such - hence my ask. Thank you for clarifying14:51
lordcirthI'm sure there is such a tool, but I don't know off the top of my head14:55
nacccockpit ?14:57
tomreynpandora fms has auto discovery15:04
tomreynalso opennms and netxms15:05
tomreynzabbix, too, and observium. and probably a lot more.15:07
* RoyK prefers zabbix15:14
RoyKfoo: keep in mind that most of these tools requires an agent installed on the monitored OS. Some will work with snmp too, but then, you'll need to allow snmp access to the system and setup what to monitor15:23
=== xMopx- is now known as xMOpx
=== xMOpx is now known as xMopx
footomreyn: opennms, haven't heard of that in a while.16:09
tomreynfoo: it's still being developed, and in use by some larger corps16:13
footomreyn: yup, I've seen it, may have used it at one point, it skipped my mind. Appreciate you sharing16:13
fooWhat I'm not sure on is exact process for discovery16:14
fooBut I can investigate further16:14
tomreynas Roy said, most use snmp.16:14
tomreynbut there are also some which use common ports, such as ssh, telnet (yes!), rdp, etc.16:15
fooThe challenge is I don't know anything about the end system... but it sounds like this isn't exactly a unique problem16:18
fooI'll have to look more into snmp and how that works16:18
tomreyna former employer of mine decided to move from a stone age nagios distribution to an SaaS monitoring solution which does SNMP discovery, from the internet. they do offer their own snmp (and  more protocols) discovery gateway you can install on your network, as a blackbox, so to have a somewhat controlled way into your network. but it's effectively still a backdoor, seeing how many devices don't support setting fine grained permissions via16:19
tomreynsnmp.16:19
tomreynthe most crazy management decision i've ever seen so far.16:19
tomreynso you do want to host monitoring yourself, at least the main system.16:20
footomreyn: I'm ok with a third party doing stuff (even if it's locally), if anything I'd want an API to connect into to feed an API, webhook to report to, etc.16:22
tomreynfoo: are you referring to a single system to be monitored?16:22
footomreyn: thousands via Internet16:22
fooall we have is IP, nothing else.16:22
fooand nothing else to be set up (at least, at this point in time)16:23
tomreynare your systems all on the internet then?16:23
tomreynare all your systems on the internet then?16:23
tomreyn^ grammar fixed ;)16:23
foo(thank you, grandma's life could have been saved) not necessarily, we mainly want to track whether or not a location's internet went down (well, I'm saying "we" but I'm asking on behalf of someone else)16:24
tomreynare those many different / separate locations / networks then?16:25
tomreynnot like many devices in one place / network?16:26
tomreynso more like IoT rather than 3 data centers?16:26
RoyKbetter use an agent - you'll get access to more data16:28
RoyKnot all services etc export their stuff to snmp16:28
footomreyn: yes16:29
fooRoyK: yes, that's on the radar at some point... that requires a ton of other stuff, moving parts, etc, so we're curious on what we could get with just an IP16:29
RoyKand snmp is quite old and personally, I don't use it for other stuff than network devices, UPSes etc16:29
RoyKfoo: moving parts?16:30
tomreynfoo: yes, you'll want some kind of an agent, and a canary like system.16:31
tomreyn...running on a well connected (multi-homed) and highly reliable (HA) central system16:32
fooRoyK: yes, politics, talking with different companies, security procedures, etc.16:33
fooAgent is ideal, but wanted to start the level before that first... which is not an agent16:33
tomreynabout service discovery, IMO the best approach is really regular network scans. i don't know if any of these monitoring systems do this, and if they do, how they do it, and how they handle findings.16:33
footomreyn: ... that's my exact challenge. I can build this whole thing to do exactly what I want. But I equally don't want to re-invent the wheel.16:34
fooTo recap: scan an IP and see "what is open" / trackable... eg. TCP response, banners, pingable IP, etc... then monitor that hourly or such and report back % likely down (based off how many "trackable elements")16:34
tomreyni bet none of them have a really good implementation for this, so you'll want to choose a fast ipv6 (ideally also ipv4) network scanner which scans lists of addresses for at least tcp (ideally more), and does service detection as well.16:35
tomreynyou'd need to feed those findings into a montoring system and do anomaly detection along the way, so as to detect relevant changes to existing systems, systems added, systems removed.16:37
tomreynand probably someone to review most but not all of these findings.16:37
footomreyn: agreed. So "trackable elements" would be ping, TCP open ports (with associated services if possible), with a backend system to do anomaly detection on a given time schedule... mhmmm.16:38
fooI'm leaning towards building this if possible16:39
RoyKfoo: what sort of systems will you be monitoring?16:39
RoyKwindows? mac? linux? something else?16:39
fooRoyK: the most important thing is we're actually monitoring the whole network. Whatever we get from an IP address is more of an indication of "if this network online" or offline16:44
RoyKperhaps https://nav.uninett.no/ ?16:45
RoyKit's used in large scale across scandinavian universities and colleges16:46
RoyKit's not superfancy, but it works well16:46
RoyKwe have a few hundred devices in out installation at work16:47
RoyKwe're using zabbix in addition to that, for more detailed service monitoring etc16:47
fooRoyK: interesting, I hadn't considered two services - one for discovery, and one for the actual monitoring of what was found... hmmm, that's interesting if I had two APIs. Thank you for sharing that16:51
fooRoyK: PS. Recently heard Sinne Eeg at a house concert, a Scandanavian Jazz Vocalist... she's awesome.16:51
RoyKfoo: most systems don't cover the whole picture, but using more of them may be a good idea, even if they overlap a bit16:53
fooRoyK: yeah, that's not a bad idea at all, really appreciate it16:53
* RoyK has been working with system monitoring for 20 years or so and rather likes it ;)16:54
fooRoyK: Thank you for sharing! I used nagios many years back and am just about wrapping my head around the latest... as long as things have an API I can pull/put from, I can definitely connect the dots and logic16:55
RoyKI've been using nagios as well and learned to dislike it quite a lot ;)16:55
foohaha16:55
fooRoyK: sounds like you like Zabbix, I think I looked at that once long ago16:56
RoyKv4 came out some months back - seems good16:56
fooRad. I wonder if I can do https://nav.uninett.no/ for discovery + zabbix, hmm16:57
RoyKbut they still store passwords in unsalted md5 hashes in the db if you use the local authentication, which isn't very good16:57
RoyKfoo: I beleive uio.no has a thing for that, but I haven't seen the code16:57
RoyKfoo: where're you from again?16:58
fooRoyK: States, currently California16:59
RoyKok - I found an article about this on uio.no, but it's in Norwegian, but perhaps google translate or something can help you  though it https://www.usit.uio.no/om/organisasjon/iti/gid/publisering/overvaaking/zabbix_report.html16:59
fooRoyK: aha, thank you! ... since I probably couldn't search in Norwegian. Actually, I wonder if searches return other languages if I search in English. hmph. BTW, what country are you in?17:01
RoyK.no17:01
RoyKI work for oslomet.no17:01
fooRoyK: Permission to PM?17:01
RoyKsure17:01
RoyK(I work for Keyser Söze :D)17:02
=== boshhead_ is now known as boshhead
fooRoyK: BTW, this is helpful: https://screencast.com/t/LnKLwoVL - great to see what's possible with Zabbix here18:22
RoyKfoo: iirc is ping already in the standard zabbix - check_icmp iirc18:23
fooRoyK: nice18:23
RoyKfoo:     Template ICMP Ping18:24
fooRoyK: aha, perfect18:25
=== stealthcommand3 is now known as stealthcommand
=== geofft_ is now known as geofft
fooRoyK: eh, my hand was forced - looks like someone else went in with librenms ... oh well. Looks like they have an API I can integrate with but I was hoping to get Zabbix in play.20:45
fooRoyK: in any capacity, I might be able to look into zabbix for another system (where I do have more control over the environment and systems)20:46
RoyKfoo: just setup a VM21:03
fooRoyK: nice, will do - I think I have an amazon instance I can throw this on - thank you!21:15
Marzubuntu server gets a lot of updates. i was previously running debian and there aren't that many updates. does upbuntu server update the packages versions?23:47
sarnoldwe almost always backport security fixes as necessary23:50
sarnoldmysql we publish new point versions as oracle release them23:51
sarnoldotto from mariadb normally supplies us with new point releases for mariadb updates as they release them23:51
blackflowubuntu does more than just security updates. esp. with the kernel. debian however does regular point releases which include bugfixes, and other bumps.23:53

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!