Search found 103 matches

by A.Cormack
Mon Mar 11, 2013 11:56 am
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

Works a treat, just tested it.

Once again thanks for your time and patience with this issue.

Go ahead and mark resolved/close :)
by A.Cormack
Thu Mar 07, 2013 7:02 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

Thank's so much for taking the time out to do that for me. I won't need the change to make it auto calculate as for the sandbox network the apache traffic shouldn't go over kB, if it does then ill fiddle round with it. I am out of office until Monday so I will try it then and let you know. Sorry for...
by A.Cormack
Thu Mar 07, 2013 4:20 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

To be honest, I kind of expected what you've said, so no problems.

If its not too much trouble I would be extremely grateful to get the original script working for kB traffic.
by A.Cormack
Thu Mar 07, 2013 2:58 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

The check_Apache_Traffic plugin file is as follows.. #!/usr/bin/perl use Getopt::Std; my %options=(); getopts("H:v:w:c:",\%options); ### CONFIGURATION %monitor_type = ( 'traffic' => 'LiB', 'requests_per_second' => 'LiB', 'bytes_per_request' => 'LiB', 'accesses' => 'LiB', 'bytes_per_second'...
by A.Cormack
Thu Mar 07, 2013 2:32 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

Now when running the following command on both Nagios and Root ./check_apache_traffic -H 192.168.19.136 I receive [root@localhost libexec]# ./check_apache_traffic -H 192.168.19.136 Can't modify print in scalar assignment at ./check_apache_traffic line 79, near "}) " syntax error at ./check...
by A.Cormack
Thu Mar 07, 2013 2:18 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

abrist wrote:hmmm. It does not like your perl or cannot find it. Post teh output of the following command:

Code: Select all

which perl

Code: Select all

/usr/bin/perl
Limitchev:

Code: Select all

Fileformat=dos
so i changed to

Code: Select all

Fileformat=unix
The error has now changed,

Code: Select all

(Return code of 255 is out of bounds)
by A.Cormack
Wed Mar 06, 2013 5:42 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

Try running it from the cli as user "nagios". Report back. su nagios cd /usr/local/nagios/libexec ./check_apache_traffic -H 192.168.19.136 -v traffic -w 5.0 -c 8.0 bash: ./check_apache_traffic: /usr/bin/perl^M: bad interpreter: no such file or directory You see, now I have a horrible feel...
by A.Cormack
Wed Mar 06, 2013 5:28 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

Can you run the check from the cli? It does seem to work in CLI. ./check_apache_status -H 192.168.19.136 -v traffic -w 5.0 -c 8.0 APACHE OK: traffic is 1.8 So I uninstalled the plug-in (deleted service, command and plug-in) and then rebooted Nagios. I then installed the plug-in again. I still get t...
by A.Cormack
Wed Mar 06, 2013 5:06 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

I did Abrist's commands and "scheduled an immediate check" on the service, no change. [root@localhost libexec]# ll /usr/local/nagios/libexec total 4624 -rwxr-xr-x 1 apache apache 6091 Feb 27 18:58 check_apache_status -rwxr-xr-x 1 nagios nagios 3498 Mar 6 21:19 check_apache_traffic -rwxr-xr...
by A.Cormack
Wed Mar 06, 2013 4:47 pm
Forum: Nagios XI
Topic: Plug-In check_apache_status, traffic
Replies: 43
Views: 10113

Re: Plug-In check_apache_status, traffic

chmod +x [script name in libexec dir] should resolve that one. Also make sure the nagios user has permission to it. I did cd /usr/local/nagios/libexec chmod +x check_apache_traffic I did asked Nagios to check the device again but I received the same error. Sorry to be a noob, but how do I check the...