Ad Widget

Collapse

Monitoring running services with SNMP

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • quinox
    Junior Member
    • Nov 2010
    • 2

    #1

    Monitoring running services with SNMP

    Hi there,

    I'm fairly new with Zabbix and SNMP monitoring.

    I'm planning to minitor some linux servers with Zabbix and I want to do this with SNMP.
    I already have some items monitored with SNMP on a remote machine, but one thing I can't get right.

    I want to monitor running processes on a remote machine with SNMP; let's say httpd.
    I configured the snmpd.conf with the parameter:

    proc HTTPD

    I tried also the MAX and MIN number after HTTPD, but it is not working as aspected.

    So what I did:

    snmpwalk -v 2c -c zabbix-client 192.168.122.36 .1.3.6.1.4.1.2021.2
    and looked for the prErrorFlag.<nr>
    Then an snmpget:
    snmpget -v 2c -c zabbix-client -On 192.168.122.36 UCD-SNMP-MIB:rErrorFlag.<nr>

    The OID I get from snmpget, is the one I used to configure the item on Zabbix.

    In latest data It says...up(1), but when I shutdown the httpd process, It doesn't switch to down(0). I have this with all the running processes I configured.

    What did I wrong?

    Kind regards,

    Roland
  • dima_dm
    Senior Member
    • Dec 2009
    • 2697

    #2
    You can use zabbix_agentd, аnd don’t use SNMP. It is much better.

    Comment

    • quinox
      Junior Member
      • Nov 2010
      • 2

      #3
      Originally posted by dima_dm
      You can use zabbix_agentd, аnd don’t use SNMP. It is much better.
      I want to use SNMP, because I don't want to install and configure extra services.

      Why Zabbix-agent is better then SNMP?

      Comment

      • dima_dm
        Senior Member
        • Dec 2009
        • 2697

        #4
        Originally posted by quinox
        I want to use SNMP, because I don't want to install and configure extra services.

        Why Zabbix-agent is better then SNMP?
        More flexible. It is possible very simply to solve the broad audience of tasks through zabbix_agentd. And don’t use dynamic SNMP indexes.
        P.S. You can use zabbix_agentd for automatic restart linux daemons (such as snmpd, ftpd, httpd etc.) via SUID scripts and UserParameter or RemoteCommand.
        Last edited by dima_dm; 12-11-2010, 10:12.

        Comment

        • Zaniwoop
          Senior Member
          • Jan 2010
          • 232

          #5
          In the past I have always used SNMP, mainly because it is the standard.
          But since Zabbix, I only use SNMP on 'dumb' devices.

          For Linux and Windows devices I use the Zabbix agent. With SNMP you are limited to the information the SNMP agent provides. With the Zabbix agent you are only limited by your imagination.

          Comment

          • untergeek
            Senior Member
            Zabbix Certified Specialist
            • Jun 2009
            • 512

            #6
            zabbix_agentd also allows for Active monitoring. SNMP taxes the zabbix server more as it needs to run a query for EACH check, every time the check is run.

            With Active agent monitoring, you send the timings and items to the agent. It looks them over and says, "Oh. You want me to monitor these items at these intervals and send back the values? Okay." You send out a refreshed list every 120 seconds by default, but this is configurable. If you have 50 items being queried more frequently than once per 120 seconds, you can see how this would improve performance, reducing the number of queries the Zabbix server needs to perform.

            Comment

            Working...