Check_snmp_process.pl full path problem with tmp file

Ford, Andy andrew.ford at wachovia.com
Fri Jun 13 11:48:58 CEST 2008


I've hit a little snag using the check_snmp_process.pl plugin: when I
use the -f option to check a full path, the temp file cannot be written
because of the "/" characters in the name of the temp file generated by
the plugin.

Error example:

1 process matching /opt/CPshrd-R62/bin/cpd (> 0) (<= 1):OK, Mem : 6.6Mb
OK! ERROR writing file
/tmp/tmp_Nagios_proc.XhostnameX./opt/CPshrd-R62/bin/cpd !, No data for
CPU (1 line(s)):UNKNOWN 

Has anyone else tried to resolve this?

My first thought is to stick a regex in the plugin to convert "/" to
"_", but I haven't looked at the code yet.

Andrew Ford
Wachovia Corporate Information Security
314-955-6647 desk
314-600-7025 cell


Wachovia Securities, LLC's outgoing and incoming e-mails are electronically
archived and subject to review and/or disclosure to someone other
than the recipient.

A.G. Edwards, a division of Wachovia Securities, LLC




-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null





More information about the Users mailing list