You can subscribe to this list here.
2002 |
Jan
|
Feb
(6) |
Mar
|
Apr
|
May
(2) |
Jun
|
Jul
|
Aug
(5) |
Sep
|
Oct
(3) |
Nov
(6) |
Dec
|
---|---|---|---|---|---|---|---|---|---|---|---|---|
2003 |
Jan
|
Feb
(8) |
Mar
(2) |
Apr
(14) |
May
(10) |
Jun
(13) |
Jul
(16) |
Aug
(11) |
Sep
(14) |
Oct
(9) |
Nov
(4) |
Dec
(14) |
2004 |
Jan
(6) |
Feb
(11) |
Mar
(2) |
Apr
(14) |
May
(12) |
Jun
(3) |
Jul
(14) |
Aug
(22) |
Sep
(13) |
Oct
(9) |
Nov
(11) |
Dec
(8) |
2005 |
Jan
|
Feb
(4) |
Mar
|
Apr
(7) |
May
(4) |
Jun
(3) |
Jul
(8) |
Aug
(37) |
Sep
(16) |
Oct
(15) |
Nov
(1) |
Dec
(12) |
2006 |
Jan
|
Feb
(2) |
Mar
(2) |
Apr
(15) |
May
(22) |
Jun
(3) |
Jul
(9) |
Aug
(17) |
Sep
(46) |
Oct
(17) |
Nov
(14) |
Dec
(6) |
2007 |
Jan
(14) |
Feb
(7) |
Mar
(32) |
Apr
(4) |
May
(5) |
Jun
(56) |
Jul
(35) |
Aug
(33) |
Sep
(19) |
Oct
(16) |
Nov
(35) |
Dec
(19) |
2008 |
Jan
(16) |
Feb
(6) |
Mar
(10) |
Apr
(12) |
May
(4) |
Jun
(1) |
Jul
(5) |
Aug
(5) |
Sep
(7) |
Oct
(10) |
Nov
(1) |
Dec
(10) |
2009 |
Jan
(10) |
Feb
(3) |
Mar
(13) |
Apr
(9) |
May
(2) |
Jun
(5) |
Jul
|
Aug
(5) |
Sep
|
Oct
|
Nov
(1) |
Dec
(16) |
2010 |
Jan
(1) |
Feb
(1) |
Mar
(1) |
Apr
(1) |
May
(10) |
Jun
(2) |
Jul
(3) |
Aug
(3) |
Sep
(1) |
Oct
(1) |
Nov
(1) |
Dec
(5) |
2011 |
Jan
(1) |
Feb
(1) |
Mar
(3) |
Apr
|
May
(1) |
Jun
(7) |
Jul
(17) |
Aug
(9) |
Sep
(4) |
Oct
(14) |
Nov
(7) |
Dec
(17) |
2012 |
Jan
(18) |
Feb
(13) |
Mar
(11) |
Apr
(5) |
May
(25) |
Jun
(23) |
Jul
(22) |
Aug
(30) |
Sep
(12) |
Oct
(5) |
Nov
(18) |
Dec
(13) |
2013 |
Jan
(2) |
Feb
(18) |
Mar
(28) |
Apr
(14) |
May
(33) |
Jun
(20) |
Jul
(24) |
Aug
(3) |
Sep
(26) |
Oct
(12) |
Nov
(3) |
Dec
(11) |
2014 |
Jan
(32) |
Feb
(17) |
Mar
(25) |
Apr
(20) |
May
(47) |
Jun
(15) |
Jul
(35) |
Aug
(13) |
Sep
(5) |
Oct
(5) |
Nov
(12) |
Dec
(2) |
2015 |
Jan
(3) |
Feb
(15) |
Mar
(10) |
Apr
(8) |
May
(12) |
Jun
(4) |
Jul
(2) |
Aug
|
Sep
(42) |
Oct
(10) |
Nov
(12) |
Dec
(2) |
2016 |
Jan
|
Feb
(11) |
Mar
(17) |
Apr
(3) |
May
(32) |
Jun
(13) |
Jul
(15) |
Aug
(14) |
Sep
(8) |
Oct
(8) |
Nov
(15) |
Dec
(4) |
2017 |
Jan
(5) |
Feb
(46) |
Mar
(10) |
Apr
(1) |
May
(15) |
Jun
(5) |
Jul
(11) |
Aug
(6) |
Sep
(10) |
Oct
(12) |
Nov
(7) |
Dec
(2) |
2018 |
Jan
(1) |
Feb
(3) |
Mar
(3) |
Apr
|
May
|
Jun
(1) |
Jul
(2) |
Aug
(7) |
Sep
(1) |
Oct
(1) |
Nov
(5) |
Dec
|
2019 |
Jan
(4) |
Feb
(1) |
Mar
|
Apr
(4) |
May
(1) |
Jun
|
Jul
(4) |
Aug
|
Sep
|
Oct
|
Nov
(1) |
Dec
|
2020 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
|
Sep
|
Oct
|
Nov
(2) |
Dec
(1) |
2021 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(2) |
Sep
(7) |
Oct
(2) |
Nov
(4) |
Dec
|
2022 |
Jan
|
Feb
|
Mar
(7) |
Apr
(7) |
May
(9) |
Jun
|
Jul
|
Aug
|
Sep
|
Oct
(5) |
Nov
|
Dec
|
2024 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(1) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
2025 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
(3) |
Jul
|
Aug
|
Sep
|
Oct
|
Nov
|
Dec
|
From: Todd B. <tb...@gm...> - 2017-02-16 17:34:20
|
You need: 1) an item to track the md5 of the file 2) a trigger to go off if the md5 changes 3) an action to e-mail if the trigger goes off On Thu, Feb 16, 2017 at 12:21 PM, Guus Snijders <gsn...@gm...> wrote: > Op 16 feb. 2017 18:05 schreef "Michael Nielsen" <mic...@gm...>: > > Should I create a trigger for it, or? > > On Thu, Feb 16, 2017 at 5:42 PM, REGIS Thierry <thi...@do...> > wrote: > >> [md5] >> > > Trigger: yes, because you need to tell Zabbix what to do. > > > Mvg, Guus Snijders > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > > |
From: Guus S. <gsn...@gm...> - 2017-02-16 17:21:14
|
Op 16 feb. 2017 18:05 schreef "Michael Nielsen" <mic...@gm...>: Should I create a trigger for it, or? On Thu, Feb 16, 2017 at 5:42 PM, REGIS Thierry <thi...@do...> wrote: > [md5] > Trigger: yes, because you need to tell Zabbix what to do. Mvg, Guus Snijders |
From: Michael N. <mic...@gm...> - 2017-02-16 17:02:26
|
Should I create a trigger for it, or? On Thu, Feb 16, 2017 at 5:42 PM, REGIS Thierry <thi...@do...> wrote: > Hi > > > > You can just use the md5 of the file ( zabbix agent item ), if the md5 as > changed, then the files has changed . > > > > thierry > > > > *De :* Michael Nielsen [mailto:mic...@gm...] > *Envoyé :* jeudi 16 février 2017 16:51 > *À :* zab...@li... > *Objet :* [Zabbix-users] Email alert on log change > > > > I've created a item for my host, which looks for changes in a log-file. > > > > Is it possible to simply get an e-mail if the log file changes, not > looking for specific string in the file but simply if a line as added? > |
From: Michael N. <mic...@gm...> - 2017-02-16 15:51:00
|
I've created a item for my host, which looks for changes in a log-file. Is it possible to simply get an e-mail if the log file changes, not looking for specific string in the file but simply if a line as added? |
From: Rob P. <r.p...@gm...> - 2017-02-15 14:09:06
|
Hi Joost / Michael You are correct about Grafana, I use this functionality myself and it works very well with Zabbix data. You also have templating functionality within Grafana, which allows you to define a dashboard and have the metrics show per host/group selected from the templated items, which will makes the graphs/dashboards per host very quick to set up. http://docs.grafana.org/reference/templating/ Hope this helps. Rob On 15 February 2017 at 12:00, Heer, Joost de <j.d...@zu...> wrote: > Hello Michael, > > > > Check out Grafana, it has slideshow support, at least if I interpret the > description of ‘Playlist’ (http://docs.grafana.org/reference/playlist/) > correctly. > > > > Joost > > > > *From:* Michael Nielsen [mailto:mic...@gm...] > *Sent:* woensdag 15 februari 2017 9:28 > *To:* zab...@li... > *Subject:* [Zabbix-users] Slide show through hosts > > > > I've created a screen in Zabbix which used dynamic elements, so I can > choose host dynamically. > > I would like a slide show which use that screen and slides through all > hosts, but it seems impossible. > > > > I'm only able to select host manually in the slide show, not cycling > through all hosts. > > > > Can this be done - without manually creating the same screen for all hosts? > > ------------------------------ > *Disclaimer* > > *Attentie* > Vanaf 1 juli 2015 is Zuyderland de naam van onze zorgorganisatie die sinds > 1 januari 2015 de tijdelijke naam Atrium-Orbis droeg. > > Dit bericht is geprivilegieerd en kan vertrouwelijke informatie bevatten. > Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen > bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, > verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit > bericht te vernietigen. > > This message is privileged and may contain confidential information. This > message is intented solely for the addressee. If you have received this > message in error, please inform us immediately and delete its contents. > > Van de Zuyderland zorgorganisatie maken deel uit: Stichting Zuyderland > Medisch Centrum KvK 62375644 / Stichting Zuyderland Zorg KvK 14126551 / > Zuyderland Geestelijke Gezondheidszorg BV KvK 14125866 / Zuyderland > Zorgcentra BV KvK 14125865 / Zuyderland Jeugdgezondheidszorg BV KvK > 14125869 / Zuyderland Thuiszorg BV KvK 51437848 (tot 01.01.2016 wordt de > huidige handelsnaam Orbis Thuiszorg Westelijke Mijnstreek gebruikt) / > Holding ZMS BV KvK 14087788 / BV Exploitatie Zorgboulevard KvK 14093927 / > Parking Atrium BV KvK 14068180 / Orbis Thuiszorg BV KvK 14125868/ > Zuyderland Huishoudelijke Hulp BV, KvK 14091172 (tot 01.01.2016 wordt de > huidige handelsnaam Orbis Huishoudelijke Hulp gebruikt). > ------------------------------ > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > > |
From: Heer, J. d. <j.d...@zu...> - 2017-02-15 12:16:41
|
Hello Michael, Check out Grafana, it has slideshow support, at least if I interpret the description of ‘Playlist’ (http://docs.grafana.org/reference/playlist/) correctly. Joost From: Michael Nielsen [mailto:mic...@gm...] Sent: woensdag 15 februari 2017 9:28 To: zab...@li... Subject: [Zabbix-users] Slide show through hosts I've created a screen in Zabbix which used dynamic elements, so I can choose host dynamically. I would like a slide show which use that screen and slides through all hosts, but it seems impossible. I'm only able to select host manually in the slide show, not cycling through all hosts. Can this be done - without manually creating the same screen for all hosts? </PRE> <font size="1"> <HR> <b>Disclaimer</b><br><br> <b>Attentie</b><br> Vanaf 1 juli 2015 is Zuyderland de naam van onze zorgorganisatie die sinds 1 januari 2015 de tijdelijke naam Atrium-Orbis droeg. <br><br> Dit bericht is geprivilegieerd en kan vertrouwelijke informatie bevatten. Aan dit bericht kunnen geen rechten worden ontleend. Het bericht is alleen bestemd voor de geadresseerde. Indien dit bericht niet voor u is bestemd, verzoeken wij u dit onmiddellijk aan ons te melden en de inhoud van dit bericht te vernietigen.<br><br> This message is privileged and may contain confidential information. This message is intented solely for the addressee. If you have received this message in error, please inform us immediately and delete its contents. <br><br> Van de Zuyderland zorgorganisatie maken deel uit: Stichting Zuyderland Medisch Centrum KvK 62375644 / Stichting Zuyderland Zorg KvK 14126551 / Zuyderland Geestelijke Gezondheidszorg BV KvK 14125866 / Zuyderland Zorgcentra BV KvK 14125865 / Zuyderland Jeugdgezondheidszorg BV KvK 14125869 / Zuyderland Thuiszorg BV KvK 51437848 (tot 01.01.2016 wordt de huidige handelsnaam Orbis Thuiszorg Westelijke Mijnstreek gebruikt) / Holding ZMS BV KvK 14087788 / BV Exploitatie Zorgboulevard KvK 14093927 / Parking Atrium BV KvK 14068180 / Orbis Thuiszorg BV KvK 14125868/ Zuyderland Huishoudelijke Hulp BV, KvK 14091172 (tot 01.01.2016 wordt de huidige handelsnaam Orbis Huishoudelijke Hulp gebruikt). <HR> |
From: Alexei V. <ale...@za...> - 2017-02-15 11:41:28
|
Hi Michael, Zabbix does not support this functionality out of the box. You may consider writing a Perl/Python/PHP/whatever script, which would communicate through API to create and update such slide shows automatically. Kind regards, Alexei > On 15 Feb 2017, at 10:27, Michael Nielsen <mic...@gm...> wrote: > > I've created a screen in Zabbix which used dynamic elements, so I can choose host dynamically. > I would like a slide show which use that screen and slides through all hosts, but it seems impossible. > > I'm only able to select host manually in the slide show, not cycling through all hosts. > > Can this be done - without manually creating the same screen for all hosts? > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot_______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users |
From: Michael N. <mic...@gm...> - 2017-02-15 08:28:16
|
I've created a screen in Zabbix which used dynamic elements, so I can choose host dynamically. I would like a slide show which use that screen and slides through all hosts, but it seems impossible. I'm only able to select host manually in the slide show, not cycling through all hosts. Can this be done - without manually creating the same screen for all hosts? |
From: Volker F. <vol...@gm...> - 2017-02-10 08:53:00
|
On 10.02.2017 09:43, Brian Candler wrote: > On 10/02/2017 08:04, Alexei Vladishev wrote: >> Note that Zabbix agents support parameter ‘Alias’ that can be used to >> create shorter aliases for very long item keys or user parameters. It >> may be helpful sometimes. > > In this case, if I wanted to push out Alias settings to the zabbix > agent, I could equally just push out UserParameter. > > But thanks for pointing me to Alias because the example given is helpful: > > https://www.zabbix.com/documentation/3.2/manual/appendix/config/zabbix_agentd > > That is: I could use the internal vfs.file.regexp instead of shelling > out to grep. vfs.file.regmatch even! But again, you will most likely have a permission problem there. Volker > Cheers, > > Brian. > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > |
From: Brian C. <b.c...@po...> - 2017-02-10 08:43:15
|
On 10/02/2017 08:04, Alexei Vladishev wrote: > Note that Zabbix agents support parameter ‘Alias’ that can be used to > create shorter aliases for very long item keys or user parameters. It > may be helpful sometimes. In this case, if I wanted to push out Alias settings to the zabbix agent, I could equally just push out UserParameter. But thanks for pointing me to Alias because the example given is helpful: https://www.zabbix.com/documentation/3.2/manual/appendix/config/zabbix_agentd That is: I could use the internal vfs.file.regexp instead of shelling out to grep. Cheers, Brian. |
From: Alexei V. <ale...@za...> - 2017-02-10 08:04:52
|
Hello, Note that Zabbix agents support parameter ‘Alias’ that can be used to create shorter aliases for very long item keys or user parameters. It may be helpful sometimes. Kind regards, Alexei > On 8 Feb 2017, at 13:32, Brian Candler <b.c...@po...> wrote: > > Hello, > > I have a question about sensible deployment of Zabbix. > > I've found that a simple way to check certain conditions is to create an item which runs a remote command on the host. For example, if I want a check that a host has password authentication disabled, I can create a template with an item like this: > > Type: Zabbix Agent > Key: system.run["grep '^PasswordAuthentication no' /etc/ssh/sshd_config | wc -l"] > > This is simple to implement, but the problem is that the *key* used to refer to that data is that very long string. If I want to write a trigger for it, the condition looks something like this: > {Linux Security Compliance Rules:system.run["grep '^PasswordAuthentication no' /etc/ssh/sshd_config | wc -l"].last()}=0 > > > This doesn't feel right. I'm duplicating the long string which runs the command. If I decided to change the implementation of the PasswordAuthentication check, I'd have to change any related triggers too (although as they're likely in the same template, that's not too bad). > Have I missed a trick here? Is there a way to define a command to run on the remote system, but give it a shorter key name? > Thanks, > > Brian. |
From: Volker F. <vol...@gm...> - 2017-02-09 21:27:13
|
You could trapper the error to a different item in case of failure. You could have a generic item for that host, you would use as trap item for error messages for all your items of this kind. Just return the error message to this text item and respond to this error messages as you see fit. Greetings, Volker Am 2017-02-08 um 12:48 schrieb Brian Candler: > Suppose I write a custom external script > /usr/lib/zabbix/externalscripts/foo.sh and create an item for it like this: > > Type: External Script > Key: foo.sh[{HOST.IP}] > > The result from the script is normally numeric (let's say a response > time), and I might want to graph this or alert on the value exceeding a > threshold. > > However it can also return an error status as a text string. There might > be several different error strings (e.g. "Connection failed", "DNS > resolution failed", "Unexpected response: 501"). I want to send out > alerts in those conditions too, and I want the alerts to contain the > message returned by the script. > > What's the best way to implement this, in terms of what the script > outputs, and what the corresponding item type is in Zabbix? > > The options I can see: > > (1) I could configure it with "Type of information: Numeric (float)", > but then I don't know what happens when the script outputs an error message > > (2) I could configure it as "Type of information: Text". Then I can > write actions which match numeric-only or non-numeric values, but that > requires regexp checks and it seems pretty messy; I'm also not sure I > can compare a text value to a numeric threshold. > > Presumably this is a very common situation, so what's the recommended > way to deal with it? > > I've read the documentation here: > https://www.zabbix.com/documentation/3.2/manual/config/items/itemtypes/external > > I note that Zabbix has a concept of "unsupported" value, but it doesn't > say how an external script could return this value (empty string? > Non-zero exit code?) nor how an error string could be associated with an > unsupported value and included in an alert action. > > Thanks, > > Brian. > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > |
From: Brian C. <b.c...@po...> - 2017-02-09 19:44:06
|
> It's worth saying that at least GNU grep has a -c option. That's nice - thank you! OSX (BSD grep) has it too. > However, zabbix will usually not be allowed to read from this file anyway. I don't see why not. However this is on Ubuntu. In RHEL, perhaps there is a SELinux policy which forbids it? Cheers, Brian. |
From: Volker F. <vol...@gm...> - 2017-02-09 18:51:16
|
It's worth saying that at least GNU grep has a -c option. However, zabbix will usually not be allowed to read from this file anyway. Greetings, Volker On 08.02.2017 12:32, Brian Candler wrote: > Hello, > > I have a question about sensible deployment of Zabbix. > > I've found that a simple way to check certain conditions is to create an > item which runs a remote command on the host. For example, if I want a > check that a host has password authentication disabled, I can create a > template with an item like this: > > Type: Zabbix Agent > Key: system.run["grep '^PasswordAuthentication no' /etc/ssh/sshd_config > | wc -l"] > > This is simple to implement, but the problem is that the *key* used to > refer to that data is that very long string. If I want to write a > trigger for it, the condition looks something like this: > > {Linux Security Compliance Rules:system.run["grep > '^PasswordAuthentication no' /etc/ssh/sshd_config | wc -l"].last()}=0 > > This doesn't feel right. I'm duplicating the long string which runs the > command. If I decided to change the implementation of the > PasswordAuthentication check, I'd have to change any related triggers > too (although as they're likely in the same template, that's not too bad). > > Have I missed a trick here? Is there a way to define a command to run on > the remote system, but give it a shorter key name? > > Thanks, > > Brian. > > > > ------------------------------------------------------------------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > |
From: Brian C. <b.c...@po...> - 2017-02-09 12:05:41
|
On 09/02/2017 11:02, Guus Snijders wrote: > > I understand, but is there a way to stop Zabbix attempting to open > a TCP > connection to the non-existent agent? I guess I could block it with > iptables, but I wondered if there was a cleaner way. > > > I assumed zabbix would only connect to query configured items. Seeing > your reaction, Zabbix connects anyway, even when there is nothing to do? Interesting - I hadn't even considered that. I assumed that it would contact the agent at least to update the inventory (although you can set inventory mode to 'manual') However, tcpdump confirms that this doesn't happen: if only service checks are configured, I don't see any connections to TCP 10050. Thank you for pointing me in the right direction! Regards, Brian. |
From: Guus S. <gsn...@gm...> - 2017-02-09 11:02:09
|
Op 9 feb. 2017 10:52 schreef "Brian Candler" <b.c...@po...>: On 09/02/2017 07:56, Michael Loginov wrote: > You can add such a host with its real IP or DNS as agent interface. > Then You should use simple checks. They're provided by zabbix server > itself and thus You need no agent installed and available. I understand, but is there a way to stop Zabbix attempting to open a TCP connection to the non-existent agent? I guess I could block it with iptables, but I wondered if there was a cleaner way. I assumed zabbix would only connect to query configured items. Seeing your reaction, Zabbix connects anyway, even when there is nothing to do? Mvg, Guus Snijders |
From: Brian C. <b.c...@po...> - 2017-02-09 09:49:42
|
On 09/02/2017 07:56, Michael Loginov wrote: > You can add such a host with its real IP or DNS as agent interface. > Then You should use simple checks. They're provided by zabbix server > itself and thus You need no agent installed and available. I understand, but is there a way to stop Zabbix attempting to open a TCP connection to the non-existent agent? I guess I could block it with iptables, but I wondered if there was a cleaner way. Perhaps there is a case for a "null/passive" interface, or a "ping-only" interface? Cheers, Brian. |
From: Michael L. <mcs...@gm...> - 2017-02-09 07:56:07
|
You can add such a host with its real IP or DNS as agent interface. Then You should use simple checks. They're provided by zabbix server itself and thus You need no agent installed and available. 2017-02-08 18:18 GMT+03:00 Brian Candler <b.c...@po...>: > Zabbix doesn't let me add a host with no interfaces: i.e. no Zabbix > agent, no SNMP, no JMX, and no IPMI. > > However I want to test services on a host that I have no administrative > access to - e.g. test DNS responses from a third-party authoritative > nameserver, or test HTTP response from a cloud service. > > What's the best way to model this in Zabbix? > > I could create items and triggers against the Zabbix host itself. But > it's not ideal - if there's a failure, it's a failure of the remote > service, not a failure of the zabbix host. Also, I'd like to be able to > template the checks with e.g. {HOST.IP} and apply the same template to > multiple hosts. > > I could add the agent interface anyway, with the name/ip of the actual > host, but then I'd be making spurious connections to it on port 10050, > which is impolite to say the least (and at worst might be considered an > attack). > > Any other options? > > Thanks, > > Brian. > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > -- С уважением, Логинов М.А. mcs...@gm... +7 (915) 2493122 |
From: Guus S. <gsn...@gm...> - 2017-02-08 16:22:20
|
Op 8 feb. 2017 16:34 schreef "Michael Nielsen" <mic...@gm...>: Created a new item in the template which uses vm.memory.size[free] gives me the value for free memory. Sorry. Thought available was free memory, but things makes much more sense now. Also Zabbix :) It's a Linux feature actually[1] ; ). Free memory == mem currently not used Available == if a process tries hard enough, this is how much RAM it can get. (After clearing buffers, cache, etc). You'll see some similar stuff with the cpu (load vs usage). 1 possibly the same goes for other OS's, I just happen to know this from Linux. Mvg, Guus Snijders |
From: Michael N. <mic...@gm...> - 2017-02-08 15:35:01
|
Created a new item in the template which uses vm.memory.size[free] gives me the value for free memory. Sorry. Thought available was free memory, but things makes much more sense now. Also Zabbix :) On Wed, Feb 8, 2017 at 3:55 PM, Michael Nielsen <mic...@gm...> wrote: > Tried to clone the Template OS Linux: Available memory and are getting: > Received value [91.951591] is not suitable for value type [Numeric > (unsigned)] and data type [Decimal] > > Simply changes [available] to [pavailable] > > On Wed, Feb 8, 2017 at 3:04 PM, Michael Nielsen <mic...@gm...> > wrote: > >> It seems the template are using >> vm.memory.size[total] >> and >> vm.memory.size[available] >> >> >> On Wed, Feb 8, 2017 at 2:59 PM, Michael Nielsen <mic...@gm...> >> wrote: >> >>> Hmm, simply used the "Template Linux OS". That has some memory data in >>> it. >>> >>> On Wed, Feb 8, 2017 at 11:08 AM, Jeon Woosung <jeo...@gm...> >>> wrote: >>> >>>> Have you used "pused" instead of "pavailable"? >>>> >>>> 2017. 2. 8. 오후 5:13에 "Michael Nielsen" <mic...@gm...>님이 작성: >>>> >>>>> Running free -m gives me: >>>>> >>>>> total used free shared buffers >>>>> cached >>>>> >>>>> Mem: 3958 2518 1440 8 147 >>>>> 2179 >>>>> >>>>> It is the used 2.5Gb and free 1.5Gb I would like Zabbix to show. >>>>> >>>>> Zabbix gives me: >>>>> >>>>> Available memory 2017-02-08 08:06:30 3.55 GB -4.71 MB Graph >>>>> Free swap space 2017-02-08 08:06:12 2 GB Graph >>>>> Free swap space in % 2017-02-08 08:06:23 100 % Graph >>>>> Total memory 2017-02-08 07:08:16 3.87 GB Graph >>>>> Total swap space 2017-02-08 07:08:17 2 GB Graph >>>>> >>>>> So not the same as free -m >>>>> >>>>> >>>>> On Tue, Feb 7, 2017 at 8:28 AM, Michael Nielsen <mic...@gm...> >>>>> wrote: >>>>> >>>>>> Thank you. :) >>>>>> I'll play around with zabbix. >>>>>> >>>>>> On Monday, February 6, 2017, Guus Snijders <gsn...@gm...> >>>>>> wrote: >>>>>> >>>>>>> Op 6 feb. 2017 22:34 schreef "Michael Nielsen" <mic...@gm... >>>>>>> >: >>>>>>> >>>>>>> I see. >>>>>>> Is there a way to see memory used (as regular understood?) or free >>>>>>> memory which applications can use? >>>>>>> >>>>>>> >>>>>>> Sure, start with free -m, study it's output (can be confusing!) so >>>>>>> you'll get some feeling for the different fields. >>>>>>> >>>>>>> I have one VM with 4GB allowed. >>>>>>> Running top in the command line tells me 2,5 is used and there's 1,5 >>>>>>> available. >>>>>>> This is what I want have shown in zabbix graph. >>>>>>> >>>>>>> >>>>>>> Can't tell from the top of my head, sry. >>>>>>> >>>>>>> Luckily, the agent has good documentation, so find out which info >>>>>>> (metrics) you want and then check the the wiki for supported items. Worst >>>>>>> case, it's simple to write a one-liner that gives the info, but the agent >>>>>>> probably already builtin ;). >>>>>>> >>>>>>> It could very well be something like mem.avail, but that's just a >>>>>>> wild guess. >>>>>>> >>>>>>> Note, this is one of the best ways to get to know Zabbix; starting >>>>>>> with standard templates and then rolling your own. >>>>>>> >>>>>>> >>>>>>> Just my € 0,02 >>>>>>> >>>>>>> Mvg, Guus Snijders >>>>>>> >>>>>>> >>>>>>> >>>>> >>>>> ------------------------------------------------------------ >>>>> ------------------ >>>>> Check out the vibrant tech community on one of the world's most >>>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>>> _______________________________________________ >>>>> Zabbix-users mailing list >>>>> Zab...@li... >>>>> https://lists.sourceforge.net/lists/listinfo/zabbix-users >>>>> >>>>> >>> >> > |
From: Brian C. <b.c...@po...> - 2017-02-08 15:18:36
|
Zabbix doesn't let me add a host with no interfaces: i.e. no Zabbix agent, no SNMP, no JMX, and no IPMI. However I want to test services on a host that I have no administrative access to - e.g. test DNS responses from a third-party authoritative nameserver, or test HTTP response from a cloud service. What's the best way to model this in Zabbix? I could create items and triggers against the Zabbix host itself. But it's not ideal - if there's a failure, it's a failure of the remote service, not a failure of the zabbix host. Also, I'd like to be able to template the checks with e.g. {HOST.IP} and apply the same template to multiple hosts. I could add the agent interface anyway, with the name/ip of the actual host, but then I'd be making spurious connections to it on port 10050, which is impolite to say the least (and at worst might be considered an attack). Any other options? Thanks, Brian. |
From: Michael N. <mic...@gm...> - 2017-02-08 14:55:29
|
Tried to clone the Template OS Linux: Available memory and are getting: Received value [91.951591] is not suitable for value type [Numeric (unsigned)] and data type [Decimal] Simply changes [available] to [pavailable] On Wed, Feb 8, 2017 at 3:04 PM, Michael Nielsen <mic...@gm...> wrote: > It seems the template are using > vm.memory.size[total] > and > vm.memory.size[available] > > > On Wed, Feb 8, 2017 at 2:59 PM, Michael Nielsen <mic...@gm...> > wrote: > >> Hmm, simply used the "Template Linux OS". That has some memory data in it. >> >> On Wed, Feb 8, 2017 at 11:08 AM, Jeon Woosung <jeo...@gm...> >> wrote: >> >>> Have you used "pused" instead of "pavailable"? >>> >>> 2017. 2. 8. 오후 5:13에 "Michael Nielsen" <mic...@gm...>님이 작성: >>> >>>> Running free -m gives me: >>>> >>>> total used free shared buffers >>>> cached >>>> >>>> Mem: 3958 2518 1440 8 147 >>>> 2179 >>>> >>>> It is the used 2.5Gb and free 1.5Gb I would like Zabbix to show. >>>> >>>> Zabbix gives me: >>>> >>>> Available memory 2017-02-08 08:06:30 3.55 GB -4.71 MB Graph >>>> Free swap space 2017-02-08 08:06:12 2 GB Graph >>>> Free swap space in % 2017-02-08 08:06:23 100 % Graph >>>> Total memory 2017-02-08 07:08:16 3.87 GB Graph >>>> Total swap space 2017-02-08 07:08:17 2 GB Graph >>>> >>>> So not the same as free -m >>>> >>>> >>>> On Tue, Feb 7, 2017 at 8:28 AM, Michael Nielsen <mic...@gm...> >>>> wrote: >>>> >>>>> Thank you. :) >>>>> I'll play around with zabbix. >>>>> >>>>> On Monday, February 6, 2017, Guus Snijders <gsn...@gm...> >>>>> wrote: >>>>> >>>>>> Op 6 feb. 2017 22:34 schreef "Michael Nielsen" <mic...@gm... >>>>>> >: >>>>>> >>>>>> I see. >>>>>> Is there a way to see memory used (as regular understood?) or free >>>>>> memory which applications can use? >>>>>> >>>>>> >>>>>> Sure, start with free -m, study it's output (can be confusing!) so >>>>>> you'll get some feeling for the different fields. >>>>>> >>>>>> I have one VM with 4GB allowed. >>>>>> Running top in the command line tells me 2,5 is used and there's 1,5 >>>>>> available. >>>>>> This is what I want have shown in zabbix graph. >>>>>> >>>>>> >>>>>> Can't tell from the top of my head, sry. >>>>>> >>>>>> Luckily, the agent has good documentation, so find out which info >>>>>> (metrics) you want and then check the the wiki for supported items. Worst >>>>>> case, it's simple to write a one-liner that gives the info, but the agent >>>>>> probably already builtin ;). >>>>>> >>>>>> It could very well be something like mem.avail, but that's just a >>>>>> wild guess. >>>>>> >>>>>> Note, this is one of the best ways to get to know Zabbix; starting >>>>>> with standard templates and then rolling your own. >>>>>> >>>>>> >>>>>> Just my € 0,02 >>>>>> >>>>>> Mvg, Guus Snijders >>>>>> >>>>>> >>>>>> >>>> >>>> ------------------------------------------------------------ >>>> ------------------ >>>> Check out the vibrant tech community on one of the world's most >>>> engaging tech sites, SlashDot.org! http://sdm.link/slashdot >>>> _______________________________________________ >>>> Zabbix-users mailing list >>>> Zab...@li... >>>> https://lists.sourceforge.net/lists/listinfo/zabbix-users >>>> >>>> >> > |
From: Michael L. <mcs...@gm...> - 2017-02-08 14:51:32
|
You can use UserParameter instead and give it nice short key. 2017-02-08 14:32 GMT+03:00 Brian Candler <b.c...@po...>: > Hello, > > I have a question about sensible deployment of Zabbix. > > I've found that a simple way to check certain conditions is to create an > item which runs a remote command on the host. For example, if I want a > check that a host has password authentication disabled, I can create a > template with an item like this: > > Type: Zabbix Agent > Key: system.run["grep '^PasswordAuthentication no' /etc/ssh/sshd_config | > wc -l"] > > This is simple to implement, but the problem is that the *key* used to > refer to that data is that very long string. If I want to write a trigger > for it, the condition looks something like this: > > {Linux Security Compliance Rules:system.run["grep '^PasswordAuthentication > no' /etc/ssh/sshd_config | wc -l"].last()}=0 > > This doesn't feel right. I'm duplicating the long string which runs the > command. If I decided to change the implementation of the > PasswordAuthentication check, I'd have to change any related triggers too > (although as they're likely in the same template, that's not too bad). > > Have I missed a trick here? Is there a way to define a command to run on > the remote system, but give it a shorter key name? > Thanks, > > Brian. > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > > -- С уважением, Логинов М.А. mcs...@gm... +7 (915) 2493122 |
From: Todd B. <tb...@gm...> - 2017-02-08 14:13:14
|
I personally always code for these in my scripts in the commands it calls, return a numeric value, and have a numeric code for any possible errors. If I worry I might get an error I'm unaware of, I also have a catch all (usually a 255) that's mapped to "unknown". On Wed, Feb 8, 2017 at 9:06 AM, Brian Candler <b.c...@po...> wrote: > On 08/02/2017 11:48, Brian Candler wrote: > > I note that Zabbix has a concept of "unsupported" value, but it > > doesn't say how an external script could return this value (empty > > string? Non-zero exit code?) nor how an error string could be > > associated with an unsupported value and included in an alert action. > > Ah, it looks like maybe I am looking for this new feature in > (not-yet-released) 3.4.0: > > https://www.zabbix.com/documentation/3.4/manual/ > appendix/command_execution#exit_code_checking > > "Any exit code that is different from 0 is considered as execution > failure." > > Technically, execution failure (of the script itself) is not the same as > "bad response to test" (from the remote host); but I don't think that > matters here. > > > ------------------------------------------------------------ > ------------------ > Check out the vibrant tech community on one of the world's most > engaging tech sites, SlashDot.org! http://sdm.link/slashdot > _______________________________________________ > Zabbix-users mailing list > Zab...@li... > https://lists.sourceforge.net/lists/listinfo/zabbix-users > |
From: Guus S. <gsn...@gm...> - 2017-02-08 14:12:34
|
Op 8 feb. 2017 13:03 schreef "Brian Candler" <b.c...@po...>: Suppose I write a custom external script /usr/lib/zabbix/externalscripts/foo.sh and create an item for it like this: Type: External Script Key: foo.sh[{HOST.IP}] The result from the script is normally numeric (let's say a response time), and I might want to graph this or alert on the value exceeding a threshold. However it can also return an error status as a text string. There might be several different error strings (e.g. "Connection failed", "DNS resolution failed", "Unexpected response: 501"). I want to send out alerts in those conditions too, and I want the alerts to contain the message returned by the script. What's the best way to implement this, in terms of what the script outputs, and what the corresponding item type is in Zabbix? The best is to set your script to output custom error codes. If the usual output is a response time, you could use negative numbers as error codes. Don't overdo it though. Use 2 or 3 codes for expected errors and for example code 0 for unexpected cases. This way your script stays readable and your zabbix config too. I have one case where there are 5 possible codes returned. That seemed like a good idea then, but the result was complicated graphs & triggers. It works great, but in hindsight I should have limited it to 3: running, maitenance and error; maitenance: down, but we're working on it Error: needs attention. Running: all ok ;) In my (still limited) experience, those 3 are all I really need to know for most services. Mvg, Guus Snijders |