Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 .1.3.6.1.4.1.2021.9100.10 NAMEOFMYSCRIPT /path/to/your/script

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

Solved :)

share|improve this question

1 Answer 1

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

 
discard

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.