external commands not working

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

external commands not working

Post by morabanc »

Red Hat Enterprise Linux Server release 6.2 (Santiago)
64bit
Manual Install

Hello,

External commands has stopped working suddenly, without to change anything.

System component status have some components down (see attach), and pnp graphs are not drawing. I suspect it could be a permission issue, but apparently all permissions are correct...
You do not have the required permissions to view the files attached to this post.
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: external commands not working

Post by morabanc »

And it seems nagios is seeing commands and services up...
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: external commands not working

Post by scottwilkerson »

Is crond running?

Code: Select all

service crond status
If it is stopped that may be the problem

Code: Select all

service crond start
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: external commands not working

Post by morabanc »

No, it is running...

service crond status
crond (pid 2104) is running...
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: external commands not working

Post by scottwilkerson »

Lets try to restart it.

Code: Select all

service crond restart
Also, lets tail the cron log
tail -f /var/log/cron
Additionally, can you post the output of

Code: Select all

df -h
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: external commands not working

Post by morabanc »

Here the cron log:

Jul 20 11:29:01 localhost crond[9454]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9452]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9451]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9453]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9449]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9448]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9450]: (nagios) FAILED to authorize user with PAM
Jul 20 11:29:01 localhost crond[9447]: (nagios) FAILED to authorize user with PAM

This messages repeats every minute!


and the df -h


/dev/mapper/vg_00-lv_root
9,9G 5,3G 4,2G 56% /
tmpfs 1004M 0 1004M 0% /dev/shm
/dev/sda1 243M 87M 144M 38% /boot
/dev/mapper/vg_00-lv_home
9,9G 249M 9,2G 3% /home
/dev/mapper/vg_00-lv_tmp
1008M 35M 923M 4% /tmp
/dev/mapper/vg_00-lv_var
2,0G 1,3G 602M 69% /var
/dev/mapper/vg_00-lv_var_log
2,0G 1,6G 284M 86% /var/log
/dev/mapper/vg_00-lv_var_log_audit
2,0G 562M 1,4G 30% /var/log/audit
morabanc
Posts: 199
Joined: Tue Jul 10, 2012 8:14 am

Re: external commands not working

Post by morabanc »

Problem solved!
It was a permission problem with nagios user.

Thanks for you help
User avatar
lmiltchev
Former Nagios Staff
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: external commands not working

Post by lmiltchev »

I am glad you got this resolved! I will be locking this post now but if you have any more issues or questions, please, start a new thread.
Be sure to check out our Knowledgebase for helpful articles and solutions!