[Nagiosplug-devel] [ nagiosplug-Bugs-1070929 ] hpjdres
SourceForge.net
noreply at sourceforge.net
Wed Nov 24 03:57:10 CET 2004
Bugs item #1070929, was opened at 2004-11-22 11:17
Message generated for change (Comment added) made by stanleyhopcroft
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1070929&group_id=29880
Category: None
Group: None
Status: Open
Resolution: None
Priority: 5
Submitted By: SupaFly (amincheneau)
Assigned to: Stanley Hopcroft (stanleyhopcroft)
Summary: hpjdres
Initial Comment:
Hi I have the error message "No output" in Nagios GUI.
The plugin works in command line with root or nagios
users.
The rights on it are -rwxr-xr-x 1 nagios nagios.
my checkcommands.cfg
define command {
command_name check_hpjdres
command_line $USER1$/check_hpjdres -k 1
-H $HOSTADDRESS$
my services.cfg:
Define service{
host_name FR40
service_description check_hpjdres
check_command toner_black
max_check_attempts 3
normal_check_interval 3
retry_check_interval 1
check_period 24x7
notification_interval 0
notification_period 24x7
notification_options w,u,c,r
contact_groups admins
}
----------------------------------------------------------------------
>Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2004-11-24 11:51
Message:
Logged In: YES
user_id=395628
Dear aimincheneau,
Sorry for the stupid answer; oh dear !
As for check_hpjdres, there doesn't seem to be a plugin
named check_hpjdres in the 1.4alpha distro (I am working
from the CVS but the tar-ball should be the same).
I am sorry to be speaking with all the grace and intellect
of a donkey, but I am confused.
pc09011> pwd
/usr/home/anwsmh/build/nagios-plugins_HEAD/nagiosplug
pc09011> find . -name 'check_hp*' -ls
1865383 16 -rwxr-xr-x 1 anwsmh anwsmh
7502 Nov 23 17:25 ./contrib/check_hprsc.pl
1896751 2 -rw-r--r-- 1 anwsmh anwsmh
637 Nov 23 17:25 ./plugins/t/check_hpjd.t
1896776 22 -rw-r--r-- 1 anwsmh anwsmh
10356 Nov 23 17:25 ./plugins/check_hpjd.c
1896823 2 -rw-r--r-- 1 anwsmh anwsmh
96 Nov 23 17:25 ./plugins/tests/check_hpjd
1904794 6 -rw-r--r-- 1 anwsmh anwsmh
2199 Nov 23 19:09 ./plugins/.deps/check_hpjd.Po
1897436 62 -rw-r--r-- 1 anwsmh anwsmh
30844 Nov 23 19:09 ./plugins/check_hpjd.o
1897437 336 -rwxr-xr-x 1 anwsmh anwsmh
157162 Nov 23 19:09 ./plugins/check_hpjd
pc09011>
Could you tell me about this plugin - or send me a copy,
and I'll put it back where it belongs ?
With regret,
----------------------------------------------------------------------
Comment By: SupaFly (amincheneau)
Date: 2004-11-24 11:13
Message:
Logged In: YES
user_id=1133930
Thanks for your answer stanley, I have a problem with
check_hpjdres plugin and not with check_hpjd (which is
working fine).
----------------------------------------------------------------------
Comment By: Stanley Hopcroft (stanleyhopcroft)
Date: 2004-11-24 03:10
Message:
Logged In: YES
user_id=395628
Dear aimincheneau,
The latest plugin versions do _not_ have a k option (-k in
your command_line).
pc09011> ./check_hpjd -h
check_hpjd (nagios-plugins 1.4.0alpha2) 1.18
The nagios plugins come with ABSOLUTELY NO WARRANTY. You may
redistribute
copies of the plugins under the terms of the GNU General
Public License.
For more information about these matters, see the file named
COPYING.
Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>
Copyright (c) 2000-2003 Nagios Plugin Development Team
<nagiosplug-devel at lists.sourceforge.net>
This plugin tests the STATUS of an HP printer with a
JetDirect card.
Net-snmp must be installed on the computer running the plugin.
Usage: check_hpjd -H host [-C community]
check_hpjd (-h | --help) for detailed help
check_hpjd (-V | --version) for version information
Options:
-h, --help
Print detailed help screen
-V, --version
Print version information
-C, --community=STRING
The SNMP community name (default=public)
Send email to nagios-users at lists.sourceforge.net if you have
questions
regarding use of this software. To submit patches or suggest
improvements,
send email to nagiosplug-devel at lists.sourceforge.net
pc09011> ./check_hpjd -H ta27
Printer ok - (STRING: "PROCESSING JOB.FROM TRAY 3")
pc09011> ./check_hpjd -H ta27 -k 1
./check_hpjd: invalid option -- k
Invalid argument
Usage: check_hpjd -H host [-C community]
check_hpjd (-h | --help) for detailed help
check_hpjd (-V | --version) for version information
pc09011>
Could this be a mistake in your command_line ?
----------------------------------------------------------------------
Comment By: Ton Voon (tonvoon)
Date: 2004-11-24 00:59
Message:
Logged In: YES
user_id=664364
Moving to Bugs tracker as Support Requests will be closed.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=397597&aid=1070929&group_id=29880
More information about the Devel
mailing list