Issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Issue

Post by raamardhani7 »

tgriep wrote:Can you login as root, run the following commands and post the output?

Code: Select all

ls -l /usr/share/perl5/
ls -l /usr/share/perl5/File/
Hi Tom,

Please find the update.

Code: Select all

[root@lusrcdnagiosxi00 perl5]# ls -l /usr/share/perl5/
total 2188
-rwxr-xr-x   1 root root    838 Oct  1 07:58 abbrev.pl
-rwxr-xr-x   1 root root   2594 Oct  1 07:58 AnyDBM_File.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 App
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Archive
-rwxr-xr-x   1 root root   1298 Oct  1 07:58 assert.pl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Attribute
-rwxr-xr-x   1 root root  14877 Oct  1 07:58 attributes.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 autodie
-rwxr-xr-x   1 root root  11763 Oct  1 07:58 autodie.pm
-rwxr-xr-x   1 root root  14997 Oct  1 07:58 AutoLoader.pm
-rwxr-xr-x   1 root root  19637 Oct  1 07:58 AutoSplit.pm
-rwxr-xr-x   1 root root   4238 Oct  1 07:58 autouse.pm
drwxr-xr-x.  3 root root   4096 Oct  1 07:58 B
-rwxr-xr-x   1 root root   6986 Oct  1 07:58 base.pm
-rwxr-xr-x   1 root root  28530 Oct  1 07:58 Benchmark.pm
-rwxr-xr-x.  1 root root  27790 Jan  1  2008 BER.pm
-rwxr-xr-x   1 root root   7368 Oct  1 07:58 bigfloat.pl
-rwxr-xr-x   1 root root   8959 Oct  1 07:58 bigint.pl
-rwxr-xr-x   1 root root  17852 Oct  1 07:58 bigint.pm
-rwxr-xr-x   1 root root  18673 Oct  1 07:58 bignum.pm
-rwxr-xr-x   1 root root   4476 Oct  1 07:58 bigrat.pl
-rwxr-xr-x   1 root root  14442 Oct  1 07:58 bigrat.pm
-rwxr-xr-x   1 root root   2106 Oct  1 07:58 blib.pm
drwxr-xr-x.  2 root root   4096 Jul 15  2013 Bundle
-rwxr-xr-x   1 root root    758 Oct  1 07:58 bytes_heavy.pl
-rwxr-xr-x   1 root root   2384 Oct  1 07:58 bytes.pm
-rwxr-xr-x   1 root root   1122 Oct  1 07:58 cacheout.pl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Carp
-rwxr-xr-x   1 root root   7611 Oct  1 07:58 Carp.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 CGI
-rwxr-xr-x   1 root root 261478 Oct  1 07:58 CGI.pm
-rwxr-xr-x   1 root root  15670 Oct  1 07:58 charnames.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Class
-rwxr-xr-x   1 root root   3191 Oct  1 07:58 complete.pl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Config
-rwxr-xr-x   1 root root  12528 Oct  1 07:58 constant.pm
-rwxr-xr-x   1 root root   1569 Oct  1 07:58 CORE.pod
drwxr-xr-x.  7 root root   4096 Feb 22 09:12 CPAN
drwxr-xr-x.  8 root root   4096 Feb 22 09:12 CPANPLUS
-rwxr-xr-x   1 root root   7269 Oct  1 07:58 CPANPLUS.pm
-rwxr-xr-x   1 root root 130907 Oct  1 07:58 CPAN.pm
-rwxr-xr-x   1 root root   1993 Oct  1 07:58 ctime.pl
drwxr-xr-x.  3 root root   4096 Jul 15  2013 Data
drwxr-xr-x.  3 root root   4096 Jul 15  2013 Date
drwxr-xr-x.  3 root root   4096 Jul 15  2013 DBIx
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 DBM_Filter
-rwxr-xr-x   1 root root  14415 Oct  1 07:58 DBM_Filter.pm
-rwxr-xr-x   1 root root  19202 Oct  1 07:58 DB.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Devel
-rwxr-xr-x   1 root root  17380 Oct  1 07:58 diagnostics.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Digest
-rwxr-xr-x   1 root root  10412 Oct  1 07:58 Digest.pm
-rwxr-xr-x   1 root root   1937 Oct  1 07:58 DirHandle.pm
-rwxr-xr-x   1 root root   2175 Oct  1 07:58 dotsh.pl
-rwxr-xr-x   1 root root  16899 Oct  1 07:58 Dumpvalue.pm
-rwxr-xr-x   1 root root  15275 Oct  1 07:58 dumpvar.pl
drwxr-xr-x   3 root root   4096 Jan 22 00:00 Email
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Encode
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 encoding
-rwxr-xr-x   1 root root   4488 Oct  1 07:58 English.pm
-rwxr-xr-x   1 root root   5170 Oct  1 07:58 Env.pm
drwxr-xr-x.  2 root root   4096 Jul  1  2015 Error
-rwxr-xr-x.  1 root root  24117 Dec  8  2009 Error.pm
-rwxr-xr-x   1 root root   1736 Oct  1 07:58 exceptions.pl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Exporter
-rwxr-xr-x   1 root root  18595 Oct  1 07:58 Exporter.pm
drwxr-xr-x.  7 root root   4096 Feb 22 09:12 ExtUtils
-rwxr-xr-x   1 root root   1019 Oct  1 07:58 fastcwd.pl
-rwxr-xr-x   1 root root  40966 Oct  1 07:58 Fatal.pm
-rwxr-xr-x   1 root root   5092 Oct  1 07:58 feature.pm
-rwxr-xr-x   1 root root   9507 Oct  1 07:58 fields.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 File
-rwxr-xr-x   1 root root   5570 Oct  1 07:58 FileCache.pm
-rwxr-xr-x   1 root root   6778 Oct  1 07:58 FileHandle.pm
-rwxr-xr-x   1 root root   4003 Oct  1 07:58 filetest.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Filter
-rwxr-xr-x   1 root root   5658 Oct  1 07:58 FindBin.pm
-rwxr-xr-x   1 root root   1130 Oct  1 07:58 finddepth.pl
-rwxr-xr-x   1 root root   1185 Oct  1 07:58 find.pl
-rwxr-xr-x   1 root root    642 Oct  1 07:58 flush.pl
-rwxr-xr-x   1 root root   1427 Oct  1 07:58 getcwd.pl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Getopt
-rwxr-xr-x   1 root root   1322 Oct  1 07:58 getopt.pl
-rwxr-xr-x   1 root root   1406 Oct  1 07:58 getopts.pl
-rwxr-xr-x   1 root root    727 Oct  1 07:58 hostname.pl
drwxr-xr-x.  2 root root   4096 Jul 15  2013 HTML
drwxr-xr-x.  5 root root   4096 Jul 15  2013 HTTP
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 I18N
-rwxr-xr-x   1 root root   1166 Oct  1 07:58 if.pm
-rwxr-xr-x   1 root root    283 Oct  1 07:58 importenv.pl
-rwxr-xr-x   1 root root   3266 Oct  1 07:58 integer.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 IO
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 IPC
-rwxr-xr-x   1 root root   3084 Oct  1 07:58 less.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Locale
-rwxr-xr-x   1 root root    820 Oct  1 07:58 locale.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Log
-rwxr-xr-x   1 root root   1255 Oct  1 07:58 look.pl
drwxr-xr-x.  4 root root   4096 Jul 15  2013 LWP
-rwxr-xr-x.  1 root root   9137 Jun 15  2009 lwpcook.pod
-rwxr-xr-x.  1 root root  21349 Oct  6  2009 LWP.pm
-rwxr-xr-x.  1 root root  25447 Jun 15  2009 lwptut.pod
drwxr-xr-x   4 root root   4096 Jan 22 00:00 Mail
drwxr-xr-x.  4 root root   4096 Feb 22 09:12 Math
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Memoize
-rwxr-xr-x   1 root root  35295 Oct  1 07:58 Memoize.pm
drwxr-xr-x   2 root root   4096 Jan 22 00:00 MIME
drwxr-xr-x.  5 root root   4096 Feb 22 09:12 Module
drwxr-xr-x.  5 root root   4096 Feb 22 09:12 Net
-rwxr-xr-x   1 root root   2213 Oct  1 07:58 newgetopt.pl
-rwxr-xr-x   1 root root  18481 Oct  1 07:58 NEXT.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Object
-rwxr-xr-x   1 root root    185 Oct  1 07:58 open2.pl
-rwxr-xr-x   1 root root    185 Oct  1 07:58 open3.pl
-rwxr-xr-x   1 root root   7740 Oct  1 07:58 open.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 overload
-rwxr-xr-x   1 root root   1801 Oct  1 07:58 overloading.pm
-rwxr-xr-x   1 root root  48050 Oct  1 07:58 overload.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Package
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Params
-rwxr-xr-x   1 root root   2998 Oct  1 07:58 parent.pm
drwxr-xr-x.  3 root root   4096 Oct  1 07:58 Parse
-rwxr-xr-x   1 root root 317682 Oct  1 07:58 perl5db.pl
drwxr-xr-x.  3 root root   4096 Oct  1 07:58 PerlIO
-rwxr-xr-x   1 root root  11122 Oct  1 07:58 PerlIO.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 pod
drwxr-xr-x.  5 root root   4096 Feb 22 09:12 Pod
-rwxr-xr-x   1 root root   1478 Oct  1 07:58 pwd.pl
-rwxrwxrwx   1 root root  24326 Oct  1 07:58 Safe.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Search
-rwxr-xr-x   1 root root   1076 Oct  1 07:58 SelectSaver.pm
-rwxr-xr-x   1 root root  17341 Oct  1 07:58 SelfLoader.pm
-rwxr-xr-x   1 root root   8685 Oct  1 07:58 Shell.pm
-rwxr-xr-x   1 root root    276 Oct  1 07:58 shellwords.pl
-rwxr-xr-x   1 root root   7611 Oct  1 07:58 sigtrap.pm
-rwxr-xr-x.  1 root root  35084 Mar 19  2008 SNMP_Session.pm
-rwxr-xr-x.  1 root root  41180 Dec 22  2007 SNMP_util.pm
-rwxr-xr-x   1 root root   6093 Oct  1 07:58 sort.pm
-rwxr-xr-x   1 root root    590 Oct  1 07:58 stat.pl
-rwxr-xr-x   1 root root   3716 Oct  1 07:58 strict.pm
-rwxr-xr-x   1 root root    842 Oct  1 07:58 subs.pm
-rwxr-xr-x   1 root root  28508 Oct  1 07:58 Switch.pm
-rwxr-xr-x   1 root root   4794 Oct  1 07:58 Symbol.pm
-rwxr-xr-x   1 root root   4806 Oct  1 07:58 syslog.pl
-rwxr-xr-x   1 root root    164 Oct  1 07:58 tainted.pl
drwxr-xr-x.  4 root root   4096 Feb 22 09:12 TAP
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Term
-rwxr-xr-x   1 root root   4114 Oct  1 07:58 termcap.pl
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Test
-rwxr-xr-x   1 root root  28800 Oct  1 07:58 Test.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Text
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Thread
-rwxr-xr-x   1 root root   8285 Oct  1 07:58 Thread.pm
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Tie
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 Time
-rwxr-xr-x   1 root root    690 Oct  1 07:58 timelocal.pl
drwxr-xr-x.  3 root root   4096 Feb 22 09:12 Unicode
drwxr-xr-x.  4 root root   4096 Feb 22 09:12 unicore
-rwxr-xr-x   1 root root   6536 Oct  1 07:58 UNIVERSAL.pm
drwxr-xr-x.  4 root root   4096 Jul 15  2013 URI
-rwxr-xr-x.  1 root root  31172 Aug 14  2009 URI.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 User
-rwxr-xr-x   1 root root   8001 Oct  1 07:58 utf8_heavy.pl
-rwxr-xr-x   1 root root   6918 Oct  1 07:58 utf8.pm
-rwxr-xr-x   1 root root   3731 Oct  1 07:58 validate.pl
-rwxr-xr-x   1 root root   2358 Oct  1 07:58 vars.pm
drwxr-xr-x. 19 root root   4096 Oct  1 07:58 vendor_perl
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 version
-rwxr-xr-x   1 root root   1037 Oct  1 07:58 version.pm
-rwxr-xr-x   1 root root  12315 Oct  1 07:58 version.pod
-rwxr-xr-x   1 root root   4328 Oct  1 07:58 vmsish.pm
drwxr-xr-x.  2 root root   4096 Feb 22 09:12 warnings
-rwxr-xr-x   1 root root  16133 Oct  1 07:58 warnings.pm
drwxr-xr-x.  3 root root   4096 Jul 15  2013 WWW
drwxr-xr-x.  8 root root   4096 Jul  1  2015 XML

Code: Select all

ls -l /usr/share/perl5/File/
total 296
-rw-r--r--  1 root root 11328 Oct  1 07:58 Basename.pm
-rw-r--r--  1 root root  7703 Oct  1 07:58 CheckTree.pm
-rw-r--r--  1 root root  4332 Oct  1 07:58 Compare.pm
-rw-r--r--  1 root root 16396 Oct  1 07:58 Copy.pm
-rw-r--r--  1 root root 16628 Oct  1 07:58 DosGlob.pm
-rw-r--r--  1 root root 41106 Oct  1 07:58 Fetch.pm
-rw-r--r--  1 root root 39155 Oct  1 07:58 Find.pm
-rw-r--r--. 1 root root  9528 Sep 24  2008 Listing.pm
-rw-r--r--  1 root root 33137 Oct  1 07:58 Path.pm
drwxr-xr-x. 2 root root  4096 Feb 22 09:12 Spec
-rw-r--r--  1 root root 10397 Oct  1 07:58 Spec.pm
-rw-r--r--  1 root root  3373 Oct  1 07:58 stat.pm
-rw-r--r--  1 root root 74502 Oct  1 07:58 Temp.pm
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue

Post by tgriep »

Can you run the following in the folder that the sn_ticketer.pl is installed at and post the output?

Code: Select all

ls -l
Since root can run it and nagios cannot, it it probably a permission issue on those files or folders.
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Issue

Post by raamardhani7 »

tgriep wrote:Can you run the following in the folder that the sn_ticketer.pl is installed at and post the output?

Code: Select all

ls -l
Since root can run it and nagios cannot, it it probably a permission issue on those files or folders.

Hi Tom,

Please find the output.

Code: Select all

ls -l
total 244
-rwxrwxrwx 1 root   nagios 27467 Feb 10 05:54 1
-rwxrwxrwx 1 root   nagios   209 Feb 26 05:52 call_file1.pl
-rwxrwxrwx 1 root   nagios   198 Feb 26 06:45 call_file.pl
-rwxrwxrwx 1 root   nagios  1259 Feb  9 04:07 config.ini
-rwxrwxrwx 1 root   nagios   942 Feb 18 14:28 field_map.ini
-rwxrwxrwx 1 root   nagios  3648 Feb  9 04:09 field_map.ini.custom
-rwxrwxrwx 1 root   root     444 Feb 26 03:43 fileCreate.pl
-rwxrwxr-x 1 root   nagios  2868 Feb 16 00:48 incidentCreation.pl
-rwxrwxrwx 1 root   nagios 18026 May 23  2014 LICENSE.md
-rwxr-xr-x 1 root   nagios    54 Feb 23 06:21 output_direction.pl
-rwxrwxrwx 1 root   root     209 Feb 26 02:58 print.pl
-rwxrwxrwx 1 root   nagios 13560 May 23  2014 README.md
-rwxrwxrwx 1 nagios nagios 27807 Feb 28 05:18 sn_ticketer.pl
-rwxrwxrwx 1 root   nagios 28933 Feb  9 23:45 sn_ticketer.pl_bkp
-rwx------ 1 root   nagios 27521 Feb 23 08:09 sn_ticketer.pl_bkp_23Feb
-rwx------ 1 root   root   27636 Feb 28 04:47 sn_ticketer.pl_bkp282016
-rwxrwxrwx 1 root   nagios 27467 Feb 11 01:16 sn_ticketer.pl_test
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue

Post by tgriep »

Those permissions look good but it could be the folder's permission that those files are in. Can you check that the nagios user has the correct permissions.
Can you run this and post the output?

Code: Select all

ls -l /var/log/
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Issue

Post by raamardhani7 »

tgriep wrote:Those permissions look good but it could be the folder's permission that those files are in. Can you check that the nagios user has the correct permissions.
Can you run this and post the output?

Code: Select all

ls -l /var/log/
Hi Tom..

Code: Select all

ls -l /var/log/
total 36223180
-rw-------. 1 root   root           6001 Jul 15  2013 anaconda.ifcfg.log
-rw-------. 1 root   root          22386 Jul 15  2013 anaconda.log
-rw-------. 1 root   root          65383 Jul 15  2013 anaconda.program.log
-rw-------. 1 root   root         189577 Jul 15  2013 anaconda.storage.log
-rw-------. 1 root   root         112592 Jul 15  2013 anaconda.syslog
-rw-------. 1 root   root          31324 Jul 15  2013 anaconda.xlog
-rw-------. 1 root   root          74694 Jul 15  2013 anaconda.yum.log
drwxr-x---. 2 root   root           4096 Feb 29 09:16 audit
-rw-r--r--  1 root   root           3473 Nov 15 00:20 boot.log
-rw-------  1 root   utmp          93696 Feb 29 09:17 btmp
-rw-------  1 root   utmp          16512 Jan 27 02:33 btmp-20160201
drwxr-xr-x. 2 root   root           4096 Jul 15  2013 ConsoleKit
-rw-------  1 root   root        2829417 Feb 29 13:44 cron
-rw-------  1 root   root       14144058 Feb  7 03:45 cron-20160207
-rw-------  1 root   root       14118168 Feb 14 03:58 cron-20160214
-rw-------  1 root   root       14134068 Feb 21 04:20 cron-20160221
-rw-------  1 root   root       14076645 Feb 28 04:01 cron-20160228
drwxr-xr-x. 2 lp     sys            4096 Jun 10  2015 cups
-rw-r--r--  1 root   root          71372 Nov 15 00:19 dmesg
-rw-r--r--  1 root   root          71367 Nov 15 00:02 dmesg.old
-rw-------. 1 root   root         877532 Nov 23 02:41 dracut.log
-rw-r-----. 1 root   root        1159842 Jun 22  2015 dracut.log-20150622
-rw-r--r--  1 root   root            182 Feb 29 13:24 get_hyperic_status_2016022                                                                                        9132457.log
drwxr-----. 2 root   root           4096 Jul 15  2013 history
drwx------. 2 root   root           4096 Feb 28 04:01 httpd
-rw-------  1 root   root          37455 Jan 11 01:04 ipaclient-install.log
-rw-r--r--. 1 root   root   604790512712 Feb 29 13:44 lastlog
-rw-------  1 root   root     1903886110 Feb 29 13:44 maillog
-rw-------  1 root   root     5591757694 Feb  7 03:45 maillog-20160207
-rw-------  1 root   root     8457144170 Feb 14 03:58 maillog-20160214
-rw-------  1 root   root     9674548820 Feb 21 04:20 maillog-20160221
-rw-------  1 root   root     9894701484 Feb 28 04:01 maillog-20160228
-rw-------  1 root   root       49150437 Feb 29 13:44 messages
-rw-------  1 root   root      310160420 Feb  7 03:45 messages-20160207
-rw-------  1 root   root      338258908 Feb 14 03:58 messages-20160214
-rw-------  1 root   root      373136164 Feb 21 04:20 messages-20160221
-rw-------  1 root   root      321964034 Feb 28 04:01 messages-20160228
-rw-r-----. 1 mysql  mysql     105460446 Feb 27 06:33 mysqld.log
drwxr-xr-x. 2 ntp    ntp            4096 Oct 16 03:58 ntpstats
-rw-------. 1 root   root        8611784 Feb  4 16:37 osad
drwxr-xr-x. 2 root   root           4096 Jul 19  2013 prelink
-rw-------. 1 root   root         235481 Feb 29 03:27 rhncfg-actions
drwxr-xr-x. 2 root   root           4096 Feb 28 04:01 rhsm
drwxr-xr-x. 2 root   root           4096 Feb 29 00:00 sa
drwx------. 3 root   root           4096 Apr 10  2015 samba
-rw-------  1 root   root          21856 Feb 29 13:44 secure
-rw-------  1 root   root          71572 Feb  7 03:22 secure-20160207
-rw-------  1 root   root          25542 Feb 14 01:23 secure-20160214
-rw-------  1 root   root          86325 Feb 21 01:31 secure-20160221
-rw-------  1 root   root          75158 Feb 28 01:48 secure-20160228
drwxrwxr-x  2 snmptt snmptt         4096 Feb 28 04:01 snmptt
-rwxrwxrwx  1 root   root          88480 Feb 29 07:55 sn_ticketer.log
-rw-------  1 root   root              0 Feb 28 04:01 spooler
-rw-------  1 root   root              0 Jan 31 03:14 spooler-20160207
-rw-------  1 root   root              0 Feb  7 03:45 spooler-20160214
-rw-------  1 root   root              0 Feb 14 03:58 spooler-20160221
-rw-------  1 root   root              0 Feb 21 04:20 spooler-20160228
drwxr-x---. 2 root   root           4096 Jan 11 03:26 sssd
-rw-------. 1 root   root          32064 Jun 22  2015 tallylog
drwxr-xr-x. 2 tomcat root           4096 Feb 28 04:01 tomcat6
-rw-r-----  1 root   root            550 Feb 29 11:16 up2date
-rw-r-----  1 root   root           8284 Feb  7 01:55 up2date-20160207
-rw-r-----  1 root   root           8062 Feb 14 03:05 up2date-20160214
-rw-r-----  1 root   root           8062 Feb 21 02:36 up2date-20160221
-rw-r-----  1 root   root           8344 Feb 28 01:02 up2date-20160228
-rw-r-----. 1 root   root         174102 Sep 18 03:54 vmware-tools-upgrader.log
-rw-rw-r--. 1 root   utmp         275712 Feb 29 13:44 wtmp
-rw-------  1 root   root           4562 Feb 22 09:12 yum.log
-rw-------. 1 root   root           9161 Jun  3  2014 yum.log-20150622
-rw-------. 1 root   root          31013 Nov 23 02:39 yum.log-20160101
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue

Post by tgriep »

Can you post the /var/log/sn_ticketer.log file and sn_ticketer.pl perl script that you are using?

Run the following and post the output.

Code: Select all

ls -l /usr/local/lib64/perl5/ 
ls -l /usr/local/lib64/perl5/DBI
ls -lR /usr/local/lib64/perl5/DBI/DBD
Be sure to check out our Knowledgebase for helpful articles and solutions!
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Issue

Post by raamardhani7 »

tgriep wrote:Can you post the /var/log/sn_ticketer.log file and sn_ticketer.pl perl script that you are using?

Run the following and post the output.

Code: Select all

ls -l /usr/local/lib64/perl5/ 
ls -l /usr/local/lib64/perl5/DBI
ls -lR /usr/local/lib64/perl5/DBI/DBD
Hi Tom, Please find the output..

Code: Select all

[nagios@lusrcdnagiosxi00 libexec]$ ls -l /usr/local/lib64/perl5/
total 456
drwxr-xr-x 38 root root   4096 Feb 29 08:16 auto
drwxr-xr-x  2 root root   4096 Jan 25 00:11 Bundle
drwxr-xr-x  3 root root   4096 Jan 21 05:07 Compress
-rwxr-xr-x  1 root root  22587 Jan 11 07:33 Cwd.pm
drwxr-xr-x  2 root root   4096 Jan 21 05:03 Data
drwxr-xr-x  4 root root   4096 Jan 25 00:11 DBD
drwxr-xr-x  8 root root   4096 Jan 25 00:11 DBI
-rwxrwxrwx  1 root root 316207 Aug  3  2015 DBI.pm
-rwxr-xr-x  1 root root   1533 Apr  4  2013 dbixs_rev.pl
drwxr-xr-x  2 root root   4096 Jan 21 05:03 Digest
drwxr-xr-x  3 root root   4096 Jan 21 05:03 File
drwxr-xr-x  3 root root   4096 Jan 25 00:01 List
drwxr-xr-x  2 root root   4096 Jan 24 23:59 Params
drwxr-xr-x  2 root root   4096 Jan 24 23:59 PerlIO
drwxr-xr-x  2 root root   4096 Jan 25 00:01 Scalar
-rwxr-xr-x  1 root root  36433 Nov 18 11:12 Socket.pm
drwxr-xr-x  2 root root   4096 Jan 25 00:01 Sub
drwxr-xr-x  2 root root   4096 Jan 21 05:04 Term
drwxr-xr-x  2 root root   4096 Jan 21 05:06 version
-rwxr-xr-x  1 root root   3192 Jan 20  2015 version.pm
-rwxr-xr-x  1 root root   9854 Jan 20  2015 version.pod
drwxr-xr-x  2 root root   4096 Jan 25 00:11 Win32
[nagios@lusrcdnagiosxi00 libexec]$ ls -l /usr/local/lib64/perl5/DBI
total 448
-rwxr-xr-x 1 root root 119367 Jan 25 00:06 Changes.pm
drwxr-xr-x 3 root root   4096 Jan 25 00:11 Const
drwxr-xr-x 3 root root   4096 Jan 25 00:11 DBD
-rwxr-xr-x 1 root root 126538 Jul 22  2015 DBD.pm
-rwxr-xr-x 1 root root  35143 May 26  2015 FAQ.pm
drwxr-xr-x 4 root root   4096 Jan 25 00:11 Gofer
-rwxr-xr-x 1 root root  19984 Jun 24  2013 ProfileData.pm
drwxr-xr-x 2 root root   4096 Jan 25 00:11 ProfileDumper
-rwxr-xr-x 1 root root  10386 Jun 24  2013 ProfileDumper.pm
-rwxr-xr-x 1 root root  32584 Sep 21  2014 Profile.pm
-rwxr-xr-x 1 root root   1168 Jun 24  2013 ProfileSubs.pm
-rwxr-xr-x 1 root root  26461 Sep 21  2014 ProxyServer.pm
-rwxr-xr-x 1 root root  38496 Sep 21  2014 PurePerl.pm
drwxr-xr-x 2 root root   4096 Jan 25 00:11 SQL
drwxr-xr-x 2 root root   4096 Jan 25 00:11 Util
-rwxr-xr-x 1 root root   4608 May 23  2013 W32ODBC.pm
[nagios@lusrcdnagiosxi00 libexec]$ ls -lR /usr/local/lib64/perl5/DBI/DBD
/usr/local/lib64/perl5/DBI/DBD:
total 84
-rwxr-xr-x 1 root root 15045 May 26  2015 Metadata.pm
drwxr-xr-x 2 root root  4096 Jan 25 00:11 SqlEngine
-rwxr-xr-x 1 root root 65091 May 26  2015 SqlEngine.pm

/usr/local/lib64/perl5/DBI/DBD/SqlEngine:
total 40
-rwxr-xr-x 1 root root 27334 May 15  2013 Developers.pod
-rwxr-xr-x 1 root root 10819 May 26  2015 HowTo.pod

Code: Select all

[root@lusrcdnagiosxi00 libexec]# ./check_snowtest
user loggedhost addedname=display_value   value=INC0010632
name=status   value=inserted
name=table   value=incident
name=display_name   value=number
name=sys_id   value=4fd9ebcf0fb55a00742f0dbce1050ef6
[root@lusrcdnagiosxi00 libexec]# su - nagios
[nagios@lusrcdnagiosxi00 ~]$ set -o vi
[nagios@lusrcdnagiosxi00 ~]$ cd /usr/local/nagios/libexec/
[nagios@lusrcdnagiosxi00 libexec]$ ./check_snowtest
501 Attempt to reload LWP/Protocol/https.pm aborted.
Compilation failed in require (Crypt::SSLeay or IO::Socket::SSL not installed) at ./check_snowtest line 97.
user loggedhost added
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Issue

Post by tgriep »

Can you post the /var/log/sn_ticketer.log file and sn_ticketer.pl perl script that you are using?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked