On Sat, 2006-02-18 at 10:26 -0200, Wesley Naves de Faria wrote:
> I´m using net-snmp 5.2.2 on a Red Hat AS.
> In my snmpd.conf:
> monitor -u phphomolog -r 100 "UserYES" ucdavis.20.1 > 2
> pass .1.3.6.1.4.1.2021.20.1 /etc/snmpscripts/user.sh
>
>
> Ok, When the amount of users exceeds 2, my serv
I´m using net-snmp 5.2.2 on a Red Hat AS. I create a single script to get
amount user connected, only to test the pass directive:
user.sh
#!/bin/sh
echo ".1.3.6.1.4.1.2021.20.1"
echo "integer"
echo `w |grep pts |wc -l`
exit 0
In my snmpd.conf:
.
.
.
monitor -u phphomolog -r 100 "UserYES" ucdavis.