HP Network Printer
Martyn
martyn at chetnet.co.uk
Tue Feb 3 18:22:48 CET 2009
Hi James/Group
I reinstalled Ubuntu and installed Server version, gone through all I went
through before and all is working as should be apart from the printer again.
Ping works fine.
The problem I'm seeing now is (return code 127 is out of bounds - Plugin may
be missing)
The path to the plugin is invalid (i.e. the binary or script does not
exist). This is most likely the case if you get errors about a return code
of 127 being out of bounds. If this is the error you're getting, check your
command definitions and make sure the path to all executables is correct
(and that they're actually installed on your system).
I have checked my directory and it never got compiled, how do I find the
below files
I have ran apt-get install net-snmp but it finds now files, how can I
rectify this
Thanks
Martyn
PS rpm -qa | grep snmp returns nothing
_____
From: James Pratt [mailto:jpratt at norwich.edu]
Sent: 02 February 2009 23:57
To: Martyn; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] HP Network Printer
Hi Martyn.
I'm not sure why check_hpjd did not get compiled on your system. It appears
you need at least net-snmp, and probably net-snmp-devel packages at least,
as here is what is on my system:
$ rpm -qa | grep snmp
net-snmp-libs-5.3.1-24.el5_2.2
net-snmp-utils-5.3.1-24.el5_2.2
net-snmp-5.3.1-24.el5_2.2
net-snmp-devel-5.3.1-24.el5_2.2
net-snmp-perl-5.3.1-24.el5_2.2
Have you checked for those packages installed, as they are not installed by
Nagios, and depending on your linux distro, may not be in the default
setup..
I have it on mine, but I use lots of SNMP, so it's no surprise.. I don't
see any option for checking toner, but maybe that's a different check. (?)
$ ./check_hpjd --help
check_hpjd v1991 (nagios-plugins 1.4.13)
Copyright (c) 1999 Ethan Galstad <nagios at nagios.org>
Copyright (c) 2000-2007 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]
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
--
Regards,
Jamie
From: Martyn [mailto:martyn at chetnet.co.uk]
Sent: Monday, February 02, 2009 6:42 PM
To: James Pratt; nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] HP Network Printer
James thanks for the reply, looks like there are many users with the same
issue as me,
http://osdir.com/ml/network.nagios.plugins/2006-11/msg00062.html
The reason I want to use check_hpjd is because it reports back the toner
levels too.
I have spent the last 5 hours on Google and can not find any fix, does this
group know of a fix at all or do you think its a bug?
Thanks
_____
From: James Pratt [mailto:jpratt at norwich.edu]
Sent: 02 February 2009 20:19
To: nagios-users at lists.sourceforge.net; martyn at chetnet.co.uk
Subject: RE: [Nagios-users] HP Network Printer
Sorry Palle, I meant to reply to the list!.. my bad. :-(
From: James Pratt
Sent: Monday, February 02, 2009 3:16 PM
To: 'Palle L Jensen'
Subject: RE: [Nagios-users] HP Network Printer
Hi, I found this on a quick google - I use snmp extensively. (Check_snmp is
fairly worthless - I use the ones at http://nagios.manubulon.com instead.
http://osdir.com/ml/network.nagios.user/2003-01/msg00028.html
HTH
Regards,
jamie
From: Palle L Jensen [mailto:palleje at gmail.com]
Sent: Monday, February 02, 2009 3:00 PM
To: 'Martyn'; nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] HP Network Printer
Martyn,
I have noticed people monitoring other stuff on printers using the SNMP
protocoll. However, since we have that protocol disabled I have no
experience in that. If you just want to make sure it is up and running you
could use the check_ping. Assuming it's a network printer with enabled NIC.
Thanks,
PJ
_____
From: Martyn [mailto:martyn at chetnet.co.uk]
Sent: Monday, February 02, 2009 1:13 PM
To: nagios-users at lists.sourceforge.net
Subject: Re: [Nagios-users] HP Network Printer
Update, but I'm still getting "Error in packet ( ) " in my printer status
I can walk the Mibs with snmpwalk -v 1 -c public 192.168.3.252 and see all
the relevant outputs but when I do the following: -
./check_snmp -H 192.168.3.252 -C public
I get SNMP problem - No Data received from host
CMD /usr/bin/snmpget -t 1 -r5 -m ' ' -v 1 [authpriv] 192.168.3.252:161
Hope you can help
_____________________________________________
From: Martyn [ <mailto:martyn at chetnet.co.uk> mailto:martyn at chetnet.co.uk]
Sent: 02 February 2009 17:33
To: 'nagios-users at lists.sourceforge.net'
Subject: HP Network Printer
Just looking to start and monitor an HP 2600n printer and have come across
the following statement in the quick start guide
The check_hpjd plugin will only get compiled and installed if you have the
net-snmp and net-snmp-utils
packages installed on your system. Make sure the plugin exists in
/usr/local/nagios/libexec before you
continue. If it doesn't, install net-snmp and net-snmp-utils and
recompile/reinstall the Nagios plugins.
OK do these get installed when you download and compile
nagios-plugins-1.4.11.tar.gz or do I have to grab then separately, I have
looked through my nagios/libexec directory and noticed that check_snmp is in
there but not the above two.
Where would I get hold of the two files as described
Thanks for your continued support
Martyn
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20090203/5bcc51cf/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Create and Deploy Rich Internet Apps outside the browser with Adobe(R)AIR(TM)
software. With Adobe AIR, Ajax developers can use existing skills and code to
build responsive, highly engaging applications that combine the power of local
resources and data with the reach of the web. Download the Adobe AIR SDK and
Ajax docs to start building applications today-http://p.sf.net/sfu/adobe-com
-------------- next part --------------
_______________________________________________
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