Hello,
We want to monitor the CPU and memory utilization by particular process on Linux environment.
I have tried getting cpu and memory utilization by using plugin check_snmp_process_wizard.pl.
[tcadmin@1691398-prd-tc1 bin]$ /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <host_ip> -C public -r -n tcadmin -m 100,200
I am getting error ERROR: Alarm signal (Nagios time-out).
Can you please explain where I am going wrong.
CPU and memory utilization by particular process on Linux
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: CPU and memory utilization by particular process on Linu
Is this server using SNMP version 2c?
Try
Try
Code: Select all
/usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <host_ip> -C public -r -n tcadmin -m 100,200 -2Re: CPU and memory utilization by particular process on Linu
Do you have an SNMP daemon listening on the machines you want to monitor? And do you have the snmpd.conf file on those machines configured correctly?
This may help, if you haven't seen it:
https://assets.nagios.com/downloads/nag ... g-SNMP.pdf
This machine we have has the SNMPd running:
This one does not:
If you do have the daemon running, but the protocol version doesn't match, you're pointed to the wrong port, the community string isn't right, or something is blocking SNMP traffic, you might still get that error.
Does that help?
This may help, if you haven't seen it:
https://assets.nagios.com/downloads/nag ... g-SNMP.pdf
This machine we have has the SNMPd running:
Code: Select all
# /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H 192.168.0.4 -C community -r -n sshd -m 100,200 -2
1 process named sshd (> 0), Mem : 5.2Mb OK
Code: Select all
[root@localhost scripts]# /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H 192.168.0.2 -C community -r -n sshd -m 100,200 -2
ERROR: Alarm signal (Nagios time-out)
Does that help?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: CPU and memory utilization by particular process on Linu
Hello,
Thanks for the document provided. I have installed snmp by the steps mentioned in document. I have installed snmp v2c.
firewall is inactive. snmpd.service demon is active and running.
still I am getting same error "ERROR: Alarm signal (Nagios time-out)"
Thanks for the document provided. I have installed snmp by the steps mentioned in document. I have installed snmp v2c.
firewall is inactive. snmpd.service demon is active and running.
still I am getting same error "ERROR: Alarm signal (Nagios time-out)"
Code: Select all
[root@1691398-prd-tc1 libexec]# /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <linux_host_ip> -C public -r -n top -m 100,200 -2
ERROR: Alarm signal (Nagios time-out)
Code: Select all
[root@1691398-prd-tc1 libexec]# /usr/local/nagios/libexec/check_snmp_process_wizard.pl -H <linux_host_ip> -C community -r -n top -m 100,200 -2
ERROR: Alarm signal (Nagios time-out)
Code: Select all
[root@1691398-prd-tc1 snmp]# cat snmpd.conf
rocommunity Str0ngC0mmunity <Nagios_Ip>
You do not have the required permissions to view the files attached to this post.
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: CPU and memory utilization by particular process on Linu
You can perform an nmap scan to see if that port is open to that server. Run this command on your XI server:
Where xxx is the address of the SNMP device.
Code: Select all
nmap -Pn -sU -p U:161 xxxAs of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.