Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I've a script getting value in form of 33333 or 23939 etc. i.e. ./script output: 24310

Is there any possibility that i could monitor in nms over snmp by using the above value. If the value is greater than 20000 then host is up else host is up.

Can anyone let me know that how can i transfer this value to snmp server?

I got the solution from snmpd.conf thanks. I'm using the following

exec . NAMEOFMYSCRIPT /path/to/your/script

.9100.10 is custom OID i added by myself. . was given by snmpd.conf NAMEOFMYSCRIPT set this whatever you want to.

Solved :)

share|improve this question
up vote 2 down vote accepted

Look at the exec section of the net-snmp man page. As far as getting an snmp server to poll that, it greatly depends on what you're using.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.