Jeff Baldwin | 8 Jun 06:09 2016

Running Zabbix Server 3.0 - Which Agent for Ubuntu 12.04?

All,

 

I am running Zabbix Server 3.0.   Some of the hosts I need to monitor are running Ubuntu 12.04, and I prefer to run the Zabbix agent for monitoring Linux hosts.

 

The only Zabbix agen I see which supports Ubuntu 12.04 is the 2.2 Zabbix Agent.   Is it okay to  use Zabbix Agent v2.2 with Zabbix Server v3.0?

 

Any issues/concerns which I should be aware of?

 

Jeff

 Jeff Baldwin
 



 8335 Classic Drive
 Charlotte, NC 28262 
 800.368.1056 toll free
 
 704.597.9015 main 
 knowclassic.com

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Anthony Moon | 8 Jun 02:39 2016

Aggregate eth0 in/out octets

Hey all,

 

I’m trying to aggregate SNMP interface octets via a calculated item:

 

last("grpsum["VANH_Proxy","ifHCInOctets[eth0]","last"]")

 

Zabbix is saying that it cannot evaluate this function as the item does not exist.

 

I’m really new to Zabbix so I am sure I am doing this wrong, any tips?

------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Guy Knights | 7 Jun 21:06 2016
Picon

Re: Obtaining extra host metadata via network discovery

Oh wow, I'd never noticed the "populates host inventory" field option before. This might be just what I need.

I agree that automation is the way to go. I mean, I could modify the visible name field for each host manually, but it's not really tenable in the long term. I'll take a look at the Zabbix API in more depth, I think I could probably script something with Ansible (our config mgmt tool of choice) to update the visible name field when we update host configs or something like that.

Thanks again for your help!
Guy

On Tue, Jun 7, 2016 at 11:57 AM, Tolle, Matthew <Matthew.Tolle <at> level3.com> wrote:

Just a shot from the hip.. there may be a better way but this may work:

Create a UserParameter or a zabbix_sender item that sends the hostname in. Create an Item for that data. When creating the item use the “Populates host inventory field” and pick something like “Asset Tag” or something that you aren’t using. Then in the action section add {INVENTORY.Asset.TAG1} to the default message.

If you want to get super nerdy on it you could do what we do. We populate our zabbix setup out of a CMDB deployment. When we do that we fill out both the “Host name” as reported by the host and the “visible name” as reported by the zabbix agent. Just in case they are different. You could do the same thing but fill one our with the AWS name. A great deal more work but gives you the ability to search for both names in the Zabbix GUI and find what you are looking for. You would also need to pass both names in the actions. Same as above.

The zabbix API is very robust and easy to use once you get going. We use it a great deal to automate as much as we can to make our lives easier. We’ve got 10k+ hosts a number of secondary feeders (Like OEM, netcool, etc) and we use zabbix to feed ServiceNow for ticketing also out of the API. All with very little human interaction to zabbix day to day.

-Matt





On Jun 7, 2016, at 11:28 AM, Guy Knights <guy.knights <at> gmail.com<mailto:guy.knights <at> gmail.com>> wrote:

Thanks guys, I hadn't really thought about doing it that way.

The issue I'm really trying to solve here is that I'm working in AWS, and by default AWS hostnames are based on IP addresses, which is fine for the most part. However, when we get alerts it's a bit of a hassle to cross-reference the IPs with the "Name" tag I've allocated each host in the AWS console. FYI, this name tag isn't completely unique, it's a string of info that just identifies the purpose of each host. Anyway, what I would like is a way to pass this info to zabbix so that it will send it out in notification alerts.

What I've just done recently is add {TRIGGER.HOSTGROUP.NAME<http://trigger.hostgroup.name/>} to my alert messages, which basically does the job, but it would be nice to be able to pass very specific info from my agents to zabbix and have zabbix be able to use this info both for alerts and also maybe in the zabbix interface so we can see at a glance what each host's job is.

I guess my question is - if I use the technique you suggested (user parameters) is there a way to use the returned info in general, in the way I described above? So, set up items to check these user parameters, but then use the values in these items as macros in other triggers, or  in a host's visible name? This is where I'm a bit fuzzy.

Thanks again for your help,
Guy

On Tue, Jun 7, 2016 at 11:08 AM, Tolle, Matthew <Matthew.Tolle <at> level3.com<mailto:Matthew.Tolle <at> level3.com>> wrote:

On agent side:

UserParameter=get.agent.conf[*],grep -s "^$1=“ <PathToConfDir>/*.conf

>From the server/proxy:

./zabbix_get -s <ip> -k get.agent.conf[Hostname]

would return:

HostnameItem=system.hostname

or whatever you have set. You can also use that key in the Zabbix item.

Very flexible. You can do all kinds of fun things like:

UserParameter=count.pw<http://count.pw/><http://count.pw<http://count.pw/>>[*],wc -l /etc/passwd | cut -d’ ‘ -f1

Make an item count.pw<http://count.pw/><http://count.pw<http://count.pw/>> in the GUI and graph the number of entries in the password file. Not very useful but gives you an idea on what you can do. sendmail queue files, number of open files, number or ssh sessions.. etc, etc..

Just make sure you don’t get overly excited about it and and create a security hole.

If you are doing something often, something that takes a bunch of times, or doing a bunch of checks like these, you should used the zabbix_sender to have the agent feed zabbix indeed of the server or proxy pulling the data. zabbix_sender -i <input file> is da bomb. :)

("da bomb" is still used right?)

-Matt



On Jun 7, 2016, at 8:30 AM, Alexei Vladishev <alexei.vladishev <at> zabbix.com<mailto:alexei.vladishev <at> zabbix.com><mailto:alexei.vladishev <at> zabbix.com<mailto:alexei.vladishev <at> zabbix.com>>> wrote:

I believe you may create a simple user parameter that would parse zabbix_agentd.conf and return meta data back.

Kind regards,
Alexei


On 07 Jun 2016, at 05:51, Guy Knights <guy.knights <at> gmail.com<mailto:guy.knights <at> gmail.com><mailto:guy.knights <at> gmail.com<mailto:guy.knights <at> gmail.com>>> wrote:

I know you can configure host metadata in the agent configuration but AFAIK this is only used by the auto-registration action, which I'm not using. Is it possible to get access to and record/use this data during a network discovery action? I'd like to pass along some extra identifying info from my zabbix agents.

Thanks,
Guy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________
Zabbix-users<https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________Zabbix-users> mailing list
Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net><mailto:Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net>>
https://lists.sourceforge.net/lists/listinfo/zabbix-users


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net><mailto:Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net>>
https://lists.sourceforge.net/lists/listinfo/zabbix-users




------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Guy Knights | 7 Jun 20:28 2016
Picon

Re: Obtaining extra host metadata via network discovery

Thanks guys, I hadn't really thought about doing it that way.

The issue I'm really trying to solve here is that I'm working in AWS, and by default AWS hostnames are based on IP addresses, which is fine for the most part. However, when we get alerts it's a bit of a hassle to cross-reference the IPs with the "Name" tag I've allocated each host in the AWS console. FYI, this name tag isn't completely unique, it's a string of info that just identifies the purpose of each host. Anyway, what I would like is a way to pass this info to zabbix so that it will send it out in notification alerts. 

What I've just done recently is add {TRIGGER.HOSTGROUP.NAME} to my alert messages, which basically does the job, but it would be nice to be able to pass very specific info from my agents to zabbix and have zabbix be able to use this info both for alerts and also maybe in the zabbix interface so we can see at a glance what each host's job is.

I guess my question is - if I use the technique you suggested (user parameters) is there a way to use the returned info in general, in the way I described above? So, set up items to check these user parameters, but then use the values in these items as macros in other triggers, or  in a host's visible name? This is where I'm a bit fuzzy.

Thanks again for your help,
Guy

On Tue, Jun 7, 2016 at 11:08 AM, Tolle, Matthew <Matthew.Tolle <at> level3.com> wrote:

On agent side:

UserParameter=get.agent.conf[*],grep -s "^$1=“ <PathToConfDir>/*.conf

>From the server/proxy:

./zabbix_get -s <ip> -k get.agent.conf[Hostname]

would return:

HostnameItem=system.hostname

or whatever you have set. You can also use that key in the Zabbix item.

Very flexible. You can do all kinds of fun things like:

UserParameter=count.pw<http://count.pw>[*],wc -l /etc/passwd | cut -d’ ‘ -f1

Make an item count.pw<http://count.pw> in the GUI and graph the number of entries in the password file. Not very useful but gives you an idea on what you can do. sendmail queue files, number of open files, number or ssh sessions.. etc, etc..

Just make sure you don’t get overly excited about it and and create a security hole.

If you are doing something often, something that takes a bunch of times, or doing a bunch of checks like these, you should used the zabbix_sender to have the agent feed zabbix indeed of the server or proxy pulling the data. zabbix_sender -i <input file> is da bomb. :)

("da bomb" is still used right?)

-Matt



On Jun 7, 2016, at 8:30 AM, Alexei Vladishev <alexei.vladishev <at> zabbix.com<mailto:alexei.vladishev <at> zabbix.com>> wrote:

I believe you may create a simple user parameter that would parse zabbix_agentd.conf and return meta data back.

Kind regards,
Alexei


On 07 Jun 2016, at 05:51, Guy Knights <guy.knights <at> gmail.com<mailto:guy.knights <at> gmail.com>> wrote:

I know you can configure host metadata in the agent configuration but AFAIK this is only used by the auto-registration action, which I'm not using. Is it possible to get access to and record/use this data during a network discovery action? I'd like to pass along some extra identifying info from my zabbix agents.

Thanks,
Guy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e_______________________________________________
Zabbix-users
mailing list
Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/zabbix-users


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are
consuming the most bandwidth. Provides multi-vendor support for NetFlow,
J-Flow, sFlow and other flows. Make informed decisions using capacity
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net<mailto:Zabbix-users <at> lists.sourceforge.net>
https://lists.sourceforge.net/lists/listinfo/zabbix-users


------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Guy Knights | 6 Jun 22:51 2016
Picon

Obtaining extra host metadata via network discovery

I know you can configure host metadata in the agent configuration but AFAIK this is only used by the auto-registration action, which I'm not using. Is it possible to get access to and record/use this data during a network discovery action? I'd like to pass along some extra identifying info from my zabbix agents.

Thanks,
Guy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Guy Knights | 31 May 20:38 2016
Picon

Special characters error in item

Can anyone tell me why I'm not allowed to use this path as an item parameter?

/var/log/events/error.log

I'm getting a "special characters not allowed" error, but I don't see either the forward slash or the period characters in the list it gives me of disallowed characters.

Thanks,
Guy
------------------------------------------------------------------------------
What NetFlow Analyzer can do for you? Monitors network bandwidth and traffic
patterns at an interface-level. Reveals which users, apps, and protocols are 
consuming the most bandwidth. Provides multi-vendor support for NetFlow, 
J-Flow, sFlow and other flows. Make informed decisions using capacity 
planning reports. https://ad.doubleclick.net/ddm/clk/305295220;132659582;e
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Jeon Woosung | 26 May 10:09 2016
Picon

Agent reliability.

Hi everyone. 

Are there anyone who have tested zabbix agent for reliability?
I don't know how to test it. 
Could you share me a idea or test result?

Best Regards.

--
God bless U
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Jeon Woosung | 25 May 09:40 2016
Picon

Agent alive check.

Hi everyone. 

​I've got some problems.
In zabbix default template, You know there's agent​.ping item and trigger.
And the trigger use nodata function to significant host status.

But my zabbix server is too slow. So it take much time to collect agent ping data. 
So it cause false-positive. 

Is there a good way to avoid this situation?

Thanks.




--
God bless U
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Jeon Woosung | 22 May 10:42 2016
Picon

OpenVOS agent

Hello everyone. 

Are there anyone who have compilled zabbix agent on openVOS?
I tried but failed. 

when I launched configure. I got this messages

checking for library containing getdevs… no 
checking for library containing backtrace_symbols… no 
checking for main in -lm… yes 
checking for main in -lkvm… no 
checking for DNS lookup functions… yes 
checking for special C compiler options needed for large files… no 
checking for _FILE_OFFSET_BITS value needed for large files… unknown 
checking for _LARGE_FILES value needed for large files… unknown 
checking for an ANSI C-conforming const… yes 
checking for pid_t… yes checking for socklen_t… no 
checking for actual socklen_t parameter type in socket functions… 
socklen_t checking for integer field name in union sigval of struct siginfo_t… 
configure +: error: Unable to find integer field name in union sigval of struct siginfo_t 

​How can I figure this?
Thanks.​



--
God bless U
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Dzenan Celhasic | 18 May 13:17 2016
Picon

zabbix 3.0.1 Cannot get socket IP address

Hi zabbix users,

 

Suddenly I get following error in my zabbix_server log:

Cannot get socket IP address: [107] Transport endpoint is not connected

 

I really can’t see why this error.

Do you have any inputs to solve my problem?

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users
Kristian Rink | 18 May 07:57 2016
Picon
Gravatar

mysql template and credentials?

Folks;

I'm trying to set up mysql server monitoring following the tutorial
outlined in [1]. While most of the setup is pretty straightforward, I
fail to make zabbix-agent and the local checks use the right
credentials for accessing the database. 

I do have a .my.cnf in place (actually, in various places by now, all
containing the same information), and the credentials stored in there
provide access to the databases using mysql -u -p from the command
line, however zabbix server still complains that

  1336:20160518:075417.199 item "archiv:mysql.status[Bytes_received]"
became not supported: Received value [ERROR 1045 (28000): Access denied
for user 'zabbix' <at> 'localhost' (using password: NO)] is not suitable f
or value type [Numeric (float)] 

Changing permissions of .my.cnf obviously also didn't change anything.
Can anyone out there enlighten me what it takes to get mysql checks to
work?

TIA and all the best,
Kristian

[1] http://blog.themilkyway.org/2013/11/how-to-monitor-mysql-using-the-
new-zabbix-template-app-mysql/

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Zabbix-users mailing list
Zabbix-users <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/zabbix-users

Gmane