I cannot use nsclient++ as the project requirement is to use snmp.
Changing permissions to 777 and owner of the file to nagios.nagios didn't work either i still have this error:
**ePN /etc/nagios/check_win_snmp
Main Topics
Browse All TopicsHi,
I have a task to setup a linux server with nagios and monitor disk usage, memory usage, processor usage etc in windows servers. I already have working installation of nagios which monitors localhost (linux box) and using ping it monitors my isp gateway. Unfortunately i'm stuct with monitoring disks with snmp from command line using snmpget works perfect i wanted to easier my task and i've tryed to use plugins from nagiosexchange and almost with all of them is the same problem they work from command line but not from nagios. For example "Enhanced SNMP Windows Disk Check" from bash perfect from nagios it was getting me errors like not defined variables and not it gets me:
*ePN /etc/nagios/check_win_snmp
I'm not a programmer so this doesn't tell me much. Any advice? Maybe i'm doing sth wrong? And maybe there are another scripts which work?
Best,
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
Business Accounts
Answer for Membership
by: tgs2130Posted on 2008-05-13 at 15:54:17ID: 21559980
Check that the user the nagios process is running as has permission to run the script properly.. It's could be the case if it works when you run it on the command line, but not when you ask nagios to, it's a permissions problem.. That has been my experience when I've received strange errors.
Have you looked at nsclient++ for windows servers? I use it, it's great and allows me to monitor a lot of parameters, and it's easy to set up.