Can you please guide me to monitor a linux NIS server to understand how many NIS clients are bound to it.
Ad Widget
Collapse
Monitoring NIS services
Collapse
X
-
Tags: None
-
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.
Then in your zabbix_agentd.conf file on each NIS server, you would putCode:#!/bin/bash (for i in `ypcat hosts | awk '{print $2}'` do ypwhich $i done) | grep -w `uname -n` | wc -l
In your item configuration, use count_nis_clients as your key, and store it as an "as is" value.Code:UserParameter=count_nis_clients,/usr/local/bin/count_nis_clients.sh
Hopefully that works for you!
Last edited by mucknet; 06-04-2007, 10:04.Comment
-
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
Comment