Specifically how are you determining that the call to lynx is failing? I know you mentioned that it seems that all network I/O is not functioning from within the plugin, but did you test using curl instead of lynx?
>>> [EMAIL PROTECTED] 1/5/2005 2:15:45 PM >>> OK, I discovered two problems. First, some background. My script queries an HTTP-based temperature sensor using the Lynx utility and returns the result as a printed number as the sole output of the script. It runs fine on the desktop. When I run my script as a cmd-line plugin, it correctly retrieves the results and prints the answer to stdout, but nothing is displayed in Intermapper. I verified this by outputing in parallel to a text file and tailing the file. So the cmd-style plugin appears to ignore all output. When I run my script as a Nagios plugin the call to Lynx fails. It appears that Intermapper does not permit Lynx to open a TCP socket, or perhaps Lynx isn't invoked at all. I tried hard-coding the path to Lynx, and also putting a symlink to links in the Intermapper Tools folder, but to no avail. I can invoke other shell utilities, such as date and cat, but not anything that does network I/O. If I output dummy text from my script, that text shows up in the "Reason:" field of the status pop-up, so basic plugin connectivity appears to work with Nagios. I really need to use the Nagios version so that I can pass user-coded parameters into the script, something you can't do with the cmd type plugin. Ideally, I'd like to be able to graph the temperature returned as well, but I realise that IM doesn't appear to support that for non-SNMP probes. I'd think it would be easy to do using pseudo-MIB variables, however, so I'm hoping that something is in the works along those lines. -mel >At 7:12 PM -0800 1/4/05, Mel Beckman wrote: >>I'm probably being dense here, but I've just written a command line >>probe that reads a temperate value from a Unix box (which gets it >>from an iButton temperature probe), and it's working fine, except >>that the numeric temperature value that I return doesn't appear >>anywhere. I've followed the Nagios standard of writing the value to >>stdout on a single line, but the value never appears in the IM >>device's description or any other place that I can find. >> >>Am I missing something? >> > >It _should_ show up as the "reason" in the status window when you open it. > >-- Christopher > >-- >================================================ >Christopher L. Sweeney >[EMAIL PROTECTED] >http://www.dartware.com/ > >____________________________________________________________________ >List archives: >http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ >To unsubscribe: send email to: [EMAIL PROTECTED] ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [EMAIL PROTECTED] ____________________________________________________________________ List archives: http://www.mail-archive.com/intermapper-talk%40list.dartware.com/ To unsubscribe: send email to: [EMAIL PROTECTED]
