Ad Widget

Collapse

Zabbix newbie, need help monitoring Ubuntu services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Zyklon
    Junior Member
    • Aug 2015
    • 2

    #1

    Zabbix newbie, need help monitoring Ubuntu services

    Hello

    I would like to know how can I monitor any service that is running in ubuntu, should I create a user parameter for monitoring such services that are not displayed on zabbix itens?

    here is a example of a service that i want to know if its up/down

    root@myserver:~# service SampleAPP status
    SampleAPP start/running, process 21008


    how to make zabbix monitor it?
  • jamesNJ
    Senior Member
    • Jun 2015
    • 103

    #2
    You could try either a user parameter, or use the proc.num[] key to look for running processes.

    Comment

    • Zyklon
      Junior Member
      • Aug 2015
      • 2

      #3
      but how to create such user parameter?

      thats my question ...

      Comment

      • jamesNJ
        Senior Member
        • Jun 2015
        • 103

        #4
        See the following:



        You will need to know a little about linux command line to craft a test that you are interested to see.

        For example, if I wanted to see if mysqld process was running, I could use something like:

        UserParameter=mysq.proc,ps -ef | fgrep "/usr/libexec/mysql" | fgrep -v grep

        (my system is centOS 7, yours might be different) That item should return a single line for the mysql process, and you could then use the nodata or regex trigger functions to alert you if that query turns up empty.

        Comment

        Working...