Timeout from the host

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: Timeout from the host

Postby Kukkurloom » Mon Aug 05, 2019 2:54 am

Hello Benjamin!

Sorry for my late reply, but ran the desired command in terminal libexec folder and got that as a result:

Code: Select all
[root@nagios libexec]# ./check_hpjd [IP] -C public
Printer ok - ("Ready")


But nagios web still shows critical error: snmpget: Failure in sendto (Invalid argument) : Timeout from host

Edit: Just wanted to see for educational purposes what it would it say on the web interface if I change the name of check_hpjd file on libexec folder and change it back afterwards and now it gives me error like this: (No output on stdout) stderr:
Kukkurloom
 
Posts: 8
Joined: Thu Jul 04, 2019 2:00 am

Re: Timeout from the host

Postby benjaminsmith » Mon Aug 05, 2019 2:01 pm

Hello @Kukkurloom,

If it's working from the command line, it ought to work from Nagios. However, you are running as root from the command line, so please log into the /usr/local/nagios/libexec folder and change from root to nagios. I'd like to confirm if you're getting the same error message.

Code: Select all
su nagios
./check_hpjd [IP] -C public

Also, what are the permissions on the plugin?
Code: Select all
ls -l  /usr/local/nagios/libexec/check_hpjd
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benjaminsmith
 
Posts: 1446
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Timeout from the host

Postby Kukkurloom » Tue Aug 06, 2019 2:35 am

Hey Benjamin!

Thank you for your very fast reply! :)

1: Ran the desired command to check the permissions of the check_hpjd plugin, and it was only "root" so I changed it to Nagios:Nagios. I hope it is right :)

Code: Select all
[root@nagios libexec]# ls -l  /usr/local/nagios/libexec/check_hpjd
-rwxrwxrwx 1 root root 58008 Aug  5 11:29 /usr/local/nagios/libexec/check_hpjd
[root@nagios libexec]# chown nagios:nagios check_hpjd


2: Also tried to run the same command afterwards, but unfortunately, it gave me the same error:

Code: Select all
[nagios@nagios libexec]$ ./check_hpjd [IP] -C public
Segmentation fault


Thank you very much for your help! :)
Kukkurloom.
Kukkurloom
 
Posts: 8
Joined: Thu Jul 04, 2019 2:00 am

Re: Timeout from the host

Postby benjaminsmith » Tue Aug 06, 2019 12:52 pm

Hello @Kukkurloom,

The default permissions are set to Apache:Nagios, however, since you have the other (everyone) set to read,write, and execute this should not be a problem.

The segmentation fault error is not something that comes up too often. It's possible your printer is not compatible with this plugin.

I would like to see your configuration files in Nagios Core to review the check commands and arguments. Would it be possible for your send over all of the files in the configuration directory for us to review? The configuration files are located in /usr/local/nagios/etc. Thanks.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
benjaminsmith
 
Posts: 1446
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Timeout from the host

Postby Kukkurloom » Mon Aug 12, 2019 3:21 am

Hello Benjamin!

First of all, I would like to thank you very much for your kind help with my issue, but to be honest, to waste more of your time on that plugin problem to check all files etc would not be smart and definitely you have better things to do, I think I will find and try another plugin or just try another solution for these printers and see what will happen. :)

I think you may close this topic for now and once more, thank you for your generous help on the way! :)

Best wishes,
Kukkurloom.
Kukkurloom
 
Posts: 8
Joined: Thu Jul 04, 2019 2:00 am

Re: Timeout from the host

Postby scottwilkerson » Mon Aug 12, 2019 7:53 am

Kukkurloom wrote:Hello Benjamin!

First of all, I would like to thank you very much for your kind help with my issue, but to be honest, to waste more of your time on that plugin problem to check all files etc would not be smart and definitely you have better things to do, I think I will find and try another plugin or just try another solution for these printers and see what will happen. :)

I think you may close this topic for now and once more, thank you for your generous help on the way! :)

Best wishes,
Kukkurloom.

Locking
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
User avatar
scottwilkerson
DevOps Engineer
 
Posts: 15754
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Previous

Return to Nagios Core

Who is online

Users browsing this forum: No registered users and 28 guests