Plugin problem
James Pratt
jpratt at norwich.edu
Mon Jul 13 18:18:18 CEST 2009
Hello Natalie.
The reason you may not be able to execute these is likely due to permissions.. try a chmod 755 on these files so it changes the perm bits from
-r-xr-x---
To
-rwxr-xr-x
(Otherwise, only the nagios user has access to execute them)...
As for your SNMP issue, try using :
yum search net-snmp
to find the packages you want/need... Despite the fact that you have snmpd running, you will likely need other packages. For example, on our Centos5 (RHEL5) machine, we have:
net-snmp-perl
net-snmp-libs
net-snmp
net-snmp-utils
net-snmp-devel
Regards,
Jamie
-----Original Message-----
From: Natalie Aloi [mailto:naloi at experisdatacenters.com]
Sent: Monday, July 13, 2009 11:49 AM
To: Nagios Users Mail-list
Subject: [Nagios-users] Plugin problem
Hello, I am trying to get to nagios 3.0.6 running with plugins v1.4.13 - my old installation on another server also had a plugins.d directory with a bunch of checK_xxx.cfg files in it (I've tried to incorporate those, so I wouldn't have to completely rewrite oid queries, etc) so not sure if that is a part of my trouble: - but check out this output, should I be able to run a check_xxx from the command line?
drwxr-xr-x 8 nagios nagios 4096 2009-07-09 15:37 ..
drwxrwxr-x 2 nagios nagios 4096 2009-07-09 10:13 .
-r-sr-x--- 1 root nagios 77549 2009-07-09 10:13 check_dhcp
-r-sr-x--- 1 root nagios 82964 2009-07-09 10:13 check_icmp
-r-xr-x--- 1 nagios nagios 3143 2009-07-09 10:13 check_file_age
-r-xr-x--- 1 nagios nagios 15310 2009-07-09 10:13 check_ifoperstatus
-r-xr-x--- 1 nagios nagios 12853 2009-07-09 10:13 check_ifstatus
-r-xr-x--- 1 nagios nagios 20367 2009-07-09 10:13 check_mailq
-r-xr-x--- 1 nagios nagios 9707 2009-07-09 10:13 check_rpc
-r-xr-x--- 1 nagios nagios 1176 2009-07-09 10:13 check_sensors
-r-xr-x--- 1 nagios nagios 3019 2009-07-09 10:13 check_wave
-r-xr-x--- 1 nagios nagios 2053 2009-07-09 10:13 utils.pm
-r-xr-x--- 1 nagios nagios 862 2009-07-09 10:13 utils.sh
-r-xr-x--- 1 nagios nagios 2265 2009-07-09 10:13 check_breeze
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_clamd -> check_tcp
-r-xr-x--- 1 nagios nagios 8163 2009-07-09 10:13 check_disk_smb
-r-xr-x--- 1 nagios nagios 6395 2009-07-09 10:13 check_flexlm
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_ftp -> check_tcp
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_imap -> check_tcp
-r-xr-x--- 1 nagios nagios 7429 2009-07-09 10:13 check_ircd
-r-xr-x--- 1 nagios nagios 6062 2009-07-09 10:13 check_log
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_nntp -> check_tcp
-r-xr-x--- 1 nagios nagios 74784 2009-07-09 10:13 check_nt
-r-xr-x--- 1 nagios nagios 8366 2009-07-09 10:13 check_oracle
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_pop -> check_tcp
lrwxrwxrwx 1 root root 9 2009-07-09 10:13 check_udp -> check_tcp
-r-xr-x--- 1 nagios nagios 79726 2009-07-09 10:13 check_by_ssh
-r-xr-x--- 1 nagios nagios 75190 2009-07-09 10:13 check_dig
-r-xr-x--- 1 nagios nagios 81691 2009-07-09 10:13 check_dns
-r-xr-x--- 1 nagios nagios 62246 2009-07-09 10:13 check_nagios
-r-xr-x--- 1 nagios nagios 83198 2009-07-09 10:13 check_procs
-r-xr-x--- 1 nagios nagios 64279 2009-07-09 10:13 check_swap
-r-xr-x--- 1 nagios nagios 50065 2009-07-09 10:13 check_ide_smart
-r-xr-x--- 1 nagios nagios 69260 2009-07-09 10:13 check_ntp_time
-r-xr-x--- 1 nagios nagios 69297 2009-07-09 10:13 check_ups
-r-xr-x--- 1 nagios nagios 59154 2009-07-09 10:13 check_users
-r-xr-x--- 1 nagios nagios 62436 2009-07-09 10:13 negate
-r-xr-x--- 1 nagios nagios 58567 2009-07-09 10:13 urlize
-r-xr-x--- 1 nagios nagios 84165 2009-07-09 10:13 check_ping
-r-xr-x--- 1 nagios nagios 60601 2009-07-09 10:13 check_real
-r-xr-x--- 1 nagios nagios 85400 2009-07-09 10:13 check_smtp
-r-xr-x--- 1 nagios nagios 58171 2009-07-09 10:13 check_ssh
-r-xr-x--- 1 nagios nagios 71905 2009-07-09 10:13 check_tcp
-r-xr-x--- 1 nagios nagios 60179 2009-07-09 10:13 check_time
-r-xr-x--- 1 nagios nagios 48688 2009-07-09 10:13 check_mrtgtraf
-r-xr-x--- 1 nagios nagios 78674 2009-07-09 10:13 check_ntp
-r-xr-x--- 1 nagios nagios 72638 2009-07-09 10:13 check_ntp_peer
-r-xr-x--- 1 nagios nagios 93506 2009-07-09 10:13 check_nwstat
-r-xr-x--- 1 nagios nagios 63258 2009-07-09 10:13 check_overcr
-r-xr-x--- 1 nagios nagios 43928 2009-07-09 10:13 check_cluster
-r-xr-x--- 1 nagios nagios 102640 2009-07-09 10:13 check_disk
-r-xr-x--- 1 nagios nagios 39490 2009-07-09 10:13 check_dummy
-r-xr-x--- 1 nagios nagios 129089 2009-07-09 10:13 check_http
-r-xr-x--- 1 nagios nagios 62067 2009-07-09 10:13 check_load
-r-xr-x--- 1 nagios nagios 49117 2009-07-09 10:13 check_mrtg
-r-xr-x--- 1 nagios nagios 67505 2009-07-09 10:13 check_apt
[root at dns libexec]# ./check_ifoperstatus
Can't locate Net/SNMP.pm in @INC (@INC contains: /usr/local/nagios/libexec /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0 /usr/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.10.0 /usr/lib/perl5/site_perl/5.8.8 /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl .) at ./check_ifoperstatus line 41.
BEGIN failed--compilation aborted at ./check_ifoperstatus line 41.
[root at dns libexec]# yum -y update snmp
Loaded plugins: refresh-packagekit
updates-newkey | 3.4 kB 00:00
fedora | 2.4 kB 00:00
updates | 2.6 kB 00:00
Setting up Update Process
Could not find update match for snmp
No Packages marked for Update
[root at dns libexec]# yum -y install snmp
Loaded plugins: refresh-packagekit
Setting up Install Process
Parsing package install arguments
No package snmp available.
Nothing to do
[root at dns libexec]# ps -ef | grep snmpd
root 3357 1 0 Jul10 ? 00:00:24 /usr/sbin/snmpd -Lsd -Lf /dev/null -p /var/run/snmpd.pid -a
root 6156 5846 0 11:43 pts/2 00:00:00 grep snmpd
[root at dns libexec]#
Network Operations Center Manager
Experis Data Center LLC
8209 Valley Pike
PO Box 535
Middletown,VA 22645
phone:540-869-8702
cell:240-988-3267
fax:540-869-8710
e-mail:naloi at experisdatacenters.com
------------------------------------------------------------------------------
Enter the BlackBerry Developer Challenge
This is your chance to win up to $100,000 in prizes! For a limited time,
vendors submitting new applications to BlackBerry App World(TM) will have
the opportunity to enter the BlackBerry Developer Challenge. See full prize
details at: http://p.sf.net/sfu/Challenge
_______________________________________________
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