Plug-In Tutorials

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
A.Cormack
Posts: 103
Joined: Fri Nov 23, 2012 6:32 pm

Re: Plug-In Tutorials

Post by A.Cormack »

I installed Lynx (As root).

But when running

Code: Select all

./check_apacherequests.pl -w 2 -c 3
and still got the same error (Just without the lynx bit)

Code: Select all

[root@localhost libexec]# ./check_apacherequests.pl -w 2 -c 3
sh: /usr/bin/lynx: No such file or directory
Argument "" isn't numeric in numeric ge (>=) at ./check_apacherequests.pl line 76.
OK -  current apache requests | 'apache requests'=;2;3
[root@localhost libexec]#
A.Cormack
Posts: 103
Joined: Fri Nov 23, 2012 6:32 pm

Re: Plug-In Tutorials

Post by A.Cormack »

If i do

Code: Select all

./check_apacherequests.pl -w >2 -c >3
Then I get no output at all, is that right?
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plug-In Tutorials

Post by slansing »

No, you should be getting the output you did two posts ago minus the no lynx error, and the issue within the script. Lmiltchev got the same error when he tested it and I will be testing it tomorrow to see what I get, methinks the plugin could be out dated and is not formatted correctly for current packages.
A.Cormack
Posts: 103
Joined: Fri Nov 23, 2012 6:32 pm

Re: Plug-In Tutorials

Post by A.Cormack »

Ah really?... I hope not. Otherwise I have a feeling it will be for the other two plug-ins I've picked, which means a complete re-write of my project research methodology.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Plug-In Tutorials

Post by scottwilkerson »

can you run the following and post the results

Code: Select all

which lynx
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
A.Cormack
Posts: 103
Joined: Fri Nov 23, 2012 6:32 pm

Re: Plug-In Tutorials

Post by A.Cormack »

Output is:

Code: Select all

/usr/bin/lynx
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Plug-In Tutorials

Post by slansing »

Can you also run the following:

Code: Select all

ll /usr/bin/lynx
Once again it is possible the plugin is no longer functioning due to being outdated, as you do get output but errors along with it.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plug-In Tutorials

Post by lmiltchev »

Once again it is possible the plugin is no longer functioning due to being outdated, as you do get output but errors along with it.
Just to add to what slansing said - you can ask the developer of this plugin a question about the error that you are getting:

Code: Select all

Argument "" isn't numeric in numeric ge (>=) at ./check_apacherequests.pl line 76.
by posting on the Nagios Exchange:
http://exchange.nagios.org/directory/Pl ... st/details
Be sure to check out our Knowledgebase for helpful articles and solutions!
A.Cormack
Posts: 103
Joined: Fri Nov 23, 2012 6:32 pm

Re: Plug-In Tutorials

Post by A.Cormack »

Code: Select all

-rwxr-xr-x 1 root root 1334956 Aug 25     2012 /usr/bin/lynx
I was under the impression that the author no longer supports the application, which is why I sadly agree that the plug-in is no longer supported by Nagios. But I will take your advise and go post on the exchange now.

Once again, thanks for your help, great as always.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Plug-In Tutorials

Post by lmiltchev »

We always try to help, even when dealing with "non-official" (3rd party) plugins, however we cannot guarantee that these plugins will work well with nagios.
Posting on the Nagios Exchange could be helpful - even if the developer of this plugin doesn't answer your question, someone else, who uses the same plugin, and has faced the same issue might.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked