<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD><META http-equiv=Content-Type content="text/html; charset=utf-8"><META content="INBOX.COM" name=GENERATOR></HEAD>
<BODY>
<div> </div>Can not get to work from command line. Following is the command def:<br><br>define command{<br> command_name check_hpjd<br> command_line $USER1$/check_hpjd -H $HOSTADDRESS$ $ARG1$<br>}<br><br><blockquote style="border-left: 2px solid rgb(0, 0, 255); padding-left: 5px; margin-left: 5px; margin-right: 0px;"><div class="msgHeaders">-----Original Message-----<br><b>From:</b> nagiosusers@edcint.co.nz<br><b>Sent:</b> Thu, 17 Jul 2008 14:17:38 +1000<br><b>To:</b> izz_abdullah@inbox.com<br><b>Subject:</b> Re: [Nagios-users] Canon Printer monitoring<br><br></div><div class="oldBody"><div>
There appears to be nothing wrong with what you are doing so far.<br>
<br>
Can you send your command definition?<br>
Can you make it work from the command line?<br>
<br>
You might need to check your environment eg firewalls etc<br>
<br>
Izz Abdullah wrote:
<blockquote cite="mid:596B7CF1620.000002CFizz_abdullah@inbox.com" type="cite">
<pre wrap="">SNMP is enabled, public is the community. I changed the title of this email (too many vendors I have to keep up with) :)
Thanks,
Izz
</pre>
<blockquote type="cite">
<pre wrap="">-----Original Message-----
From: <a _class="moz-txt-link-abbreviated" href="mailto:nagiosusers@edcint.co.nz">nagiosusers@edcint.co.nz</a>
Sent: Thu, 17 Jul 2008 13:55:04 +1000
To: <a _class="moz-txt-link-abbreviated" href="mailto:izz_abdullah@inbox.com">izz_abdullah@inbox.com</a>
Subject: Re: [Nagios-users] Compaq Printer monitoring
If the community string, in your case "public", is incorrect, this is
enough to generate a timeout.
Additionally, if the printer does not even have SNMP capability, you
will also get a timeout.
You'll need to check the printer firmware config.
Why have you titled this message "Compaq Printer Monitoring" and yet
provided the config for a "Canon iRC3380"? Perhaps you are getting your
printers mixed up?
Izz Abdullah wrote:
</pre>
<blockquote type="cite">
<pre wrap="">I am using Nagios 3.0.1 on RHEL 4 to monitor various Windows and linux /
Unix flavors. I have setup to monitor a network printer via SNMP and I
get the following result on printer status (PING is ok):
Error in packet : Timeout from host 172.24.50.102
Below is the printer.cfg (without the PING definition since it works):
define host{
use generic-printer
host_name satyam_canon3380
alias Canon iRC3380
address 172.24.50.102
hostgroups network-printers
}
define hostgroup{
hostgroup_name network-printers
alias Network Printers
}
define service{
use generic-service
host_name satyam_canon3380
service_description Printer Status
check_command check_hpjd!-C public
normal_check_interval 10
retry_check_interval 1
}
I would appreciate any enlightenment from the group.
Thanks,
Izz
____________________________________________________________
GET FREE 5GB EMAIL - Check out spam free email with many cool features!
Visit <a _class="moz-txt-link-freetext" href="http://www.inbox.com/email">http://www.inbox.com/email</a> to find out more!
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
<a _class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>
_______________________________________________
Nagios-users mailing list
<a _class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a _class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when
reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
</blockquote>
<pre wrap=""><!---->
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
<a _class="moz-txt-link-freetext" href="http://moblin-contest.org/redirect.php?banner_id=100&url=/">http://moblin-contest.org/redirect.php?banner_id=100&url=/</a>
_______________________________________________
Nagios-users mailing list
<a _class="moz-txt-link-abbreviated" href="mailto:Nagios-users@lists.sourceforge.net">Nagios-users@lists.sourceforge.net</a>
<a _class="moz-txt-link-freetext" href="https://lists.sourceforge.net/lists/listinfo/nagios-users">https://lists.sourceforge.net/lists/listinfo/nagios-users</a>
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
</pre>
</blockquote>
</div></div></blockquote>
<hr size="1px" noshade style="clear:both;margin-top:10px;height:1px;">
<div style="font:12px Verdana,sans-serif;color:Black;background:white;padding:3px;line-height:1.3em">
<span style="font-weight:bold;">Get Free 5GB Email</span> – Check out spam free email with many cool features!<br>
Visit <a href="http://www.inbox.com/email">http://www.inbox.com/email</a> to find out more!</div>
</BODY>
</HTML>