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...
external commands not working
-
- Posts: 199
- Joined: Tue Jul 10, 2012 8:14 am
external commands not working
You do not have the required permissions to view the files attached to this post.
-
- Posts: 199
- Joined: Tue Jul 10, 2012 8:14 am
Re: external commands not working
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.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: external commands not working
Is crond running?
If it is stopped that may be the problem
Code: Select all
service crond status
Code: Select all
service crond start
-
- Posts: 199
- Joined: Tue Jul 10, 2012 8:14 am
Re: external commands not working
No, it is running...
service crond status
crond (pid 2104) is running...
service crond status
crond (pid 2104) is running...
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: external commands not working
Lets try to restart it.
Also, lets tail the cron log
Code: Select all
service crond restart
Additionally, can you post the output oftail -f /var/log/cron
Code: Select all
df -h
-
- Posts: 199
- Joined: Tue Jul 10, 2012 8:14 am
Re: external commands not working
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
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
-
- Posts: 199
- Joined: Tue Jul 10, 2012 8:14 am
Re: external commands not working
Problem solved!
It was a permission problem with nagios user.
Thanks for you help
It was a permission problem with nagios user.
Thanks for you help
-
- Former Nagios Staff
- Posts: 13589
- Joined: Mon May 23, 2011 12:15 pm
Re: external commands not working
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!