Ad Widget

Collapse

Monitoring NIS services

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Balaji Krishnamoorthy
    Junior Member
    • Apr 2007
    • 11

    #1

    Monitoring NIS services

    Can you please guide me to monitor a linux NIS server to understand how many NIS clients are bound to it.
  • cptnzod
    Member
    • Jan 2007
    • 56

    #2
    I don't remember the nis commands. But you can do a UserParameter in your agent config file which runs a script and outputs stuff.

    Comment

    • mucknet
      Member
      • Dec 2004
      • 59

      #3
      Its been a long time since I used NIS, but If I remember correctly you can't ask a server for a list of clients bound to it. The NIS server simply responds to queries, it doesn't keep track of who is querying it. You'll need to query each client to ask which server its bound to... I looked up the syntax, and I think this script would work... If it doesn't, maybe it will at least put you in the right direction. Place this script on each NIS server.

      Code:
      #!/bin/bash
      (for i in `ypcat hosts | awk '{print $2}'`
              do
                      ypwhich $i
      done) | grep -w `uname -n` | wc -l
      Then in your zabbix_agentd.conf file on each NIS server, you would put
      Code:
      UserParameter=count_nis_clients,/usr/local/bin/count_nis_clients.sh
      In your item configuration, use count_nis_clients as your key, and store it as an "as is" value.

      Hopefully that works for you!
      Last edited by mucknet; 06-04-2007, 10:04.

      Comment

      • Balaji Krishnamoorthy
        Junior Member
        • Apr 2007
        • 11

        #4
        This is a great idea. Thanks much for that. I am only worried about the number of clients I have . They are around 5000. Will zabbix agent wait for this output to send it back to the zabbix server.

        Can we increase the time out of the zabbix agent more than 30 seconds if that will help.

        Comment

        Working...